Updating Installation packages

Hi,

Two routers conneccted together via ethernet.
1st connects to modem via WAN port (DHCP Server).
Second connects to 1st via ethernet port (WiFi router / DHCP disabled).

Been working fine for ages, but never been able to update the second router.
First ones downloads package updates and upgrades fine
Second one just times out.

Any advice. Really want to update the second router!

Was thinking of sftp the packages from 1st router to 2nd, but where are they downloaded to?
Do they get deleted after upgrade!

Ta!

Edit: 2 x TP-Link Archer A7 v5 with OpenWRT 19.07 branch, I think!

How are you upgrading packages?

Upgrading packages (via the CLI opkg upgrade command or the LuCI Upgrade... button) can result in major problems. It is generally highly discouraged, unless you know what you are doing or if there is specific instruction to do so.

1 Like

Collect diagnostics from the problematic router and post it to pastebin.com:

uci show network; uci show dhcp; uci show firewall; \
ip address show; ip route show table all; ip rule show; iptables-save; \
head -v -n -0 /etc/resolv.* /tmp/resolv.* /tmp/resolv.*/*; \
nslookup example.org 8.8.8.8; nslookup example.org; traceroute example.org
1 Like

Remember that in this scenario the second router is a client of the first, just like any other computer on your network. So, if your second router is going to pull upgrades from the Internet, it needs:

  • DNS resolution
  • To be permitted to pass its own traffic through the first router

To the first point, how does the second router get its IP address? Is it configured with a static address, or does it get its address via DHCP from the first router? If it's configured with a static address, has it also been configured with suitable DNS servers which it can use?

To the second point, does the first router have a firewall on it which restricts outbound traffic? If so, does it permit outbound traffic from the second router's IP address?