![H3C SR8800-F Configuration Manual Download Page 163](http://html2.mh-extra.com/html/h3c/sr8800-f/sr8800-f_configuration-manual_4025863163.webp)
147
secondary gateway. Then, when the secondary gateway receives a DHCP reply, it resolves
Option 82, records the VLAN ID of the L2VE subinterface, and forwards the reply to the PW.
To configure forwarding DHCP replies based on Option 82:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface interface-type
interface-number
N/A
3.
Enable the relay agent
to handle Option 82.
dhcp relay information enable
By default, handling of Option 82
is disabled.
4.
Configure the padding
mode and padding
format for the Circuit ID
sub-option.
dhcp relay information circuit-id
{
bas
[
sub-interface-vlan
] [
with-vxlan
] |
string circuit-id
| {
normal
|
verbose
[
node-identifier
{
mac
|
sysname
|
user-defined node-identifier
} ]
[
interface
] } [
sub-interface-vlan
]
[
format
{
ascii
|
hex
} ] }
By default, the padding mode for
the Circuit ID sub-option is
normal
, and the padding format
is
hex
.
The device name (set by using
the
sysname
command) must
not include spaces if it is
configured as the padding
content for sub-option 1.
Otherwise, the DHCP relay agent
will fail to add or replace Option
82.
You must set the padding mode
to
bas
,
normal
, or
verbose
, and
specify the
sub-interface-vlan
keyword for this command.
5.
Configure the DHCP
relay agent to forward
DHCP replies based
on Option 82.
dhcp relay forward reply by-option82
By default, the DHCP relay agent
does not forward DHCP replies
based on Option 82.
Display and maintenance commands for DHCP
relay agent
Execute
display
commands in any view and
reset
commands in user view.
Task Command
Display information about DHCP servers on an
interface.
display dhcp relay
server-address
[
interface
interface-type
interface-number
]
Display Option 82 configuration information on the
DHCP relay agent.
display dhcp relay information
[
interface
interface-type interface-number
]
Display relay entries on the DHCP relay agent.
display dhcp relay client-information
[
interface
interface-type interface-number |
ip
ip-address
[
vpn-instance
vpn-instance-name
] ]
Display packet statistics on the DHCP relay agent.
display dhcp relay statistics
[
interface
interface-type interface-number
]
Clear relay entries on the DHCP relay agent.
reset dhcp relay client-information
[
interface
interface-type interface-number |
ip
ip-address
[
vpn-instance
vpn-instance-name
] ]
Clear packet statistics on the DHCP relay agent.
reset dhcp relay statistics
[
interface
interface-type
interface-number
]