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).
Layer 2 Protocol Transparent Transmission Commands

Layer 2 Protocol Transparent Transmission Commands

NOTE:

CE6880EI only supports bpdu bridge enable command.

bpdu bridge enable

Function

The bpdu bridge enable command enables a Layer 2 interface to forward BPDUs when the device forwards BPDUs through the hardware.

The undo bpdu bridge enable or bpdu bridge disable command disables a Layer 2 interface from forwarding BPDUs when the device forwards BPDUs through the hardware.

By default, a Layer 2 interface is not allowed to forward BPDUs when the device forwards BPDUs through the hardware.

Format

bpdu bridge { disable | enable }

undo bpdu bridge 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

When the backbone edge device connects to many user edge devices, to improve efficiency in forwarding BPDUs, the backbone device forwards BPDUs through the hardware.

By default, a Layer 2 interface is not allowed to forward BPDUs when the device forwards BPDUs through the hardware. User edge devices connected to the backbone edge device cannot communicate. You can run bpdu bridge enable command to enable a Layer 2 interface to forward BPDUs when the device forwards BPDUs through the hardware.

Precautions

  • This command only applies to the scenario where the backbone edge device connects to many user edge devices.

  • In V100R006C00 and later versions, the bpdu bridge enable command and the LACP function cannot be used together.

  • The system does not block BPDUs due to the blocking mechanism of a ring network on an interface. Exercise caution when you run this command. Otherwise, broadcast storms may occur.

NOTE:
To use the hardware to forward BPDUs of a protocol such as STP, disable this protocol before running the bpdu bridge enable command.

Example

# Enable 10GE1/0/1 to forward received BPDUs.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] bpdu bridge enable

display l2protocol-tunnel group-mac

Function

The display l2protocol-tunnel group-mac command displays transparent transmission information about all standard Layer 2 protocols or a specified Layer 2 protocol.

Format

display l2protocol-tunnel group-mac { all | protocol-type | user-defined-protocol protocol-name }

Parameters

Parameter

Description

Value

all

Displays transparent transmission information about all standard Layer 2 protocols and user-defined Layer 2 protocols.

-

protocol-type

Displays transparent transmission information about a specified Layer 2 protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)

user-defined-protocol protocol-name

Displays transparent transmission information about a user-defined protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 characters without spaces.

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

After configuring Layer 2 protocol transparent transmission, you can run this command to check transparent transmission information about all standard Layer 2 protocols or a specified Layer 2 protocol.

Example

# Display transparent transmission information about the STP protocol.

<HUAWEI> display l2protocol-tunnel group-mac stp
Protocol  EncapeType  ProtocolType   Protocol-MAC    Group-MAC       Pri
------------------------------------------------------------------------------------------
stp       llc           dsap 0x42    0180-c200-0000   0100-0ccd-cdd0  0 
                        ssap 0x42 
Table 7-96  Description of the display l2protocol-tunnel group-mac command output

Item

Description

Protocol

Name of a Layer 2 protocol whose packets are transparently transmitted.

EncapeType

Encapsulation types of protocols. At present, the encapsulation types of protocol packets can be Ethernet II, SNAP and LLC.

ProtocolType

Type of a Layer 2 protocol whose packets are transparently transmitted.

Protocol-MAC

Multicast destination MAC address of transparently transmitted Layer 2 protocol packets.

Group-MAC

Group MAC address of transparently transmitted Layer 2 protocol packets. It is a multicast MAC address that replaces the original multicast destination MAC address of transparently transmitted Layer 2 protocol packets.

Pri

Priority of transparently transmitted Layer 2 protocol packets, which is fixed at 0.

Related Topics

display l2protocol-tunnel statistics

Function

The display l2protocol-tunnel statistics command displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.

Format

display l2protocol-tunnel statistics interface-type interface-number [ protocol-type | user-defined-protocol protocol-name ]

Parameters

Parameter

Description

Value

interface-type interface-number

Displays statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

When specifying an interface in the command, ensure that Layer 2 protocol transparent transmission is enabled on the interface.

-

protocol-type

