3-7
To do… Use the command… Remarks
Enter system view system-view —
Enable DHCP-snooping Option
82 support dhcp-snooping information
enable
Required
By default, DHCP snooping
Option 82 support is disabled.
Follow these steps to configure a handling policy for DHCP packets with Option 82:
To do… Use the command… Remarks
Enter system view system-view Optional
Configure a global handling
policy for requests that contain
Option 82
dhcp-snooping information
strategy { drop | keep | replace }
Optional
The default handling
policy is replace.
Enter Ethernet port view interface interface-type
interface-number —
Configure a handling policy for
requests that contain Option 82
received on the specified
interface
dhcp-snooping information
strategy { drop | keep | replace }
Optional
The default policy is
replace.
If a handling policy is configured on a port, this configuration overrides the globally configured handling
policy for requests received on this port, while the globally configured handling policy applies on those
ports where a handling policy is not natively configured.
The device supports the HEX or ASCII format for the Option 82 field.
Follow these steps to configure a storage format for the Option 82 field:
To do… Use the command… Remarks
Enter system view system-view —
Configure a storage format for
the Option 82 field dhcp-snooping information
format { hex | ascii } Optional
By default, the format is hex.