display interface vlan

Function

The display interface vlan command displays VLAN policy information of all single-tagged or untagged sub-interfaces configured on an interface.

Format

display interface { interface-type interface-number | interface-name } vlan { vlanid | untagged }

Parameters

Parameter Description Value
interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

interface-name

Specifies the interface name.

-

vlanid

Specifies the VLAN ID.

The value is an integer that ranges from 1 to 4094.

untagged

Displays VLAN policy information of all untagged sub-interfaces configured on an interface.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
ethernet read

Usage Guidelines

Usage Scenario

If the same matching policy of VLAN+802.1p, VLAN+DSCP, VLAN+EthType, or untagged+DSCP is configured on different sub-interfaces, you can run the display interface vlan command to view the sub-interfaces. This helps solve the configuration conflict.

Precautions

The display interface vlan command can be used to display VLAN policy information of all single-tagged or untagged but not double-tagged sub-interfaces of an interface.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display VLAN policy information of all untagged sub-interfaces on GE 0/1/1.
<HUAWEI> display interface gigabitethernet0/1/1 vlan untagged
Sub-Interface       VlanPolicy
-----------------------------------------------------------
GE0/1/1.1           dscp 1 to 10
GE0/1/1.2           default
GE0/1/1.3           dscp 11 to 25 27 to 28 33
-----------------------------------------------------------
Interface:GE0/1/1 VLAN ID: UNTAGGED Sub-Interface num: 3
# Display VLAN policy information of all sub-interfaces tagged with VLAN 1 on GE 0/1/1.
<HUAWEI> display interface gigabitethernet0/1/1 vlan 1
Sub-Interface       VlanPolicy 
-----------------------------------------------------------
GE0/1/1.2           8021p 1
GE0/1/1.6           8021p 1
GE0/1/1.5           default
GE0/1/1.4           8021p 2 to 5 7
-----------------------------------------------------------
Interface:GE0/1/1 VLAN ID: 1 Sub-Interface num: 3
Table 1 Description of the display interface vlan command output
Item Description
Sub-Interface

Sub-interface tagged with a specified VLAN ID.

Sub-Interface num

Number of sub-interfaces tagged with a specified VLAN ID on a main interface.

VlanPolicy

VLAN policy configured on a sub-interface.

VLAN ID

VLAN ID.

If a sub-interface receives untagged packets, this field is displayed as UNTAGGED.

Interface

Main interface.

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