Displays statistics about a specified protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Displays statistics about transparently transmitted packets of a user-defined protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 characters without spaces.

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

After configuring Layer 2 protocol transparent transmission, you can run this command to view statistics about transparently transmitted packets of a specified Layer 2 protocol. The command output includes:

  • Number of Layer 2 protocol packets received by the inbound interface

  • Number of Layer 2 protocol packets sent from the outbound interface

  • Number of Layer 2 protocol packets discarded when the threshold is exceeded

According to the output information, you can collect traffic statistics and locate faults on the interface.

When an interface transparently transmits packets of multiple Layer 2 protocols, it is recommended that you specify the optional parameters or a regular expression in the command to filter the output information. Otherwise, too much information will be displayed, causing the following problems:

  • The displayed information is repeatedly refreshed, causing desired information unable to be located.

  • The system does not respond because of prolonged information traversing and searching.

When using this command, pay attention to the following points:

  • If no optional parameter is specified, statistics about all Layer 2 protocol packets transparently transmitted on the specified interface are displayed.

  • If protocol-type is specified, statistics about packets of the specified Layer 2 protocol that are transparently transmitted on the specified interface are displayed.

  • If user-defined-protocol is specified, statistics about packets of the specified user-defined Layer 2 protocol that are transparently transmitted on the specified interface are displayed.

Example

# Display statistics about transparently transmitted STP protocol packets.

<HUAWEI> display l2protocol-tunnel statistics 10ge 1/0/1 stp
-----------------------------------------------------------------------------                                                       
Port            Protocol             Drop      Input     Output    Drop                                                             
                                     Threshold Packets   Packets   Packets                                                          
-----------------------------------------------------------------------------                                                       
10GE1/0/1       stp                  0         106       24411     0    
Table 7-97  Description of the display l2protocol-tunnel statistics command output

Item

Description

Port

Name of an interface on which Layer 2 protocol transparent transmission is enabled.

Protocol

Name of a Layer 2 protocol whose packets are transparently transmitted.

Drop Threshold

Drop threshold of transparently transmitted Layer 2 protocol packets.

The drop threshold is set by using the l2protocol-tunnel drop-threshold command. The unit is packet per second (pps).

When the rate of incoming Layer 2 protocol packets on an interface exceeds the threshold, the interface discards excess packets.

Input Packets

Number of incoming Layer 2 protocol packets on the interface enabled with Layer 2 protocol transparent transmission.

Output Packets

Number of outgoing Layer 2 protocol packets on the interface enabled with Layer 2 protocol transparent transmission.

Drop Packets

Number of Layer 2 protocol packets discarded on the interface after the traffic rate exceeds the drop threshold.

display mac-address bpdu

Function

The display mac-address bpdu command displays MAC addresses of BPDUs configured on the device.

Format

display mac-address bpdu

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to display MAC addresses that are configured as MAC addresses of BPDUs on the device.

Example

# Display MAC addresses of BPDUs.

<HUAWEI> display mac-address bpdu
 Maximum BPDU MAC-addresses allowed : 128                                                                                           
 Remaining BPDU MAC-addresses allowed : 122                                                                                         
                                                                                                                                    
 Configured BPDU MAC address                                                                                                      
 ----------------------------------------------------------------------------                                                       
 (001) 010f-e200-0001                   (002) 0180-c200-0000/ffff-ffff-fff0                                                         
 (003) 0180-c200-0010                   (004) 0180-c200-0020/ffff-ffff-fff0                                                         
 (005) 0180-c200-008a                   (006) 0180-c200-8585           
Table 7-98  Description of the display mac-address bpdu command output
Item Description
Maximum BPDU MAC-addresses allowed

Number of the maximum MAC addresses that you can specify for BPDUs. You can specify a maximum of 128 MAC addresses for BPDUs.

Remaining BPDU MAC-addresses allowed

Number of remaining MAC addresses that you can specify for BPDUs.

Configured BPDU MAC-addresses

Configured MAC address in BPDUs. The default MAC address of BPDUs is displayed here.

Related Topics

l2protocol-tunnel

Function

The l2protocol-tunnel enable command enables Layer 2 protocol transparent transmission on an interface.

The undo l2protocol-tunnel enable command disables Layer 2 protocol transparent transmission on an interface.

The l2protocol-tunnel disable command disables Layer 2 protocol transparent transmission on an interface.

By default, Layer 2 protocol transparent transmission is disabled on an interface.

Format

l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } enable

l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } disable

undo l2protocol-tunnel { protocol-type | user-defined-protocol protocol-name } enable

Parameters

Parameter

Description

Value

all

Enables or disables transparent transmission of packets of all standard Layer 2 protocols and user-defined Layer 2 protocols.

-

protocol-type

Enables or disables transparent transmission of packets of a specified Layer 2 protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
NOTE:

You can select one or more Layer 2 protocols.

By default, the device cannot transparently transmit BPDUs. However, the device transparently relays PVST+ packets as common data packets.

user-defined-protocol protocol-name

Enables or disables transparent transmission of packets of a specified user-defined Layer 2 protocol. protocol-name specifies the name of a user-defined protocol.

The protocol-name must already exist.

Views

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

Default Level

2: Configuration level

Usage Guidelines

Layer 2 protocol transparent transmission is often configured on an interface connecting the PE and CE. After Layer 2 protocol transparent transmission is enabled, Layer 2 protocol packets received from the user network need to be sent to the CPU and the destination MAC address in the packets needs to be replaced. On the ISP network, Layer 2 protocol packets are directly forwarded.

Generally, the l2protocol-tunnel command is run on user-side interfaces of PEs.

The l2protocol-tunnel vlan command enables an interface to transparently transmit Layer 2 protocol packets from the specified VLANs. The l2protocol-tunnel command enables an interface to transparently transmit all Layer 2 protocol packets.

The l2protocol-tunnel vlan and l2protocol-tunnel commands cannot specify the same protocol type on the same interface; otherwise, the configurations conflict.

Before specifying a user-defined protocol in the l2protocol-tunnel enable command, run the l2protocol-tunnel user-defined-protocol command to define characteristic information about the Layer 2 protocol.

STP packets have a default group MAC address for replacing the original destination MAC address. For packets of other Layer 2 protocols, you need to configure a global group MAC address to replace the destination MAC address. For details, see l2protocol-tunnel group-mac.

Example

# Configure 10GE1/0/1 to transparently transmit STP BPDUs.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] stp disable
[*HUAWEI-10GE1/0/1] l2protocol-tunnel stp enable

l2protocol-tunnel drop-threshold

Function

The l2protocol-tunnel drop-threshold command sets the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface.

The undo l2protocol-tunnel drop-threshold command cancels the setting of the drop threshold.

By default, the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface is 0 pps. The rate of Layer 2 protocol packets is not limited on the interface.

Format

l2protocol-tunnel drop-threshold rate [ protocol-type | user-defined-protocol protocol-name ]

undo l2protocol-tunnel drop-threshold [ [ rate ] { protocol-type | user-defined-protocol protocol-name } ]

Parameters

Parameter

Description

Value

rate

Specifies the drop threshold of Layer 2 protocol packets that are transparently transmitted on an interface.

The value is an integer that ranges from 1 to 4096, in pps.

protocol-type

Specifies the type of a Layer 2 protocol. The interface discards excess packets of this type of protocol when the rate of these packets exceeds the drop threshold.

NOTE:

You can specify multiple protocols in the command.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Sets the drop threshold of packets of a user-defined Layer 2 protocol. protocol-name specifies the name of a user-defined protocol.

The protocol-name must already exist.

Views

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

Default Level

2: Configuration level

Usage Guidelines

After enabling Layer 2 protocol transparent transmission on an interface, you can run the l2protocol-tunnel drop-threshold command on this interface to set the drop threshold of protocol packets. This prevents malicious users from sending a large number of protocol packets to attack the system.

After Layer 2 protocol transparent transmission is enabled and the drop threshold of Layer 2 protocol packets is set on an interface, the interface drops excess Layer 2 protocol packets when the drop threshold is exceeded. If the trap function is enabled, the device sends a trap message to the NMS to notify the network administrator.

