Parameter | Description | Value |
---|---|---|
interface-type interface-number | Specifies the type and number of an interface in the VLAN. If this parameter is not specified, information about all interfaces in the VLAN is displayed. |
- |
active | Indicates the interface information of dynamic entries in the
VLAN. The dynamic mappings between VLANs and ports are identified by services such as voice VLAN service or protocols such as GARP VLAN registration protocol (GVRP). |
- |
Usage Scenario
You can run the display port vlan command to view information about interfaces of the VLAN and check whether the VLAN is assigned by the command, protocols, or services. If a fault occurs on an interface, you can locate the fault based on the information about the interface and VLAN.
Prerequisite
A VLAN has been created and the Layer 2 interface has joined the VLAN.
Precautions
# Display information about interfaces that belong to each VLAN on the device.
<HUAWEI> display port vlan
Port Link Type PVID Trunk VLAN List ------------------------------------------------------------------------------- GigabitEthernet0/0/1 hybrid 1 - GigabitEthernet0/0/2 hybrid 1 -
<HUAWEI> display port vlan active
T=TAG U=UNTAG ------------------------------------------------------------------------------- Port Link Type PVID VLAN List ------------------------------------------------------------------------------- GE0/0/3 hybrid 2 T: 10 GE0/0/4 trunk 10 T: 100
When the stack is set up through service interfaces and service interfaces are configured as physical member interfaces, the physical member interfaces are not displayed in display port vlan and display port vlan active command outputs.
Item |
Description |
---|---|
Port |
Indicates the type and number of the interface. |
Link Type |
Types of the interface link:
To specify the parameter, run the port link-type command. NOTE:
For the Eth-Trunk member interface, the value is displayed as -. |
PVID |
Indicates the default VLAN ID of the interface. By default, VLAN 1 is the default VLAN of all interfaces. For interfaces of the access and dot1q types and those interfaces negotiated as the access type, you can run the port default vlan command to configure the default VLAN. For interfaces of the hybrid type, you can run the port hybrid pvid vlan command to configure the default VLAN. For interfaces of the trunk type and those interfaces negotiated as the trunk type, you can run the port trunk pvid vlan command to configure the default VLAN. NOTE:
For the Eth-Trunk member interface, the value is displayed as 0. |
Trunk VLAN List |
|
VLAN List |
Indicates the VLAN IDs of packets that are statically configured to pass through an interface. |