How to rapidly query the link types and default VLANs of all interfaces

Publication Date:  2016-11-24 Views:  159 Downloads:  0
Issue Description
How to rapidly query the link types and default VLANs of all interfaces
Solution
Run the display port vlan command to check the link types and default VLANs of all interfaces. Example:
V200R005 and later versions

<HUAWEI> display port vlan
Port                        Link Type    PVID  Trunk VLAN List
-------------------------------------------------------------------------------
Eth-Trunk2                  auto         1     1-4094
Eth-Trunk3                  hybrid       1     -
Eth-Trunk5                  auto         1     1-4094
Ethernet0/0/1               auto         1     1-4094
Ethernet0/0/2               auto         1     1-4094
Ethernet0/0/3               auto         1     1-4094
Ethernet0/0/4               auto         1     1-4094
Ethernet0/0/5               auto         1     1-4094
Ethernet0/0/6               auto         0     -
Ethernet0/0/7               auto         1     1-4094
Ethernet0/0/8               auto         0     -
Ethernet0/0/9               auto         0     -
Ethernet0/0/10              auto         1     1-4094
Ethernet0/0/11              auto         1     1-4094
Ethernet0/0/12              auto         0     -
Ethernet0/0/13              auto         1     1-4094
Ethernet0/0/14              auto         1     1-4094
Ethernet0/0/15              auto         1     1-4094
Ethernet0/0/16              auto         1     1-4094
Ethernet0/0/17              auto         1     1-4094
Ethernet0/0/18              auto         1     1-4094
Ethernet0/0/19              auto         1     1-4094
Ethernet0/0/20              auto         1     1-4094
Ethernet0/0/21              access       20    -
Ethernet0/0/22              auto         1     1-4094
Ethernet0/0/23              auto         1     1-4094
Ethernet0/0/24              access       4094  -
GigabitEthernet0/0/1        auto         0     -
GigabitEthernet0/0/2        auto         1     1-4094
GigabitEthernet0/0/3        auto         1     1-4094
GigabitEthernet0/0/4        auto         1     1-4094   Earlier versions of V200R005 (excluding V200R005)

<HUAWEI> display port vlan
Port                        Link Type    PVID  Trunk VLAN List
-------------------------------------------------------------------------------
GigabitEthernet0/0/1        trunk        1     1
GigabitEthernet0/0/2        hybrid       1     -
GigabitEthernet0/0/3        hybrid       1     -
GigabitEthernet0/0/4        hybrid       1     -
GigabitEthernet0/0/5        access       10    -
GigabitEthernet0/0/6        hybrid       1     -
GigabitEthernet0/0/7        hybrid       1     -
GigabitEthernet0/0/8        hybrid       1     -
GigabitEthernet0/0/9        hybrid       1     -
GigabitEthernet0/0/10       hybrid       1     -
GigabitEthernet0/0/11       hybrid       1     -
GigabitEthernet0/0/12       hybrid       1     -
GigabitEthernet0/0/13       hybrid       1     -
GigabitEthernet0/0/15       hybrid       1     -
GigabitEthernet0/0/16       hybrid       1     -
GigabitEthernet0/0/17       hybrid       1     -
GigabitEthernet0/0/18       hybrid       1     -
GigabitEthernet0/0/19       hybrid       1     -
GigabitEthernet0/0/20       hybrid       1     -
GigabitEthernet0/0/21       hybrid       1     -
GigabitEthernet0/0/22       hybrid       1     -
GigabitEthernet0/0/23       hybrid       1     -
GigabitEthernet0/0/24       hybrid       1     -The Link Type field indicates the link type of an interface, the PVID field indicates the default VLAN, and the Trunk VLAN List field indicates the list of VLANs allowed by a trunk interface. If the interface does not join any VLAN, the Trunk VLAN List field is displayed as -. If the link type of an interface is negotiation-desirable or negotiation-auto, the Trunk VLAN List field is displayed as 1 to 4094.

END