< Home

display interface vlan

Function

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

Format

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

Parameters

Parameter Description Value
interface interface-type interface-number Displays the VLAN policy information of a sub-interface with specified interface type and interface number. interface-type can be Ethernet, GE, or Eth-Trunk.
vlanid Displays VLAN policy information about all single-tagged sub-interfaces of an interface. The value is a decimal integer ranging from 1 to 4094.
untagged Displays VLAN policy information about all untagged sub-interfaces in the main interface. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If the same matching policy of VLAN+802.1p, VLAN+DSCP, VLAN+EthType, or untagged+DSCPis 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 interfacevlan command can be used to display VLAN policy information about all single-tagged or untagged but not double-tagged sub-interfaces of an interface.

Example

# Display all the sub-interfaces tagged with VLAN 1 on GE 1/0/1.

<sysname> display interface GigabitEthernet 0/0/1 vlan 1
Sub-Interface VlanPolicy
-----------------------------------------------------------
GigabitEthernet 0/0/1.6     8021p 1
GigabitEthernet 0/0/1.5     default
GigabitEthernet 0/0/1.4     8021p 2 to 5 7
-----------------------------------------------------------
Interface:GigabitEthernet 0/0/1 VLAN ID: 1 Sub-Interface num: 3
Table 1 Description of the display interface vlan command output

Item

Description

Sub-Interface

Name of a sub-interface on which a VLAN policy is configured.

VlanPolicy

VLAN policy configured on a sub-interface.

Interface

Name of a main interface to which the sub-interface with a VLAN policy configured belongs

VLAN ID

VLAN ID of a sub-interface.

If the sub-interface with untagged packets, UNTAGGED is displayed.

Sub-Interface num

Number of sub-interfaces on which a VLAN policy is configured

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