110
Chapter 18 DHCP Filtering Commands
DHCP Filtering functions to monitor the process of hosts obtaining IP addresses from DHCP
Servers by configuring the desired port(s) as Trusted Port(s). Only the hosts connected to the
trusted port(s) can receive DHCP packets from DHCP servers. In this way, the switch can devoid
of DHCP cheating attack which will cause network confusion and security problem.
ip dhcp filtering
Description
The
ip dhcp filtering
command is used to enable DHCP Filtering function. To
disable please use
no ip dhcp filtering
command.
Syntax
ip dhcp filtering
no ip dhcp filtering
Command Mode
Global Configuration Mode
Example
Enable the DHCP Filtering:
TL-SL2428(config)# ip dhcp filtering
ip dhcp filtering trust
Description
The
ip dhcp filtering trust
command is used to configure a port to be a Trusted
Port. Only the trusted ports can receive DHCP packets from DHCP servers. To
turn the port back to a distrusted port, please use
no ip dhcp filtering trust
command.
Syntax
ip dhcp filtering trust
no ip dhcp filtering trust
Command Mode
Interface Configuration Mode (interface fastEthernet / interface range
fastEthernet / interface gigabitEthernet / interface range gigabitEthernet)