OpenWrt Forum Archive

Topic: RC4 (WRTG/v3.0): Does not work with Static Wan Ip

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello Everybody,

I flashed a linksys V3.0 WRTG with RC4. If I used dhcp, it works fine. I tried to make it to use static wan ip and do maual ipdown wan and ifup wan, but it always gives an error

Network Unreachable

Also, i cannot ping, ssh or telnet into the router after it reboots. I have made not change to default configuration.

I was able to connect another linksys WRTGS v4.0 with RC3 to the same Ip. I am replacing it with this new WRTG/V3.0 RC4

Output of : nvram show | grep wan

wan_unit=0
wan_get_dns=
wan_run_mtu=1500
wan_lease=0
http_wanport=8080
wan_gateway=10.1.1.1
wan_hwname=
wan_domain=
wan_netmask=255.255.0.0
block_wan=1
dr_wan_rx=0
wan_dns=
dhcp_wins=wan
wan_proto=static
size: 8810 bytes (23958 left)
wan_hwaddr=00:14:BF:B5:0E:02
wan_ifnames=vlan1
dr_wan_tx=0
wan_primary=1
dhcp_domain=wan
wan_gateway_buf=0.0.0.0
wan_iface=vlan1
upnp_wan_proto=
wan_ipaddr=10.100.20.59
wan_ipaddr_buf=0.0.0.0
wan_wins=0.0.0.0
wan_mtu=1500
wan_get_domain=
wan_ifname=vlan1
wan_hostname=

Can someone see any problems with this configuration.
Thanks,

A quick update.

If i connect from the ethernet ports and then do ssh 10.100.20.59, it works. I am not able to ping, telnet, ssh from another machine on the 10.100.x.x network. I also tried renaming the S42firewall scripts so that it is not loaded during boot.

Thanks,

Koolrans

would suggest to also erase, and reset to OpenWrt default, the nvram variables, and then define your configuration in a script, e.g. /etc/init.d/S20config, that sets your configuration and, if it works as you like also commits the nvram setting changes.
Seems to be a lot of non-OpenWrt stuff in nvram.

I don't know on wrt but normally your wan_gateway has to be on the same net as wan_ip. Yours isn't. You can fix this either by changing the netmask or adding a route.

- DL

Thanks a lot everybody,

It is now fixed. I had to do the following.

reset the nvram settings. (Remove the extra variables created by web interface)
I had the typed the wrong gateway. So updated it.

Regards,
Koolrans

The discussion might have continued from here.