< Home

display port vlan

Function

The display port vlan command displays information about interfaces of the VLAN.

Format

display port vlan [ interface-type interface-number | active ] *

Parameters

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).

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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

If a large number of mappings between interfaces and VLANs exist on the device, you are advised to specify the interface or active to filter the command output. Otherwise, the following problems may occur due to excessive output information:
  • The displayed information is repeatedly refreshed, causing required information to fail to be obtained.
  • The system does not respond because of long-time information traverse and search.

Example

# 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     -
# Display information about all dynamic entries.
<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.

Table 1 Description of the display port vlan command output

Item

Description

Port

Indicates the type and number of the interface.

Link Type

Types of the interface link:
  • access
  • trunk
  • hybrid
  • dot1q-tunnel
  • desirable
  • auto

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

  • Indicates the VLAN IDs that are dynamically added by an interface.
  • Indicates the VLAN IDs of packets that are statically configured to pass through an interface.

VLAN List

Indicates the VLAN IDs of packets that are statically configured to pass through an interface.

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