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

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
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).
VLAN Configuration Commands

VLAN Configuration Commands

access-vlan

Function

The access-vlan command adds one or more sub-VLANs to a super-VLAN.

The undo access-vlan command removes one or more sub-VLANs from a super-VLAN.

By default, no sub-VLAN is added to the super-VLAN.

Format

access-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo access-vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Specifies a range of sub-VLAN IDs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end 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 one VLAN is added to the super-VLAN.

You can specify a maximum of 10 VLAN ID ranges at a time. The ranges cannot overlap.

  • The value of vlan-id1 is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Each super-VLAN supports 256 sub-VLANs.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The VLAN technology is widely applied to packet switching networks because it controls broadcast domains flexibly and is easy to deploy. Generally, a Layer 3 switch usually uses a Layer 3 logical interface in each VLAN to allow user hosts in different broadcast domains to communicate. This wastes IP addresses. The VLAN aggregation function is introduced to save IP addresses while implementing communication between VLANs.

The VLAN aggregation function associates a super-VLAN with multiple sub-VLANs. A VLANIF interface can be created in the super-VLAN and be configured with an IP address. Interfaces in all the sub-VLANs use this IP address as the gateway address to communicate with interfaces in other VLANs. This reduces subnet IDs, subnet default gateway addresses, and subnet broadcast IP addresses. In a word, the VLAN aggregation function allows different broadcast domains to use the same subnet address, implements flexible addressing, and saves IP addresses.

Prerequisites

The sub-VLANs to be added to the super-VLAN have been created.

The super-VLAN has been configured using the aggregate vlan command.

Before running the access-vlan command, delete VLANIF interfaces from all the sub-VLANs.

Follow-up Procedure

Configure the sub-VLANs to implement Layer 2 communication between them.

Precautions

The super-VLAN must be different from all its sub-VLANs.

A VLAN can be added to only one super-VLAN.

If you run the access-vlan command multiple times in the same VLAN view, all the specified VLANs are added to the super-VLAN.

Example

# Add sub-VLAN20 and sub-VLAN30 to super-VLAN2.

<HUAWEI> system-view
[~HUAWEI] vlan batch 2 20 30 
[*HUAWEI] vlan 2
[*HUAWEI-vlan2] aggregate-vlan
[*HUAWEI-vlan2] access-vlan 20 30

aggregate-vlan

Function

The aggregate-vlan command configures a VLAN as a super-VLAN.

The undo aggregate-vlan command cancels the configuration.

By default, no VLAN is configured as a super-VLAN.

Format

aggregate-vlan

undo aggregate-vlan

Parameters

None

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The VLAN technology is widely applied to packet switching networks because it controls broadcast domains flexibly and is easy to deploy. Generally, a Layer 3 switch usually uses a Layer 3 logical interface in each VLAN to allow user hosts in different broadcast domains to communicate. This wastes IP addresses. The VLAN aggregation function is introduced to save IP addresses while implementing communication between VLANs.

The VLAN aggregation function associates a super-VLAN with multiple sub-VLANs. A VLANIF interface can be created in the super-VLAN and be configured with an IP address. Interfaces in all the sub-VLANs use this IP address as the gateway address to communicate with interfaces in other VLANs. This reduces subnet IDs, subnet default gateway addresses, and subnet broadcast IP addresses. In a word, the VLAN aggregation function allows different broadcast domains to use the same subnet address, implements flexible addressing, and saves IP addresses.

Prerequisites

Before configuring a VLAN as a super-VLAN, delete all physical interfaces from the VLAN.

Precautions

  • VLAN 1 cannot be configured as a super-VLAN.

  • A super VLAN cannot be configured as a guest VLAN, and vice versa.

  • The super-VLAN must be different from all its sub-VLANs.

  • After a VLAN is configured as a super-VLAN, no physical interface can be added to the VLAN.

Example

# Configure VLAN 2 as a Super-VLAN.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] aggregate-vlan
Related Topics

assign forward vlan-xlate

Function

The assign forward vlan-xlate command configures the uplink and downlink hash modes of the VLAN-XLATE table.

The undo assign forward vlan-xlate command cancels the configuration.

By default, the uplink and downlink hash modes of the VLAN-XLATE table are both crc32-lower.

NOTE:

Only the CE6850HI, CE6851HI, CE6855HI, CE6856HI, CE6850U-HI, CE6860EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support this command.

Format

assign forward vlan-xlate { egress | ingress } hash { crc16-lower | crc16-upper | crc32-lower | crc32-upper | lsb }

undo assign forward vlan-xlate { egress | ingress } hash [ crc16-lower | crc16-upper | crc32-lower | crc32-upper | lsb ]

Parameters

Parameter

Description

Value

{ egress | ingress }

  • egress: downlink
  • ingress: uplink

-

crc16-lower

Indicates the hash algorithm based on low-order bits of CRC16.

-

crc16-upper

Indicates the hash algorithm based on high-order bits of CRC16.

-

crc32-lower

Indicates the hash algorithm based on low-order bits of CRC32.

-

crc32-upper

Indicates the hash algorithm based on high-order bits of CRC32.

-

lsb

Indicates the hash algorithm based on the lowest bit of the key value.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a hash conflict in the VLAN-XLATE table occurs, run the assign forward vlan-xlate command to change the uplink and downlink hash modes of the VLAN-XLATE table to reduce hash conflicts.

Precautions

  • After the assign forward vlan-xlate command is used to configure the uplink and downlink hash modes of the VLAN-XLATE table, you must restart the device to make the configuration take effect.

  • In the uplink hash mode of the VLAN-XLATE table, the Layer 2 sub-interfaces, Layer 3 sub-interfaces, VXLAN tunnels, VBDIF interfaces, VLAN mapping, VLAN stacking, and VLAN range consume entry resources of the VLAN-XLATE table. If a hash conflict in the VLAN-XLATE table occurs, services will fail to be delivered. In this case, you are advised to run this command to change the hash algorithm or delete unused service configurations.

  • In the downlink hash mode of the VLAN-XLATE table, binding BDs to VNIs, QinQ sub-interfaces, VLAN mapping, VLAN stacking, and VLAN range consume entry resources of the VLAN-XLATE table. If a hash conflict in the VLAN-XLATE table occurs, services will fail to be delivered. In this case, you are advised to run this command to change the hash algorithm or delete unused service configurations.

Example

# Set the uplink hash mode of the VLAN-XLATE table to crc32-upper.

<HUAWEI> system-view
[~HUAWEI] assign forward vlan-xlate ingress hash crc32-upper

bandwidth (VLANIF interface view)

Function

The bandwidth command sets the bandwidth of a VLANIF interface.

The undo bandwidth command deletes the configured bandwidth of a VLANIF interface.

By default, the bandwidth of a VLANIF interface is 1000 Mbit/s.

Format

bandwidth bandwidth

undo bandwidth

Parameters

Parameter Description Value
bandwidth Specifies the bandwidth of a VLANIF interface. The value is an integer that ranges from 1 to 1000000, in Mbit/s.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

The bandwidth command ensures that the NMS can obtain the bandwidth of a VLANIF interface. The NMS can check the interface bandwidth through ifSpeed and ifHighSpeed in IF-MIB.
  • If the configured bandwidth is smaller than 4000 Mbit/s, ifSpeed and ifHighSpeed are respectively displayed as bandwidth x 1000 x 1000 and bandwidth.

  • If the configured bandwidth is equal to or larger than 4000 Mbit/s, ifSpeed and ifHighSpeed are respectively displayed as 4294967295 (0XFFFFFFFF) and bandwidth.

Example

# Set the bandwidth of VLANIF 2 to 10000 Mbit/s.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit
[*HUAWEI] interface vlanif 2
[*HUAWEI-Vlanif2] bandwidth 10000

damping time

Function

The damping time command sets the VLAN damping time on a VLANIF interface, that is, the delay before reporting a VLAN Down event to the VLANIF interface.

The undo damping time command restores the default dumping time.

The default damping time on a VLANIF interface is 0 seconds. That is, the VLANIF interface is notified immediately after the VLAN becomes Down.

Format

damping time delay-time

undo damping time

Parameters

Parameter

Description

Value

delay-time

Specifies the delay before reporting the VLAN Down event to a VLANIF interface.

The value ranges from 0 to 20, in seconds. The default value is 0.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Software upgrade or active/standby switchover on the switch may cause frequent status changes on VLANIF interfaces. To prevent network flapping, run the damping time command on VLANIF interfaces to configure the VLAN damping function.

When all interfaces in a VLAN become Down, the switch waits for a period specified by delay-time and then reports the VLAN Down event to the VLANIF interface.

Precautions

If any interface in the VLAN becomes Up within the delay time, the VLANIF interface remains Up.

You can use the display interface vlanif command to view the VLAN damping time.

If you run the damping time command multiple times in the same VLANIF interface view, only the latest configuration takes effect.

Example

# Set the VLAN damping time on VLANIF 10 to 10 seconds.

<HUAWEI> system-view
[~HUAWEI] vlan 10
[*HUAWEI-vlan10] quit
[*HUAWEI] interface vlanif 10
[*HUAWEI-Vlanif10] damping time 10

description (VLAN view)

Function

The description command sets the description of a VLAN.

The undo description command restores the default description of a VLAN.

By default, the description of a VLAN shows the VLAN ID. For example, the description of VLAN 2 is "VLAN 0002".

Format

description description

undo description

Parameters

Parameter

Description

Value

description

Specifies the description of a VLAN.

It is a string of 1 to 80 characters. The characters are case sensitive. Spaces are allowed.

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The description command is used to set the description of a VLAN, which is convenient for identifying, memorizing, and maintaining the VLAN.

The display vlan vlan-id verbose command can display the description of a specified VLAN.

Precautions

Set different descriptions for VLANs to distinguish.

If you run the description command multiple times in the same VLAN view, only the last configuration takes effect.

Example

# Set the description of VLAN 2 as "Huawei".

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] description Huawei
Related Topics

description (VLANIF interface view)

Function

The description command set the description of a VLANIF interface.

The undo description command restores the default description of a VLANIF interface.

Format

description description

undo description

Parameters

Parameter

Description

Value

description

Specifies the description of a VLANIF interface.

It is a string of 1 to 242 characters. The characters are case sensitive. Spaces are allowed.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To manage VLANIF interfaces conveniently, use the description command to set VLANIF interface descriptions. The description of a VLANIF interface helps you identify the VLANIF interface and know its functions.

You can use the display interface vlanif command to view the description of a VLANIF interface.

Precautions

The description of a VLANIF interface should provide useful information.

Set different descriptions for VLANIF interfaces to distinguish VLANIF interfaces.

If you run the description command multiple times in the same VLANIF interface view, only the latest configuration takes effect.

Example

# Set the description of VLANIF 2 to Huawei.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit
[*HUAWEI] interface vlanif 2
[*HUAWEI-Vlanif2] description Huawei

display default-parameter vlan

Function

The display default-parameter vlan command displays the default parameters of a VLAN.

Format

display default-parameter vlan vlan-id

Parameters

Parameter Description Value
vlan-id Displays the default parameters of a specified VLAN. The value is an integer ranging from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

A great number of VLANs are created on a device, and different features are configured for every VLAN. To know the default parameters of a VLAN, run the display default-parameter vlan command to specify the VLAN and view its default parameters. The default configurations do not change with VLAN configurations.

Prerequisites

The specified VLAN has been created.

Precautions

The default parameters of a VLAN do not change with the VLAN configuration.

Example

# Display the default parameters of VLAN 10.

<HUAWEI> display default-parameter vlan 10
  VLAN ID             : 10
  Type                : Common
  Status              : Undo shutdown
  Broadcast           : Forward
  Unknown-Multicast   : Forward
  Unknown-Unicast     : Forward
  Statistics          : Disable
  MAC learning        : Enable
  Property            : Default
  Description         : VLAN 0010
Table 7-42  Description of the display default-parameter vlan command output

Item

Description

VLAN ID

VLAN ID.

Type

VLAN type:
  • sub: sub-VLAN
  • super: super VLAN
  • Common: common VLAN
  • dynamic: dynamic VLAN
  • *common: management VLAN
  • mux: principal VLAN in the MUX-VLAN
  • mux-sub: subordinate VLAN in the MUX-VLAN
  • FCoE:FCoE VLAN

The default value is Common.

Status

VLAN status:
  • Undo shutdown
  • Shutdown

The default value is Undo shutdown.

Broadcast

Action on broadcast packets:
  • Forward
  • Discard

The default value is Forward.

Unknown-Multicast

Action on unknown multicast packets:
  • Forward
  • Discard

The default value is Forward.

Unknown-Unicast

Action on unknown unicast packets:
  • Forward
  • Discard

The default value is Forward.

Statistics

Whether collection of statistics about VLAN packets are enabled:
  • Enable
  • Disable

The default value is Disable.

MAC learning

Whether MAC address learning is enabled:
  • Enable
  • Disable

The default value is Enable.

Property

VLAN attribute:
  • backboneVLAN: backbone network VLAN
  • multicastVLAN: multicast VLAN without changing the VLAN attribute
  • userVLAN: multicast VLAN without changing the VLAN attribute
  • default: common VLAN

The default value is default.

Description

VLAN description that helps users learn VLAN functions

display forward entry l2

Function

The display forward entry l2 command displays traffic forwarding path resource data.

Format

display forward entry l2 interface interface-type interface-number vlan vlan-id [ inner-vlan vlan-id ] dst-mac mac-address src-mac mac-address [ slot slot-id ]

Parameters

Parameter Description Value
interface interface-type interface-number

Specifies an interface.

-

vlan vlan-id

Specifies the outer VLAN ID of packets.

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

inner-vlan vlan-id

Specifies the inner VLAN ID of packets.

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

dst-mac mac-address

Specifies the destination MAC address of packets.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

src-mac mac-address

Specifies the source MAC address of packets.

The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits.

slot slot-id

Specifies the slot ID.

The value is an integer or a character string. You can enter the question mark (?) and select the value as prompted.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When traffic is abnormal or an exception occurs on the device, you can run this command to check resource information on the device.

Example

# Display traffic forwarding path resource data on the CE6870EI, with the interface of Eth–Trunk 44, outer VLAN ID 1111, destination MAC address 2-2-2, and source MAC address 3-3-3.
<HUAWEI> display forward entry l2 interface eth-trunk 44 vlan 1111 dst-mac 2-2-2 src-mac 3-3-3 slot 4
Slot: 4
FEI:
    VLAN:
        VlanId: 1111
            MAC_Learn: Enable
    STP:
        STP Instance: 0
    PORT:
        Name: interface Eth-Trunk44
            Control Eth-Trunk ID: 5
            Forward Eth-Trunk ID: 5
            LACP Config: Disable
        Member:
        Interface 10GE4/0/14
            PVID: 0
            STP Protocol State: Block
            State: Up
        Interface 10GE4/0/15
            PVID: 0
            STP Protocol State: Block
            State: Up
    SMAC: 0003-0003-0003
        Learned Form: 40GE4/0/1
    DMAC: 0002-0002-0002
        Learned Form: 40GE4/0/2
SDK:
    Unit: 0
    VLAN:
        VlanId: 1111
        InLIF: 4114
            VSI: 17
            VLAN_EDIT_VID_1: 0
            VLAN_EDIT_VID_2: 0
            MAC_Learn: Enable
            USE_IN_LIF: 0
            FEC_LEARN_INFO: 0
        MCID: 4620
        OutLIF: 4114
            VLAN_EDIT_VID_1: 1111
            VLAN_EDIT_VID_2: 0
    PORT:
        Name: interface Eth-Trunk44
            Control Eth-Trunk ID: 5
            Forward Eth-Trunk ID: 5
        Member:
        Interface 10GE4/0/14
            Mod-Port: 1-10
            PVID: 1
            Vlandomain: 0
            Tpid1: 33024
            Tpid2: 33024
            Defaultlif: 0
            MAC_Learn: Enable
            Inegress_VLAN_Check: 1
            Egress_VLAN_Check: 1 
            Egress_STP_State: Forward
            Ingress_STP_State: Forward
        Interface 10GE4/0/15
            Mod-Port: 1-11
            PVID: 1
            Vlandomain: 0
            Tpid1: 33024
            Tpid2: 33024
            Defaultlif: 0
            MAC_Learn: Enable
            Inegress_VLAN_Check: 1
            Egress_VLAN_Check: 1 
            Egress_STP_State: Forward
            Ingress_STP_State: Forward
    SMAC: 0003-0003-0003
        Learned From Port: 10
    DMAC: 0002-0002-0002
        Learned From Port: 20
