R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
96
dhcp-snooping information sub-option
Use dhcp-snooping information sub-option to configure a sub-option.
Use undo dhcp-snooping information sub-option to restore the default.
Syntax
dhcp-snooping information [ vlan vlan-id ] sub-option sub-option-code [ string user-string&<1-8> ]
undo dhcp-snooping information [ vlan vlan-id ] sub-option sub-option-code
Default
No sub-option is configured.
Views
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default command level
2: System level
Parameters
vlan vlan-id: Specifies the ID of a VLAN, in the range of 1 to 4094.
sub-option sub-option-code: Specifies the number of the sub-option. Only sub-option 9 is supported.
string user-string&<1-8>: Configures the content of the sub-option, a case-sensitive string of 1 to 63
characters. &<1-8> represents that you can enter a maximum of 8 strings separated by spaces.
Usage guidelines
This configuration takes effect only for the private padding format. To configure the private padding
format, use the dhcp-snooping information format private 1 command.
If no content is configured for sub-option 9 with the string user-string option, the primary device uses
sysname and the primary address of the Loopback0 interface to pad sub-option 9 and a secondary
device uses sysname to pad sub-option 9. The device configured with the dhcp-snooping information
strategy append command is the primary device and a device configured with some other strategy is a
secondary device.
After you use the string user-string option to configure sub-option 9, the device uses the ASCII code type
to pad the characters into sub-option 9 in the order that they are configured. When the total length of all
sub-options reaches 255, the device stops padding automatically.
The sub-option 9 content configured only applies to the VLAN that is specified by the vlan vlan-id option.
If no VLAN ID is specified, the sub-option 9 content applies to all VLANs. A VLAN prefers its own
sub-option 9 content over the one configured for all VLANs.
Examples
# Configure the user-defined sub-option 9 as group001.
<Sysname> system-view
[Sysname] interface GigabitEthernet 1/0/1
[Sysname-GigabitEthernet 1/0/1] dhcp-snooping information sub-option 9 string group001
Related commands
dhcp-snooping information format
dhcp-snooping information strategy