xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
251
config dhcp_relay option_61 add
Purpose
This command is used to add a rule for DHCP relay option 61.
Syntax
config dhcp_relay option_61 add [mac_address <macaddr> |string <desc 255>]
[relay <ipaddr>| drop]
Description
This command is used to add a rule to determine the relay server based on option 61.
The matched rule can be based on either the MAC address or a user-specified string.
Only one relay server can be specified for a MAC-address or a string.
If the relay servers are determined based on option 60, and one relay server is
determined based on option 61, the final relay servers will be the union of these two sets
of the servers.
Parameters
mac_address
– The client’s client-ID which is the hardware address of client.
string
– The client’s client-ID,which is specified by administrator.
relay
– Specify to relay the packet to a IP address.
drop
– Specify to drop the packet.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the DHCP relay option 61:
D G S – 3 4 2 6 : 5 # c o n f i g d h c p _ r e l a y o p t i o n _ 6 1 a d d m a c _ a d d r e s s 0 0 - 0 1 - 2 2 - 3 3 - 4 4 - 5 5 d r o p
C o m m a n d : c o n f i g d h c p _ r e l a y o p t i o n _ 6 1 a d d m a c _ a d d r e s s 0 0 - 0 1 - 2 2 - 3 3 - 4 4 - 5 5 d r o p
S u c c e s s .
D G S – 3 4 2 6 : 5 #
config dhcp_relay option_61 default
Purpose
This command is used to determine the default ruler for option 61.
Syntax
config dhcp_relay option_61 default [relay <ipaddr>|drop]
Description
This command is used to determine the rule to process those packets that have no option
61 matching rules. The default default-rule is drop.
Parameters
relay
– Specifies to relay the packet that has no option 61 matching rules to an IP
address.
drop
– Specifies to drop the packet that has no option 61 matching rules.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the DHCP relay option 61 default:
D G S – 3 4 2 6 : 5 # c o n f i g d h c p _ r e l a y o p t i o n _ 6 1 d e f a u l t d r o p
C o m m a n d : c o n f i g d h c p _ r e l a y o p t i o n _ 6 1 d e f a u l t d r o p
S u c c e s s .
D G S – 3 4 2 6 : 5 #