Problem with openwrt/lede software: OPKG / wget returned 4

hi there , i have some problem with my ap work with lede software i config it to work with bridge mode and its work and i write this topic from it my main problem i need to use opkg with it but i get this error

* opkg_download: Failed to download http://downloads.lede-project.org/releases/17.01.4/packages/mips_24kc/telephony/Packages.gz, wget returned 4.
 * opkg_download: Check your network settings and connectivity.

and when i try to do ping from ap to google.om or 8.8.8.8 thers nothing just empty

why i get this error

this is my network config

confnterface '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 'fd07:5321:e605::/48'

config interface 'lan'
        option type 'bridge'
        option ifname 'eth0'
        option proto 'static'
        option ipaddr '10.229.28.111'
        option netmask '255.0.0.0'
        option gateway '10.229.28.1'
        option broadcast '10.229.28.254'

and i disable (firewall and dhcp )

  • Please post /etc/config/wireless to confirm that your wireless is connected to the bridge
  • You do not have a LAN DNS server specified

Did you run opkg update first?

Forget about opkg, your main issue is that you do not have an internet connection on that device...

Your broadcast address does not match your ipaddr / netmask, but I do not think the problem is there. Let's check that your network is properly configured: execute ifconfig then route and post the results here. Then, instead of ping 8.8.8.8 try with traceroute 8.8.8.8, so we can see where are your packets being lost.

2 Likes

Good catch.

this my wireless config

config wifi-device 'radio0'
        option type 'mac80211'
        option channel '11'
        option hwmode '11g'
        option path 'pci0000:00/0000:00:00.0'
        option htmode 'HT20'
        option disabled '0'

config wifi-iface 'default_radio0'
        option device 'radio0'
        option network 'lan'
        option mode 'ap'
        option ssid 'LEDE'
        option encryption 'none'

The wireless looks OK, I agree with @eduperez:

thank you for your reply
this route
Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.229.28.1     0.0.0.0         UG    0      0        0 br-lan
10.0.0.0        *               255.0.0.0       U     0      0        0 br-lan
and this from ifconfigbr-lan    Link encap:Ethernet  HWaddr 68:72:51:6D:C5:35
          inet addr:10.229.28.111  Bcast:10.229.28.254  Mask:255.0.0.0
          inet6 addr: fe80::6a72:51ff:fe6d:c535/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3807 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2296 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:271696 (265.3 KiB)  TX bytes:349702 (341.5 KiB)

eth0      Link encap:Ethernet  HWaddr 68:72:51:6D:C5:35
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:13116 errors:0 dropped:92 overruns:0 frame:0
          TX packets:12184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5523235 (5.2 MiB)  TX bytes:2357801 (2.2 MiB)
          Interrupt:4

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5539 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5539 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:405924 (396.4 KiB)  TX bytes:405924 (396.4 KiB)

wlan0     Link encap:Ethernet  HWaddr 68:72:51:6C:C5:35
          inet6 addr: fe80::6a72:51ff:fe6c:c535/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:14045 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17501 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2584422 (2.4 MiB)  TX bytes:6518718 (6.2 MiB)

and this result from traceroute 8.8.8.8

traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
 1  LEDE.lan (10.229.28.111)  1435.435 ms !H  2997.303 ms !H  2998.696 ms !H

thank you for your time my dear

Why are you using 10.229.28.254 as broadcast? This is normally the last one in the subnet, 10.255.255.255 for your subnet mask 255.0.0.0. I know this would not solve your problem, but probably your entire network config isn´t correct.
And why are you using such a big subnet, this is very uncommon...

Your traceroute output does validate that you not eaven reach your internal gateway, so your device ip config would definitely be wrong!

2 Likes

Thank you my frind the answer for all your Q is this ap connected with hotspot gateway so I use this subnet but the broadcast I change it but same problem

I assume you have a dhcp server running.... Whats your ip config if you use dhcp instead of static?

I do not get this... why is the same LEDE device on the first line (instead of the gateway)? why does it takes 3 seconds to reach itself? this does not make any sense...

How is this device connected to the main router? How is the main router configured?

1 Like

Its connected with pfsense dhcp server my pfsense get the connection from mikrotik ccr 1036 with load balance I get this problem just with lede any client connected with it get access but in lede inside it thers no access why what should I do

You did not answer my question...

1 Like

Sorry , my ap connected with main router from Ethernet and get dhcp from main router I hope I answer yor Q
Main router config as pppoe client
I wish I answer u Q
One other Q my ap in bridge mode do you think this make problem ?

Can I download package from source and add it to my device from winscp is it work I need snmpd package and zabbix agent can I do it without opkg

Yes, you could upload it to /tmp/XXX.ipk and install it with opkg install /tmp/XXX.ipk...
But you have to download all dependencies too and install this first.

You could also download the image builder and build a image with all packages included.
This could be easier / better than your aproach.

1 Like

thx i start with image builder now

i change the ip of my ap and work with other router for test when i use traceroute i get this :

 traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 38 byte packets
 1  192.168.1.1 (192.168.1.1)  0.301 ms  0.235 ms  0.215 ms
 2  10.229.28.3 (10.229.28.3)  1.124 ms  0.467 ms  0.414 ms
 3  10.0.0.1 (10.0.0.1)  80.847 ms  19.144 ms  31.497 ms
 4  192.168.212.177 (192.168.212.177)  27.331 ms  136.329 ms  347.008 ms
 5  192.168.131.145 (192.168.131.145)  35.015 ms  24.586 ms  23.853 ms
 6  192.168.222.133 (192.168.222.133)  64.870 ms  60.592 ms  99.572 ms
 7  192.168.253.41 (192.168.253.41)  84.905 ms  218.722 ms  94.444 ms
 8  195.219.61.165 (195.219.61.165)  300.920 ms  240.358 ms  200.659 ms
 9  195.219.50.173 (195.219.50.173)  209.745 ms  133.864 ms  145.255 ms
10  72.14.222.154 (72.14.222.154)  111.435 ms  112.710 ms  189.463 ms
11  108.170.252.65 (108.170.252.65)  117.270 ms^C

but its same when i ping 8.8.8.8 i get this 
--- 8.8.8.8 ping statistics ---
24 packets transmitted, 0 packets received, 100% packet loss

You have a very crazy network topology :crazy_face:

Is your 10.0.0.0/8 subnet only local? How much clients are in this subnet?
You should consider to splitt your huge 10.0.0.0 subnet into some smaller ones to get better performance with more broadcast domains...

1 Like

Th ip you see it not for my network its the ip from isp in my country the isp give you 254 ip to work with in my case I get this 10.229.28.1-10.229.28.254 this range for dhcp I work with over 112 ip of this range with static ip and one of them for my pfsense its main router in my network and the range of it 192.168.1.1 - 192.168.12.254 this for my client
I have 1800+ clients works with wifi hotspot with over 148 ap