When using the l2protocol-tunnel drop-threshold command, pay attention to the following points:

  • If no Layer 2 protocol is specified, the drop threshold applies to all Layer 2 protocol packets that need to be transparently transmitted.

  • If a Layer 2 protocol is specified, the interface discards excess packets of the protocol when the rate of these packets exceeds the drop threshold.

  • If you run this command without specifying a protocol, and then run the command with a specified protocol, the drop threshold that you set the second time takes effect.

Example

# Set the drop threshold of STP packets that are transparently transmitted on 10GE 1/0/1 to 10 pps.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] l2protocol-tunnel drop-threshold 10 stp

l2protocol-tunnel group-mac

Function

The l2protocol-tunnel group-mac command configures a device to replace the multicast destination MAC addresses in Layer 2 protocol data units (PDUs) with a specified multicast MAC address (group MAC address).

The undo l2protocol-tunnel command deletes the specified multicast MAC address (group MAC address) from Layer 2 PDUs of all Layer 2 protocols except STP or restores the default multicast MAC address in STP BPDUs.

By default, the multicast destination MAC address of STP packets is replaced by 0100-0ccd-cdd0. For other Layer 2 protocol packets, there is not a default multicast MAC address for replacing their multicast destination MAC addresses.

Format

l2protocol-tunnel protocol-type group-mac { group-mac | default-group-mac }

undo l2protocol-tunnel protocol-type

Parameters

Parameter

Description

Value

protocol-type

Specifies the type of a Layer 2 protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • Generic VLAN Registration Protocol (GVRP)
  • Generic Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)

group-mac

Specifies the multicast MAC address that replaces the destination MAC address of Layer 2 protocol packets.

The value is in H-H-H format. An H is a hexadecimal number of 4 digits. The value ranges from 0100-0000-0000 to 01ff-ffff-ffff.

default-group-mac

Specifies the default MAC address of a multicast group, which is 0100-0ccd-cdd0.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Layer 2 protocols running between user networks, such as MSTP, HGMP, and LACP, must traverse a backbone network to perform Layer 2 protocol calculation.

Generally, the destination MAC addresses in Layer 2 protocol packets of the same Layer 2 protocol are the same. For example, the MSTP PDUs are BPDUs with the destination MAC address 0180-C200-0000. Therefore, when a Layer 2 protocol packet reaches an edge device on a backbone network, the edge device cannot identify whether the Layer 2 protocol packet comes from a user network or the backbone network and sends the Layer 2 protocol packet to the CPU to calculate a spanning tree. As a result, the user network devices calculate a spanning tree with backbone network edge devices but not with user network devices.

To resolve this problem, run the l2protocol-tunnel group-mac command on backbone network edge devices to replace the multicast destination MAC addresses in Layer 2 protocol packets with a specified multicast MAC address (group MAC address). This configuration allows Layer 2 protocol packets to be tunneled so that user network devices can calculate a spanning tree.

Precautions

When configuring Layer 2 protocol transparent transmission, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:

  • Reserved multicast MAC addresses: 0180-C200-0000 to 0180-C200-002F
  • Special multicast MAC addresses: 0100-0CCC-CCCC and 0100-0CCC-CCCD
  • Destination MAC address of Smart Link packets: 010F-E200-0004
  • Multicast MAC addresses that have been used on the network.
NOTE:

Do not replace the destination MAC addresses of STP, GVRP, and GMRP packets with the same multicast MAC address.

Do not replace the destination MAC addresses of EOAM3ah, LACP, and DLDP packets with the same multicast MAC address.

When the multicast MAC address that replaces the destination MAC address of packets of Layer 2 protocol A is specified on the device, the device discards packets of other Layer 2 protocols (protocols except Layer 2 protocol A) with this multicast MAC address as the destination MAC address. Such packets may be transparently transmitted by other intermediate devices.

Example

# Configure a device to replace the destination MAC address of STP packets with 0100-5E00-0011 before tunneling the STP BPDUs.

