Page 196 / 757 Scroll up to view Page 191 - 195
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
192
DGS-3627:admin# config dhcp_relay hops 4 time 2
Command: config dhcp_relay hops 4 time 2
Success.
DGS-3627:admin#
config dhcp_relay add
Purpose
Used to add an IP destination address to the switch’s DHCP relay table. Used to configure a
DHCP server for relay of packets.
Syntax
config dhcp_relay add ipif <ipif_name 12> <ipaddr>
Description
The config dhcp_relay add command adds an IP address as a destination to forward (relay)
DHCP/BOOTP packets.
This server IP can either have the same network address as the network address of this ipif
or not. If the network address is different, the system will automatically route the relayed
packet.
Parameters
ipif
- The name of the IP interface which contains the IP address below.
<ipaddr>
- The DHCP/BOOTP server IP address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To add a DHCP/BOOTP server to the relay table:
DGS-3627:admin# config dhcp_relay add ipif System 10.43.21.12
Command: config dhcp_relay add ipif System 10.43.21.12
Success.
DGS-3627:admin#
config dhcp_relay delete
Purpose
Used to delete one or all IP destination addresses from the switch’s DHCP relay table.
Syntax
config dhcp_relay delete ipif <ipif_name 12> <ipaddr>
Description
The config dhcp_relay delete command is used to delete one or all of the IP destination
addresses in the swith’s relay table.
Parameters
ipif
- The name of the IP interface which contains the IP address below.
<ipaddr>
- The DHCP/BOOTP server IP address.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a DHCP/BOOTP server to the relay table:
Page 197 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
193
DGS-3627:admin# config dhcp_relay delete ipif System 10.43.21.12
Command: config dhcp_relay delete ipif System 10.43.21.12
Success.
DGS-3627:admin#
config dhcp_relay option_82
Purpose
Used to configurethe processing of DHCP 82 option for the DHCP relay function.
Syntax
config dhcp_relay option_82 { state [enable | disable] | check [enable | disable] | policy
[replace | drop | keep]}
Description
Configures the processing of DHCP 82 option for the DHCP relay function.
When DHCP 82 option is enabled, the DHCP packet received from the client will be inserted
with option 82 field before being relayed to the server. The DHCP 82 option contained 2
suboptions which is circuit ID suboption and remote ID suboption.
The formats for the circuit ID suboption and the remote ID suboption are as following. For the
circuit ID suboption of a standalone switch, the module field is always zero.
Parameters
state
- When the state is enabled, the DHCP packet will be inserted with the option 82 field
before being relayed to server. The DHCP packet will be processed based on the behaviour
defined in check and policy setting. When the state is disabled, the DHCP packet will be
relayed directly to server without further check and processing on the packet. The default
setting is disabled.
check
- When the state is enabled; For packet come from client side, the packet should not
have the option 82’s field. If the packet has this option field, it
will be dropped. For packets
come from the server side, the packet should have the option 82’s field. If the packet does
not have option field and does not have correct option fields, the packet will be dropped. The
default setting is disabled.
policy
- Specifies the way to process the packet come from the client side which has the 82
option field, and it is not dropped since the check function is disabled.
replace
- Replace the exiting option 82 field in the packet.
drop
- Discard if the packet has the option 82 field.
keep
- Retain the existing option 82 field in the packet. The default setting is replace.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure dhcp_relay option 82:
DGS-3627:admin# config dhcp_relay option_82 state enable
Command: config dhcp_relay option_82 state enable
Success.
DGS-3627:admin# config dhcp_relay option_82 check disable
Command: config dhcp_relay option_82 check disable
Success.
DGS-3627:admin# config dhcp_relay option_82 policy replace
Command: config dhcp_relay option_82 policy replace
Success.
DGS-3627:admin#
Page 198 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
194
enable dhcp_relay
Purpose
Used to enable the DHCP relay function on the switch.
Syntax
enable dhcp_relay
Description
The enable dhcp_relay command enables the DHCP relay function on the switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To enable the DHCP relay function:
DGS-3627:admin# enable dhcp_relay
Command: enable dhcp_relay
Success.
DGS-3627:admin#
disable dhcp_relay
Purpose
Used to disable DHCP relay function on the switch.
Syntax
disable dhcp_relay
Description
The disable dhcp_relay command disables the DHCP relay function on the switch.
Parameters
None.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To disable the DHCP relay function:
DGS-3627:admin# disable dhcp_relay
Command: disable dhcp_relay
Success.
DGS-3627:admin#
show dhcp_relay
Purpose
Used to display the current DHCP relay configuration.
Syntax
show dhcp_relay {ipif <ipif_name 12>}
Description
The show dhcp_relay command displays the current DHCP relay configuration.
Parameters
ipif
- IP interface name.
If no parameter specified, the system will display all dhcp relay configuration.
Restrictions
None.
Example usage:
To display dhcp relay status:
Page 199 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
195
DGS-3627:admin# show dhcp_relay ipif System
Command: show dhcp_relay ipif System
DHCP/BOOTP Relay Status
: Disabled
DHCP/BOOTP Hops Count Limit
: 4
DHCP/BOOTP Relay Time Threshold : 0 second(s)
DHCP Vendor Class Identifier Option 60 State: Disabled
DHCP Client Identifier Option 61 State: Disabled
DHCP Relay Agent Information Option 82 State
: Disabled
DHCP Relay Agent Information Option 82 Check
: Disabled
DHCP Relay Agent Information Option 82 Policy : Replace
Interface
Server 1
Server 2
Server 3
Server 4
------------- --------------- ---------------- --------------- --------------
System
10.48.74.122
10.23.12.34
10.12.34.12
10.48.75.121
DGS-3627:admin#
config dhcp_relay option_60 state
Purpose
Used to config dhcp_relay opton_60 state.
Syntax
config dhcp_relay option_60 state [enable | disable]
Description
This decides whether dhcp_relay will process the DHCP option 60 or not.
When option_60 is enabled, if the packet does not have option 60, then the relay servers
cannot be determined based on option 60. The relay servers will be determined based on
either option 61 or per IPIF configured servers.
If the relay servers are determined based on option 60 or option 61, then per IPIF configured
servers will be ignored.
If the relay servers are not determined either by option 60 or option 61, then per IPIF
configured servers will be used to determine the relay servers.
Parameters
state
- See below:
enable
- Enables the fuction dhcp_relay use option_60 rules to relay dhcp packet.
disable
- Disables the fuction dhcp_relay use option_60 rules to relay dhcp packet.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the state of dhcp_relay option 60:
DGS-3627:admin# config dhcp_relay option_60 state enable
Command: config dhcp_relay option_60 state enable
Success
DGS-3627:admin#
config dhcp_relay option_60 add
Purpose
Used to add a 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 configures 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.
Page 200 / 757
xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
196
config dhcp_relay option_60 add
The system will relay the packet to all the matching servers.
Parameters
string
- The specified string.
relay
- Specify a relay server IP address.
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 and Operator-level users can issue this command.
Example usage:
To add a entry for DHCP Relay option 60:
DGS-3627: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-3627:admin#
config dhcp_relay option_60 default
Purpose
This command is used to configure the DHCP Relay option 60 as the default Relay Server.
Syntax
config dhcp_relay option_60 default [relay <ipaddr>| mode [relay | drop]
Description
When there are no match servers found for the packet based on option 60, the relay servers
will be determined by the default relay server setting.
When there is no matching found for the packet, the relay servers will be determined based
on the default relay servers.
When drop is specified, the packet with no matching rules found will be dropped without
further process.
If the setting is 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
relay
- The specified IP address for dhcp_relay forward. Specify 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 option 60 as the default Relay Server:
DGS-3627:admin# config dhcp_relay option_60 default mode drop
Command: config dhcp_relay option_60 default mode drop
Success
DGS-3627:admin#

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top