# Display traffic forwarding path resource data on the CE6850EI, with the interface of 10GE1/0/8, outer VLAN ID 1111, destination MAC address 2-2-2, and source MAC address 3-3-3.
<HUAWEI> display forward entry l2 interface 10ge 1/0/8 vlan 1111 dst-mac 2-2-2 src-mac 3-3-3 slot 1
Slot: 1
FEI:
    VLAN:
        VlanId: 1111
            MAC_Learn: Enable
    STP:
        STP Instance: 0
    PORT:
        Name: interface 10GE1/0/8
            PVID: 10
            STP Protocol State: Block
            State: Up
    SMAC: 0003-0003-0003
        Learned Form: 10GE1/0/8
    DMAC: 0002-0002-0002
        Learned Form: 10GE1/0/10
SDK:
    Unit: 0
    VLAN:
        VlanId: 1111
            MAC_Learn: Enable
    PORT:
        Name: interface 10GE1/0/8
            Mod-Port: 1-8
            PVID: 1
            IvidAction: 0
            OvidAction: 0
            Link State: Up
            Ingress STP: Forward
            Egress STP: Forward
            Newmacforward: 1
            Newmaccopytocpu: 0
            Newmaclearn: 1
            Movemacforward: 1
            Movemaccopytocpu: 0
            Movemaclearn: 1
            Staticmacmove: 1
    SMAC: 0003-0003-0003
        Learned From Mod-Port: 1-10
    DMAC: 0002-0002-0002
        Learned From Mod-Port: 1-20
# Display traffic forwarding path resource data on the CE6880EI, with the interface of 10GE1/0/8, outer VLAN ID 1111, destination MAC address 2-2-2, and source MAC address 3-3-3.
<HUAWEI> display forward entry l2 interface 10ge 1/0/8 vlan 1111 dst-mac 2-2-2 src-mac 3-3-3 slot 1 
Slot: 1
FEI:
    VLAN:
        VlanId: 1111
            MAC_Learn: Enable
    STP:
        STP Instance:0
    PORT:
        Name: interface 10GE1/0/8
            PVID: 1
            STP Protocol State: Block
            State: Up
    SMAC: 0003-0003-0003
        Learned Form: 10GE1/0/8
    DMAC: 0002-0002-0002
        Learned Form: 10GE1/0/10
SDK:
    Unit: 0
    VLAN:
        VlanId: 1111
            MAC_Learn: Enable
            CIB Flag: 1
            NewOuterVlan: 10
            NewInnerVlan: 10
            NewOuterPri: 1
            NewInnerPri: 2
            CauseId: 3
            VSI: 100
            SVP: 20
            MTU: 30
            VRF: 40
            ClassId: 1
            CounterID: 13
            MCID: 10
    PORT:
        Name: interface 10GE1/0/8
            MAC_Learn_Mode: 16
            VDCID: 1
            TPID: 10
            VSI: 10
            PVID: 10
            Forward_Type: 1
            TAG_Type: 0
            Discard_TAG_PKT: 12
            STP State: Forward
            Trunk_Enable: Disable
            TrunkID: -
                        Ingress STP: Forward
                        Egress STP: Forward
    SMAC: 0003-0003-0003
        Learned From Mod-Port: 1-10
    DMAC: 0004-0004-0004
        Learned From Mod-Port: 1-20
Table 7-43  Description of the display forward entry l2 command output

Item

Description

Slot

Slot ID.

FEI

FEI-side software table information.

SDK

Chip hardware table information.

VLAN

VLAN information:
  • MAC_Learn: MAC address learning status
  • InLIF: inbound Layer 2 logical interface
  • MCID: multicast group for transmitting BUM traffic in the VLAN
  • OutLIF: outbound Layer 2 logical interface

PORT

Data such as the control plane ID, forwarding plane ID, default VLAN ID, and STP status.

SMAC

Source MAC address.

DMAC

Destination MAC address.

display forward vlan-xlate hash mode

Function

The display forward vlan-xlate hash mode command displays the uplink and downlink hash modes of the VLAN-XLATE table.

NOTE:

Only the CE6850HI, CE6851HI, CE6855HI, CE6856HI, CE6850U-HI, CE6860EI, CE7850EI, CE7855EI, CE8850EI, and CE8860EI support this command.

Format

display forward vlan-xlate hash mode

Parameters

None

Views

All view

Default Level

1: Monitoring level

Usage Guidelines

When a hash conflict in the VLAN-XLATE table occurs, run the assign forward vlan-xlate command to change the uplink and downlink hash modes of the VLAN-XLATE table to reduce hash conflicts. Then you can run the display forward vlan-xlate hash mode command to check the configured uplink and downlink hash modes of the VLAN-XLATE table.

Example

# Display the uplink and downlink hash modes of the VLAN-XLATE table.

<HUAWEI> system-view
[~HUAWEI] display forward vlan-xlate hash mode
--------------------------------------------------------------------------                                                          
Direction         Configure forward mode      Current forward mode                                                                  
--------------------------------------------------------------------------                                                          
Ingress           crc32-upper                 crc32-lower                                                                           
Egress            crc32-upper                 crc32-lower                                                                           
-------------------------------------------------------------------------- 
Table 7-44  Description of the display forward vlan-xlate hash mode command output

Item

Description

Direction

  • Ingress: uplink
  • Egress: downlink

Configure forward mode

Configured uplink and downlink hash modes of the VLAN-XLATE table. If the configured uplink and downlink hash modes of the VLAN-XLATE table are different from the values of Current forward mode, the values of Current forward mode take effect after the device restarts.

Current forward mode

Uplink and downlink hash modes of the VLAN-XLATE table supported by the device.

display interface vlanif

Function

The display interface vlanif command displays the status and configuration of a VLANIF interface.

Format

display interface vlanif [ vlan-id | main ]

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of a VLAN.

The value is an integer and the value range depends on the range of existing VLANIF interfaces. You can enter the question mark (?) to obtain the range of VLAN IDs.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

main

displays the status and configuration of all VLANIF interfaces.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

To monitor an interface or locate an interface fault, you can use the display interface vlanif command to view the interface status, interface configuration, and traffic statistics on the interface.

Prerequisites

The specified VLANIF interface has been created.

Precautions

If vlan-id is not specified, the display interface vlanif command displays information about all VLANIF interfaces in the system.

Example

# Display the status and configuration of VLANIF 3.
<HUAWEI> display interface vlanif 3
Vlanif3 current state : UP (ifindex: 86)
Line protocol current state : UP
Last line protocol up time : 2012-11-02 15:52:11
Description:
Route Port,The Maximum Transmit Unit is 1500
Internet Address is 10.10.10.1/24
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 0025-9e95-7c3c
Physical is VLANIF 
Current system time: 2012-11-02 15:54:17
Last 300 seconds input rate 0 bits/sec, 0 packets/sec
Last 300 seconds output rate 0 bits/sec, 0 packets/sec
Input:  0 packets, 0 bytes
Output:  0 packets, 0 bytes
    Input bandwidth utilization  : --
    Output bandwidth utilization : --  
Table 7-45  Description of the display interface vlanif command output

Item

Description

Vlanif3 current state

Physical status of a VLANIF interface.
  • UP: indicates that the physical status of the interface is running properly.

  • DOWN: indicates that the physical connection of the interface is abnormal.

  • Administratively DOWN: The administrator has run the shutdown command on the interface.

Line protocol current state

Status of the link-layer protocol on a VLANIF interface.
  • UP: The link layer protocol of the interface is Up.

  • DOWN: indicates that the link layer protocol status of the interface is Down or no IP address is assigned to the interface.

Last line protocol up time

Indicates the last time the link-layer protocol of the VLANIF interface goes Up.

Description

Description of a VLANIF interface.

Route Port

Layer 3 interface.

The Maximum Transmit Unit

Maximum Transmission Unit (MTU) of the interface. Assume that the default MTU on a serial interface is 1500 bytes. Packets whose size is greater than the MTU are fragmented before being transmitted. If non-fragmentation is configured, these packets are discarded.

Internet Address

IP address of a VLANIF interface. If the VLANIF interface is not configured with an IP address, the system displays "Internet protocol processing : disabled"

IP Sending Frames' Format

Transmission format of IP packets.

Hardware address

MAC address of the VLANIF interface.

Current system time

Current system time.

If the time zone is configured and the daylight saving time is used, the time is in YYYY/MM/DD HH:MM:SS UTC±HH:MM DST format.

Physical

Physical type of an interface.

Last 300 seconds input rate/Last 300 seconds output rate

Rates of incoming and outgoing packets in the last 300 seconds, expressed in bits per second and packets per second.

This field is displayed only when traffic statistics collection has been configured on the VLANIF interface using the statistic enable command.

Input/Output

Total number of incoming/outgoing packets and bytes on an interface.

NOTE:
This field is displayed only when traffic statistics collection has been configured on the VLANIF interface using the statistic enable command.

Last 300 seconds input utility rate/Last 300 seconds output utility rate

Inbound/outbound bandwidth utilization in last 300 seconds.

display ip-subnet-vlan vlan

Function

Using the display ip-subnet-vlan vlan command, you can view information about IP subnet associated with VLANs.

Format

display ip-subnet-vlan vlan { all | vlan-id1 [ to vlan-id2 ] }

NOTE:

The CE6810LI does not support this command.

Parameters

Parameter

Description

Value

all

Displays IP subnets associated with all VLANs.

-

vlan-id1 [ to vlan-id2 ]

Displays IP subnets VLANs associated with specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end 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 the IP subnet associated with vlan-id1 is displayed.
  • The value of vlan-id1 is an integer that ranges from 1 to 4090.
  • The value of vlan-id2 is an integer that ranges from 1 to 4090.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After configuring IP subnet-based VLAN assignment, you can run the display ip-subnet-vlan vlan command to verify the configuration.

This command displays the VLAN ID, IP subnet index, IP subnet address, IP subnet mask, and 802.1p priority of the VLAN mapping an IP subnet.

When using the display ip-subnet-vlan vlan command, pay attention to the following points:

  • If all is specified, IP subnets associated with all VLANs are displayed.
  • If vlan vlan-id is specified, the IP subnet associated with the specified VLAN is displayed.
  • If vlan-id1 to vlan-id2 is specified, IP subnets associated with the specified VLANs are displayed.

Precautions

If no VLAN is associated with any IP subnet by using the ip-subnet-vlan command, the display ip-subnet-vlan vlan command does not display any information.

Example

# Display information about IP subnets associated with all VLANs.

<HUAWEI> display ip-subnet-vlan vlan all
 IP-subnet-VLAN count: 1                  total count: 1
 ----------------------------------------------------------------
 VLAN    Index  IpAddress            SubnetMask          Priority
 ----------------------------------------------------------------
 2           1  192.168.1.1          255.255.255.0              0
 ----------------------------------------------------------------
Table 7-46  Description of the display ip-subnet-vlan vlan command output

Item

Description

Vlan

ID of an IP subnet-based VLAN.

Index

Index of an IP subnet.

IpAddress

IP subnet address.

SubnetMask

IP subnet mask.

Priority

802.1p priority of the VLAN associated with an IP address or subnet.

IP-subnet-VLAN count

Total number of subnets in a specified VLAN.

total count

Total number of configured subnets in all VLANs.

display mac-vlan

Function

Using the display mac-vlan command, you can view the configuration of MAC address-based VLAN assignment.

Format

display mac-vlan { mac-address { all | mac-address } | vlan vlan-id }

Parameters

Parameter

Description

Value

all

Displays VLANs associated with all MAC addresses.

-

mac-address mac-address

Displays the VLAN associated with a specified MAC address.

The value is in H-H-H format. H is a hexadecimal number of 1 to 4 digits.

vlan vlan-id

Displays the configuration of a specified MAC address-based VLAN.

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

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After configuring MAC address-based VLAN assignment, you can run the display mac-vlan command to verify the configuration.

When using the display mac-vlan command, pay attention to the following points:

  • If mac-address mac-address is specified, the VLAN associated with the specified MAC address is displayed.
  • If mac-address all is specified, all VLANs associated with MAC addresses are displayed.
  • If vlan vlan-id is specified, configuration of the specified MAC address-based VLAN is displayed.

Precautions

If no VLAN is associated with any MAC address by using the mac-vlan mac-address command, the display mac-vlan command does not display any information.

Example

# Display the configuration of all MAC address-based VLANs.

<HUAWEI> display mac-vlan mac-address all
Total MAC VLAN address count: 1                                                                                                     
---------------------------------------------------                                                                                 
MAC Address     Mask            VLAN    Priority                                                                                    
---------------------------------------------------
0022-0033-0044  ffff-ffff-ffff  200     0
Table 7-47  Description of the display mac-vlan command output

Item

Description

MAC Address

MAC address associated with a VLAN.

MASK

Mask of a MAC address.

VLAN

ID of the VLAN associated with a MAC address.

Priority

802.1p priority of the VLAN associated with the MAC address.

display mux-vlan

Function

Using the display mux-vlan command, you can view the MUX VLAN configuration.

NOTE:

CE6880EI does not support this command.

Format

display mux-vlan

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After configuring the MUX VLAN function, you can use the display mux-vlan command to verify the configuration. This command displays the principal VLAN ID, subordinate VLAN ID, VLAN type, and interfaces in each VLAN.

Precautions

If no MUX VLAN is configured by using the mux-vlan command, the display mux-vlan command does not display any information.

Example

# Display the MUX VLAN configuration.

<HUAWEI> display mux-vlan
Principal Subordinate Type         Interface                                                                                        
-----------------------------------------------------------------------------                                                       
       80          -- principal    10GE1/0/1                                                                                       
       80         100 separate     10GE1/0/2 10GE1/0/3                                                                                                
       80          90 group        10GE1/0/4 10GE1/0/5                                                                                       
-----------------------------------------------------------------------------
Table 7-48  Description of the display mux-vlan command output

Item

Description

Principal

ID of a principal VLAN.

Subordinate

ID of a subordinate VLAN

Type

Type of a VLAN.
  • principal: indicates a principal VLAN.
  • group: indicates a subordinate group VLAN.
  • separate: indicates a subordinate separate VLAN.

Interface

Interfaces in a VLAN.

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.

Precautions

If a large number of mappings between interfaces and VLANs exist on the device, you are advised to specify the interface 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                                                                          
-------------------------------------------------------------------------------                                                     
10GE1/0/1               trunk           1  --                                                                                       
10GE1/0/2               access         20  --     
Table 7-49  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. By default, VLAN 1 is the default VLAN of all interfaces.

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.

display protocol-vlan interface

Function

The display protocol-vlan interface command displays the protocol-based VLAN configuration on a specified interface or all interfaces.

Format

display protocol-vlan interface { all | interface-type interface-number }

Parameters

Parameter

Description

Value

all

Displays the protocol-based VLANs configured on all interfaces.

-

interface-type interface-number

Displays the protocol-based VLAN configured on a specified interface.
  • interface-type specifies the type of an interface.
  • interface-number specifies the number of an interface.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After associating an interface with a protocol-based VLAN, you can use the display protocol-vlan interface command to verify the configuration.

Precautions

If no protocol-based VLAN is configured by using the protocol-vlan vlan command, the display protocol-vlan interface command displays no information.

Example

# Display the protocol-based VLAN associated with 10GE1/0/1.

<HUAWEI> display protocol-vlan interface 10ge 1/0/1
-------------------------------------------------------------------------------
 Interface                VLAN    Index        Protocol Type           Priority
-------------------------------------------------------------------------------
 10GE1/0/1                2       2            ipv4                    4   
Table 7-50  Description of the display protocol-vlan interface command output

Item

Description

Interface

Interface associated with a protocol-based VLAN.

VLAN

ID of a protocol-based VLAN.

Index

Index of a protocol.

Protocol Type

Type of a protocol.

Priority

802.1p priority of the VLAN associated with a protocol.

