Openwrt Router internet source to wlan interface

Hello everyone,

My problem is that my Openwrt Router cannot access the internet despite connected devices being able to. To briefly explain what the setup is. I have a ISP-provided router with 2.4 and 5ghz networks, which functions as the main router. The secondary Openwrt router connects as a client on the 5ghz network of the main one on radio1 and spans a 2.4 subnet (with DHCP) for devices on radio0. I have bridged the client 5 and the hosted 2.4 networks on the Openwrt router. All connected devices (ethernet or wireless) have internet access, however, the router itself does not. I cannot ping or download packages. Do you know how I can set the internet source for the router itself to be the wlan1 interface on radio1?

Thank you in advance!

Does the openwrt router have a static IP ?

did you enter DNS servers along with the static IP ?

can you for instance ping from the router ?

what does /etc/resolv.conf say ?


Typical error is that although the clients use DHCP and get the info from the main router, but this secondary router itself has a fixed IP and you have forgot to provide the subnet, gateway (main router) and DNS server address (main router) in the LAN config.

1 Like

Thank you for the prompt reply!

  1. OpenWrt has a static IP -
  2. I did not provide DNS servers.
  3. I can actually ping
PING ( 56 data bytes
64 bytes from seq=0 ttl=51 time=28.078 ms
64 bytes from seq=1 ttl=51 time=32.060 ms
64 bytes from seq=2 ttl=51 time=33.734 ms
64 bytes from seq=3 ttl=51 time=31.072 ms
64 bytes from seq=4 ttl=51 time=28.285 ms

--- ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 28.078/30.645/33.734 ms
  1. This is the content of resolv.conf
search lan

I guess the problem is only that I cannot update and install software packages. Here is an output from the console:

root@ opkg update
Failed to establish connection
*** Failed to download the package list from

Failed to establish connection
*** Failed to download the package list from

If you look at the current forum discussion, you could notice that there is major trouble with the OpenWrt download site at the moment...

Several threads about it.

1 Like

I was not aware of this. I assumed it was a problem on my end.

Examples from the last few hours:


I had a similar problem with my openwrt wlan-ap and it got solved by adding a gateway to the /etc/config/network file.
something like option gateway <ROUTER-IP>.
but as I said it was a problem with an wlan-ap, not a router.
I think if you are not able to ping something, the problem is not the site itself, so maybe you try that.

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