Concepts / Switch security

Switch security

DHCP snooping and ARP inspection

Also called DAI, DHCP snooping, port security

Switch features that learn which device holds which address, and drop answers that do not match.

An ARP reply is checked against the leases
An ARP reply is checked against the leases

The switch recorded which address each port was leased. An ARP reply claiming any other address is dropped; a trusted port is not checked at all.

DHCP snooping and dynamic ARP inspection make a switch check who holds which address. DHCP snooping allows DHCP offers only from trusted ports and records each lease in a binding table (MAC, IP, port). Dynamic ARP inspection drops ARP replies that contradict it. Ports toward the DHCP server, other switches and devices with hand-set addresses must be trusted: they have no lease to check.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab