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.
Support level
Section titled “Support level”| Area | Level | Notes |
|---|---|---|
| DHCPv4 server | Supported | Pools, exclusions, default-router, DNS options, lease allocation. |
| DHCPv4 client | Supported | DORA, renew at T1, rebind at T2, expiry, release, decline after an ARP probe. |
| DHCP relay | Supported | Helper address, giaddr, hop count and option 82. Read from IOS, NX-OS, EOS, Junos, VyOS, PAN-OS and Check Point. |
| DHCP snooping integration | Behaviour model | ACKs can populate snooping bindings. |
| DHCPv6 | Supported | Solicit/Advertise/Request/Reply, relay, IA_NA, IA_PD, Release, DAD and Decline, lifetimes. |
| Packet capture | Supported | DHCPv4 and DHCPv6 exchanges, including a DHCPv4 RELEASE and DECLINE, are on the wire in a capture (Packet Lens), decoded by Wireshark. |
Standards coverage
Section titled “Standards coverage”| Standard | Coverage | Notes |
|---|---|---|
| RFC 2131 | Supported | DORA, renewal, rebinding, release, decline. |
| RFC 8415 | Supported | SARR, relay messages, IA_NA, IA_PD, Release, Decline. |
Feature matrix
Section titled “Feature matrix”| Feature | Status | Notes |
|---|---|---|
| Address pools | Supported | Network, range/exclusions, default router. |
| Option DNS | Supported | DNS server option. |
| Lease table | Supported | Active bindings. |
| Client default route | Supported | Installs route from default-router option. |
| Relay/helper address | Supported | Forwards client requests to server. |
| Snooping binding | Supported | Trusted ACKs create L2 security bindings. |
| DHCPv6 pool | Supported | Address pools and prefix-delegation pools. |
| Reservations | Supported | A reserved client gets its address; others do not. |
| Option 138 | Supported | Hands out the wireless controller address. |
| Lease renewal | Supported | REQUEST unicast at T1; broadcast rebind at T2; lease ends without a server. |
Vendor command matrix
Section titled “Vendor command matrix”| Command | IOS-style | Junos-style | VyOS-style | Notes |
|---|---|---|---|---|
ip dhcp pool USERS | Supported | n/a | Partial | Pool definition. ASA, PAN-OS, OpenWrt, RouterOS and EXOS pools also serve leases. |
network 10.0.10.0 255.255.255.0 | Supported | n/a | Partial | Pool network. |
default-router 10.0.10.1 | Supported | n/a | Partial | Gateway option. |
ip helper-address 10.0.0.10 | Supported | Supported | Partial | Relay. 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 dhcp | Supported | n/a | Partial | Client mode. |
show ip dhcp binding | Supported | Partial | Partial | Lease 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.
Behaviour notes
Section titled “Behaviour notes”DHCP exchange is modelled as deterministic events. A client lease is stable for the same topology and pool state, which keeps labs replayable.
Examples
Section titled “Examples”Canonical example
configure terminalip dhcp excluded-address 10.0.10.1 10.0.10.20ip dhcp pool USERS network 10.0.10.0 255.255.255.0 default-router 10.0.10.1 dns-server 192.0.2.53interface GigabitEthernet0/1 ip address dhcpendshow ip dhcp bindingVendor 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.53interface GigabitEthernet0/1 ip address dhcpJunos-style
set forwarding-options dhcp-relay server-group SERVERS 10.0.0.10set forwarding-options dhcp-relay group USERS interface ge-0/0/1.0VyOS-style
set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 option default-router 10.0.10.1set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 range 0 start 10.0.10.100set service dhcp-server shared-network-name USERS subnet 10.0.10.0/24 range 0 stop 10.0.10.200Try it
Section titled “Try it”Known limits
Section titled “Known limits”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).