The value - indicates that the 802.1p priority cannot be configured.

display protocol-vlan vlan

Function

The display protocol-vlan vlan command displays the types and indexes of the protocols associated with VLANs.

Format

display protocol-vlan vlan { all | vlan-id1 [ to vlan-id2 ] }

Parameters

Parameter

Description

Value

all

Displays the protocols associated with all VLANs.

-

vlan-id1 [ to vlan-id2 ]

Displays the protocols associated with specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • vlan-id2 specifies the end VLAN ID.

The value of vlan-id1 is an integer that ranges from 1 to 4094.

vlan-id2 is an integer that ranges from 1 to 4094. The value of vlan-id2 must be greater than or equal to the value of vlan-id1.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring protocol-based VLANs, you can use the display protocol-vlan vlan command to verify the configuration.

Example

# Display types and indexes of protocols associated with VLANs.

<HUAWEI> display protocol-vlan vlan all
----------------------------------------------------------------
 VLAN           Protocol Index    Protocol Type
----------------------------------------------------------------
 2              2                 ipv4                              
Table 7-51  Description of the display protocol-vlan vlan command output

Item

Description

VLAN

ID of a protocol-based VLAN.

Protocol Index

Index of a protocol.

Protocol Type

Type of a protocol.

display sub-vlan

Function

The display sub-vlan command displays information about sub-VLAN entries.

Format

display sub-vlan [ vlan-id ]

Parameters

Parameter Description Value
vlan-id

Specifies the VLAN ID of a sub-VLAN.

When multiple VLANs are configured on a device, you are recommended to specify the VLAN ID so that you can view information about a specific sub-VLAN.

The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After VLAN aggregation is configured on a device, you can determine whether VLAN aggregation has been correctly configured by running the display sub-vlan command to check information about sub-VLANs and check which sub-VLANs are contained in a super-VLAN.

When using the display sub-vlan command, note the following issues:

  • If vlan-id is not specified, information about all sub-VLANs on the device is displayed.

  • If vlan-id is specified, information about a specific sub-VLAN is displayed.

Before running the display sub-vlan command, ensure that the device is configured with sub-VLANs. Otherwise, no command output is displayed.

Example

# Display information about all sub-VLANs.

<HUAWEI> display sub-vlan
VLAN ID   Super-VLAN
------------------------
10        40
20        40
30        40  
Table 7-52  Description of the display sub-vlan command output

Item

Description

VLAN ID

Existing sub-VLAN on the device.

Super-VLAN

Super-VLAN that the sub-VLAN belongs to.

Related Topics

display super-vlan

Function

The display super-vlan command displays information about super-VLAN entries.

Format

display super-vlan [ vlan-id ]

Parameters

Parameter Description Value
vlan-id

Specifies the VLAN ID of a super-VLAN.

When multiple VLANs are configured on a device, you are recommended to specify the VLAN ID so that you can view information about a specific super-VLAN.

The value is an integer ranging from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After VLAN aggregation is configured on a device, you can determine whether VLAN aggregation has been correctly configured by running the display super-vlan command to check information about super-VLANs and check which sub-VLANs are contained in a super-VLAN.

When using the display super-vlan command, note the following issues:

  • If vlan-id is not specified, information about all super-VLANs on the device is displayed.

  • If vlan-id is specified, information about a specific super-VLAN is displayed.

Before running the display super-vlan command, ensure that the device is configured with super-VLANs. Otherwise, no command output is displayed.

Example

# Display information about all super-VLANs.

<HUAWEI> display super-vlan
VLAN ID   Sub-VLAN
------------------------
40        10 20 30
Table 7-53  Description of the display super-vlan command output

Item

Description

VLAN ID

Existing super-VLAN on the device.

Sub-VLAN

Sub-VLAN in the super-VLAN.

Related Topics

display vlan

Function

The display vlan command displays information about VLANs.

The display vlan verbose command displays detailed information about a specified VLAN, including the ID, type, description, and status of the VLAN, status of the traffic statistics function, interfaces in the VLAN, and mode in which the interfaces are added to the VLAN.

The display vlan statistics command displays the traffic statistics on interfaces in a specified VLAN.

The display vlan summary command displays the summary of all VLANs in the system.

The display vlan vlan-name command displays information about the VLAN with a specified name.

Format

display vlan [ vlan-id [ verbose ] ]

display vlan [ vlan-id [ statistics [ slot slot-id ] ] ]

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

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of a VLAN.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

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, except reserved VLAN IDs, which can be configured using the vlan reserved command.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

statistics

Displays traffic statistics on interfaces in a specified VLAN.

-

slot slot-id

Displays traffic statistics in a VLAN on the device with a specified stack ID.

The default value is 1 on an unstacked switch; the value depends on the number of stacked switches.

summary

Displays summary of all VLANs.

-

verbose

Displays detailed information about a specified VLAN.

If verbose is not specified, only brief information about the VLAN is displayed.

-

vlan-name vlan-name Specifies a VLAN name.

The name is a string of 1 to 31 case-sensitive characters, spaces not supported.

When double quotation marks are used around the string, spaces are allowed in the string.

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.

Prerequisites

Before using the display vlan vlan-id statistics command, run the statistic enable (vlan view) command in the corresponding VLAN view to enable the traffic statistics function in the VLAN.

Precautions

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

VLAN statistics in the outbound direction are based on VLAN tags. If the device is configured with VLAN mapping or VLAN stacking, VLAN statistics are collected based on the modified VLAN tag.

Example

# Display brief information about all VLANs.

<HUAWEI> display vlan
The total number of vlans is : 4                                                                                                    
--------------------------------------------------------------------------------                                                    
U: Up;         D: Down;         TG: Tagged;         UT: Untagged;                                                                   
MP: Vlan-mapping;               ST: Vlan-stacking;                                                                                  
#: ProtocolTransparent-vlan;    *: Management-vlan;                                                                                 
MAC-LRN: MAC-address learning;  STAT: Statistic;                                                                                    
BC: Broadcast; MC: Multicast;   UC: Unknown-unicast;                                                                                
FWD: Forward;  DSD: Discard;                                                                                                        
--------------------------------------------------------------------------------                                                    
                                                                                                                                    
VID          Ports                                                                                                                  
--------------------------------------------------------------------------------                                                    
   1         UT:10GE1/0/1(U)   10GE1/0/2(U)                                                        
   2         UT:10GE1/0/3(D)                                                                                                         
   4                                                                                                                                
  10                                                                                                                                
                                                                                                                                    
VID  Type     Status  Property  MAC-LRN STAT    BC  MC  UC  Description                                                             
--------------------------------------------------------------------------------                                                    
   1 common   enable  default   enable  disable FWD FWD FWD VLAN 0001                                                               
   2 common   enable  default   enable  disable FWD FWD FWD VLAN 0002                                                               
   4 common   enable  default   enable  disable FWD FWD FWD VLAN 0004                                                               
  10 common   enable  default   enable  disable FWD FWD FWD VLAN 0010

# 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                  : Up                                                                                                  
                                                                                                                                    
  ----------------                                                                                                                  
  Tagged        Port: 10GE1/0/1                                                                                                       
  ----------------                                                                                                                  
  Active  Tag   Port: 10GE1/0/1                                                                                                       
---------------------                                                                                                               
Interface                   Physical                                                                                                
10GE1/0/1                   UP

# Display interface traffic statistics in VLAN 10.

<HUAWEI> display vlan 10 statistics
 Board: 1                                                                       
 VLAN:  10                                                                      
 --------------------------------------------------------------------------     
 Item                                   Packets                       Bytes     
 --------------------------------------------------------------------------     
Inbound                                       0                           0     
Outbound                                      0                           0     
 

# Display summary of all VLANs.

<HUAWEI> display vlan summary                                                
Number of static VLAN: 11
VLAN ID: 1 to 4 10 to 12 20 30 40 50

Number of dynamic VLAN: 0
VLAN ID:

Number of service VLAN: 0
VLAN ID:
Table 7-54  Description of the display vlan command output

Item

Description

The total number of vlans is

Total number of VLANs.

U: Up

The interface is Up.

D: Down

The interface is Down.

TG: Tagged

Tagged packets.

UT: Untagged

Untagged packets.

MP: Vlan-mapping

VLAN Mapping.

ST: Vlan-stacking

VLAN stacking.

#: ProtocolTransparent-vlan

Transparent transmission of protocol packets in a VLAN.

*: Management-vlan

Management VLAN.

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

  • enable: MAC addresses learning is enabled.

STAT: Statistic
Whether statistics about VLAN packets are enabled:
  • disable: Statistics about VLAN packets are disabled.
  • enable: Statistics about VLAN packets are enabled.
BC: Broadcast
Whether broadcast packets are forwarded:
  • forward: forwards broadcast packets.
  • discard: discards broadcast packets.
MC: Multicast
Whether multicast packets are forwarded:
  • forward: forwards multicast packets.
  • discard: discards multicast packets.
UC: Unknown-unicast
Whether unknown unicast packets are forwarded:
  • forward: forwards unknown unicast packets.
  • discard: discards unknown unicast packets.

VID or VLAN ID

ID of a VLAN.

Type or VLAN Type

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

  • group: group subordinate VLAN used in the MUX VLAN function

  • separate: separate subordinate VLAN used in the MUX VLAN function

  • super: super-VLAN used for VLAN aggregation

  • sub: sub-VLAN used for VLAN aggregation

  • common: common VLAN.

  • *common: management VLAN.

  • carrier: TRILL carrier VLAN

  • FCoE: FCoE VLAN.

  • #common: VLAN used to transparently transmit protocol packets

Ports

Interfaces in a VLAN.

Status

Status of a VLAN. The value is always Enable.

Property

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

VLAN Name

Name of a VLAN.

Description

Description of a VLAN.

Broadcast

Whether the broadcast function is enabled in a VLAN.

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

MAC Learning

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

  • enable: MAC addresses learning is enabled.

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.

VLAN State

Status of the VLAN:
  • 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

Interfaces that dynamically join a VLAN in tagged or untagged mode.

Interface

Interface added to a VLAN.

Physical

Physical status of the interface added to a VLAN.

Board

Stack ID

Item

-

Packets

Number of incoming or outgoing packets.

Bytes

Number of bytes in incoming or outgoing packets.

Inbound

Total incoming traffic volume.

Outbound

Total outgoing traffic volume.

Number of static VLAN

Static VLAN.

Number of dynamic VLAN

Dynamic VLAN.

Number of service VLAN

Reserved VLAN.

display vlan reserved

Function

The display vlan reserved command displays information about reserved VLANs.

NOTE:

CE6880EI does not support this command.

Format

display vlan reserved

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view information about configured reserved VLANs, use this command. You can run this command to view information about the reserved VLANs in use and for next startup.

Example

# Display information about reserved VLANs.

<HUAWEI> display vlan reserved
Reserved VLAN info:                                                                                                                 
-------------------------------------------------                                                                                   
Current reserved VLAN  : 4064 - 4094                                                                                                
Future  reserved VLAN  : 4064 - 4094                                                                                                
------------------------------------------------- 
Table 7-55  Description of the display vlan reserved command output

Item

Description

Reserved VLAN info

The information about reserved VLAN.

Current reserved VLAN

Current reserved VLAN. To configure the reserved VLAN, run the vlan reserved command.

NOTE:

The configured reserved VLAN takes effect only after the device is restarted.

Future reserved VLAN

Reserved VLAN that takes effect after the device is restarted.

Related Topics

display vlan reserved for main-interface

Function

The display vlan reserved for main-interface command displays information about configured and used reserved VLANs of a main interface.

NOTE:

Only the CE6855HI, CE6856HI and CE7855EI support this command.

Format

display vlan reserved for main-interface

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

On the device, reserved VLANs can be configured for a Layer 3 main interface so that Layer 3 service data can be correctly forwarded. The reserved VLAN range configured by the vlan reserved for main-interface command can be used by only the Layer 3 main interface. You can run the display vlan reserved for main-interface command to check information about configured and used reserved VLANs of the main interface.

Example

# Display information about configured and used reserved VLANs of a main interface.
<HUAWEI> display vlan reserved for main-interface
---------------------------------------------------------------------------
StartVlanID        EndVlanID          Total              Used
---------------------------------------------------------------------------
15                 16                 2                  2
17                 18                 2                  2
34                 35                 2                  2
4056               4057               2                  2
4058               4059               2                  2
4060               4061               2                  2
4062               4063               2                  2
---------------------------------------------------------------------------
Table 7-56  Description of the display vlan reserved for main-interface command output

Item

Description

StartVlanID

Start reserved VLAN ID.

EndVlanID

End reserved VLAN ID.

Total

Number of reserved VLANs in the reserved VLAN range.

Used

Number of reserved VLANs used by the main interface in the reserved VLAN range.

display vlan reserved for main-interface resource

Function

The display vlan reserved for main-interface resource command displays information about reserved VLANs that main interfaces join.

NOTE:

Only the CE6855HI, CE6856HI and CE7855EI support this command.

Format

display vlan reserved for main-interface resource [ interface interface-type interface-number ]

Parameters

Parameter

Description

Value

interface interface-type interface-number

Displays information about reserved VLANs of the specified interface.

If this parameter is not specified, information about reserved VLANs of all main interfaces is displayed.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

On the device, reserved VLANs can be configured for a Layer 3 main interface so that Layer 3 service data can be correctly forwarded. The reserved VLAN range configured by the vlan reserved for main-interface command can be used by only the Layer 3 main interface. You can run the display vlan reserved for main-interface resource command to check information about reserved VLANs that main interfaces join.

Example

# Display information about reserved VLANs that all main interfaces join.
<HUAWEI> display vlan reserved for main-interface resource
-----------------------------------------
Interface            VlanID
-----------------------------------------
Eth-Trunk77          16
Eth-Trunk33          15
Eth-Trunk84          35
Eth-Trunk85          4056
Eth-Trunk88          4059
Eth-Trunk89          4060
Eth-Trunk90          4061
Eth-Trunk91          4062
Eth-Trunk99          4063
Eth-Trunk80          17
Eth-Trunk82          18
Eth-Trunk83          34
Eth-Trunk86          4057
Eth-Trunk87          4058
-----------------------------------------
Table 7-57  Description of the display vlan reserved for main-interface resource command output

Item

Description

Interface

Main interface.

VlanID

Reserved VLAN ID.

interface vlanif

Function

The interface vlanif command creates a VLANIF interface and displays the VLANIF interface view.

The undo interface vlanif command deletes a VLANIF interface.

By default, VLANIF interfaces are not created.

Format

interface vlanif vlan-id

undo interface vlanif vlan-id

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of the VLAN that a VLANIF interface belongs to.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a device needs to communicate with devices at the network layer, you can create a logical interface based on a VLAN on the device, namely, a VLANIF interface. A VLANIF interface is a network layer interface and can be configured with an IP address. The device then users the VLANIF interface to communicate with devices at the network layer.

Prerequisites

The specified VLAN has been created using the vlan command before you create a VLANIF interface.

Follow-up Procedure

Run the ip address to assign an IP address to the VLANIF interface.

Precautions

  • When the protocol layer status of the VLANIF interface is Up but the link layer status of the corresponding physical interface is in STP blocking state, the local device may not respond to protocol packets sent by the remote end. You need to run the protocol up-delay-time time-value command to configure the delay for the protocol layer of the interface to enter the Up state. Then the protocol layer status changes from Down to Up only when the link layer status is restored. This prevents protocol packets from being discarded. The recommended value of time-value is as follows: time-value ≥ STP hello interval x 2 + 1.

  • If the specified VLANIF interface exists, the interface vlanif command displays the VLANIF interface view directly.

  • In MUX VLAN cascading scenarios, the VLANIF interface corresponding to the principal VLAN can be created, but the VLANIF interface cannot forward traffic from sub-VLANs.

  • When a VLANIF interface is used as a management VLANIF interface where you can telnet to the device, the user VLAN ID cannot be the same as the management VLAN ID; otherwise, you will fail to telnet to the device.

Example

# Create VLANIF 2 and enter the VLANIF interface view.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] quit 
[*HUAWEI] interface vlanif 2
[*HUAWEI-Vlanif2]

ip pool (VLAN view)

Function

