Hello,

I'm trying to run dhcpd in routing domain 20 on OpenBSD 7.8 with a virtual
(vlan) interface, but it's not working as expected and I wonder if I'm
missing some configuration step or key detail.

Setup:
- Physical interface ix1 (10Gb SFP+) with vlan 20
- Virtual interface vlan20 created via: ifconfig vlan20 create vlan 20
vlandev ix1
- vlan20 configured: 10.13.20.1/24 in rdomain 20
- dhcpd configuration: dhcpd_flags="vlan20" and dhcpd_rtable="20" in
rc.conf.local
- Changed /dev/bpf* permissions to crw-rw---- root:_dhcp (to allow _dhcp
access)

Observed behavior:
- dhcpd starts without errors, shows "Listening on vlan20 (10.13.20.1)"
- dhcpd runs as _dhcp in rdomain 20 (checked with ps aux -o rtable)
- netstat -an does not show a socket listening on port 67
- No messages in logs
- When I check with fstat (`doas route -T 20 exec fstat | grep dhcpd`), I
see:
_dhcp dhcpd 43427 5* internet raw icmp 0xfffffd83ecef0528 rtable 20

I'm not sure how to interpret this output—the FD 5 has a star (`*`), and
the protocol is "raw icmp" rather than UDP. Is this normal for dhcpd in a
rdomain, or is it a sign of a failure to bind a network socket?

Questions:
1. Is there something special about running dhcpd on virtual (vlan)
interfaces in a routing domain?
2. Is changing /dev/bpf* permissions for _dhcp recommended for this
scenario?
3. Is this fstat output for dhcpd a sign of an issue, or am I
misunderstanding how dhcpd interacts with BPF/sockets in a rdomain?

Any advice or references welcome thanks for the help!

Kind regards
Kevin

Reply via email to