dhcp-snooping information sub-option

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

View

Layer 2 Ethernet port view, Layer 2 aggregate interface view

Default 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. Currently, 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.

Description

Use dhcp-snooping information sub-option to configure a sub-option.

Use undo dhcp-snooping information sub-option to restore the default.

By default, no sub-option is configured.

This configuration applies to the private padding format only. 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 the 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.

Related commands: dhcp-snooping information format, dhcp-snooping information strategy, and display dhcp-snooping information.

Examples

# Configure the user-defined sub-option 9 as group001.

<Sysname> system-view
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] dhcp-snooping information sub-option 9 string group001