Page 206 / 757 Scroll up to view Page 201 - 205
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
202
config filter dhcp_server
state
– To Enable/disable the filter DHCP server state.
portlist
– The port list of filter DHCP server.
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:
DGS-3627:admin# config filter dhcp_server add permit server_ip 10.1.1.1 client_mac 00-00-
00-00-00-01 ports 1:1-1:3
Command: config filter dhcp_server add permit server_ip 10.1.1.1 client_mac 00-00-00-00-
00-01 ports 1:1-1:3
Success.
DGS-3627:admin#
To configure the filter DHCP server state:
DGS-3627:admin# config filter dhcp_server ports 1:1-1:3 state enable
Command: config filter dhcp_server ports 1:1-1:3 state enable
Success.
DGS-3627:admin#
show filter dhcp_server
Purpose
Used to display current DHCP server/client filter list created on the switch.
Syntax
Show filter dhcp_server
Description
This command is used to display DHCP server/client filter list created on the switch. The log
ceasing unauthorized duration and the log/trap state.
Parameters
None.
Restrictions
None.
Example usage:
To display the DHCP server/client filter list created on the switch the log ceasing unauthorized duration and the log/trap
state:
Page 207 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
203
DGS-3627:admin# show filter dhcp_server
Command: show filter dhcp_server
Filter DHCP Server Trap_Log State: Disabled
Enabled Ports: 1:1-1:3
Illegal Server Log Suppress Duration:5 minutes
Filter DHCP Server/Client Table
Server IP Address Client MAC Address
Port
----------------- ------------------
--------------------
10.1.1.1
00-00-00-00-00-01
1:1-1:3
Total Entries: 1
DGS-3627:admin#
config filter dhcp_server trap_log
Purpose
Used to configure the trap and log related to the DHCP server filter.
Syntax
config filter dhcp_server trap_log [enable | disable]
Description
Used to enable/disable trap/log related to DHCP server filter.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable log and trap for the DHCP server filter event:
DGS-3627:admin# config filter dhcp_server trap_log disable
Command: config filter dhcp_server trap_log disable
Success.
DGS-3627:admin#
config filter dhcp_server illegal_server_log_suppress_duration
Purpose
This function is used to configure the illegal server log suppress duration.
Syntax
config filter dhcp_server illegal_server_log_suppress_duration [ 1min | 5min | 30min ]
Description
The DHCP server filtering function filters any illegal DHCP server packets. The DHCP server
who sends the illegal packets will be logged. This command is used to suppress the logging of
DHCP servers who continue to send illegal DHCP packets. The same illegal DHCP server IP
address that is detected will be logged only once regardless of how many illegal packets are
sent.
Parameters
illegal _server_log_suppress_duration
– The log can be suppressed by 1 minute, 5 minutes or
30 minutes. The default value is 5 minutes.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the illegal_server_log_suppress_duration for 30 minutes:
Page 208 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
204
DGS-3627:admin# config filter dhcp_server illegal_server_log_suppress_duration 30min
Command: config filter dhcp_server illegal_server_log_suppress_duration 30min
Success.
DGS-3627:admin#
Page 209 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
205
26
DHCP SERVER COMMANDS
For this release, the Switch now has the capability to act as a DHCP server to devices within its locally attached network.
DHCP, or Dynamic Host Configuration Protocol, allows the switch to delegate IP addresses, subnet masks, default
gateways and other IP parameters to devices that request this information. This occurs when a DHCP enabled device is
booted on or attached to the locally attached network. This device is known as the DHCP client and when enabled, it will
emit query messages on the network before any IP parameters are set. When the DHCP server receives this request, it
returns a response to the client, containing the previously mentioned IP information that the DHCP client then utilizes and
sets on its local configurations.
The user can configure many DHCP related parameters that it will utilize on its locally attached network, to control and
limit the IP settings of clients desiring an automatic IP configuration, such as the lease time of the allotted IP address, the
range of IP addresses that will be allowed in its DHCP pool, the ability to exclude various IP addresses within the pool as
not to make identical entries on its network, or to assign the IP address of an important device (such as a DNS server or
the IP address of the default route) to another device on the network.
Users also have the ability to bind IP addresses within the DHCP pool to specific MAC addresses in order to keep
consistent the IP addresses of devices that may be important to the upkeep of the network that require a static IP
address.
The DHCP Server commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in
the following table.
Page 210 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
206
Command
Parameters
create dhcp pool
<pool_name 12>
delete dhcp pool
[<pool_name 12> | all]
create dhcp pool manual_binding
<pool_name 12> <ipaddr> hardware_address <macaddr> {type [Ethernet |
IEEE802]}
delete dhcp pool manual_binding
<pool_name 12> [<ipaddr> | all]
show dhcp pool manual_binding
{<pool_name 12>}
show dhcp_binding
{<pool_name 12>}
clear dhcp_binding
{<pool_name 12>}
config dhcp ping_packets
<number 2-10>
config dhcp ping_timeout
<millisecond 500-2000>
config dhcp pool boot_file
<pool_name 12> <file_name 64>
config dhcp pool default_router
<pool_name 12> <ipaddr> {<ipaddr>} {<ipaddr>}
config dhcp pool dns_server_address
<pool_name 12> <ipaddr> {<ipaddr>} {<ipaddr>}
config dhcp pool domain_name
<pool_name 12> <domain_name 64>
config dhcp pool lease
<pool_name 12> [<day 0-365> <hour 0-23> <minute 0-59> | infinite]
config dhcp pool
netbios_name_server
<pool_name 12> <ipaddr> {<ipaddr>} {<ipaddr>}
config dhcp pool netbios_node_type
<pool_name 12> [broadcast | peer_to_peer | mixed | hybrid]
config dhcp pool network_addr
<pool_name 12> <network_address>
config dhcp pool next_server
<pool_name 12> <ipaddr>
enable dhcp_server
disable dhcp_server
show dhcp_server
create dhcp excluded_address
begin_address
<ipaddr> end_address <ipaddr>
delete dhcp excluded_address
[begin_address <ipaddr> end_address <ipaddr> | all]
show dhcp excluded_address
show dhcp pool
{ <pool_name 12>}
Each command is listed in detail in the following sections.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top