Opkg update failed

Establish network failed

 * 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.

root@OpenWrt:~# vi /etc/config/network
        option ifname 'eth0.2'
        option proto 'dhcp'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

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'
>

I can't seem to get it working, read through many pages troubleshooting this matter but haven't got a solution. Please help
Router TP-Link C2600
Trying to get Opkg update package for 4G USB Tethering, this is my first time attemp using PuTTY.

@openwrt:

ip a; ip r
nslookup google.com 8.8.8.8
nslookup google.com
ping -qc3 8.8.8.8
ping -qc3 google.com
root@OpenWrt:~# ip a; ip r
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 60:e3:27:21:49:b3 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::62e3:27ff:fe21:49b3/64 scope link
       valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 60:e3:27:21:49:b2 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::62e3:27ff:fe21:49b2/64 scope link
       valid_lft forever preferred_lft forever
7: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qle                                   n 1000
    link/ether 60:e3:27:21:49:b2 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.254/24 brd 192.168.1.255 scope global br-lan
       valid_lft forever preferred_lft forever
    inet6 fd09:3ce4:2c7a::1/60 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::62e3:27ff:fe21:49b2/64 scope link
       valid_lft forever preferred_lft forever
8: eth1.1@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master                                    br-lan state UP qlen 1000
    link/ether 60:e3:27:21:49:b2 brd ff:ff:ff:ff:ff:ff
9: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state U                                   P qlen 1000
    link/ether 60:e3:27:21:49:b3 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::62e3:27ff:fe21:49b3/64 scope link
       valid_lft forever preferred_lft forever
13: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-la                                   n state UP qlen 1000
    link/ether 60:e3:27:21:49:b1 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::62e3:27ff:fe21:49b1/64 scope link
       valid_lft forever preferred_lft forever
14: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master br-la                                   n state UP qlen 1000
    link/ether 60:e3:27:21:49:b2 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::62e3:27ff:fe21:49b2/64 scope link
       valid_lft forever preferred_lft forever
192.168.1.0/24 dev br-lan scope link  src 192.168.1.254

root@OpenWrt:~# nslookup googlecom 8.8.8.8
;; connection timed out; no servers could be reached

root@OpenWrt:~# nslookup googlecom
;; connection timed out; no servers could be reached

root@OpenWrt:~# ping -qc3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
ping: sendto: Network unreachable
root@OpenWrt:~# ping -qc3 googlecom
ping: bad address 'googlecom'
>

Sorry for the late rep, been busy lately.
I'm connecting the C2600 via LAN port to my Switch->Router.
Since i'm new user, i can only post 2 links in my quote, that's why i take off the "." in google

I'm guessing there is a config interface 'wan' in your /etc/config/network that just didn't get copied to the post.

suggests that you're not getting a routable address for either IPv4 or IPv6.

1 Like

It is fixed by using C2600 as router mode via WAN port for configuration. Internet applied automatically and everything works fine now.
Any link for tweaks and Optimizations will be welcome? Much appreciate.