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

AR500, AR510, and AR530 V200R007 Commands Reference

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

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.

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

NOTE:
Only Layer 3 interfaces support this command.

Format

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

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

Parameters

Parameter

Description

Value

protocol-type

Specifies the type of a Layer 2 protocol.

Enumerated value. The values are as follows:
  • STP: Spanning Tree Protocol
  • LACP: Link Aggregation Control Protocol
  • LLDP: Link Layer Discovery Protocol
  • CDP: Cisco Discovery Protocol

You can run this command with different values of protocol-type specified, and the commands are not overridden.

user-defined-protocol protocol-name

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

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

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

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Layer 2 protocols running between user networks, such as MSTP 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.

You can configure Layer 2 protocol transparent transmission and run the l2protocol-tunnel group-mac or l2protocol-tunnel user-defined-protocol command to replace the destination MAC address of Layer 2 protocol packets with a specified MAC address. Then run the l2protocol-tunnel enable command on the PE interface connected to the public network so that the Layer 2 protocol packets with the specified MAC address can be forwarded from this interface and traverse the public network.

Precautions

You must add the interface where the l2protocol-tunnel enable command is configured to the network bridge group so that Layer 2 protocol transparent transmission can take effect. You can run the bridge bridge-id command to add the interface to the network bridge group.

Example

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

<Huawei> system-view
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] l2protocol-tunnel stp enable

l2protocol-tunnel group-mac

Function

The l2protocol-tunnel group-mac command enables the device to replace the multicast destination MAC address of Layer 2 protocol packets with a specified multicast MAC address.

The undo l2protocol-tunnel command cancels the configuration.

By default, the device is not enabled to replace the multicast destination MAC address of Layer 2 protocol packets with a specified multicast MAC address.

Format

l2protocol-tunnel protocol-type group-mac group-mac

undo l2protocol-tunnel protocol-type

Parameters

Parameter

Description

Value

protocol-type

Specifies the type of a Layer 2 protocol.

Enumerated value. The values are as follows:
  • STP: Spanning Tree Protocol
  • LACP: Link Aggregation Control Protocol
  • LLDP: Link Layer Discovery Protocol
  • CDP: Cisco Discovery Protocol
NOTE:

You can run this command with different values of protocol-type specified, and the commands are not overridden.

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-0ccd-0000 to 0100-0ccd-ffff.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

Layer 2 protocols running between user networks, such as MSTP 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 multicast MAC addresses that have been used on the device.

Example

# Configure a device to replace the destination MAC address of STP packets with 0100-0ccd-eeee before tunneling the STP BPDUs.

<Huawei> system-view
[Huawei] l2protocol-tunnel stp group-mac 0100-0ccd-eeee
Info: Please make sure the input multicast MAC address doesn't conflict with other protocols.
Related Topics

l2protocol-tunnel user-defined-protocol

Function

The l2protocol-tunnel user-defined-protocol command customizes Layer 2 protocol packets, including the protocol name, multicast 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 cancels the configuration.

By default, Layer 2 protocol packets are not customized.

Format

l2protocol-tunnel user-defined-protocol protocol-name protocol-mac protocol-mac group-mac 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 case-sensitive 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. The value ranges from 0180-c200-0000 to 0180-c200-0013, 0180-c200-0016 to 0180-c200-002f and 0100-0ccc-cccc to 0100-0ccc-cccd.

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-0ccd-0000 to 0100-0ccd-ffff.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

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.

Before running the l2protocol-tunnel enable 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.

Precautions

When Layer 2 protocol transparent transmission is configured, the destination MAC address of user-defined protocol packets must be different from that of STP BPDUs, LACPDUs, LLDPDUs, and CDP packets, and the replaced multicast MAC address must be different from the used multicast MAC address.

Example

# Define a Layer 2 protocol named huawei. Set the destination MAC address of its packets to 0180-c200-0020 and use multicast MAC address 0100-0ccd-eeee to replace the destination MAC address of its packets.

<Huawei> system-view
[Huawei] l2protocol-tunnel user-defined-protocol huawei protocol-mac 0180-c200-0020 group-mac 0100-0ccd-eeee
Info: Please make sure the input multicast MAC address doesn't conflict with other protocols. 
Related Topics
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 52955

Downloads: 102

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