3.8.4 DHCP Snooping Configuration

Use this command to enable/disable the DHCP snooping mode operation and port mode.

Command Syntax:

ip dhcp snooping 
ip dhcp snooping trust
Table 3-36. Command Description

Argument

Description

Parameter

N.A

N.A

Default

N.A

Mode

Global Configuration mode and VLAN Configuration mode

Usage

To globally enable DHCP snooping, use the ip dhcp snooping command, and to globally disable DHCP snooping, use the 'no' form of this command.

To configure a port as trusted for DHCP snooping purposes, use the ip dhcp snooping trust command, and to configure a port as untrusted, use the 'no' form of this command.

Example

Example 1:

Enable the DHCP snooping.

# configure terminal
(config)# ip dhcp snooping

Example 2:

Enable the DHCP snooping trust on port 1.

# configure terminal
(config)# interface GigabitEthernet 1/1
(config-if)# ip dhcp snooping trust