xStack
34
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 |
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 |
|
|
|
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 |
Description | This command is used to configure the DHCP/BOOTP relay feature. |
Parameters | hops <value |
| hops that the DHCP/BOOTP packets can cross. The range is from 1 |
| to 16 hops, with a default setting of 4. |
| time <sec |
| Switch must relay the DHCP/BOOTP packet. If this timer expires, the |
| Switch will drop the DHCP/BOOTP packet. The default setting is 0. |
Restrictions | Only |
|
|
Example usage:
To config DHCP relay:
Command: config dhcp_relay hops 2 time 23
Success.
277