Skip to content

vyos 1.5

DHCP

show dhcp server leases
show dhcp server static-mappings
show log dhcp server

Remove IP from lease table

clear dhcp-server lease <IP>

Full log of service:

journalctl -u kea-dhcp4-server

leases tables:

/config/dhcp/dhcp4-leases.csv

Issue: Two IPs for one mac

Content of /config/dhcp/dhcp4-leases.csv

address,hwaddr,client_id,valid_lifetime,expire,subnet_id,fqdn_fwd,fqdn_rev,hostname,state,user_context,pool_id

192.168.1.130,bc:24:11:cd:d4:53,01:bc:24:11:cd:d4:53,86400,1731070794,1,0,0,host1,0,,0
192.168.1.155,bc:24:11:cd:d4:53,ff:11:cd:d4:53:00:01:00:01:2e:bf:7b:bc:bc:24:11:cd:d4:53,86400,1731072189,1,0,0,host1,0,,0
192.168.1.155,bc:24:11:cd:d4:53,ff:11:cd:d4:53:00:01:00:01:2e:bf:7b:bc:bc:24:11:cd:d4:53,0,1730985789,1,0,0,host1,0,,0
192.168.1.155,bc:24:11:cd:d4:53,ff:11:cd:d4:53:00:01:00:01:2e:bf:7b:bc:bc:24:11:cd:d4:53,86400,1731072879,1,0,0,host1,0,,0

Issue: Matching by client_id Vendor issue: https://vyos.dev/T6063

Solution from version 2024-03-06 https://docs.vyos.io/en/latest/changelog/1.5.html

set service dhcp-server shared-network-name <name> subnet <subnet> ignore-client-id