Parameter
Description
Example
dhcp relay information strategy
Syntax
View
Parameter
normal: Specifies the normal padding format.
verbose: Specifies the verbose padding format.
node-identifier { mac | sysname | user-defined node-identifier }: Specifies
access node identifier. By default, the node MAC address is used as the node
identifier.
mac indicates using MAC address as the node identifier.
■
sysname indicates using the device name of a node as the node identifier.
■
user-defined node-identifier indicates using a specified character string as the
■
node identifier, in which node-identifier is a string with 1 to 50 characters.
Use the
dhcp relay information format
for option 82.
Use the
undo dhcp relay information format
default padding format.
The option 82 padding format defaults to normal.
n
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.
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.
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.
# Specify the verbose padding format for option 82.
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] dhcp relay information enable
[Sysname-Ethernet1/0] dhcp relay information strategy replace
[Sysname-Ethernet1/0] dhcp relay information format verbose
dhcp relay information strategy { drop | keep | replace }
undo dhcp relay information strategy
Interface view
drop: Specifies to drop messages containing option 82.
keep: Specifies to forward messages containing option 82 without any change.
command to specify a padding format
command to restore the
731