Parameter | Description | Value |
---|---|---|
vlan-id |
Specifies the VLAN ID of a sub-VLAN. When multiple VLANs are configured on a device, you are recommended to specify the VLAN ID so that you can view information about a specific sub-VLAN. |
The value is an integer ranging from 1 to 4094. |
After VLAN aggregation is configured on a device, you can determine whether VLAN aggregation has been correctly configured by running the display sub-vlan command to check information about sub-VLANs and check which sub-VLANs are contained in a super-VLAN.
When using the display sub-vlan command, note the following issues:
If vlan-id is not specified, information about all sub-VLANs on the device is displayed.
If vlan-id is specified, information about a specific sub-VLAN is displayed.
Before running the display sub-vlan command, ensure that the device is configured with sub-VLANs. Otherwise, no command output is displayed.
# Display information about all sub-VLANs.
<HUAWEI> display sub-vlan
VLAN ID Super-VLAN
------------------------
10 40
20 40
30 40
Item |
Description |
---|---|
VLAN ID |
Existing sub-VLAN on the device. To specify the parameter, run the access-vlan command. |
Super-VLAN |
Super-VLAN that the sub-VLAN belongs to. To specify the parameter, run the aggregate-vlan command. |