<HUAWEI> system-view
[~HUAWEI] l2protocol-tunnel stp group-mac 0100-5E00-0011
Related Topics

l2protocol-tunnel user-defined-protocol

Function

The l2protocol-tunnel user-defined-protocol command defines characteristic information about a user-defined Layer 2 protocol, including the protocol name, Ethernet encapsulation format, destination MAC address, and MAC address that replaces the destination MAC address of Layer 2 protocol packets.

The undo l2protocol-tunnel user-defined-protocol command deletes characteristic information about a user-defined Layer 2 protocol.

By default, no characteristic information about a user-defined Layer 2 protocol exists on the CE8800, CE7800, CE6800, and CE5800 series switches.

Format

l2protocol-tunnel user-defined-protocol protocol-name protocol-mac protocol-mac [ encap-type { { ethernetii | snap } protocol-type protocol-type-value | llc dsap dsap-value ssap ssap-value } ] group-mac { group-mac | default-group-mac }

undo l2protocol-tunnel user-defined-protocol protocol-name

Parameters

Parameter

Description

Value

protocol-name

Specifies the name of a user-defined Layer 2 protocol.

The value is a string of 1 to 31 characters without spaces.

NOTE:

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

protocol-mac protocol-mac

Specifies the multicast destination MAC address of the user-defined protocol packets.

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

encap-type

Indicates the encapsulation format of transparently transmitted Layer 2 protocol packets.
  • ethernetii: indicates Ethernet_II, the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

  • snap: indicates Sub-Network Access Protocol (SNAP), the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

  • llc: indicates Logical Link Control (LLC), the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

-

dsap dsap-value

Specifies the destination service access point.

The value ranges from 0x00 to 0xff, in hexadecimal format.

ssap ssap-value

Specifies the source service access point.

The value ranges from 0x00 to 0xff, in hexadecimal format.

protocol-type protocol-type-value

Indicates the Ethernet encapsulation format.

The value is a hexadecimal integer.
  • The value ranges from 600 to FFFF for Ethernet II encapsulation type.
  • The value ranges from 0 to FFFF for SNAP encapsulation type.

group-mac group-mac

Specifies the multicast MAC address that replaces the destination MAC address of Layer 2 protocol packets.

The value is in the format of H-H-H. An H is a hexadecimal number of 4 digits. The value ranges from 0100-0000-0000 to 01ff-ffff-ffff.

default-group-mac

Replaces the destination MAC address of Layer 2 protocol packets with the default multicast MAC address 0100-0ccd-cdd0.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When Layer 2 protocol packets with a specified multicast destination MAC address need to be transparently transmitted on an ISP network, you can define characteristic information about the Layer 2 protocol on devices on the ISP network.

When configuring Layer 2 protocol transparent transmission, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:

  • Reserved multicast MAC addresses: 0180-C200-0000 to 0180-C200-002F
  • Special multicast MAC addresses: 0100-0CCC-CCCC and 0100-0CCC-CCCD
  • Destination MAC address of Smart Link packets: 010F-E200-0004
  • Common multicast MAC addresses that have been used on the device

Before running the l2protocol-tunnel or l2protocol-tunnel vlan command to enable transparent transmission of user-defined Layer 2 protocol packets, run the l2protocol-tunnel user-defined-protocol command to define characteristic information about the Layer 2 protocol.

Example

# Define a Layer 2 protocol named huawei. Set the destination MAC address of its packets to 0180-c200-0022 and use multicast MAC address 0100-5e00-0012 to replace the destination MAC address of its packets.

<HUAWEI> system-view
[~HUAWEI] l2protocol-tunnel user-defined-protocol huawei protocol-mac 0180-c200-0022 group-mac 0100-5e00-0012

l2protocol-tunnel vlan

Function

The l2protocol-tunnel vlan command enables VLAN-based Layer 2 protocol transparent transmission on an interface.

The undo l2protocol-tunnel vlan command disables VLAN-based Layer 2 protocol transparent transmission on an interface.

By default, VLAN-based Layer 2 protocol transparent transmission is disabled on an interface.

Format

