35
snooping leased [180-259200]
259200]
Seconds).
Switch(config)# ip dhcp
snooping option
Enable DHCP Option 82 Relay Agent.
No command
Switch(config)# no ip dhcp
snooping
Disable DHCP Snooping function.
Switch(config)# no ip dhcp
snooping dhcp-server
Remove DHCP server ports.
Switch(config)# no ip dhcp
snooping dhcp-server-ip
Reset the DHCP server trust IP to the
default setting.
Switch(config)# no ip dhcp
snooping initiated
Reset the initiated value back to the default
setting.
Switch(config)# no ip dhcp
snooping leased
Reset the leased value back to the default
setting.
Switch(config)# no ip dhcp
snooping option
Disable DHCP Option 82 Relay Agent.
Show command
Switch(config)# show ip address
Show the current IP configurations or verify
the configured IP settings.
Switch(config)# show ip dhcp
snooping
Show each interface
’s DHCP Snooping
settings.
Switch(config)# show ip dhcp
snooping interface
Show each port
’s DHCP Snooping Option
82 and trust port settings.
Switch(config)# show ip dhcp
snooping interface [port_list]
[port_list]
Show the specified ports
’ DHCP Snooping
Option 82 and trust port settings.
Switch(config)# show ip dhcp
snooping status
Show DHCP Snooping status.
IP DHCP Snooping example
Switch(config)# ip dhcp snooping
Enable DHCP snooping function.
Switch(config)# ip dhcp snooping dhcp-server
[port_list]
Configure DHCP server ports.
Switch(config)# ip dhcp snooping initiated 10
Specify the time value that packets might
be received to 10 seconds.
Switch(config)# ip dhcp snooping leased 240
Specify packets’ expired time to 240
seconds.
Switch(config)# ip dhcp snooping option
Enable DHCP Option 82 Relay Agent.
3. Use
“Interface” command to configure a group of ports’ DHCP Snooping settings.
DHCP & Interface Command
Parameter Description
Switch(config)# interface
[port_list]
[port_list]
Enter several discontinuous port numbers
separated by commas or a range of ports
with a hyphen. For example:1,3 or 2-4
Switch(config-if-PORT-PORT)#
ip dhcp snooping option
Enable the selected interfaces
’ DHCP
Option 82 Relay Agent.
Switch(config-if-PORT-PORT)#
ip dhcp snooping trust
Configure the selected interfaces to DHCP
Option 82 trust ports.
Switch(config-if-PORT-PORT)#
ip dhcp snooping server-trust
Configure the selected interfaces to DHCP
server trust ports.
No command