The Openwrt Router (192.168.1.1,192.168.1.3) is behind a Server with a ip 192.168.11.162
The Main Router has IP 192.168.11.1
The internet is forwarded to the interface where the Openwrt is connected with a wired cable.
I can access the Openwrt Router over ssh but only over the Server
The command
opkg update
fails with following message
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/packages/Packages.gz
Failed to establish connection
*** Failed to download the package list from http://downloads.openwrt.org/releases/18.06.1/targets/ramips/mt7621/packages/Packages.gz
What iām doing wrong?
Must the gateway set the Main Router IP? And should i set dns also the ip of main Router or a ip from my isp dns server?
Can you draw a diagram with the devices, connections, and IP addresses?
An IP 192.168.11.11/24 cannot have gateway .1.1 . It must be an address in the same subnet, that of the upstream router.
DNS can be any device that runs nameserver, either your ISP router or googledns (8.8.8.8), or others (1.1.1.1, 1.0.0.1, 8.8.4.4)
Then what I have to do what with the IP of gateway on OpenWRT Router?
The IP of DNS could be the IP of Main Router or a external DNS Server. Ok i will try it.
It the Gateway 192.168.11.1 of openwrt or as sample 192.168.11.111 ( a unused IP of the Network)