l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } vlan { low-id [ to high-id ] } &<1-10>

undo l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } vlan { low-id [ to high-id ] } &<1-10>

Parameters

Parameter

Description

Value

all

Enables or disables transparent transmission of packets of all standard Layer 2 protocols and user-defined Layer 2 protocols.

-

protocol-type

Enables or disables transparent transmission of packets of a specified Layer 2 protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Enables or disables transparent transmission of packets of a user-defined Layer 2 protocol. protocol-name specifies the name of a user-defined protocol.

The protocol-name must already exist.

low-id

Specifies the start VLAN ID.

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

high-id

Specifies the end VLAN ID.

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

Views

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

Default Level

2: Configuration level

Usage Guidelines

After a user-side interface of a PE on an ISP network is enabled to transparently transmit Layer 2 protocol packets, the interface directly forwards Layer 2 protocol packets sent from a user network instead of sending the packets to the CPU. In this way, Layer 2 protocol packets are transparently transmitted through the ISP network.

The l2protocol-tunnel vlan command is usually used on user-side interfaces of PEs.

The l2protocol-tunnel vlan command enables an interface to transparently transmit Layer 2 protocol packets from the specified VLANs. The l2protocol-tunnel command enables an interface to transparently transmit all Layer 2 protocol packets.

The l2protocol-tunnel vlan and l2protocol-tunnel commands cannot specify the same protocol type on the same interface. Otherwise, the configurations conflict.

Before specifying a user-defined protocol in the l2protocol-tunnel vlan command, run the l2protocol-tunnel user-defined-protocol command to define characteristic information about the Layer 2 protocol.

STP packets have a default MAC address for replacing the original destination MAC address. For packets of other Layer 2 protocols, you need to configure a global group MAC address to replace the destination MAC address. For details, see l2protocol-tunnel group-mac.

If the l2protocol-tunnel vlan command is run more than once, all configurations take effect.

Example

# Enable 10GE1/0/1 to transparently transmit STP packets with VLAN tags ranging from 100 to 200.

