xStack
®
DGS-3120 Series Managed Switch CLI Reference Guide
246
Example
To configure the state of dhcp_relay option 60:
DGS-3120-24TC:admin# config dhcp_relay option_60 state enable
Command: config dhcp_relay option_60 state enable
Success
DGS-3120-24TC:admin#
24-11
config dhcp_relay option_60 add
Description
This command is used to configure the option 60 relay rules. Note that different string 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.
Format
config dhcp_relay option_60 add string <multiword 255> relay <ipaddr> [exact-match |
partial-match]
Parameters
string
- Specify the string used.
<multiword 255>
- Enter the string value here. This value can be up to 255 characters long.
relay
- Specify a relay server IP address.
<ipaddr>
- Enter the IP address used for this configuration here.
exact-match
- The option 60 string in the packet must full match with the specified string.
partial-match
- The option 60 string in the packet only need partial match with the specified
string.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To configure the DHCP relay option 60 option:
DGS-3120-24TC:admin# 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-3120-24TC:admin#