![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/f/fa/ffa63819-0092-4e25-b43b-b3dd7442913c/ffa63819-0092-4e25-b43b-b3dd7442913c-bgfc.png)
xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
248
config dhcp_relay option_60 add
Purpose This command is used to add an entry for DHCP relay option 60
Syntax
config dhcp_relay option_60 add string <mutiword 255> relay <ipaddr> [exact-
match|partial-match]
Description This command is used to configure the option 60 relay rules. Note that different strings
can be specified with the same relay server, and the same string can be specified with
multiple relay servers. The system will relay the packet to all the matching servers.
Parameters exact-match – The option 60 string in the packet must fully match the specified string.
partial-match – The option 60 string in the packet only need partial match with the
specified string.
string – The specified string.
ipaddress – Specify a relay server IP address.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure a new dhcp relay with option 60:
DGS–3426:5#config dhcp_relay option_60 add string "abc" relay 10.90.90.1 exact-match
Command: config dhcp_relay option_60 add string "abc" relay 10.90.90.1 exact-match
Success.
DGS–3426:5#
config dhcp_relay option_60 default
Purpose This command is used to configure DHCP relay option 60 default relay servers
Syntax
config dhcp_relay option_60 default [relay <ipaddr> |mode[relay|drop]]
Description When there are no matching servers found for the packet, based on option 60, the relay
servers will be determined by the default relay server settings. When drop is specified,
the packet with no matching rules found will be dropped without further process. If the
setting states no- drop, then the packet will be processed further based on option 61. The
final relay servers will be the union of option 60 default relay servers and the relay servers
determined by option 61.
Parameters ipaddress – The specified ipaadress for dhcp_relay forward. Specifies a relay server IP
for the packet that has mathcing option 60 rules.
drop – Specify to drop the packet that has no matching option 60 rules.
relay – The packet will be relayed based on the relay rules.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the DHCP relay default option 60:
DGS–3426:5#config dhcp_relay option_60 default mode drop
Command: config dhcp_relay option_60 default mode drop
Success.
DGS–3426:5#