The ip pool command configures an IP address pool for a sub-VLAN.

The undo ip pool command deletes the IP address pool of a sub-VLAN.

By default, no IP address pool is configured for sub-VLANs.

Format

ip pool start-address [ to end-address ]

undo ip pool

Parameters

Parameter Description Value
start-address Specifies the start IP address in an IP address pool. It is in dotted decimal notation.
to end-address Specifies the end IP address in an IP address pool.

If end-address is not specified, only one IP address, that is, start-address, exists in the IP address pool.

It is in dotted decimal notation.

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After assigning an IP address to the super-VLAN by assigning the IP address to a VLANIF interface, you can specify the IP address range for users in the VLAN. In this manner, the ARP module filters out packets with IP addresses beyond the IP address range so that the number of ARP packets can be exactly controlled.

If the super VLAN is enabled with proxy ARP, the system directly sends an ARP Request packet from a user in the sub-VLAN to the destination sub-VLAN based on the IP address carried in the packet, which reduces broadcast traffic.

The ip pool command can be used to set an IP address pool for the sub-VLAN. In the IP address pool, a single IP address or a consecutive IP address segment can be configured, but inconsecutive IP address segments cannot be configured.

Prerequisites

After the preceding configuration is complete, run the aggregate-vlan command in the view of a VLAN to set the VLAN to the super-VLAN, and run the access-vlan command to set the VLANs that need IP address pools configured to be sub-VLANs of the super-VLAN.

Configuration Impact

After the ip pool command is run for a sub-VLAN, only ARP packets, including ARP request, ARP response, and proxy ARP, with the IP addresses in the IP address pool can be processed in the sub-VLAN.

Precautions

Before updating the IP address pool configured for a sub-VLAN, run the undo ip pool command to delete the existing one.

Example

# Configure an IP address pool for VLAN 20, with IP addresses ranging from 10.10.10.10 to 10.10.10.20.

<HUAWEI> system-view
[~HUAWEI] vlan batch 10 20 30
[*HUAWEI] vlan 10
[*HUAWEI-vlan10] aggregate-vlan
[*HUAWEI-vlan10] access-vlan 20 30
[*HUAWEI-vlan10] quit
[*HUAWEI] interface vlanif 10
[*HUAWEI-Vlanif10] ip address 10.10.10.2 24
[*HUAWEI-Vlanif10] quit
[*HUAWEI] vlan 20
[*HUAWEI-vlan20] ip pool 10.10.10.10 to 10.10.10.20

ip-subnet-vlan

Function

The ip-subnet-vlan command associates an IP subnet with a VLAN.

The undo ip-subnet-vlan command disassociates an IP subnet from a VLAN.

By default, a VLAN is not associated with any IP subnet.

NOTE:

The CE6810LI does not support this command.

Format

ip-subnet-vlan [ ip-subnet-index ] ip ip-address { mask | mask-length } [ priority priority ]

undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all }

Parameters

Parameter

Description

Value

ip-subnet-index

Specifies the index of an IP subnet. It can be set manually or automatically generated by the system according to the order in which IP subnets were associated with a VLAN.

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

ip ip-address { mask | mask-length }

Specifies the source IP address or network segment associated with a VLAN.
  • ip-address specifies the source IP address or IP subnet.

  • mask specifies the subnet mask.

  • mask-length specifies the mask length.

  • ip-address is in dotted decimal notation.

  • mask is in dotted decimal notation.

  • mask-length is an integer that ranges from 0 to 32.

priority priority

Specifies the 802.1p priority of the VLAN associated with an IP address or subnet.

NOTE:
CE6870EI does not support this parameter.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority. The default value is 0.

to ip-subnet-end

Specifies the end subnet index.

The value is an integer that ranges from 1 to 12 and must be greater than or equal to ip-subnet-index.

all

Disassociates all the IP subnets from a VLAN.

-

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The ip-subnet-vlan command associates IP subnets with VLANs so that packets from different subnets are transmitted in different VLANs. On a network, if only one service is deployed on each subnet, you can associate IP subnets with VLANs to simplify VLAN configuration. In addition, you can add, modify, and move users on subnets without changing the VLAN configuration.

Follow-up Procedure

Configure the interface to allow the IP subnet-based VLAN and enable IP subnet-based VLAN assignment.

Precautions

After an IP address or IP subnet is associated with a VLAN, it cannot be associated with other VLANs.

If you run the ip-subnet-vlan command multiple times in the same VLAN view, all the specified IP subnets are associated with the VLAN.

NOTE:

The IP subnet or the IP address associated with a VLAN cannot be a multicast network segment or multicast address.

The CE5810EI and CE5855EI support a maximum of 256 IP subnets, the CE6870EI supports a maximum of 16 IP subnets, and other models support 512 IP subnets.

Example

# Associate VLAN 3 with network segment 10.10.10.0/24 so that the packets originated from this segment can be transmitted in VLAN 3.

<HUAWEI> system-view
[~HUAWEI] vlan 3
[*HUAWEI-vlan3] ip-subnet-vlan ip 10.10.10.0 255.255.255.0

ip-subnet-vlan enable

Function

The ip-subnet-vlan enable command enables IP subnet-based VLAN assignment on an interface.

The undo ip-subnet-vlan enable command disables IP subnet-based VLAN assignment on an interface.

By default, IP subnet-based VLAN assignment is disabled on an interface.

NOTE:

The CE6810LI does not support this command.

Format

ip-subnet-vlan enable

undo ip-subnet-vlan enable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

IP subnets can be associated with VLANs so that packets from different subnets are transmitted in different VLANs. On a network, if only one service is deployed on each subnet, you can associate IP subnets with VLANs to simplify VLAN configuration. In addition, you can add, modify, and move users on subnets without changing the VLAN configuration.

If IP subnet-based VLAN assignment is enabled on an interface:
  • When receiving an untagged packet, the interface searches for the VLAN entry matching the source IP address of the packet. If a matching entry is found, the interface forwards the packet based on the matching VLAN ID and priority. If no matching entry is found, the interface uses other matching rules to forward the packet.
  • When receiving a tagged packet, the interface forwards the packet based on the port-based VLAN configuration.

Prerequisite

Run the command port link-type hybrid to configure the interface as a hybrid type.

Precautions

When multiple VLAN assignment methods are configured on the device, the device assigns VLANs based on priorities of these methods.

Example

# Enable IP subnet-based VLAN assignment.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] ip-subnet-vlan enable

mac-address (VLANIF interface view)

Function

The mac-address command configures a MAC address for an interface.

The undo mac-address command deletes the configured MAC address of an interface.

By default, the MAC address of a VLANIF interface must be the same as the system MAC address.

NOTE:

The CE6810LI does not support this command.

Format

mac-address mac-address

undo mac-address

Parameters

Parameter Description Value
mac-address Specifies the MAC address of an interface.

The value is in the format of H-H-H. Each H is a 4-digit hexadecimal number, such as 00e0 or fc01. If you enter fewer than four digits for an H, the system adds 0s before the input digits. For example, if you enter e0, 00e0 is displayed. The MAC address cannot be set to all 0s, all 1s, or a multicast MAC address.

  • On the CE6870EI, 16 virtual MAC addresses in the range from 0000-5e00-0100 to 0000-5e00-01ff are supported.

  • On the CE6880EI, 512 MAC addresses, other than the system MAC addresses, are supported, including eight virtual MAC addresses in the range from 0000-5e00-0100 to 0000-5e00-02ff.

  • Other devices support a maximum of 500 MAC addresses, including any unicast MAC addresses and virtual MAC addresses in the range from 0000-5e00-0100 to 0000-5e00-01ff.
NOTE:

In a scenario where the M-LAG dual-gateway is deployed, only virtual MAC addresses can be configured for a VLANIF interface.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A virtual MAC address is manually configured for a VLANIF interface in a scenario where the M-LAG dual-gateway is deployed. When M-LAG master and slave devices function as Layer 3 gateways, VLANIF interfaces corresponding to M-LAG member interfaces must have the same IP address and virtual MAC address. You can use the following methods:
  • Create a VRRP group on VLANIF interfaces and configure the same virtual IP address and virtual MAC address for VLANIF interfaces corresponding to M-LAG member interfaces of M-LAG master and slave devices.
  • Configure the same IP address and run the mac-address command to configure the same virtual MAC address for VLANIF interfaces corresponding to M-LAG member interfaces of M-LAG master and slave devices.

Configuration Impact

  • After the MAC address of an interface is changed, the device sends gratuitous ARP packets to update the mapping between MAC addresses and interfaces.

  • If you run the mac-address command multiple times, only the latest configuration takes effect.

Example

# Configure the virtual MAC address 0000-5e00-0101 for VLANIF 2.

<HUAWEI> system-view
[~HUAWEI] interface vlanif 2
[~HUAWEI-Vlanif2] mac-address 0000-5e00-0101

mac-vlan enable

Function

The mac-vlan enable command enables MAC address-based VLAN assignment on an interface.

The undo mac-vlan enable command disables MAC address-based VLAN assignment on an interface.

By default, MAC address-based VLAN assignment is disabled on an interface.

Format

mac-vlan enable

undo mac-vlan enable

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If user devices move frequently on a network, you can use the mac-vlan mac-address command to associate MAC addresses with VLANs. When a user moves, you do not need to assign a VLAN to the user again. This improves security and access flexibility on the network. To enable an interface to forward packets based on associations between MAC addresses and VLANs, you must run the mac-vlan enable command to enable MAC address-based assignment on the interface.

If MAC address-based assignment is enabled on an interface:
  • When receiving an untagged packet, the interface searches for the VLAN entry matching the source MAC address of the packet. If a matching entry is found, the interface forwards the packet using the VLAN ID and priority in the entry. If no matching entry is found, the interface uses other matching rules to forward the packet.
  • When receiving a tagged packet, the interface forwards the packet based on the port-based VLAN configuration.

Precautions

  • The interface where MAC address-based VLAN assignment is to be enabled is a hybrid interface.

  • If the device supports both MAC address-based VLAN assignment and port-based VLAN assignment, MAC address-based VLAN assignment is used preferentially. However, port-based VLAN assignment is often used.

  • When MAC address-based assignment is configured on the CE6870EI, running the mac-vlan enable or undo mac-vlan enable command may cause few packets to be discarded. Exercise caution when you run this command.

Example

# Enable MAC address-based VLAN assignment on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] mac-vlan enable

mac-vlan mac-address

Function

The mac-vlan mac-address command associates a MAC address with a VLAN.

The undo mac-vlan mac-address command cancels the association between MAC addresses and VLANs.

By default, the MAC addresses are not associated with VLANs.

Format

mac-vlan mac-address mac-address [ priority priority ]

undo mac-vlan mac-address { all | mac-address }

Parameters

Parameter

Description

Value

mac-address

Specifies the MAC address to be associated with a VLAN.

The value is in H-H-H format. H is a hexadecimal number of 4 digits, for example, 00e0 and fc01. If you enter fewer than four digits, 0s are prefixed to the input digits. For example, if you enter e0, the system changes e0 to 00e0. The MAC address cannot be 0000-0000-0000, FFFF-FFFF-FFFF, or a multicast MAC address.

priority priority

Specifies the 802.1p priority of the VLAN to be associated with a MAC address.

NOTE:
CE6870EI does not support this parameter.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority. The default value is 0.

all

Specifies all the MAC addresses associated with a VLAN.

-

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If user devices move frequently on a network, you can use the mac-vlan mac-address command to associate MAC addresses with VLANs. The CE8800, CE7800, CE6800, and CE5800 series switches then assigns VLANs to packets based on source MAC addresses of packets. Before forwarding a packet, the CE8800, CE7800, CE6800, and CE5800 series switches tags the packet with the VLAN associated with the source MAC address. When a user moves, you do not need to assign a VLAN to the user again. This improves security and access flexibility on the network.

Follow-up Procedure

Add an interface to the VLAN and enable MAC address-based VLAN assignment on the interface.

Precautions

  • Before deleting a VLAN associated with MAC addresses, run the undo mac-vlan mac-address command to disassociate all the MAC addresses from the VLAN.

  • After a MAC address is associated with a VLAN, it cannot be associated with other VLANs.

  • When MAC address-based VLAN assignment is used, the priority of packets with the VLAN ID of 0 cannot be modified.

  • If you run the mac-vlan mac-address command multiple times in the same VLAN view, all the specified MAC addresses are associated with the VLAN.

Example

# Associate MAC address 22-33-44 with VLAN 100.

<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] mac-vlan mac-address 22-33-44

management-vlan

Function

Using the management-vlan command, you can configure a VLAN as a management VLAN.

Using the undo management-vlan command, you can cancel the configuration.

By default, no VLAN is configured as a management VLAN.

Format

management-vlan

undo management-vlan

Parameters

None

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To use a network management system to manage multiple devices, create a VLANIF interface on each device and configure a management IP address for the VLANIF interface. You can then log in to a device and manage it using its management IP address. If a user-side interface is added to the VLAN, users connected to the interface can also log in to the device. This brings security risks to the device.

After a VLAN is configured as a management VLAN, no access interface or dot1q-tunnel interface can be added to the VLAN. An access interface or a dot1q-tunnel interface is connected to users. The management VLAN forbids users connected to access and dot1q-tunnel interfaces to log in to the device, improving device performance.

Follow-up Procedure

Create a VLANIF interface corresponding to the VLAN and configure a management IP address on the VLANIF interface.

Precautions

VLAN 1 cannot be configured as an mVLAN.

You can run the display vlan command to view the management VLAN configuration. In the command output, the VLAN marked with a * is the management VLAN.

After a VLAN is configured as a management VLAN, only trunk and hybrid interfaces can be added to the VLAN.

Example

# Configure VLAN 100 as a management VLAN.

<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] management-vlan
Related Topics

mtu (VLANIF interface view)

Function

Using the mtu command, you can set the maximum transmission unit (MTU) of a VLANIF interface.

Using the undo mtu command, you can restore the default MTU of a VLAN interface.

By default, the MTU of a VLAN interface is 1500 bytes.

Format

mtu mtu

undo mtu

Parameters

Parameter

Description

Value

mtu

Specifies the MTU of a VLANIF interface.

The value is an integer that ranges from 46 to 9216, in bytes.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

MTU is short for maximum transmission unit. An MTU value determines the maximum number of bytes each time a sender can send. If the size of packets exceeds the MTU supported by a transit node or a receiver, the transit node or receiver fragments the packets or even discards them, aggravating the network transmission load. To avoid this problem, set the MTU value of the VLANIF interface.

Precautions

The MTU refers to the maximum length of the Layer 3 IP header and subsequent data frames, excluding the Layer 2 frame header.

Example

# Set the MTU of the VLANIF interface to 1492 bytes.

<HUAWEI> system-view
[~HUAWEI] interface Vlanif 100
[*HUAWEI-Vlanif100] mtu 1492

mux-vlan

Function

The mux-vlan command configures a VLAN as a principal VLAN.

The undo mux-vlan command cancels the configuration.

By default, no VLAN is configured as a principal VLAN.
NOTE:

CE6880EI does not support this command.

Format

mux-vlan

undo mux-vlan

Parameters

None

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All users on the data center network can access external networks. The administrator wants to allow some users to communicate with each other but isolate other users from one another.

The MUX VLAN function is introduced to solve this problem. This function involves the following VLANs:

  • Principal VLAN: allows member interfaces to communicate with each other and with interfaces in subordinate VLANs.
  • Subordinate VLAN
    • Subordinate separate VLAN: allows member interfaces to communicate with only interfaces in the principal VLAN. An interface in a subordinate separate VLAN cannot communicate with interfaces in the same VLAN or other subordinate VLANs.
    • Subordinate group VLAN: allows member interfaces to communicate with interfaces in the same VLAN and interfaces in the principal VLAN. An interface in a subordinate group VLAN cannot communicate with interfaces in other subordinate VLANs.

According to features of the MUX VLAN, the enterprise can add the interfaces connecting to external networks to the principal VLAN, add users who are allowed to communicate to a subordinate group VLAN, and add users who need to be isolated to a subordinate separate VLAN. Users are then allowed to access the servers but isolated from one another. This saves VLAN IDs on the enterprise network and facilitates network management.

Prerequisites

