xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
242
31
DHCP RELAY COMMANDS
The DHCP relay commands in the Command Line Interface (CLI) are listed (along with the appropriate parameters) in the
following table.
Command Parameters
config dhcp_relay {hops <value 1–16> | time <sec 0–65535>} (1)
config dhcp_relay add ipif <ipif_name 12> <ipaddr>
config dhcp_relay delete ipif <ipif_name 12> <ipaddr>
config dhcp_relay option_82 state [enable | disable]
config dhcp_relay option_82 check [enable | disable]
config dhcp_relay option_82 policy [replace | drop | keep]
show dhcp_relay {ipif <ipif_name 12>}
enable dhcp_relay
disable dhcp_relay
config dhcp_relay option_60 state [enable|disable]
config dhcp_relay option_60 add string <string 255> relay <ipaddr> [exact-match|partial-match]
config dhcp_relay option_60 default [relay <ipaddr>|mode [drop|relay]
config dhcp_relay option_60 delete
[ string <string 255> {relay <ipaddress>}| ipaddress < ipaddr >|all |default
{< ipaddr>}]
show dhcp_relay option_60 {[string <string 255>| ipaddress < ipaddr>|default]}
config dhcp_relay option_61 state [enable|disable]
config dhcp_relay option_61 default [relay <ipaddr>|drop]
config dhcp_relay option_61 add [mac_address <macaddr> |string <string 255>] [relay <ipaddr>| drop]
config dhcp_relay option_61 delete [mac_address <macaddr> | string <string 255>|all]
show dhcp_relay option_61
Each command is listed in detail in the following sections.
config dhcp_relay
Purpose Used to configure the DHCP/BOOTP relay feature of the switch.
Syntax
config dhcp_relay {hops <value 1–16> | time <sec 0–65535>} (1)
Description This command is used to configure the DHCP/BOOTP relay feature.
Parameters hops <value 1–16> Specifies the maximum number of relay agent hops that the DHCP
packets can cross.
time <sec 0–65535> If this time is exceeded, the Switch will relay the DHCP packet.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To config DHCP relay: