Security

ip dhcp snooping

Enable DHCP snooping globally; add 'ip dhcp snooping vlan <id>' per VLAN and 'ip dhcp snooping trust' on the uplink toward the real server.

Works on: SwitchMode: config
Watch out

Enforced: an OFFER arriving on an untrusted port in a snooped VLAN is dropped, so a rogue server on an access port hands out nothing — trust the uplink toward the real server (or relay) or nobody gets a lease. ARP inspection (DAI) is still configuration-only here.

Run this command live

Don't just read it — type ip dhcp snooping in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "ip dhcp snooping" command do?

Enable DHCP snooping globally; add 'ip dhcp snooping vlan <id>' per VLAN and 'ip dhcp snooping trust' on the uplink toward the real server.

What's the common gotcha with "ip dhcp snooping"?

Enforced: an OFFER arriving on an untrusted port in a snooped VLAN is dropped, so a rogue server on an access port hands out nothing — trust the uplink toward the real server (or relay) or nobody gets a lease. ARP inspection (DAI) is still configuration-only here.

More Security commands

← Back to the full command reference