liveBook · Manning

Ip dhcp snooping

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

ip dhcp snooping is a Cisco IOS global configuration command that enables DHCP snooping on a switch.

DHCP snooping is a Cisco IOS switch security feature that inspects DHCP messages to block rogue DHCP servers and DHCP poisoning attacks. Enable it globally, then activate it on each VLAN using DHCP. section 13.3 section 13.2

Configure and apply the feature as follows:

  • Enter ip dhcp snooping in global configuration mode; the feature is disabled by default. section 13.2
  • Activate inspection with ip dhcp snooping vlan vlans, such as ip dhcp snooping vlan 1 or ip dhcp snooping vlan 1-4094. section 13.2
  • Keep ports toward end hosts untrusted, and configure ports toward DHCP servers as trusted with ip dhcp snooping trust. section 13.3
  • Discard server messages received on untrusted ports; validate client messages and record successful leases in the DHCP snooping binding table. section 13.3

Enable and verify VLAN 1

SW2(config)# ip dhcp snooping SW2(config)# ip dhcp snooping vlan 1 SW2(config)# do show ip dhcp snooping Switch DHCP snooping is enabled DHCP snooping is configured on following VLANs: 1 DHCP snooping is operational on following VLANs: 1 section 13.2

Figure 13.2 Configuring DHCP Snooping on Cisco switches. Ports leading toward the DHCP Server are trusted, and ports leading toward users are untrusted. Only SW1’s configurations are shown, but the same commands should be configured on SW2.

Use the topology to distinguish trusted ports leading toward the DHCP server from untrusted ports leading toward users. section 13.2

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Explains global and VLAN activation, trust boundaries, message handling, validation, and verification, but not detailed packet fields beyond client-address checking.
Examples
Uses Cisco IOS commands, show output, VLAN ranges, and a switch topology separating server-facing and user-facing ports.
What it assumes
Assumes familiarity with Cisco IOS configuration modes, switch interfaces, VLANs, DHCP clients, and DHCP servers.
What you can do after
Configure and verify DHCP snooping globally and per VLAN, then assign appropriate trusted switch interfaces.
How it connects
Connects DHCP poisoning, DHCP exhaustion attacks, port security, trusted ports, and the DHCP binding table.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.