Displaying and Maintaining DHCP Relay Agent Configuration 819
■ Enabling the DHCP relay agent on the specified interface
■ Correlating a DHCP server group with relay agent interfaces
Configuring the DHCP relay agent to support Option 82
Follow these steps to configure the DHCP relay agent to support Option 82:
n
■ To support Option 82, it is required to perform related configuration on both 
the DHCP server and relay agent. Refer to “Configuring the Handling Mode for 
Option 82” on page 808 for DHCP server configuration of this kind.
■ If the handling strategy of the DHCP relay agent is configured as replace, you 
need to configure a padding format for 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.
Displaying and 
Maintaining DHCP 
Relay Agent 
Configuration
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter interface view  interface interface-type 
interface-number 
- 
Enable the relay agent to 
support Option 82 
dhcp relay information enable Required
Disabled by default. 
Configure the handling 
strategy for requesting 
messages containing Option 82 
dhcp relay information strategy 
{ drop | keep | replace } 
Optional
replace by default. 
Configure the padding format 
for Option 82 
dhcp relay information format 
{ normal | verbose [ node-identifier 
{ mac | sysname | user-defined 
node-identifier }]} 
Optional
normal by default.
To do…  Use the command…  Remarks 
Display information about DHCP 
server groups correlated to a 
specified or all interfaces 
display dhcp relay { all | interface 
interface-type interface-number } 
Available in any 
view 
Display information about bindings 
of DHCP relay agents 
display dhcp relay security 
[ ip-address | dynamic | static ] 
Available in any 
view 
Display statistics information about 
bindings of DHCP relay agents 
display dhcp relay security 
statistics 
Available in any 
view 
Display information about the 
refreshing interval for entries of 
dynamic IP-to-MAC bindings 
display dhcp relay security 
tracker 
Available in any 
view 
Display information about the 
configuration of a specified or all 
DHCP server groups 
display dhcp relay server-group 
{ group-id | all } 
Available in any 
view 
Display packet statistics on relay 
agent 
display dhcp relay statistics 
[ server-group { group-id | all }] 
Available in user 
view 
Clear packet statistics from relay 
agent 
reset dhcp relay statistics 
[ server-group group-id ] 
Available in user 
view