< 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 ]

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.

-

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.

Note

If a lot of VLANs are configured on a device, configuring interface-type interface-number filters the command output. If interface-type interface-number is not configured, excessive output information is displayed, causing either of the following problems:
  • 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.

<sysname> display port vlan
Port            Link Type    PVID  Trunk VLAN List
-------------------------------------------------------------------------------
Eth-Trunk50     access       50    -
Table 1 Description of the display port vlan command output

Item

Description

Port

Indicates the type and number of the interface.

Link Type

Indicates the types of the interface link.
  • access

  • trunk

  • hybrid

  • dot1q-tunnel

PVID

Indicates the default VLAN ID of the interface.

Trunk 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 >