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 8.8.8.8 from the router ?

what does /etc/resolv.conf say ?

2 Likes

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 - 192.168.1.1
  2. I did not provide DNS servers.
    image
  3. I can actually ping openwrt.org
PING openwrt.org (139.59.209.225): 56 data bytes
64 bytes from 139.59.209.225: seq=0 ttl=51 time=28.078 ms
64 bytes from 139.59.209.225: seq=1 ttl=51 time=32.060 ms
64 bytes from 139.59.209.225: seq=2 ttl=51 time=33.734 ms
64 bytes from 139.59.209.225: seq=3 ttl=51 time=31.072 ms
64 bytes from 139.59.209.225: seq=4 ttl=51 time=28.285 ms

--- openwrt.org 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
nameserver 127.0.0.1

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

root@192.168.1.1:~# opkg update
Downloading http://downloads.openwrt.org/releases/19.07.3/targets/ipq40xx/generic/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.3/targets/ipq40xx/generic/packages/Packages.gz

Downloading http://downloads.openwrt.org/releases/19.07.3/targets/ipq40xx/generic/kmods/4.14.180-1-fa00c1231ac7d7840ec6ffe62dcad926/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/19.07.3/targets/ipq40xx/generic/kmods/4.14.180-1-fa00c1231ac7d7840ec6ffe62dcad926/Packages.gz
...

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:

3 Likes

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.