828 CHAPTER 60: DHCP SNOOPING CONFIGURATION
Configuring DHCP 
Snooping Basic 
Functions
Follow these steps to configure DHCP snooping basic functions:
n
■ You need to specify the ports connected to the valid DHCP servers as trusted to 
ensure that DHCP clients can obtain valid IP addresses. The trusted port and the 
port connected to the DHCP client must be in the same VLAN.
■ You are not recommended to configure both the DHCP snooping and selective 
Q-in-Q function on the switch, which may result in the DHCP snooping to 
function abnormally.
Configuring DHCP 
Snooping to Support 
Option 82
Prerequisites You need to enable the DHCP Snooping function before configuring DHCP 
Snooping to support Option 82.
Configuring DHCP
Snooping to Support
Option 82
Follow these steps to configure DHCP snooping to support Option 82:
n
■ To support Option 82, it is required to perform related configuration on both 
the DHCP server and the device enabled with DHCP Snooping. Refer to 
“Configuring the Handling Mode for Option 82” on page 808 for DHCP server 
configuration of this kind.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enable DHCP snooping  dhcp-snooping Required
Disabled by default. 
Enter Ethernet port view  interface interface-type 
interface-number 
- 
Specify the port as trusted  dhcp-snooping trust
[ no-user-binding ] 
Required
Untrusted by default.
To do…  Use the command…  Remarks 
Enter system view  system-view - 
Enter Ethernet port view  interface interface-type 
interface-number 
- 
Enable DHCP Snooping to 
support Option 82 
dhcp-snooping information 
enable 
Required
Disabled by default. 
Configure the handling 
strategy for requesting 
messages containing Option 
82 
dhcp-snooping information 
strategy { drop | keep | 
replace } 
Optional
replace by default. 
Configure the padding format 
for Option 82 
dhcp-snooping information 
format { normal | verbose 
[ node-identifier { mac | 
sysname | user-defined 
node-identifier }]} 
Optional
normal by default.