<HUAWEI> system-view
[~HUAWEI] vlan batch 100 to 200
[*HUAWEI] interface 10ge 1/0/1
[*HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 100 to 200
[*HUAWEI-10GE1/0/1] l2protocol-tunnel stp vlan 100 to 200
Related Topics

mac-address bpdu

Function

The mac-address bpdu command configures the MAC addresses of BPDUs.

The undo mac-address bpdu command cancels the MAC addresses of BPDUs.

By default, the packets with destination MAC address 0180-C2XX-XXXX are processed as BPDUs.

Format

mac-address bpdu mac-address [ mac-address-mask ]

undo mac-address bpdu [ mac-address [ mac-address-mask ] ]

Parameters

Parameter

Description

Value

mac-address [ mac-address-mask ]

Specifies the MAC address and mask of BPDUs.

NOTE:
A maximum of 128 MAC addresses of BPDUs can be configured using the mac-address bpdu command.

The first digit of the MAC address must be 0 and the second digit must be an odd number, for example, 03XX-XXXX-XXXX and 0fXX-XXXX-XXXX.

The mask of the MAC address must consist of consecutive 1s and 0s, for example, ffff-ffff-ff00 and ffff-fff0-0000.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A Bridge Protocol Data Unit (BPDU) uses a special reserved multicast MAC address. By default, the switch does not forward BPDUs at Layer 2.

Sometimes, bridge protocol packets of the devices from other vendors need to be processed as BPDUs. You can set the MAC address of such packets to the MAC address of BPDUs so that the device discards such packets.

Precautions

You can run the display mac-address bpdu command to display configured MAC addresses of BPDUs.

An interface can send and receive BPDUs regardless of whether the interface is blocked.

Example

# Configure the MAC address 0100-2222-3333 as MAC addresses of the BPDUs.

<HUAWEI> system-view
[~HUAWEI] mac-address bpdu 0100-2222-3333

reset l2protocol-tunnel statistics

Function

The reset l2protocol-tunnel statistics command clears statistics about Layer 2 protocol packets that are transparently transmitted on an interface.

Format

reset l2protocol-tunnel statistics interface-type interface-number [ protocol-type | user-defined-protocol protocol-name ]

Parameters

Parameter

Description

Value

interface-type interface-number

Clears statistics about Layer 2 protocol packets that are transparently transmitted on a specified interface.
  • interface-type specifies the type of an interface.

  • interface-number specifies the number of an interface.

The specified interface must be enabled with Layer 2 protocol transparent transmission.

-

protocol-type

Clears statistics about transparently transmitted packets of a specified protocol.

The protocol type can be:
  • Spanning Tree Protocol (STP)
  • Link Aggregation Control Protocol (LACP)
  • Ethernet Operation, Administration, and Maintenance 802.3ah (EOAM3ah)
  • Link Layer Discovery Protocol (LLDP)
  • GARP VLAN Registration Protocol (GVRP)
  • GARP Multicast Registration Protocol (GMRP)
  • HUAWEI Group Management Protocol (HGMP)
  • VLAN Trunking Protocol (VTP)
  • Unidirectional Link Detection (UDLD)
  • Port Aggregation Protocol (PAGP)
  • Cisco Discovery Protocol (CDP)
  • Per VLAN Spanning Tree Plus (PVST+)
  • Dynamic Trunking Protocol (DTP)
  • Device Link Detection Protocol (DLDP)
You can select one or more Layer 2 protocols.

user-defined-protocol protocol-name

Clears statistics about transparently transmitted packets of a user-defined protocol. protocol-name specifies the name of a user-defined protocol.

The value is a string of 1 to 31 characters without spaces.

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

Views

User view

Default Level

3: Management level

Usage Guidelines

To collect statistics about Layer 2 protocol packets transparently transmitted on an interface in a specified period, you must reset original statistics on the interface.

When using the reset l2protocol-tunnel statistics command, pay attention to the following points:

  • If you specify an interface but do not specify any protocol, statistics about all Layer 2 protocol packets on the interface are reset.

  • If you specify an interface and a protocol, statistics about packets of the specified protocol are reset.

NOTE:

Statistics about Layer 2 protocol packets cannot be restored after being deleted. Confirm your action before you use this command.

Example

# Reset statistics about all Layer 2 protocol packets on 10GE 1/0/1.

<HUAWEI> reset l2protocol-tunnel statistics 10ge 1/0/1

stp bpdu vlan

Function

The stp bpdu vlan command configures the STP packets sent from an interface to contain the specified VLAN ID.

The undo stp bpdu vlan command cancels the configuration.

By default, the STP packets sent from an interface do not contain VLAN IDs.

Format

stp bpdu vlan vlan-id

undo stp bpdu vlan

Parameters

Parameter

Description

Value

vlan-id

Specifies the VLAN ID contained in the STP packets sent from an 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, port group view, Eth-Trunk interface view

Default Level

2: Configuration level

Usage Guidelines

When multiple user networks connect to the interfaces of the same PE, the PE interface needs to distinguish STP packets from different user networks. In this case, you need to configure the STP packets sent from each CE interface to contain the specified VLAN ID. In addition, the STP packets sent to the CE interface must also contain the specified VLAN ID.

On the CE interface, run the stp bpdu vlan vlan-id command to configure the STP packets sent to the PE to contain the specified VLAN ID. On the PE interface connected to the CE, run the l2protocol-tunnel vlan command to enable the STP packets with the specified VLAN ID to traverse the ISP network.

Before running the stp bpdu vlan command on a CE interface, ensure that the CE interface has been added to the specified VLAN.

The stp bpdu vlan command is usually configured on the network interface of the CE.

Example

# Configure the STP packets sent from 10GE 1/0/1 to contain VLAN ID 100.

<HUAWEI> system-view
[~HUAWEI] interface 10ge 1/0/1
[~HUAWEI-10GE1/0/1] port link-type trunk
[*HUAWEI-10GE1/0/1] port trunk allow-pass vlan 100
[*HUAWEI-10GE1/0/1] stp bpdu vlan 100
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 51275

Downloads: 337

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