xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
255 
 
<portlist> - Enter the list of ports to be configured here. 
all - Specify that all the port will be used for this configuration. 
delete permit - Specify to delete a DHCP permit. 
server_ip - The IP address of the DHCP server to be filtered. 
<ipaddr> - Enter the DHCP server IP address here. 
client_mac - (Optional) The MAC address of the DHCP client. 
<macaddr> - Enter the DHCP client MAC address here. 
ports - The port number of filter DHCP server. 
<portlist> - Enter the list of ports to be configured here. 
all - Specify that all the port will be used for this configuration. 
state - Specify to enable or disable the filter DHCP server state. 
enable - Specify that the filter DHCP server state will be enabled. 
disable - Specify that the filter DHCP server state will be disabled. 
illegal_server_log_suppress_duration - Specify the same illegal DHCP server IP address 
detected will be logged only once within the duration. The default value is 5 minutes. 
1min - Specify that illegal server log suppress duration value will be set to 1 minute. 
5min - Specify that illegal server log suppress duration value will be set to 5 minutes. 
 - Specify that illegal server log suppress duration value will be set to 30 minutes. 
 
Restrictions 
Only Administrator, Operator and Power-User level users can issue this command. 
 
Example 
To add an entry from the DHCP server/client filter list in the Switch’s database: 
DGS-3120-24TC:admin# config filter dhcp_server add permit server_ip 10.1.1.1 
client_mac 00-00-00-00-00-01 port 1:1-1:24 
Command: config filter dhcp_server add permit server_ip 10.1.1.1 client_mac 00-
00-00-00-00-01 port 1:1-1:24 
 
Success. 
 
DGS-3120-24TC:admin# config filter dhcp_server ports 1:1-1:10 state enable 
Command: config filter dhcp_server ports 1:1-1:10 state enable 
 
Success. 
 
DGS-3120-24TC:admin# 
 
25-2  show filter dhcp_server 
Description 
This command is used to display the DHCP server/client filter list created on the Switch. 
 
Format 
show filter dhcp_server