The display interface vlan command displays VLAN policy information of all single-tagged or untagged sub-interfaces configured on an interface.
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. |
- |
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.
The actual command output varies according to the device. The command output here is only an example.
<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
<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
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. |