D-Link DGS-3600 Switch User Manual


 
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
193
DGS-3627:admin# config dhcp_relay delete ipif System 10.43.21.12
Command: config dhcp_relay delete ipif System 10.43.21.12
Success.
DGS-3627:admin#
config dhcp_relay option_82
Purpose Used to configurethe processing of DHCP 82 option for the DHCP relay function.
Syntax
config dhcp_relay option_82 { state [enable | disable] | check [enable | disable] | policy
[replace | drop | keep]}
Description Configures the processing of DHCP 82 option for the DHCP relay function.
When DHCP 82 option is enabled, the DHCP packet received from the client will be inserted
with option 82 field before being relayed to the server. The DHCP 82 option contained 2
suboptions which is circuit ID suboption and remote ID suboption.
The formats for the circuit ID suboption and the remote ID suboption are as following. For the
circuit ID suboption of a standalone switch, the module field is always zero.
Parameters
state - When the state is enabled, the DHCP packet will be inserted with the option 82 field
before being relayed to server. The DHCP packet will be processed based on the behaviour
defined in check and policy setting. When the state is disabled, the DHCP packet will be
relayed directly to server without further check and processing on the packet. The default
setting is disabled.
check - When the state is enabled; For packet come from client side, the packet should not
have the option 82’s field. If the packet has this option field, it will be dropped. For packets
come from the server side, the packet should have the option 82’s field. If the packet does
not have option field and does not have correct option fields, the packet will be dropped. The
default setting is disabled.
policy - Specifies the way to process the packet come from the client side which has the 82
option field, and it is not dropped since the check function is disabled.
replace - Replace the exiting option 82 field in the packet.
drop - Discard if the packet has the option 82 field.
keep - Retain the existing option 82 field in the packet. The default setting is replace.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure dhcp_relay option 82:
DGS-3627:admin# config dhcp_relay option_82 state enable
Command: config dhcp_relay option_82 state enable
Success.
DGS-3627:admin# config dhcp_relay option_82 check disable
Command: config dhcp_relay option_82 check disable
Success.
DGS-3627:admin# config dhcp_relay option_82 policy replace
Command: config dhcp_relay option_82 policy replace
Success.
DGS-3627:admin#