< Home

display sub-vlan

Function

The display sub-vlan command displays information about sub-VLAN entries.

Format

display sub-vlan [ vlan-id ]

Parameters

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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

Example

# Display information about all sub-VLANs.

<HUAWEI> display sub-vlan
VLAN ID   Super-VLAN
------------------------
10        40
20        40
30        40  
Table 1 Description of the display sub-vlan command output

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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >