Any help with opkg update (Failed to establish connection)

Is this the primary router? Secondary? Dumb ap?

secondary
it connected with ethernet cable

aqtually this is third. Main router is docsis 3.0 wired modem. It connect an access point with ethernet. That openwrt modem also connectted that modem with ethernet cable

Can you draw a diagram. Are you using lan-lan connection of lan-wan?

DOCSIS 3 -- Lan -- TPLİNK - Lan - OpenWRT

The issue is that you don’t have a gateway and dns defined in the lan interface

I write gateway main docsis 3.0 (192.168.0.1) there is no change.

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 'fdc4:264d:2461::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0.1'
        option proto 'static'
        option ip6assign '60'
        option ipaddr '192.168.0.111'
        option gateway '192.168.0.1'
        option netmask '255.255.0.0'

config interface 'wan'
        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 5t'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0 5t'

how should I define correct dns

Netmask should probably be 255.255.255.0

Is 192.168.0.1 your main router?
Do you have the name server defined?

Dns can likely be defined as your main router.

Main rooter details are :

Subnet Mask: 255.255.255.0

IP address 192.168.0.1

I’m getting more confused. Can you provide more connections details and ip addresses of each of your devices?

I am sorry I wrote wan details first, I correct it now

Main rooter LAN details are :

Subnet Mask: 255.255.255.0

IP address 192.168.0.1

Ok. That should be you gateway and dns for the router in question.

Dear all,
since a while, I have problems to use opkg with my AP (devolo 1750i). Internet connection is working, ping from ssh is working, but if I try to update, I am getting e.g. the following result:

Downloading https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz
*** Failed to download the package list from https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz

The same for all other packages lists.

If I try to download it manually I got:
wget https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz
Downloading 'https://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz'
Connecting to 168.119.138.211:443
Connection error: Invalid SSL certificate

If I try to use normal http connection, I got this failure:
wget http://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz
Downloading 'http://downloads.openwrt.org/releases/21.02.1/packages/mips_24kc/telephony/Packages.gz'
Connecting to 168.119.138.211:80
Writing to 'Packages.gz'
Cannot open output file: File exists

What can I do ?

Thanks a lot for your support.

Hugo

Some additional information:

PING openwrt.org (139.59.209.225): 56 data bytes
64 bytes from 139.59.209.225: seq=0 ttl=55 time=26.595 ms
64 bytes from 139.59.209.225: seq=1 ttl=55 time=27.358 ms
64 bytes from 139.59.209.225: seq=2 ttl=55 time=27.513 ms
64 bytes from 139.59.209.225: seq=3 ttl=55 time=26.763 ms
64 bytes from 139.59.209.225: seq=4 ttl=55 time=27.113 ms

--- openwrt.org ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 26.595/27.068/27.513 ms

NSLookup:
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: openwrt.org
Address 1: 139.59.209.225
*** Can't find openwrt.org: No answer