From my pc, mobile phone, a.s.o I have an interent connection, but sometimes not when I am connected to the rooter via ssh.
* opkg_download: Failed to download http://downloads.openwrt.org/releases/18.06.1/packages/arm_cortex-a15_neon-vfpv4/telephony/Packages.gz, wget returned 4.
* opkg_download: Check your network settings and connectivity.
Last time I "played" a little bit with commands and suddenly it worked, no idea why.
root@R7800:~# grep -r "178\.1" /etc/config/
/etc/config/dhcp: list server '192.168.178.1'
I entered the Fritzbox 192.168.178.1 for DNS-forwarding at http://192.168.178.55/cgi-bin/luci/admin/network/dhcp (DHCP and DNS)
root@R7800:~# ping 139.59.209.225
PING 139.59.209.225 (139.59.209.225): 56 data bytes
ping: sendto: Network unreachable
So it looks like it is not a DNS problem. Last time I thought it was.
root@R7800:~# cat /etc/config/dhcp
config dnsmasq
option domainneeded '1'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/tmp/resolv.conf.auto'
option nonwildcard '1'
option localservice '1'
list server '192.168.178.1'
config dhcp 'lan'
option interface 'lan'
option dhcpv6 'server'
option ra 'server'
option ra_management '1'
option ignore '1'
config dhcp 'wan'
option interface 'wan'
option ignore '1'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'
Here is the network-config.
root@R7800:~# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix '....-....-....::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth1.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.178.55'
config interface 'wan'
option ifname 'eth0.2'
option proto 'none'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'none'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 2 3 4 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '5 0t'
root@R7800:~# ping -c2 192.168.178.1
PING 192.168.178.1 (192.168.178.1): 56 data bytes
64 bytes from 192.168.178.1: seq=0 ttl=64 time=0.922 ms
64 bytes from 192.168.178.1: seq=1 ttl=64 time=0.922 ms
--- 192.168.178.1 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.922/0.922/0.922 ms
root@R7800:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.178.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan