OpenWrt Forum Archive

Topic: WR842ND cannot connect to WAN

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

Hi,
I just upgraded my firmware to Open WRT and all went smoothly. I am able to SSH at the moment after setting the password. Though I was trying to install Luci and I got the error message. After diggin out I realized that my router is not able to connect to WAN. I also tried with static IP (as you may see below) though no result. I checked from my gateway router (netgear dnd3300) and it does not see WR842ND.

Any solution to this?



root@OpenWrt:~# uci show network.wan
network.wan=interface
network.wan.ifname=eth1
network.wan.proto=static
network.wan.ipaddr=192.168.0.20
network.wan.netmask=255.255.255.0
network.wan.gateway=192.168.0.1



root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 64:70:02:CF:45:CB
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:182 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15014 (14.6 KiB)  TX bytes:15345 (14.9 KiB)

eth0      Link encap:Ethernet  HWaddr 64:70:02:CF:45:CB
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:186 errors:0 dropped:0 overruns:0 frame:0
          TX packets:120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:18169 (17.7 KiB)  TX bytes:15345 (14.9 KiB)
          Interrupt:5

eth1      Link encap:Ethernet  HWaddr 64:70:02:CF:45:CD
          inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:49 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:14116 (13.7 KiB)  TX bytes:1134 (1.1 KiB)
          Interrupt:4

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:65280 (63.7 KiB)  TX bytes:65280 (63.7 KiB)

can you connect your pc to the wan port and, after setting a static ip, ping 192.168.0.20?

The discussion might have continued from here.