xStack® DES-3200 Series Layer 2 Ethernet Managed Switch CLI Reference Guide
497
config filter dhcp_server
Purpose
DHCP server packets except those that have been IP/client MAC bound will be filtered.
This command is used to configure the state of the function for filtering of DHCP server
packet and to add/delete the DHCP server/client binding entry.
Syntax
config filter dhcp_server [ add permit server_ip <ipaddr> { client_mac <macaddr>}
ports [ <portlist> | all ] | delete permit server_ip <ipaddr> { client_mac <macaddr> } ports
[ <portlist> | all ] | ports [ <portlist> | all ] state [ enable | disable ] ]
Description
This command has two purposes: To filter all DHCP server packets on the specified
port(s) and to allow some DHCP server packets to be forwarded if they are on the pre-
defined server IP address/MAC address binding list. Thus the DHCP server can be
restricted to service a specified DHCP client. This is useful when there are two or more
DHCP servers present on a network.
Parameters
ipaddr – The IP address of the DHCP server to be filtered
macaddr – The MAC address of the DHCP client.
state – Enable/Disable the DHCP filter state
ports <portlist> – The port number to which the DHCP filter will be applied.
Restrictions
Only Administrator can issue this command.
Example usage:
To add an entry from the DHCP server/client filter list in the switch’s database:
DES-3200-28F:4#config filter dhcp_server add permit_server_ip 10.1.1.1 client_mac 00-00-00-00-
00-01 port all
Command: config filter dhcp_server add permit_server_ip 10.1.1.1 client_mac 00-00-00-00-00-
01
port all
Success
DES-3200-28F:4#
To configure the DHCP filter state:
DES-3200-28F:4#config filter dhcp_server ports 1-10 state
enable
Command: config filter dhcp_server ports 1-10 state enable
Success
DES-3200-28F:4#