The VLAN to be configured as a principal VLAN is not a super-VLAN, a sub-VLAN, or a subordinate VLAN.

Follow-up Procedure

Configure subordinate VLANs for the principal VLAN and enable the MUX VLAN function on interfaces.

Precautions

If a VLAN has been configured as a principal VLAN, it cannot be used to configure Super-VLAN, Sub-VLAN, VLAN mapping, or VLAN stacking.

If a VLAN has been configured as a principal VLAN, it cannot be configured as a subordinate VLAN of another principal VLAN.

MAC-Forced-Forwarding (MFF) and proxy ARP cannot be configured in the principal VLAN.

Example

# Configure VLAN 5 as a principal VLAN.

<HUAWEI> system-view
[~HUAWEI] vlan 5
[*HUAWEI-vlan5] mux-vlan

name (VLAN view)

Function

The name command configures a name for a VLAN.

The undo name command deletes a configured VLAN name.

By default, a VLAN does not have a name.

Format

name vlan-name

undo name

Parameters

Parameter Description Value
vlan-name Specifies the VLAN name. The name is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

If a device is configured with multiple VLANs for transmitting different services, you can name the VLANs in their corresponding VLAN views to facilitate service management. In this manner, you can check the deployed services of a VLAN by the VLAN name.

After VLANs are named, you can run the vlan vlan-name command in the system view to enter the view of a specific VLAN, and then check or modify the configuration of the VLAN.

Example

# Create VLAN 2, which is used to transmit voice services, and name it as voice.

<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] name voice
Related Topics

ping mac

Function

The ping mac command enables the system to monitor connectivity between the local device and the destination device. This detection is called GMAC ping.

NOTE:

CE6880EI does not support this command.

Format

ping mac mac-address vlan vlan-id [ interface interface-type interface-number | -c count | -s packetsize | -t timeout ] *

Parameters

Parameter Description Value
mac-address Specifies the MAC address of the destination node. The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. The value cannot be a broadcast or multicast MAC address.
vlan vlan-id Specifies the ID of a VLAN. The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
interface-type interface-number Specifies the outbound interface on the local device for sending ping packets.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

If this parameter is specified and the interface is in the specified VLAN, the device sends ping packets through the interface.

If this parameter is not specified, the device searches the MAC address table based on the specified destination MAC address and VLAN ID.

  • If the forwarding entry is found, the device sends ping packets according to the entry.

  • If the forwarding entry is not found, the device broadcasts ping packets in the VLAN.

-
-c count Specifies the number of ping attempts. The value is an integer that ranges from 1 to 4294967295. The default value is 5.
-s packetsize Specifies the size of a ping packet. The value is an integer that ranges from 95 to 9000, in bytes. The default value is 95.
-t timeout Specifies the timeout interval for waiting for a response packet. The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 2000 ms.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

To use GMAC ping to detect connectivity, use the ping mac command.

Prerequisites

GMAC ping has been enabled using the ping mac enable command.

Example

# Ping the device with the MAC address of 0001-0300-0204. Send two ping packets with the size of 112 bytes each. The device is in VLAN 10.

<HUAWEI> system-view
[~HUAWEI] ping mac enable
[*HUAWEI] commit
[~HUAWEI] ping mac 0001-0300-0204 vlan 10 -c 2 -s 112
Pinging 0001-0300-0204 with 112 bytes of data:
Reply from 0001-0300-0204: byte = 112 time = 9ms
Reply from 0001-0300-0204: byte = 112 time = 11ms
Packets: Sent = 2, Received = 2, Lost = 0 (0% Loss)
Minimum = 9ms, Maximum = 11ms, Average = 10ms
Table 7-58  Description of the ping mac command output

Item

Description

Reply from 0001-0300-0204: byte = 112 time = 9ms

Size and response time of ping packets returned from the destination device.

When the response time is less than 1 ms, "time < 1ms" is displayed.

Packets: Sent = 2, Received = 2, Lost = 0 (0% Loss)

Number of sent ping packets, number of received reply packets, and number and percentage of discarded packets.

Minimum

Minimum round-trip time (RTT).

Maximum

Maximum RTT.

Average

Average RTT.

Related Topics

ping mac enable

Function

The ping mac enable command enables GMAC ping.

The undo ping mac enable command disables GMAC ping.

By default, GMAC ping is disabled.

NOTE:

CE6880EI does not support this command.

Format

ping mac enable

undo ping mac enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement the following functions, use the ping mac enable command:

  • Implement GMAC ping.

  • Enable the device to respond to received GMAC ping packets.

Example

# Enable GMAC ping.

<HUAWEI> system-view
[~HUAWEI] ping mac enable
Related Topics

port

Function

The port command configures a VLAN as the default VLAN of an interface and adds the interface to the VLAN.

The undo port command restores the default VLAN of an interface to the default setting.

By default, VLAN 1 is the default VLAN of all interfaces.

Format

port interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

undo port interface-type { interface-number1 [ to interface-number2 ] } &<1-10>

Parameters

Parameter

Description

Value

interface-type { interface-number1 [ to interface-number2 ] }

Configures the default VLAN for multiple interfaces.
  • interface-type specifies the type of interfaces.
  • interface-number1 specifies the number of the first interface.
  • interface-number2 specifies the number of the last interface. The value of interface-number2 must be greater than the value of interface-number1. The interface-number1 and interface-number2 parameters identify a range of interfaces.

If to interface-number2 is not specified, only one interface is specified. You can specify 10 interface ranges at one time.

-

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All frames sent from a user device are untagged, and frames sent from a remote device may also be untagged. However, the device processes only tagged frames. Therefore, the device adds a tag to each untagged frame received by an interface. The default VLAN ID of the interface can be added to untagged frames so that these frames are forwarded in the default VLAN.

After the default VLAN is specified for an access interface or a QinQ interface, packets passing through the interface are processed as follows:
  • When the interface receives an untagged frame, it tags the frame with the default VLAN ID.
  • When the interface receives a tagged packet:
    • If the interface is an access interface, it compares the VLAN ID of the packet with the default VLAN ID. If they are the same, the interface forwards the packets; otherwise, the interface discards the packets.
    • If the interface is a QinQ interface, it adds an outer tag with the default VLAN ID to the packet.
  • Before forwarding tagged packets, access and QinQ interfaces remove VLAN tags from the packets.

Prerequisites

The link-type of specified interfaces cannot be access or trunk before you run the port command.

Precautions

A super VLAN cannot be configured as the default VLAN of interfaces.

The undo port command deletes the default VLAN of the specified interfaces only if the current VLAN is the default VLAN of these interfaces.

If you run the port command multiple times in the same VLAN view, the VLAN is configured as the default VLAN of all the specified interfaces.

You can also run the port default vlan command in the interface view to configure the default VLAN for an interface. The two commands have the same function.

Example

# Configure VLAN 3 as the default VLAN of interfaces 10GE1/0/1 to 10GE1/0/4.
<HUAWEI> system-view
[~HUAWEI] vlan 3
[*HUAWEI-vlan3] port 10ge 1/0/1 to 1/0/4

port default vlan

Function

The port default vlan command configures the default VLAN of an interface and adds the interface to the VLAN.

The undo port default vlan command restores the default VLAN of an interface to the default setting.

By default, VLAN 1 is the default VLAN of all interfaces.

Format

port default vlan vlan-id

undo port default vlan [ vlan-id ]

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of the default VLAN.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All frames sent from a user device are untagged, and frames sent from a remote device may also be untagged. However, the device processes only tagged frames. Therefore, the device adds a tag to each untagged frame received by an interface. The default VLAN ID of the interface can be added to untagged frames so that these frames are forwarded in the default VLAN.

After the default VLAN is specified for an access interface or a QinQ interface, packets passing through the interface are processed as follows:
  • When the interface receives an untagged frame, it tags the frame with the default VLAN tag.
  • When the interface receives a tagged packet:
    • If the interface is an access interface, it compares the VLAN ID of the packet with the default VLAN ID. If they are the same, the interface forwards the packets; otherwise, the interface discards the packets.
    • If the interface is a QinQ interface, it adds an outer tag with the default VLAN ID to the packet.
  • Before forwarding tagged packets, access and QinQ interfaces remove VLAN tags from the packets.

Prerequisites

The VLAN to be configured as the default VLAN has been created.

The interface type is access or QinQ. If not, run the port link-type command to change the interface type.

Precautions

  • You can also run the port command in the VLAN view to configure the default VLAN of an interface. The two commands have the same function.
  • A super VLANor a guest VLAN cannot be configured as the default VLAN of interfaces.
  • This command is invalid on a member interface of an Eth-Trunk.
  • If you run the port default vlan command multiple times in the same interface view, only the latest configuration takes effect.
  • This configuration will be deleted automatically if the default VLAN is deleted in system view.

Example

# Configure VLAN 3 (an existing VLAN) as the default VLAN of 10GE1/0/1 (an access interface).

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port default vlan 3

port discard tagged-packet

Function

The port discard tagged-packet command configures an interface to discard incoming tagged frames.

The undo port discard tagged-packet command configures an interface not to discard incoming tagged frames.

By default, an interface does not discard incoming tagged frames.

Format

port discard tagged-packet

undo port discard tagged-packet

Parameters

None

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All frames sent from user devices are untagged, so user-side interfaces on a switch should not receive tagged frames. If a user connects a switching device to a user-side interface without permission, the user-side interface may receive tagged frames. The port discard tagged-packet command enables the user-side interface to discard untagged frames, preventing unauthorized access.

Precautions

This command is invalid for dot1q-tunnel interfaces.

Use this command only on interfaces connected to user devices. If you run this command on a network-side interface, users in the same VLAN may fail to communicate.

Example

# Configure 10GE1/0/1 to discard incoming tagged frames.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port discard tagged-packet
Related Topics

port hybrid pvid vlan

Function

The port hybrid pvid vlan command specifies the default VLAN ID of a hybrid interface.

The undo port hybrid pvid vlan command restores the default VLAN ID of a hybrid interface to the default setting.

By default, VLAN 1 is the default VLAN ID of all interfaces.

Format

port hybrid pvid vlan vlan-id

undo port hybrid pvid vlan [ vlan-id ]

Parameters

Parameter

Description

Value

vlan-id

Specifies the default VLAN ID of a hybrid interface.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An interface may receive untagged and tagged frames, but the device processes only tagged frames. Therefore, the device adds a tag to each untagged frame received by an interface. The default VLAN ID of the interface can be added to untagged frames so that these frames are forwarded in the default VLAN.

A hybrid interface processes Ethernet frames as follows:
  • When the interface receives an untagged frame, it tags the frame with the default VLAN ID. If the default VLAN ID is allowed by the interface, the interface accepts the frame. Otherwise, the interface discards the frame.
  • When the interface receives a tagged frame, it accepts the frame if the VLAN ID of the frame is in the list of allowed VLAN IDs. Otherwise, the interface discards the frame.
  • If the VLAN ID of a frame is allowed by the interface, the interface forwards the frame.

Prerequisites

The interface type is hybrid. If not, run the port link-type hybrid command to change the interface type.

The VLAN to be specified as the default VLAN has been created.

Precautions

This command is invalid on a member interface of an Eth-Trunk.

The port hybrid pvid vlan command only specifies the default VLAN for an interface but does not add the interface to the default VLAN.

If you run the port hybrid pvid vlan command multiple times in the same interface view, only the latest configuration takes effect.

This configuration will be deleted automatically if the default VLAN is deleted in system view.

Example

# Specify VLAN 5 as the default VLAN of 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] vlan 5
[*HUAWEI-vlan5] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid pvid vlan 5
Related Topics

port hybrid tagged vlan

Function

The port hybrid tagged vlan command adds a hybrid interface to the specified VLANs. Frames of the VLANs then pass through the hybrid interface in tagged mode.

The undo port hybrid vlan command removes a hybrid interface from the specified VLANs.

By default, a hybrid interface is added to VLAN 1 in untagged mode.

Format

port hybrid tagged vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }

undo port hybrid [ tagged ] vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Adds a hybrid interface to specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1.

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.

all

Adds a hybrid interface to all VLANs.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A hybrid interface can connect to either a user device or a switch. This command adds a hybrid interface to VLANs in tagged mode so that the hybrid interface allows frames from the VLANs to pass.

After a hybrid interface is added to VLANs in tagged mode, the interface forwards frames without removing VLAN tags of frames.

Prerequisites

If an interface is not a hybrid interface, run the port link-type hybrid command to change the interface type to hybrid.

Precautions

  • This command is invalid on a member interface of an Eth-Trunk.
  • A super VLAN or a guest VLAN cannot be specified in the command.
  • If you run the port hybrid tagged vlan command multiple times in the same interface view, the interface is added to all the specified VLANs.
  • If the interface is configured with VLAN mapping or QinQ, the trunk or hybrid interface is added to the mapped or stacked VLAN.

Example

# Add 10GE1/0/1 to VLAN 3 to VLAN 5 in tagged mode.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid tagged vlan 3 to 5

port hybrid untagged vlan

Function

The port hybrid untagged vlan command adds a hybrid interface to the specified VLANs. Frames of the VLANs then pass through the hybrid interface in untagged mode.

The undo port hybrid vlan command removes a hybrid interface from the specified VLANs.

By default, a hybrid interface is added to VLAN 1 in untagged mode.

Format

port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] }&<1-10> | all }

undo port hybrid [ untagged ] vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Adds a hybrid interface to specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1.

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.

all

Adds a hybrid interface to all VLANs.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A hybrid interface can connect to either a user device or a switch. When a hybrid interface is connected to a user device, it must be added to VLANs in untagged mode so that it sends untagged frames.

After a hybrid interface is added to VLANs in untagged mode, the interface removes VLAN tags of frames before sending frames.

Prerequisites

If an interface is not a hybrid interface, run the port link-type hybrid command to change the interface type to hybrid.

Precautions

  • This command is invalid on a member interface of an Eth-Trunk.
  • A super VLAN or a guest VLAN cannot be specified in the command.
  • If you run the port hybrid untagged vlan command multiple times in the same interface view, the interface is added to all the specified VLANs.
  • If the interface is configured with VLAN mapping or QinQ, the trunk or hybrid interface is added to the mapped or stacked VLAN.

Example

# Add 10GE1/0/1 to VLAN 3 to VLAN 5 in untagged mode.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] port hybrid untagged vlan 3 to 5

port mux-vlan enable

Function

The port mux-vlan enable command enables the MUX VLAN function on an interface.

The undo port mux-vlan enable command disables the MUX VLAN function on an interface.

By default, the MUX VLAN function is disabled on an interface.

NOTE:

CE6880EI does not support this command.

Format

port mux-vlan enable vlan { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo port mux-vlan enable [ vlan { vlan-id1 [ to vlan-id2 ] } &<1-10> ]

Parameters

Parameter Description Value
vlan { vlan-id1 [ to vlan-id2 ] }
Enables MUX VLAN for 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.

The value of vlan-id1 and vlan-id2 are integers that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The MUX VLAN function involves a MUX VLAN and several subordinate VLANs. Subordinate VLANs are classified into subordinate group VLANs and subordinate separate VLANs. Subordinate VLANs can communicate with the principal VLAN but cannot communicate with each other. Interfaces in a subordinate group VLAN can communicate with each other, and interfaces in a subordinate separate VLAN are isolated from each other.

The MUX VLAN function takes effect only after it is enabled on an interface.

Prerequisites

Before enable MUX VLAN function, complete the following task:
  • The port has been added to a principal or subordinate VLAN as an access, hybrid, or trunk interface.

Precautions

  • Disabling MAC address learning or limiting the number of learned MAC addresses on an interface affects the MUX VLAN function on the interface.

  • The MUX VLAN and port security functions conflict on an interface. That is, the port-security enable and port mux-vlan enable commands cannot be used on the same interface.

  • You can create a VLANIF interface for a principal VLAN, but cannot create a VLANIF interface for a subordinate group VLAN or separate VLAN.

  • The interface enabled with the MUX VLAN function cannot be added to other VLANs of the MUX VLAN group.

NOTE:
  • Access interfaces can be added to only one MUX VLAN group. Trunk and hybrid interfaces can be added to multiple MUX VLAN groups. An interface can be added to a maximum of 32 MUX VLAN groups.
  • If forwarding resources exceed the specifications, the port mux-vlan enable command can be configured. However, after the device restarts, the invalid configuration may become valid and valid configuration may become invalid.

Example

# Enable the MUX VLAN function in VLAN 2 on 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port mux-vlan enable vlan 2

port trunk allow-pass vlan

Function

The port trunk allow-pass vlan command adds a trunk interface to the specified VLANs.

The undo port trunk allow-pass vlan command deletes a trunk interface from the specified VLANs.

By default, a trunk interface is in VLAN 1.

Format

port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-40> | all }

