No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FITAP V200R010C00 Command Reference

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
display vlan

display vlan

Function

The display vlan command displays information about all VLANs.

If no parameter is specified, brief information about all VLANs is displayed.

Format

display vlan [ vlan-id [ verbose ] ]

display vlan vlan-name vlan-name [ verbose ]

display vlan [ vlan-id1 [ to vlan-id2 ] | vlan-name vlan-name | brief | summary ]

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of a VLAN.

The value is an integer that ranges from 1 to 4094.

vlan-id1 [ to vlan-id2 ]

Specifies a range of VLAN IDs.
  • vlan-id1 specifies the first VLAN ID.
  • to vlan-id2 specifies the last VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1. If to vlan-id2 is not specified, only information about the VLAN specified by vlan-id1 is displayed.
  • The value of vlan-id1 is an integer that ranges from 1 to 4094.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094.

summary

Displays summary of all VLANs.

-

verbose

Displays detailed information about a specified VLAN.

-

vlan-name vlan-name Specifies a VLAN name. The value is a string of 1 to 31 case-sensitive characters without spaces.
brief Indicates brief information about VLANs.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display vlan command displays VLAN configuration or packet statistics on interfaces in a VLAN.

Example

# Display brief information about all VLANs.

<Huawei> display vlan
* : management-vlan                                                             
---------------------                                                           
The total number of vlans is : 6                                                
VLAN ID Type         Status   MAC Learning Broadcast/Multicast/Unicast Property 
--------------------------------------------------------------------------------
1       common       enable   enable       forward   forward   forward default  
10      common       enable   enable       forward   forward   forward default  
100     common       enable   enable       forward   forward   forward default  
199     common       enable   enable       forward   forward   forward default  
900     common       enable   enable       forward   forward   forward default  
4094    common       enable   enable       forward   forward   forward default  

# Display detailed information about VLAN 100.

<Huawei> display vlan 100 verbose
* : Management-VLAN
---------------------
  VLAN ID                     : 100
  VLAN Name                   :
  VLAN Type                   : Common
  Description                 : VLAN 0100
  Status                      : Enable
  Broadcast                   : Enable
  MAC Learning                : Enable
  Smart MAC Learning          : Disable
  Current MAC Learning Result : Enable
  Statistics                  : Disable
  Property                    : Default
  VLAN State                  : Down
  ----------------
  Tagged        Port: GigabitEthernet0/0/1
  ----------------
  Active  Tag   Port: GigabitEthernet0/0/1
-------------------
Interface                   Physical
GigabitEthernet0/0/1                   DOWN
# Display summary of all VLANs.
<Huawei> display vlan summary
static vlan:
Total 8 static vlan exist(s).
1 10 to 12 20 100 200 470
dynamic vlan:
Total 0 dynamic vlan exist(s).
# Display brief of all VLANs.
<Huawei> display vlan brief
U:Up;D:Down;TG:Tagged;UT:Untagged;                                              
                                                                                
VID  Name             Status  Ports                                             
--------------------------------------------------------------------------------
1                     enable  UT: GE0/0/1(U)                                    
2001                  enable  TG: GE0/0/1(U)
Table 6-11  Description of the display vlan command output

Item

Description

VID or VLAN ID

ID of a VLAN.

Type or VLAN Type

Type of a VLAN.
  • mux: indicates a principal VLAN used in the MUX VLAN function.

  • mux-sub: indicates a subordinate VLAN used in the MUX VLAN function.

  • super: indicates a super-VLAN used for VLAN aggregation.

  • sub: indicates a sub-VLAN used for VLAN aggregation.

  • Common: indicates a common VLAN.

  • *Common: indicates the management VLAN.

Ports

Interfaces in a VLAN.

VLAN Name

Name of a VLAN.

Description

Description of a VLAN.

Status

Status of a VLAN. The value is always Enable.

Broadcast

Whether the broadcast function is enabled in a VLAN.

  • disable: The broadcast function is disabled.
  • enable: The broadcast function is enabled.

MAC Learning/MAC-LRN

Whether MAC address learning is enabled:
  • disable: MAC address learning is disabled.

  • enable: MAC addresses learning is enabled.

Broadcast/Multicast/Unicast
Indicates whether broadcast packets, multicast packets, or unicast packets are forwarded. The value can be:
  • forward: forwarding broadcast packets, multicast packets, or unicast packets
  • discard: discarding broadcast packets, multicast packets, or unicast packets

Smart MAC Learning

Whether smart MAC address learning is enabled:
  • disable: Smart MAC address learning is disabled.

  • enable: Smart MAC addresses learning is enabled.

Current MAC Learning Result

MAC address learning result.

Statistics

Whether the traffic statistics function is enabled in a VLAN.

  • disable: Traffic statistics function is disabled.
  • enable: Traffic statistics function is enabled.

Property

Property of a VLAN.
  • Default: indicates a default VLAN.
  • MutilcastVlan: indicates a multicast VLAN.
  • UserVlan: indicates a user VLAN.

VLAN state

Indicates the status of the VLAN. The value can be:
  • Up
  • Down

The status of a VLAN is determined by the status of member interfaces in the VLAN. A VLAN is Up only when at least one member interface in the VLAN is Up.

Tagged/Untagged Port

Interfaces that are manually added to a VLAN in tagged or untagged mode.

Active Tag/Active Untag Port

Active interfaces that join a VLAN in tagged or untagged mode.

static vlan

VLANs that are created manually.

dynamic vlan

VLANs that are learned dynamically.

Translation
Download
Updated: 2019-05-14

Document ID: EDOC1100064353

Views: 88222

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next