DHCP-server starts 2 processes when only the VRF is configured
set interfaces ethernet eth1 address 192.0.2.1/30 set interfaces ethernet eth1 address 100.64.0.1/24 set interfaces ethernet eth1 description LAN set interfaces ethernet eth1 vrf red set vrf bind-to-all set vrf name red service dhcp-server listen-interface eth1 set vrf name red service dhcp-server shared-network-name LANv4 authoritative set vrf name red service dhcp-server shared-network-name LANv4 subnet 100.64.0.0/24 range R1 start 100.64.0.10 set vrf name red service dhcp-server shared-network-name LANv4 subnet 100.64.0.0/24 range R1 stop 100.64.0.254 set vrf name red service dhcp-server shared-network-name LANv4 subnet 100.64.0.0/24 subnet-id 1 set vrf name red table 1010
One process with under VRF context and another without VRF, but the file is the same. Looks like a bug.
Check:
vyos@r14# ps ax | grep dhcp | egrep -v grep 14923 ? Ss 0:00 sudo /bin/ip vrf exec red /usr/sbin/kea-dhcp4 -c /run/kea/kea-red-dhcp4.conf 14926 ? Sl 0:00 /usr/sbin/kea-dhcp4 -c /run/kea/kea-red-dhcp4.conf [edit] vyos@r14#
And client cannot assign an IP address by DHCP
Dump from the client site
vyos@r15# sudo tcpdump -ni eth1 port 67 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on eth1, link-type EN10MB (Ethernet), snapshot length 262144 bytes 10:12:11.358541 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 10:12:18.349228 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 10:12:33.908923 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 10:12:54.396916 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 10:13:07.245586 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300
Dump from the server
vyos@r14# sudo tcpdump -ni any port 67 tcpdump: data link type LINUX_SLL2 tcpdump: verbose output suppressed, use -v[v]... for full protocol decode listening on any, link-type LINUX_SLL2 (Linux cooked v2), snapshot length 262144 bytes 13:15:52.373796 eth1 B IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 13:16:00.294096 eth1 B IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 13:16:04.055862 eth1 B IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300 13:16:09.446734 eth1 B IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from 52:54:00:09:0b:01, length 300