undo port trunk allow-pass vlan { { vlan-id1 [ to vlan-id2 ] }&<1-40> | all }

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Adds a trunk interface to specified VLANs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. The value of vlan-id2 must be greater than or equal to the value of vlan-id1.

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.

all

Adds a trunk interface to all VLANs.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A trunk interface can join multiple VLANs and connects to a network device. To allow all packets from one or multiple VLANs to pass through a trunk interface, the trunk interface must be added to the VLANs using the port trunk allow-pass vlan command.

Prerequisites

The link-type of the interface is configured to trunk.

Precautions

  • The command cannot be used on a member interface of an Eth-Trunk.

  • If the interface is configured with VLAN mapping or QinQ, the trunk or hybrid interface is added to the mapped or stacked VLAN.

  • If you run the port trunk allow-pass vlan command multiple times in the same interface view, the interface is added to all the specified VLANs.

  • Running the undo port trunk allow-pass vlan command on an interface deletes the MAC address entries of the interface.

Example

# Add 10GE1/0/1 to VLANs 10 to 30.

<HUAWEI> system-view
[~HUAWEI] vlan batch 10 to 30
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 10 to 30

port trunk pvid vlan

Function

The port trunk pvid vlan command specifies the default VLAN for a trunk interface.

The undo port trunk pvid vlan command restores the default VLAN of a trunk interface to the default setting.

By default, VLAN 1 is the default VLAN of trunk interfaces.

Format

port trunk pvid vlan vlan-id

undo port trunk pvid vlan [ vlan-id ]

Parameters

Parameter

Description

Value

vlan-id

Specifies the default VLAN ID of a trunk interface.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An interface may receive untagged and tagged frames, but the device processes only tagged frames. Therefore, the device adds a tag to each untagged frame received by an interface. The default VLAN ID of the interface can be added to untagged frames so that these frames are forwarded in the default VLAN.

Prerequisites

The interface type is trunk. If not, run the port link-type trunk command to change the interface type.

The VLAN to be specified as the default VLAN has been created.

Follow-up Procedure

Add the trunk interface to the default VLAN.

Precautions

The port trunk pvid vlan command only specifies the default VLAN of a trunk interface but does not add the trunk interface to the default VLAN. A trunk interface forwards frames with the default VLAN ID only after it is added to the default VLAN using the port trunk allow-pass vlan command.

If you run the port trunk pvid vlan command multiple times in the same interface view, only the latest configuration takes effect.

This configuration will be deleted automatically if the default VLAN is deleted in system view.

Example

# Specify VLAN 5 as the default VLAN of 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] vlan 5
[*HUAWEI-vlan5] quit
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk pvid vlan 5

protocol-transparent

Function

Using the protocol-transparent command, you can enable transparent transmission of protocol packets in a VLAN.

Using the undo protocol-transparent command, you can disable transparent transmission of protocol packets in a VLAN.

By default, transparent transmission of protocol packets is disabled in a VLAN.

Format

protocol-transparent

undo protocol-transparent

Parameters

None

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a device used as the gateway or Layer 2 switch is enabled with snooping functions such as DHCP/IGMP/MLD snooping, the device needs to parse and process protocol packets such as ARP, DHCP, and IGMP packets. That is, protocol packets received by an interface are sent to the CPU for processing. The interface sends protocol packets without differentiating VLANs. If the preceding functions are deployed, protocol packets from all VLANs are sent to the CPU for processing.

If the device is a gateway of some VLANs or snooping functions are deployed in some VLANs, the device does not need to process protocol packets in other VLANs. After the protocol packets in other VLANs are sent to the CPU, the CPU needs to forward them to other devices. This mechanism is called software forwarding. Software forwarding affects the forwarding speed and efficiency of protocol packets because protocol packets need to be processed.

To address this issue, deploy transparent transmission of protocol packets in VLANs where protocol packets do not need to be processed. This function enables the device to transparently transmit the protocol packets in the VLANs to other devices, which improves the forwarding speed and efficiency.

The switch can transparently transmit the following protocol packets: ARP/BFD/DHCP/DHCPV6/IGMP/MLD/ND/PIM/PIMv6/PPPoE/TACACS.

Precautions

After the protocol-transparent command is executed in a VLAN view, the switch does not participate in protocol calculation in this VLAN.

Example

# Enable transparent transmission of protocol packets in VLAN 100.

<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] protocol-transparent
Related Topics

protocol-vlan

Function

The protocol-vlan command associates a protocol with a VLAN.

The undo protocol-vlan command disassociates a protocol from a VLAN.

NOTE:

The CE6810LI does not support this command.

Format

protocol-vlan [ protocol-index ] { at | ipv4 | ipv6 | ipx { ethernetii | llc | raw | snap } | mode { ethernetii-etype etype-id1 | llc dsap dsap-id ssap ssap-id | snap-etype etype-id2 } }

undo protocol-vlan { all | protocol-index1 [ to protocol-index2 ] }

undo protocol-vlan protocol-index { at | ipv4 | ipv6 | ipx { ethernetii | llc | raw | snap } | mode { ethernetii-etype etype-id1 | llc { dsap dsap-id ssap ssap-id } | snap-etype etype-id2 } }

Parameters

Parameter

Description

Value

protocol-index

Specifies the index of a protocol. If no protocol index is set, the CE8800, CE7800, CE6800, and CE5800 series switches generate an index based on the order in which protocols were associated with a VLAN.

The value is an integer that ranges from 0 to 15.

at

Associates the AppleTalk protocol with a VLAN.

-

ipv4

Associates the IPv4 protocol with a VLAN.

-

ipv6

Associates the IPv6 protocol with a VLAN.

-

ipx

Associates the Internetwork Packet Exchange (IPX) protocol with a VLAN. The encapsulation type of IPX packets can be Ethernet II, Logical Link Control (LLC), raw, or Subnetwork Access Protocol (SNAP).

-

ethernetii

Indicates that the encapsulation format of Ethernet frames is Ethernet II.

-

llc

Indicates that the encapsulation format of Ethernet frames is LLC.

-

raw

Indicates that the encapsulation format of Ethernet packets is raw.

-

snap

Indicates that the encapsulation format of Ethernet packets is SNAP.

-

mode

Indicates a user-defined protocol.

-

ethernetii-etype etype-id1

Specifies the protocol type ID that matches the Ethernet II encapsulation format.

The value ranges from 0x600 to ffff, excluding 800, 809b, 8137, and 86dd.

dsap dsap-id

Specifies the destination service access point.

The value ranges from 0x0 to ff.

ssap ssap-id

Specifies the source service access point.

The value ranges from 0x0 to ff.

snap-etype etype-id2

Specifies the protocol type ID that matches the SNAP encapsulation format.

The value ranges from 0x600 to ffff, excluding 800, 809b, 8137, and 86dd.

all

Disassociates all protocols from a VLAN.

-

protocol-index1

Specifies the start protocol index.

The value is an integer that ranges from 0 to 15.

protocol-index2

Specifies the end protocol index.

The value is an integer that ranges from 0 to 15.

The value of protocol-index2 must be greater than or equal to the value of protocol-index1.

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Protocol-based VLAN assignment is a method to associate protocols with VLANs. After a protocol is associated with a VLAN, packets of this protocol are transmitted in the associated VLAN. This function allows different protocol packets to be transmitted on different paths.

Follow-up Procedure

Add interfaces to the VLAN associated with protocols, and then associate the interfaces with the VLAN.

Precautions

The control VLAN of an ERPS ring cannot be associated with protocols.

The AppleTalk, IPv4, and IPv6 protocols can be associated with VLANs directly. When associating other protocols with a VLAN, set the encapsulation format.

When specifying the source and destination service access points, pay attention to the following points:

  • The dsap-id and ssap-id parameters cannot be set to 0xaa (indicating the SNAP encapsulation format) simultaneously.

  • The dsap-id and ssap-id parameters cannot be set to 0xe0 (indicating the LLC encapsulation format) simultaneously.

  • The dsap-id and ssap-id parameters cannot be set to 0xff (indicating the raw encapsulation format) simultaneously.

If you run the protocol-vlan command multiple times in the same VLAN view, all the specified protocols are associated with the VLAN.

Example

# Associate IPv4 with VLAN 3.

<HUAWEI> system-view
[~HUAWEI] vlan 3
[*HUAWEI-vlan3] protocol-vlan ipv4

protocol-vlan vlan

Function

The protocol-vlan vlan command associates an interface with a protocol-based VLAN.

The undo protocol-vlan vlan command disassociates an interface from a VLAN.

By default, an interface is not associated with any protocol-based VLAN.

NOTE:

The CE6810LI does not support this command.

Format

protocol-vlan vlan vlan-id { all | protocol-index1 [ to protocol-index2 ] } [ priority priority ]

undo protocol-vlan { all | vlan vlan-id { all | protocol-index1 [ to protocol-index2 ] [ priority priority ] } }

Parameters

Parameter

Description

Value

all

The all keywords in the command have different meanings:
  • The one followed by protocol-index1 indicates all protocols.
  • The one followed by vlan indicates all protocol-based VLANs.

-

vlan vlan-id

Specifies the ID of a protocol-based VLAN.

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

protocol-index1 [ to protocol-index2 ]

Specifies the start protocol index. If no protocol index is set, the CE8800, CE7800, CE6800, and CE5800 series switches generate an index based on the order in which protocols were associated with a VLAN.

The value is an integer that ranges from 0 to 15.

The value of protocol-index2 must be greater than or equal to the value of protocol-index1.

priority priority

Specifies the 802.1p priority of a VLAN.

NOTE:
CE6870EI does not support this parameter.

The value is an integer that ranges from 0 to 7. A larger value indicates a higher priority. The default value is 0.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Protocol-based VLAN assignment is a method to associate protocols with VLANs. After a protocol is associated with a VLAN, packets of this protocol are transmitted in the associated VLAN. This function allows different protocol packets to be transmitted on different paths.

After an interface is associated with a protocol-based VLAN:

  • When receiving an untagged packet, the interface searches for the VLAN entry matching the protocol type of the packet. If a matching entry is found, the interface forwards the packet based on the matching VLAN ID and priority. If no matching entry is found, the interface uses other matching rules to forward the packet.
  • When receiving a tagged packet, the interface forwards the packet based on the port-based VLAN configuration.

Prerequisites

The interface to be associated with a protocol-based VLAN is a hybrid interface.

The VLAN has been associated with a protocol using the protocol-vlan command.

Precautions

After an interface is associated with a protocol-based VLAN, the CE8800, CE7800, CE6800, and CE5800 series switches check the protocol type of a received packet and forwards the packet in the VLAN associated with the protocol.

Example

# Associate 10GE1/0/1 with VLAN 2, which is associated with the protocol with index 0.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type hybrid
[*HUAWEI-10GE1/0/1] protocol-vlan vlan 2 0

reset vlan statistics

Function

Using the reset vlan statistics command, you can clear traffic statistics in a specified VLAN.

Format

reset vlan vlan-id statistics [ slot slot-id ]

Parameters

Parameter

Description

Value

slot slot-id

Clears traffic statistics in a VLAN on the device with a specified stack ID.

The default value is 1 on an unstacked switch; the value depends on the number of stacked switches.

vlan-id

Specifies the ID of a VLAN.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used when you need to collect new packet statistics in a VLAN. After this command is executed, the packet count in the VLAN becomes 0.

Prerequisites

The traffic statistics function has been enabled in the VLAN by using the statistics enable (VLAN view) command.

Precautions

Traffic statistics cannot be restored after they are cleared. Exercise caution when you use the command.

Example

# Clear traffic statistics in VLAN 3.

<HUAWEI> system-view
[~HUAWEI] vlan 3
[*HUAWEI-vlan3] statistic enable
[*HUAWEI-vlan3] commit
[~HUAWEI-vlan3] quit
[~HUAWEI] quit
<HUAWEI> reset vlan 3 statistics

set shutdown default vlanif

Function

The set shutdown default vlanif command configures new VLANIF interfaces in shutdown state.

The undo set shutdown default vlanif command enables new VLANIF interfaces.

By default, a new VLANIF interface is enabled.

Format

set shutdown default vlanif

undo set shutdown default vlanif

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a new VLANIF interface does not need to be enabled immediately (the new VLANIF interface may affect services on the live network), run the set shutdown default vlanif command to shut down the VLANIF interface. Then the VLANIF interfaces that are created subsequently are disabled by default, and the system generates the shutdown command configuration for them. To enable the configured VLANIF interface, run the undo shutdown command to manually enable it.

Precautions

The set shutdown default vlanif command is valid for only new VLANIF interfaces, and the status of VLANIF interfaces before the set shutdown default vlanif command is executed remains unchanged.

Example

# Configure new VLANIF interfaces in shutdown state.

<HUAWEI> system-view
[~HUAWEI] set shutdown default vlanif

shutdown (VLANIF interface view)

Function

Using the shutdown command, you can shut down a VLANIF interface.

Using the undo shutdown command, you can enable a VLANIF interface.

By default, a VLANIF interface is enabled.

Format

shutdown

undo shutdown

Parameters

None

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When a VLANIF interface fails or is not needed, you can run the shutdown command on the VLANIF interface.

A VLANIF interface is Up as long as an interface in the corresponding VLAN is Up. After the VLANIF interface is shut down, the interface status changes to Down even if physical interfaces in the corresponding VLAN are Up.

Precautions

After a VLANIF interface is shut down, none of the users who use the VLANIF interface address as the gateway address can communicate at Layer 3. In addition, the VLANIF interface address cannot be used in route calculation.

After a VLANIF interface is shut down, the dynamic ARP entry corresponding to the VLANIF interface starts aging in the ARP table. If the VLANIF interface address is in a static ARP entry, the ARP entry is not deleted.

Example

# Enable VLANIF 2.

<HUAWEI> system-view
[~HUAWEI] interface vlanif 2
[*HUAWEI-Vlanif2] undo shutdown

statistics enable (VLAN view)

Function

The statistics enable command enables the traffic statistics function in a VLAN.

The undo statistics enable command disables the traffic statistics function in a VLAN.

By default, the traffic statistics function is disabled in a VLAN.

Format

statistics enable

undo statistics enable

Parameters

None

Views

VLAN view, VLAN-Range view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To check the network status or locate network faults, you can use the statistics enable command to enable the traffic statistics function in a VLAN.

After the traffic statistics function is enabled in a VLAN, the device collects statistics on unicast packets, broadcast packets, and broadcast packets transmitted in the VLAN.

The priorities of the following traffic statistics functions are different. The traffic statistics function with the highest priority takes effect. Table 7-59 describes the traffic statistics functions.
Table 7-59  Priorities of the traffic statistics collection functions

Model

Priority

CE6880EI

Traffic statistics collection in a VLAN > Traffic statistics collection on a VLANIF interface

MQC-based traffic statistics collection is compatible with the statistics collection functions.

CE6850EI, CE6810EI, CE6810LI, CE5855EI, and CE5810EI

Traffic statistics collection in a VLAN > MQC-based traffic statistics collection > Traffic statistics collection on a VLANIF interface

Other models

MQC-based traffic statistics collection > Traffic statistics collection on a VLANIF interface

Traffic statistics collection in a VLAN is compatible with the statistics collection functions.

