No connectivity on OpenWrt but clients do on Dumb Access Point

Hello!

I today set up a Rasberry Pi 4 Model B as a Dump AP. I have used this image: https://downloads.openwrt.org/releases/22.03.0/targets/bcm27xx/bcm2711/openwrt-22.03.0-bcm27xx-bcm2711-rpi-4-squashfs-factory.img.gz

The clients work fine so far, but I seemingly have no connectivity at all:

# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 0 packets received, 100% packet loss
# traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 46 byte packets
 1  10.120.68.11 (10.120.68.11)  3092.178 ms !H  3154.317 ms !H  3119.805 ms !H
# traceroute 10.120.69.254
traceroute to 10.120.69.254 (10.120.69.254), 30 hops max, 46 byte packets
 1  10.120.68.11 (10.120.68.11)  3142.366 ms !H  3154.326 ms !H  3119.815 ms !H
# ping 10.120.69.254
PING 10.120.69.254 (10.120.69.254): 56 data bytes
^C
--- 10.120.69.254 ping statistics ---
21 packets transmitted, 0 packets received, 100% packet loss

This is my current configuration:

# uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.path='platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
wireless.radio0.band='5g'
wireless.radio0.htmode='VHT80'
wireless.radio0.cell_density='0'
wireless.radio0.channel='48'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='<SOMESSID>'
wireless.default_radio0.encryption='<SOMEENCRYPTION>'
wireless.default_radio0.key='<SOMEKEY>'
# uci show dhcp
dhcp.@dnsmasq[0]=dnsmasq
dhcp.@dnsmasq[0].domainneeded='1'
dhcp.@dnsmasq[0].boguspriv='1'
dhcp.@dnsmasq[0].filterwin2k='0'
dhcp.@dnsmasq[0].localise_queries='1'
dhcp.@dnsmasq[0].rebind_protection='1'
dhcp.@dnsmasq[0].rebind_localhost='1'
dhcp.@dnsmasq[0].local='/lan/'
dhcp.@dnsmasq[0].domain='lan'
dhcp.@dnsmasq[0].expandhosts='1'
dhcp.@dnsmasq[0].nonegcache='0'
dhcp.@dnsmasq[0].authoritative='1'
dhcp.@dnsmasq[0].readethers='1'
dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases'
dhcp.@dnsmasq[0].resolvfile='/tmp/resolv.conf.d/resolv.conf.auto'
dhcp.@dnsmasq[0].nonwildcard='1'
dhcp.@dnsmasq[0].localservice='1'
dhcp.@dnsmasq[0].ednspacket_max='1232'
dhcp.lan=dhcp
dhcp.lan.interface='lan'
dhcp.lan.start='100'
dhcp.lan.limit='150'
dhcp.lan.leasetime='12h'
dhcp.lan.dhcpv4='server'
dhcp.lan.ignore='1'
dhcp.wan=dhcp
dhcp.wan.interface='wan'
dhcp.wan.ignore='1'
dhcp.odhcpd=odhcpd
dhcp.odhcpd.maindhcp='0'
dhcp.odhcpd.leasefile='/tmp/hosts/odhcpd'
dhcp.odhcpd.leasetrigger='/usr/sbin/odhcpd-update'
dhcp.odhcpd.loglevel='4'
# uci show network
network.loopback=interface
network.loopback.device='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='<SOMEPREFIX>'
network.@device[0]=device
network.@device[0].name='br-lan'
network.@device[0].type='bridge'
network.@device[0].ports='eth0'
network.lan=interface
network.lan.device='br-lan'
network.lan.proto='static'
network.lan.ip6assign='60'
network.lan.ipaddr='10.120.68.11'
network.lan.netmask='255.255.254.0'
network.lan.gateway='10.120.69.254'
network.lan.broadcast='10.120.69.255'
network.lan.dns='10.120.69.254'
network.@device[1]=device
network.@device[1].name='eth0'

Do you have any idea what might cause that? Or any suggestions what I should investigate further?

Are these settings correct? You are getting a response that .69.254 is not reachable. Can you try to change the protocol from static to dhcp client? Is there some switch with port security between the RPi and the router?

Changing the protocol to dhcp client was the solution. Thank you so much :slight_smile:

1 Like

im guessing that your lan had some config errors:
The most common home networks are setup as /24 (subnet mask 255.255.255.0). If yours is, too, the netmask value was wrong and the lan address is in the wrong subnet relative to the gateway and broadcast (and dns) addresses (68 vs 69).

Obviously, if the network is actually a /23, the above is not relevant.