Skip to content

DHCP

DHCP gives endpoints addresses and default gateway information in labs. netverdict models DHCPv4 server/client/relay behaviour and DHCPv6 address assignment and prefix delegation.

AreaLevelNotes
DHCPv4 serverSupportedPools, exclusions, default-router, DNS options, lease allocation.
DHCPv4 clientSupportedDORA, renew at T1, rebind at T2, expiry, release, decline after an ARP probe.
DHCP relaySupportedHelper address, giaddr, hop count and option 82. Read from IOS, NX-OS, EOS, Junos, VyOS, PAN-OS and Check Point.
DHCP snooping integrationBehaviour modelACKs can populate snooping bindings.
DHCPv6SupportedSolicit/Advertise/Request/Reply, relay, IA_NA, IA_PD, Release, DAD and Decline, lifetimes.
Packet captureSupportedDHCPv4 and DHCPv6 exchanges, including a DHCPv4 RELEASE and DECLINE, are on the wire in a capture (Packet Lens), decoded by Wireshark.
StandardCoverageNotes
RFC 2131SupportedDORA, renewal, rebinding, release, decline.
RFC 8415SupportedSARR, relay messages, IA_NA, IA_PD, Release, Decline.
FeatureStatusNotes
Address poolsSupportedNetwork, range/exclusions, default router.
Option DNSSupportedDNS server option.
Lease tableSupportedActive bindings.
Client default routeSupportedInstalls route from default-router option.
Relay/helper addressSupportedForwards client requests to server.
Snooping bindingSupportedTrusted ACKs create L2 security bindings.
DHCPv6 poolSupportedAddress pools and prefix-delegation pools.
ReservationsSupportedA reserved client gets its address; others do not.
Option 138SupportedHands out the wireless controller address.
Lease renewalSupportedREQUEST unicast at T1; broadcast rebind at T2; lease ends without a server.
CommandIOS-styleJunos-styleVyOS-styleNotes
ip dhcp pool USERSSupportedn/aPartialPool definition. ASA, PAN-OS, OpenWrt, RouterOS and EXOS pools also serve leases.
network 10.0.10.0 255.255.255.0Supportedn/aPartialPool network.
default-router 10.0.10.1Supportedn/aPartialGateway option.
ip helper-address 10.0.0.10SupportedSupportedPartialRelay. Junos: forwarding-options dhcp-relay server-group + group G interface, or helpers bootp. NX-OS: ip dhcp relay address; no service dhcp turns the relay off.
ip address dhcpSupportedn/aPartialClient mode.
show ip dhcp bindingSupportedPartialPartialLease table.

Junos DHCP server pools (dhcp-local-server, access address-assignment) are not read. Junos EX DHCP security (snooping, trusted ports, ARP inspection) is read; see L2 security.

DHCP exchange is modelled as deterministic events. A client lease is stable for the same topology and pool state, which keeps labs replayable.

Canonical example
configure terminal
ip dhcp excluded-address 10.0.10.1 10.0.10.20
ip dhcp pool USERS
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 192.0.2.53
interface GigabitEthernet0/1
ip address dhcp
end
show ip dhcp binding

Vendor styles

IOS-style
ip dhcp pool USERS
network 10.0.10.0 255.255.255.0
default-router 10.0.10.1
dns-server 192.0.2.53
interface GigabitEthernet0/1
ip address dhcp
Junos-style
set forwarding-options dhcp-relay server-group SERVERS 10.0.0.10
set forwarding-options dhcp-relay group USERS interface ge-0/0/1.0
VyOS-style
set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 option default-router 10.0.10.1
set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 range 0 start 10.0.10.100
set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 range 0 stop 10.0.10.200

Option overload, vendor-specific options, failover pairs, DHCP authentication, and Junos DHCP server pools are not modelled. DHCPv6 prefix delegation is not exchanged on the wire, and is served only by a directly attached delegating router (not through a relay).