Precautions

  • Traffic statistics are accumulative and cannot be cleared by the system. To clear traffic statistics in a VLAN, run the reset vlan statistics command in the VLAN.

  • The traffic statistics function occupies system resources. If system resources are insufficient, the configuration may fail. Disable this function when traffic statistics do not need to be collected.

  • After enabling the traffic statistics function in a VLAN, you can use the display vlan vlan-id statistics command to view traffic statistics in the VLAN.

  • For the CE6880EI, when the packet forwarding mode is set to cut-through, the device does not support VLAN traffic statistics.

  • If an interface is configured with port mirroring and is added to a VLAN on the CE6870EI and CE6875EI, doubled traffic is counted for inbound traffic statistics collection in a VLAN.

  • If a message is displayed on the device, indicating that services fail to be delivered because of insufficient resources when this function is configured, you are advised to perform traffic statistic collection using the MQC method.

  • After traffic statistics collection in a VLAN is enabled, stack and broadcast traffic statistics are inaccurate on the CE6870EI.

Example

# Enable the traffic statistics function in VLAN 100.

<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100] statistics enable

statistics enable (VLANIF interface view)

Function

The statistics enable command enables the traffic statistics function on a VLANIF interface.

The undo statistics enable command disables the traffic statistics function on a VLANIF interface.

By default, the traffic statistics function is disabled on a VLANIF interface.

NOTE:

The CE6810LI does not support this command.

Format

statistics enable [ inbound | outbound ]

undo statistics enable

Parameters

Parameter

Description

Value

inbound

Enables the traffic statistics function for incoming traffic.

-

outbound

Enables the traffic statistics function for outgoing traffic.

-

NOTE:

Only the CE6870EI supports the parameters inbound and outbound. If no parameter is specified, the system collects traffic statistics in inbound and outbound directions of a VLANIF interface.

Views

VLANIF interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To check the network status or locate network faults, you can use the statistic enable command to enable the traffic statistics function on VLANIF interfaces. The CE8800, CE7800, CE6800, and CE5800 series switches then collect traffic statistics on the VLANIF interfaces.

The priorities of the following traffic statistics functions are different. The traffic statistics function with the highest priority takes effect. Table 7-60 describes the traffic statistics functions.
Table 7-60  Priorities of the traffic statistics collection functions

Model

Priority

CE6880EI

Traffic statistics collection in a VLAN > Traffic statistics collection on a VLANIF interface

MQC-based traffic statistics collection is compatible with the statistics collection functions.

CE6850EI, CE6810EI, CE6810LI, CE5855EI, and CE5810EI

Traffic statistics collection in a VLAN > MQC-based traffic statistics collection > Traffic statistics collection on a VLANIF interface

Other models

MQC-based traffic statistics collection > Traffic statistics collection on a VLANIF interface

Traffic statistics collection in a VLAN is compatible with the statistics collection functions.

Precautions

If you run the statistics enable command multiple times, only the latest configuration takes effect.

After you run the undo statistics enable command on a VLANIF interface, the device stops collecting traffic statistics on the VLANIF interface and the collected traffic statistics will be deleted.

Enabling traffic statistics on a VLANIF interface may affect the forwarding performance, for example, some interfaces may fail to forward packets at line speed when full interfaces provide line-speed forwarding. Use this function if required.

If a message is displayed on the device, indicating that services fail to be delivered because of insufficient resources when this function is configured, you are advised to perform traffic statistic collection using the MQC method.

For the CE6880EI:
  • When the traffic statistics function is enabled in a VLAN corresponding to the VLANIF interface, the device collects Layer 3 traffic statistics on the VLANIF interface and Layer 2 traffic statistics in the VLAN.

  • The device cannot collect statistics on unicast and multicast packets independently, or collect statistics on IPv4 and IPv6 packets independently.

  • The device cannot collect statistics on error packets or packets sent by the device itself (for example, ping packets).

For the CE6870EI:

  • The device uses ACL resources when collecting traffic statistics. If the traffic statistics function is enabled on too many VLANIF interfaces, other services may fail to obtain ACL resources. The device can collect traffic statistics on a maximum of 100 VLANIF interfaces.

  • The device cannot collect statistics on error packets, MPLS packets, or VXLAN packets, and cannot collect statistics on unicast and multicast packets independently.

  • The device can collect statistics on only IPv4 unicast packets, including GRE packets without the IPv4 header, IPv6 over IPv4 packets, and EVN packets encapsulated with the VXLAN header.

  • The device cannot collect statistics on packets sent by the device itself, for example, ping packets.

  • The following services are in descending order of priority: M-LAG unidirectional isolation, MQC (traffic policing, traffic statistics collection, and packet filtering), querying the outbound interface of packets with specified 5-tuple information, source MAC address, and destination MAC address, local VLAN mirroring, sFlow, NetStream, and VLANIF interface statistics collection. When the services are configured on an interface in the outbound direction, only the service with the highest priority takes effect. For example, when both packet filtering and VLANIF interface statistics collection are configured on a VLANIF interface, packet filtering takes effect. For sFlow and NetStream, the preceding limitations apply to only Layer 3 sub-interfaces.

  • When the traffic statistics function is enabled on an MPLS TE tunnel interface and a VLANIF interface enabled with MPLS TE, for the packets with the next-hop address as the TE tunnel interface, the device collects statistics on the MPLS TE tunnel interface but not the VLANIF interface.

  • On the device that decapsulates VXLAN packets, the device cannot collect statistics on incoming packets encapsulated with the VXLAN header on a VLANIF interface. On the device that encapsulates VXLAN packets, when the device is not configured with the VXLAN traffic statistics function and the VXLAN NVO3 gateway uses the Layer 3 non-loopback mode, the device collects statistics on outgoing packets encapsulated with the VXLAN header.
For the models excluding the CE6870EI and CE6880EI:
  • The device uses ACL resources when collecting traffic statistics. If the traffic statistics function is enabled on too many VLANIF interfaces, other services may fail to obtain ACL resources. The device can collect traffic statistics on a maximum of 100 VLANIF interfaces.

  • The VLANIF interface corresponding to the super-VLAN or MUX VLAN does not support the traffic statistics function.

  • The device cannot collect statistics on error packets, MPLS packets, or VXLAN packets.

  • The device cannot collect statistics on unicast and multicast packets independently.

  • The device cannot collect statistics on packets sent by the device itself, for example, ping packets.

Example

# Enable the traffic statistics function for traffic on the VLANIF interface.

<HUAWEI> system-view
[~HUAWEI] interface vlanif 100
[*HUAWEI-Vlanif100] statistics enable

subordinate group

Function

The subordinate group command configures subordinate group VLANs for a principal VLAN.

The undo subordinate group command removes subordinate group VLANs from a principal VLAN.

By default, a principal VLAN does not have any subordinate group VLAN.

NOTE:

The CE6880EI does not support this command.

Format

