User Guide
701
Configuring DHCP Filter
DHCPv4 Filter Configuration
Interface state MAC-Verify Limit-Rate Dec-rate LAG
--------- ------- ---------- ---------- -------- ---
Gi1/0/1 Enable Enable 10 20 N/A
Switch(config-if)#end
Switch#copy running-config startup-config
2.2.2 Configuring Legal DHCPv4 Servers
Follow these steps configure legal DHCPv4 servers:
Step 1
configure
Enter global configuration mode.
Step 2
ip dhcp filter server permit-entry server-ip
ipAddr
client-mac
macAddr
interface {
fastEthernet
port-list
| gigabitEthernet
port-list
| ten-gigabitEthernet
port-list
| port-
channel
port-channel-id
}
Create an entry for the legal DHCPv4 server.
ipAddr
: Specify the IP address of the legal DHCPv4 server.
macAddr
: Specify the MAC address of the DHCP Client. The value “all” means all client mac
addresses.
port-list
|
port-channel-id
: Specify the port that the legal DHCPv4 server is connected to.
Step 3
show ip dhcp filter server permit-entry
Verify configured legal DHCPv4 server information.
Step 4
end
Return to privileged EXEC mode.
Step 5
copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to create an entry for the legal DHCPv4 server whose IP
address is 192.168.0.100 and connected port number is 1/0/1 without client MAC address
restricted:
Switch#configure
Switch(config)#ip dhcp filter server permit-entry server-ip
192.168.0.100
client-mac
all
interface gigabitEthernet
1/0/1
Switch(config)#show ip dhcp filter server permit-entry
Server IP Client MAC Interface
---------------- ----------------- ---------
192.168.0.100 all Gi1/0/1
Downloaded from