DES-3500 Layer 2 Fast Ethernet Switch CLI Reference Manual
206
config filter dhcp_server
Purpose
DHCP server packets eccept 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> clent_mac
<macaddr> ports [<portlist>|all] | delete permit server_ip <ipaddr>
[client_mac <macaddr>|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
ippaddr – 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 and Operator-level users can issue this command.
Enabling the DHCP filter will create one access profile and create one
access rule per port (UDP port 67).
Addition of a DHCP filter permit entry will create one access profile and
create one access rule (DA = client MAC address, SA = source IP address
and UDP port 67).
Example usage:
To add an entry from the DHCP server/client filter list in the switch’s database:
DES-3526:admin#config filter dhcp_server add
permit_server_ip 10.1.1.1 client_mac 00-00-00-00-00-01
port 1-26
Command: config filter dhcp_server add
permit_server_ip 10.1.1.1 client_mac 00-00-00-00-00-01
port 1-26
Success
DES-3526:admin#
To configure the DHCP filter state:
DES-3526:admin#config filter dhcp_server ports 1-10
state enable
Command: config filter dhcp_server ports 1-10 state
enable
Success
DES-3526:admin#