Command Manual – DHCP
H3C S7500E Series Ethernet Switches
Chapter 2 DHCP Relay Agent Configuration
Commands
2-4
The Option 82 padding format defaults to
normal
.
Note:
z
Using the
undo dhcp relay information format
command without the keyword
verbose
node-identifier
restores the default
normal
padding format, or with the
keyword
verbose
node-identifier
restores the
mac
mode of the
verbose
padding
format.
z
If configuring the handling strategy of the DHCP relay agent as
replace
, you need to
configure a padding format of Option 82. If the handling strategy is keep or drop, you
need not configure any padding format.
z
If sub-option 1 (node identifier) of Option 82 is padded with the device name
(sysname) of a node, the device name must contain no spaces. Otherwise, the
DHCP relay agent will drop the message.
Examples
# Specify the verbose padding format for Option 82.
<Sysname> system-view
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] dhcp relay information enable
[Sysname-Vlan-interface1] dhcp relay information strategy replace
[Sysname-Vlan-interface1] dhcp relay information format verbose
2.1.5 dhcp relay information strategy
Syntax
dhcp relay information strategy
{
drop | keep | replace
}
undo dhcp relay information strategy
View
Interface view
Parameters
drop
: Specifies to drop messages containing Option 82.
keep
: Specifies to forward messages containing Option 82 without any change.
replace
: Specifies to forward messages containing Option 82 after replacing the
original Option 82 with the Option 82 padded in the specified padding format.