82
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] dhcp-snooping information enable
dhcp-snooping information format
Syntax
dhcp-snooping information format
{
normal
|
verbose
[
node-identifier
{
mac
|
sysname
|
user-defined
node-identifier
} ] }
undo dhcp-snooping information format
[
verbose node-identifier
]
View
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
normal
: Specifies the normal padding format.
verbose
: Specifies the verbose padding format.
node-identifier
{
mac
|
sysname
|
user-defined
node-identifier
}: Specifies the access node identifier. By
default, the node MAC address is used as the node identifier.
mac
indicates using the 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 of 1 to 50 characters.
Description
Use the
dhcp-snooping information format
command to specify the padding format for Option 82.
Use the
undo dhcp-snooping information format
command to restore the default.
By default, the padding format for Option 82 is
normal
.
When you use the
undo dhcp-snooping information format
command, if the
verbose
node-identifier
argument is not specified, the padding format will be restored to
normal
; if the
verbose
node-identifier
argument is specified, the padding format will be restored to
verbose
with MAC address as the node
identifier.
Related commands:
display dhcp-snooping information
.
Examples
# Specify the padding format as
verbose
for Option 82.
<Sysname> system-view
[Sysname] interface GigabitEthernet1/0/1
[Sysname-GigabitEthernet1/0/1] dhcp-snooping information enable
[Sysname-GigabitEthernet1/0/1] dhcp-snooping information strategy replace
[Sysname-GigabitEthernet1/0/1] dhcp-snooping information format verbose