A SERVICE OF

logo

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:
DGS–3426:5#config dhcp_relay option_61 add mac_address 00-01-22-33-44-55 drop
Command: config dhcp_relay option_61 add mac_address 00-01-22-33-44-55 drop
Success.
DGS–3426: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:
DGS–3426:5#config dhcp_relay option_61 default drop
Command: config dhcp_relay option_61 default drop
Success.
DGS–3426:5#