subordinate group { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo subordinate group { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter

Description

Value

vlan-id1 [ to vlan-id2 ]

Specifies a range of VLAN IDs.
  • vlan-id1 specifies the start VLAN ID.
  • to vlan-id2 specifies the end VLAN ID. If to vlan-id2 is not specified, only one subordinate group VLAN is configured.
  • The value of vlan-id1 is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
  • The value of vlan-id2 is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command and must be greater than or equal to the value of vlan-id1.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All users on the data center network can access external networks. The administrator wants to allow some users to communicate with each other but isolate other users from one another.

The MUX VLAN function is introduced to solve this problem. This function involves the following VLANs:

  • Principal VLAN: allows member interfaces to communicate with each other and with interfaces in subordinate VLANs.
  • Subordinate VLAN
    • Subordinate separate VLAN: allows member interfaces to communicate with only interfaces in the principal VLAN. An interface in a subordinate separate VLAN cannot communicate with interfaces in the same VLAN or other subordinate VLANs.
    • Subordinate group VLAN: allows member interfaces to communicate with interfaces in the same VLAN and interfaces in the principal VLAN. An interface in a subordinate group VLAN cannot communicate with interfaces in other subordinate VLANs.

According to features of the MUX VLAN, the enterprise can add the interfaces connecting to external networks to the principal VLAN, add users who are allowed to communicate to a subordinate group VLAN, and add users who need to be isolated to a subordinate separate VLAN. Users are then allowed to access the servers but isolated from one another. This saves VLAN IDs on the enterprise network and facilitates network management.

After interfaces using by users on the data center network are added to the subordinate group VLAN, users can communicate with one another and access external networks.

Prerequisites

The specified subordinate group VLANs have been created. The principal VLAN has been created.

The specified subordinate group VLANs are not super-VLANs and do not have any VLANIF interface.

The specified subordinate group VLANs do not have any VLANIF interface.

Before configuring a VLAN as a subordinate group VLAN, run the undo subordinate group command to delete all its member interfaces.

Follow-up Procedure

Add interfaces to subordinate group VLANs and enable the MUX VLAN function on the interfaces.

Precautions

  • Subordinate VLANs must be different from the principal VLAN.

  • A VLAN cannot be configured as a subordinate group VLAN and a subordinate separate VLAN simultaneously.

  • If you run the subordinate group command multiple times in the same VLAN view, all the specified VLANs are configured as subordinate group VLANs. The principle VLAN contains a total of 128 subordinate group VLANs and subordinate separate VLANs.

  • A subordinate group VLAN cannot be used to configure the VLANIF interface, super-VLAN, sub-VLAN, VLAN mapping, or VLAN stacking.

  • The group VLAN does not support MAC-Forced-Forwarding (MFF) and proxy ARP.

Example

# Configure VLAN 7 as the subordinate group VLAN of VLAN 5.

<HUAWEI> system-view
[~HUAWEI] vlan batch 5 7
[*HUAWEI] vlan 5
[*HUAWEI-vlan5] mux-vlan
[*HUAWEI-vlan5] subordinate group 7

subordinate separate

Function

The subordinate separate command configures a subordinate separate VLAN for a principal VLAN.

The undo subordinate separate command removes the subordinate separate VLAN from a principal VLAN.

By default, a principal VLAN does not have any subordinate separate VLAN.

NOTE:

CE6880EI does not support this command.

Format

subordinate separate vlan-id

undo subordinate separate

Parameters

Parameter

Description

Value

vlan-id

Specifies the ID of an existing VLAN.

The value is an integer that ranges from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

VLAN view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All users on the data center network can access external networks. The administrator wants to allow some users to communicate with each other but isolate other users from one another.

The MUX VLAN function is introduced to solve this problem. This function involves the following VLANs:

  • Principal VLAN: allows member interfaces to communicate with each other and with interfaces in subordinate VLANs.
  • Subordinate VLAN
    • Subordinate separate VLAN: allows member interfaces to communicate with only interfaces in the principal VLAN. An interface in a subordinate separate VLAN cannot communicate with interfaces in the same VLAN or other subordinate VLANs.
    • Subordinate group VLAN: allows member interfaces to communicate with interfaces in the same VLAN and interfaces in the principal VLAN. An interface in a subordinate group VLAN cannot communicate with interfaces in other subordinate VLANs.

According to features of the MUX VLAN, the enterprise can add the interfaces connecting to external networks to the principal VLAN, add users who are allowed to communicate to a subordinate group VLAN, and add users who need to be isolated to a subordinate separate VLAN. Users are then allowed to access the servers but isolated from one another. This saves VLAN IDs on the enterprise network and facilitates network management.

After interfaces using by users on the data center network are added to the subordinate separate group VLAN, users cannot communicate with one another but can access external networks.

Prerequisites

The specified subordinate separate VLAN has been created. The principal VLAN has been created.

The specified subordinate group VLANs are not super-VLANs and do not have any VLANIF interface.

The specified subordinate separate VLANs do not have any VLANIF interface.

Before configuring a VLAN as a subordinate separate VLAN, run the undo subordinate separate command to delete all its member interfaces.

Follow-up Procedure

Add interfaces to the subordinate separate VLAN and enable the MUX VLAN function on the interfaces.

Precautions

  • Subordinate VLANs must be different from the principal VLAN.

  • A VLAN cannot be configured as a subordinate group VLAN and a subordinate separate VLAN simultaneously.

  • A principal VLAN can be configured with only one subordinate separate VLAN. Before configuring another VLAN as the subordinate separate VLAN, run the undo subordinate separate command to delete the previous one.

  • A subordinate separate VLAN cannot be used to configure the VLANIF interface, Super-VLAN, Sub-VLAN, VLAN Mapping, VLAN Stacking.

  • The separate VLAN does not support MAC-Forced-Forwarding (MFF) and proxy ARP.

Example

# Configure VLAN 6 as the subordinate separate VLAN of VLAN 5.

<HUAWEI> system-view
[~HUAWEI] vlan batch 5 6
[*HUAWEI] vlan 5
[*HUAWEI-vlan5] mux-vlan
[*HUAWEI-vlan5] subordinate separate 6

trace mac

Function

The trace mac command locates a link connectivity fault between the local device and the destination device. The operation is called GMAC trace.

NOTE:

CE6880EI does not support this command.

Format

trace mac mac-address vlan vlan-id [ interface interface-type interface-number | -t timeout ]*

Parameters

Parameter Description Value
mac-address Specifies the MAC address of the destination node. The destination node can be a MEP or a MIP. The value is in H-H-H format. An H is a hexadecimal number of 1 to 4 digits. The value cannot be a broadcast or multicast MAC address.
vlan vlan-id Specifies the ID of a VLAN. The value is an integer that ranges from 1 to 4094.
interface-type interface-number Specifies the outbound interface on the local device for sending trace packets.
  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

  • If this parameter is specified, the device sends trace packets directly through the interface.

  • If this parameter is not specified, the device searches the MAC address table based on the specified destination MAC address and VLAN ID.

    If the forwarding entry is found, the device sends trace packets according to the entry.

    If the forwarding entry is not found but there is one interface in the VLAN, the device sends trace packets from this interface. If there is more than one interface in the VLAN, the device discards trace packets directly.

-
-t timeout Specifies the timeout interval for waiting for an LTR. The value is an integer that ranges from 1 to 65535, in milliseconds. The default value is 2000 ms.

Views

All views

Default Level

0: Visit level

Usage Guidelines

Usage Scenario

To perform GMAC trace, run this command.

Precautions

  • Before using this command, run the trace mac enable to enable GMAC trace and run the ping mac enable command to enable GMAC ping on the source device, intermediate device, and destination device.

  • The ping mac command needs to be used to ping the MAC address of the remote device.

Example

# Trace the destination device with the MAC address as f84a-bff0-cac1. The device belongs to VLAN 2.

<HUAWEI> system-view
[~HUAWEI] trace mac enable
[*HUAWEI] commit
[~HUAWEI] trace mac f84a-bff0-cac1 vlan 2
Tracing the route to f84a-bff0-cac1 over a maximum of 255 hops:
 Hops  Mac             Ingress                   Ingress Action    Relay Action
       Forwarded       Egress                    Egress Action
 1     f84a-bff0-cac1  10GE1/0/2                 IngOK             RlyHit
       Not Forwarded
Info: Succeeded in tracing the destination address f84a-bff0-cac1.
Table 7-61  Description of the trace mac command output

Item

Description

Hops

Number of hops.

Ingress Action

Action taken by the inbound interface to process LTMs:
  • IngOK: The inbound interface forwards LTMs successfully.

  • If this field is empty, the inbound interface fails to forward LTMs.

Relay Action

Action taken by the device to process LTMs:
  • RlyFDB: The device forwards LTMs to the next hop device.

  • RlyHit: The device forwards LTMs to the destination device.

Egress Action

Action taken by the outbound interface to process trace packets:
  • EgrOK: The outbound interface forwards LTMs successfully.

  • If this field is empty, the outbound interface does not or fails to forward LTMs.

Related Topics

trace mac enable

Function

The trace mac enable command enables GMAC trace.

The undo trace mac enable command disables GMAC trace.

By default, GMAC trace is disabled.

NOTE:

CE6880EI does not support this command.

Format

trace mac enable

undo trace mac enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To implement the following functions, use the trace mac enable command:

  • Implement GMAC trace.

  • Enable the device to respond to LTMs of MAC trace.

Example

# Enable GMAC trace.

<HUAWEI> system-view
[~HUAWEI] trace mac enable
Related Topics

vlan

Function

The vlan command creates a VLAN and displays the VLAN view. If the VLAN exists, the VLAN view is displayed.

The undo vlan command deletes a VLAN.

By default, all interfaces belong to the default VLAN, named VLAN 1.

Format

vlan vlan-id

vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo vlan vlan-id

undo vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter Description Value
vlan-id Specifies the VLAN ID. The value is an integer ranging from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.
batch Configures VLANs in batches. -
vlan-id1 to vlan-id2 Specifies range of VLANs to be configured in batches:
  • vlan-id1 specifies the start VLAN ID.

  • vlan-id2 specifies the end VLAN ID.

    vlan-id2 must be greater than or equal to vlan-id1. vlan-id1 and vlan-id2 define a range together.

  • If the parameter to vlan-id2 is not specified, only the VLAN specified by vlan-id1 is created.

The vlan-id1 and vlan-id2 are integers ranging from 1 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To reduce broadcast domains and enhance security on a complex network, VLANs can be created on the network to isolate the devices that do not need to communicate each other. The vlan batch command creates multiple VLANs at one time, simplifying VLAN configuration.

Follow-up Procedure

Assign VLANs according to network requirements.

After creating a VLAN, run the name command in the VLAN view to configure the VLAN name, which facilitates service management. After VLANs are named, you can run the vlan vlan-name command in the system view to enter the view of a specific VLAN, and then check or modify the configuration of the VLAN.

Precautions

VLAN 1 is the default VLAN, which cannot be deleted and does not need to be created.

The vlan command can be used to create a VLAN and enter the VLAN view. If a VLAN has been created, the VLAN view is displayed after this command is used. If the vlan command is run multiple times, multiple VLANs are created. If a VLAN has been created, using this command cannot be used to create the same VLAN or modify the configurations of the VLAN.

The vlan batch command can be used to create multiple VLANs in batches. If a VLAN has been created, using this command cannot be used to create the same VLAN or modify the configurations of the VLAN. If you run the vlan batch command multiple times, multiple VLANs are created.

Before deleting a VLAN, run the undo interface vlanif command to delete the corresponding VLANIF interface.

NOTE:
  • After GRE is configured or an interface is switched to Layer 3 mode, GRE or the interface occupies internal forwarding resources in the same manner as VLAN technology. In this scenario, the number of VLANs that can be created on the device is affected. That is, VLANs cannot be fully configured.

  • If forwarding resources exceed the specifications, the VLAN can be configured. However, after the device restarts, the invalid VLAN configuration may become valid and valid VLAN configuration may become invalid.

Example

# Create VLAN 100 and enter the VLAN 100 view. If VLAN 100 exists, the VLAN 100 view is displayed directly.

<HUAWEI> system-view
[~HUAWEI] vlan 100
[*HUAWEI-vlan100]

vlan range

Function

The vlan range command creates a temporary VLAN range and displays the VLAN-range view.

By default, no temporary VLAN ranges are created.

Format

vlan range { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter Description Value
vlan-id1 to vlan-id2 Specifies VLAN IDs in a VLAN range.
  • vlan-id1 specifies the start VLAN ID.

  • vlan-id2 specifies the end VLAN ID.

    vlan-id2 must be greater than or equal to vlan-id1. vlan-id2 and vlan-id1 specify a VLAN range.

  • If to vlan-id2 is not specified, only the VLAN specified by vlan-id1 is configured.

  • If the vlan range command is multiple times, the latest configuration overrides the previous one.
The value is an integer ranging from 1 to 4063.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If a great number of VLANs need to be created on devices on a large Layer 2 network, the configuration and maintenance workload is heavy, and configuration inconsistencies may occur. To improve maintenance efficiency and simply configurations, run the vlan range command to create a temporary VLAN range. You can then configure services in the VLAN-range view. After services are configured, they are delivered in batches to all the VLANs in the VLAN range.

Precautions

The vlan range command configuration is not saved in the configuration file. After services are configured and committed in the VLAN-range view, the service configurations are saved for all the VLANs in the VLAN range.

A VLAN range contains a maximum of 512 VLANs.

Example

# Create a VLAN range 10-20 and enter the VLAN-range view.

<HUAWEI> system-view
[~HUAWEI] vlan range 10 to 20
[~HUAWEI-vlan-range]

vlan assign (interface view)

Function

The vlan assign command specifies assignable VLANs for an interface.

The undo vlan assign command restores the default assignable VLANs of an interface.

By default, an interface allows packets with VLANs 1 through 4094 to pass through.

NOTE:

Only the CE8860EI, CE8850EI, CE7850EI, CE7855EI, CE6870EI, CE6860EI, CE6850U-HI, CE6855HI, CE6851HI, CE6856HI, and CE6850HI support this command.

Format

vlan assign { vlan-id1 [ to vlan-id2 ] } &<1-5>

undo vlan assign [ { vlan-id1 [ to vlan-id2 ] } &<1-5> ]

Parameters

Parameter Description Value
vlan-id1 to vlan-id2 Specifies assignable VLAN IDs.
  • vlan-id1 specifies the start VLAN ID.

  • vlan-id2 specifies the end VLAN ID.

    vlan-id2 must be greater than vlan-id1. vlan-id2 and vlan-id1 specify a VLAN range.

  • If this command is run more than once with different VLAN ranges specified, all configurations take effect.
The value is an integer ranging from 2 to 4094.

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To help control and deploy a large Layer 2 network, a software-defined networking (SDN) controller can be used. You can configure services or protocols on the controller, and then the controller can use OpenFlow to deliver the service or protocol configurations to forwarders. This allows the controller to maintain and manage forwarders in a unified manner. Alternatively, you can also configure services or protocols on the forwarders. To prevent VLAN conflicts on the controller and forwarders and reduce maintenance costs, run the vlan assign command to specify assignable VLANs.

Precautions

  • If the vlan assign local { vlan-id1 [ to vlan-id2 ] } &<1-5> command has been run on the system view to specify assignable VLANs for all interfaces and then the vlan assign { vlan-id1 [ to vlan-id2 ] } &<1-5> command is run in the interface view to specify assignable VLANs for a specific interface, the command in the interface view takes effect for this interface.
  • If the vlan assign (interface view) command has been run to specify assignable VLANs for an interface, but you want to add the interface to a VLAN other than the assignable VLANs, you must run the vlan assign (interface view) command to specify this VLAN first.
  • If services have been configured in an assigned VLAN, delete the service configurations before you run the undo vlan assign (interface view) command to delete the assignable VLAN configuration.

Example

# Specify assignable VLANs 10 through 100 for 10GE1/0/1.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] vlan assign 10 to 100

vlan assign (system view)

Function

The vlan assign command specifies assignable VLANs for a device.

The undo vlan assign command restores the default assignable VLANs of a device.

By default, all interfaces on a device can be added to VLANs 1 through 4094.

NOTE:

CE5800 series switches, CE6810EI, CE6810LI, and CE6850EI do not support this command.

Format

vlan assign { global | local } { vlan-id1 [ to vlan-id2 ] } &<1-5>

undo vlan assign [ { global | local } [ vlan-id1 [ to vlan-id2 ] ] &<1-5> ]

Parameters

Parameter Description Value
global

Indicates that VLANs are assigned in global mode.

After VLANs are assigned in global mode, the VLANs created using the vlan vlan-id command must be within the assignable VLAN range.

-
local

Indicates that VLANs are assigned in local mode.

After VLANs are assigned in local mode, the VLAN IDs of packets that are allowed to pass through all interfaces must be within the assignable VLAN range.

-
vlan-id1 to vlan-id2 Specifies assignable VLAN IDs.
  • vlan-id1 specifies the start VLAN ID.

  • vlan-id2 specifies the end VLAN ID.

    vlan-id2 must be greater than vlan-id1. vlan-id2 and vlan-id1 specify a VLAN range.

  • If this command is run more than once with different VLAN ranges specified, all configurations take effect.
The value is an integer ranging from 2 to 4094.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To help control and deploy a large Layer 2 network, a software-defined networking (SDN) controller can be used. You can configure services or protocols on the controller, and then the controller can use OpenFlow to deliver the service or protocol configurations to forwarders. This allows the controller to maintain and manage forwarders in a unified manner. Alternatively, you can also configure services or protocols on the forwarders. To prevent VLAN conflicts on the controller and forwarders and reduce maintenance costs, run the vlan assign command to specify assignable VLANs.

Precautions

  • If the vlan assign local { vlan-id1 [ to vlan-id2 ] } &<1-5> command has been run in the system view to specify assignable VLANs for all interfaces on a device and then the vlan assign command is run in the interface view to specify assignable VLANs for a specific interface, the command in the interface view takes effect for this interface.
  • If a VLAN has been created for a device before you run the vlan assign (system view) command to specify assignable VLANs, the VLAN must be specified in this command.
  • If services have been configured in an assigned VLAN, delete the service configurations before you run the undo vlan assign (system view) command to delete the assignable VLAN configuration.

Example

# Specify assignable VLANs 10 through 200 for all interfaces on a device.

<HUAWEI> system-view
[~HUAWEI] vlan assign local 10 to 200

vlan precedence

Function

The vlan precedence command configures the device to preferentially use a VLAN assignment mode when both MAC address-based and IP subnet-based VLAN assignment modes are matched.

The undo vlan precedence command restores the default VLAN assignment mode on an interface when both MAC address-based and IP subnet-based VLAN assignment modes are matched.

By default, MAC address-based VLAN assignment takes precedence over IP subnet-based VLAN assignment.

NOTE:

The CE6810LI, CE6870EI, CE6880EI do not support this command.

Format

vlan precedence { ip-subnet-vlan | mac-vlan }

undo vlan precedence

Parameters

Parameter

Description

Value

ip-subnet-vlan

Indicates that IP subnet-based VLAN assignment takes precedence over MAC address-based VLAN assignment.

-

mac-vlan

Indicates that MAC address-based VLAN assignment takes precedence over IP subnet-based VLAN assignment.

-

Views

GE interface view, 10GE interface view, 25GE interface view, 40GE interface view, 100GE interface view, Eth-Trunk interface view, port group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device provides the following VLAN assignment modes:
  • VLAN assignment based on interface
  • VLAN assignment based on MAC addresses
  • VLAN assignment based on IP subnets

Interface-based VLAN assignment has the lowest priority and is the most common VLAN assignment mode. If packets match both MAC address-based VLAN assignment and IP subnet-based VLAN assignment, by default, MAC address-based VLAN assignment is preferentially adopted. The vlan precedence command changes the priority order of MAC address-based VLAN assignment and IP subnet-based VLAN assignment. For example, the vlan precedence ip-subnet-vlan command makes IP subnet-based VLAN assignment take precedence over MAC address-based VLAN assignment.

Precautions

Packets may be transmitted in a different VLAN after the priority order of MAC address-based VLAN assignment and IP subnet-based VLAN assignment changes. This may cause a traffic forwarding failure in the VLAN.

If you run the vlan precedence command multiple times in the same interface view, only the latest configuration takes effect.

Example

# Specify that IP subnet-based VLAN assignment takes precedence over MAC address-based VLAN assignment.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] vlan precedence ip-subnet-vlan

vlan reserved

Function

The vlan reserved command modifies the range of reserved VLANs.

The undo vlan reserved command restores the default configuration.

The vlan reserved for main-interface command configures reserved VLANs for a Layer 3 main interface. (Only the CE6855HI, CE6856HI and CE7855EI support this command.)

The undo vlan reserved for main-interface command restores the default configuration. (Only the CE6855HI, CE6856HI and CE7855EI support this command.)

By default, the value of vlan reserved ranges from 4064 to 4094, and no reserved VLAN is configured for a Layer 3 main interface on the CE6855HI, CE6856HI and CE7855EI.

NOTE:

The CE6880EI does not support this command, and no reserved VLAN is configured on the CE6880EI by default.

Format

vlan reserved vlan-id

undo vlan reserved [ vlan-id ]

vlan reserved for main-interface startvlanid to endvlanid (Only the CE6855HI, CE6856HI and CE7855EI support this command.)

undo vlan reserved for main-interface startvlanid to endvlanid (Only the CE6855HI, CE6856HI and CE7855EI support this command.)

Parameters

Parameter

Description

Value

vlan-id

Specifies the start reserved VLAN ID.

The value is an integer that ranges from 2 to 4064, except reserved VLAN IDs, which can be configured using the vlan reserved command.

startvlanid

Specifies the start reserved VLAN ID of a main interface.

The value is an integer that ranges from 2 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

to endvlanid

Specifies the end reserved VLAN ID of a main interface.

The value is an integer that ranges from 2 to 4094, except reserved VLAN IDs, which can be configured using the vlan reserved command.

The value of endvlanid is larger than the value of startvlanid.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A reserved VLAN is used as a channel of the internal control plane of a switch or a channel for transmitting user service data of some features. The reserved VLAN range can be changed on a CE switch so that the default reserved VLAN range and planned or existing network do not overlap.

After vlan-id is specified, the VLAN specified by vlan-id to the VLAN specified by vlan-id plus 30 are configured as reserved VLANs.

On the CE6855HI, CE6856HI and CE7855EI, reserved VLANs can be configured for a Layer 3 main interface so that Layer 3 service data can be correctly forwarded. After the vlan reserved for main-interface command is used to configure reserved VLANs for a main interface, run the undo portswitch command to switch the main interface to the Layer 3 main interface. The Layer 3 main interface automatically occupies the reserved VLANs. You can run the display vlan reserved for main-interface resource command to check the reserved VLANs occupied by the main interface.

Precautions

  • The created reserved VLAN takes effect only after the switch restarts, and the original reserved VLANs are used as common VLANs.

  • A reserved VLAN cannot be configured as a common VLAN.

  • The VLAN in use cannot be configured as a reserved VLAN.

Configure reserved VLAN for a Layer 3 main interface on the CE6855HI, CE6856HI, and CE7855EI:
  • The vlan reserved for main-interface startvlanid to endvlanid command will take effect after the configuration is submitted. You do not need to restart the switch.

  • You can configure a maximum of eight reserved VLAN ranges for a Layer 3 main interface, and reserved VLAN ranges of different main interfaces cannot overlap.

  • The undo vlan reserved for main-interface startvlanid to endvlanid command cancels the reserved VLAN range but not some reserved VLANs in the reserved VLAN range. If a main interface joins a reserved VLAN in the specified reserved VLAN range, the undo vlan reserved for main-interface command cannot be executed.

  • The reserved VLANs of a main interface and the Layer 2 reserved VLAN configured by the vlan reserved command cannot overlap.

  • If a dynamic VLAN learned by GVRP is in the reserved VLAN range of a main interface, the dynamic VLAN cannot be learned.

  • In the SVF system, the VLAN ID of a Layer 2 sub-interface configured by the encapsulation dot1q vid vid command cannot be the ID of a reserved VLAN in the reserved VLAN range of a main interface.

Example

# Configure reserved VLANs 1000 to 1030.

<HUAWEI> system-view
[~HUAWEI] vlan reserved 1000
# Configure VLANs 10 to 20 as reserved VLANs of a main interface on the CE6855HI.
<HUAWEI> system-view
[~HUAWEI] vlan reserved for main-interface 10 to 20

vlan vlan-name

Function

The vlan vlan-name command displays the view of a VLAN with the specified VLAN name.

The undo vlan vlan-name command deletes a VLAN with the specified VLAN name. After the command is used, the VLAN name is also deleted.

Format

vlan vlan-name vlan-name

undo vlan vlan-name vlan-name

Parameters

Parameter Description Value
vlan-name Specifies the VLAN name. The VLAN must already exist.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the name command is run to set a VLAN name, you can run the vlan vlan-name command in the system view to enter the corresponding VLAN view.

Assume that a device has multiple VLANs and each VLAN has a name. If you need to delete the VLAN that is used to transmit voice services but cannot remember the ID of the VLAN, you can run the undo vlan vlan-name command to delete the VLAN by inputting the VLAN name.

Prerequisites

Before running the vlan vlan-name command, ensure that the name command is run to set the VLAN name.

Precautions

When you run the undo vlan vlan-name command to delete a VLAN, services configured for the VLAN are deleted at the same time. The deleted services cannot be restored even if you recreate the VLAN. Therefore, exercise caution when running the undo vlan vlan-name command.

Example

# Enter the view of the VLAN named user1.
<HUAWEI> system-view
[~HUAWEI] vlan 2
[*HUAWEI-vlan2] name user1
[*HUAWEI-vlan2] quit
[*HUAWEI] vlan vlan-name user1
[*HUAWEI-vlan2]
Related Topics
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 43501

Downloads: 330

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