LuCI unable to connect to the internet?

Here's my setup:
Main router: ASUS RT-AC1900P (Asuswrt-Merlin)
OpenWRT device 1: Netgear WNDR3700v1 (acting as a switch https://openwrt.org/docs/guide-user/network/wifi/dumbap)
OpenWRT device 2: WD MyBookLive NAS


The problem: The NAS is unable to access the internet at all (LAN port connected to main routers LAN port, IP address of NAS changed to 192.168.1.3). The WNDR3700v1 can't access the internet at all through its web interface but connected devices do have internet access.
I can ping my main router within LuCI though, but I can't ping openwrt.org or google.ca

Did you turn off DHCP at 192.168.1.3?

Yes I did turn off DHCP.

1 Like

In /etc/config/DHCP change rebind protection to 0 and comment out the line that says option local /lan/.

1 Like

On which device? The 2nd router or the NAS?
Okay, so I just changed the following and used my main routers IP address on the NAS and the WNDR3700v1.

IPv4 gateway
Use custom DNS servers

The NAS now has internet access but the other doesn't.

PING openwrt.org (139.59.209.225): 56 data bytes
64 bytes from 139.59.209.225: seq=0 ttl=51 time=112.317 ms
64 bytes from 139.59.209.225: seq=1 ttl=51 time=110.748 ms
64 bytes from 139.59.209.225: seq=2 ttl=51 time=111.011 ms
64 bytes from 139.59.209.225: seq=3 ttl=51 time=126.936 ms
64 bytes from 139.59.209.225: seq=4 ttl=51 time=113.876 ms

--- openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 110.748/114.977/126.936 ms

ping: bad address 'openwrt.org'

Do that on any OpenWrt box that is a LAN device, that is a client of a main router.

Though the changes I said allow the OpenWrt client to look up LAN names via the main router. Now that I see you can't access the Internet at all it could be something different. Make sure you have DNS in the lan network configured to point at the main router or a valid DNS server.

It now has internet access! :grinning:
I also made that change to the dhcp file on the NAS.
NETGEAR WNDR3700

PING openwrt.org (139.59.209.225): 56 data bytes
64 bytes from 139.59.209.225: seq=0 ttl=51 time=114.471 ms
64 bytes from 139.59.209.225: seq=1 ttl=51 time=113.943 ms
64 bytes from 139.59.209.225: seq=2 ttl=51 time=112.324 ms
64 bytes from 139.59.209.225: seq=3 ttl=51 time=111.972 ms
64 bytes from 139.59.209.225: seq=4 ttl=51 time=113.387 ms

--- openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 111.972/113.219/114.471 ms

I usually make the LAN devices DHCP clients, so they automatically set up to match the main router. If you have something like a NAS that must be reachable at a constant IP, set up a DHCP reservation for it in the main router.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.