BPI-R4 DHCP packets not seen by DHCP server

I am glad OpenWRT exists. Very grateful to many who support this endeavor.

I have a BPI-R3 Mini and a BPI-R4. WiFi works properly on the BPI-R3 when connecting to my local LAN. On BPI-R4, I do not get a DHCP address connected to the WiFi radio (the 5G radio).

BPI-R4 information

root@OpenWrt:~# ubus call system board
{
	"kernel": "6.6.73",
	"hostname": "OpenWrt",
	"system": "ARMv8 Processor rev 0",
	"model": "Bananapi BPI-R4",
	"board_name": "bananapi,bpi-r4",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "24.10.0-rc7",
		"revision": "r28417-daef29c75d",
		"target": "mediatek/filogic",
		"description": "OpenWrt 24.10.0-rc7 r28417-daef29c75d",
		"builddate": "1738018409"
	}
}

DHCP Configuration

root@OpenWrt:~# 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 cachesize '1000'
	option readethers '1'
	option leasefile '/tmp/dhcp.leases'
	option resolvfile '/tmp/resolv.conf.d/resolv.conf.auto'
	option localservice '1'
	option ednspacket_max '1232'

config dhcp 'lan'
	option interface 'lan'
	option start '100'
	option limit '150'
	option leasetime '12h'
	option dhcpv4 'server'

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'

I can post the firewall configuration in its entirety, if needed. I do see this part...

# We need to accept udp packets on port 68,
# see https://dev.openwrt.org/ticket/4108
config rule
	option name		Allow-DHCP-Renew
	option src		wan
	option proto		udp
	option dest_port	68
	option target		ACCEPT
	option family		ipv4

My test device is an iOS iPhone 12, which allows tcpdump on pktap interface.

Here is a screenshot of the Wireshark with DHCP packets captured over-the-air between the BPI-R4 and iPhone.

RTFM does help in solving issues. :person_facepalming: I should have done a bit more research. The following configuration fixed it.

Usually only as a last resort! :grinning_face:

1 Like