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

CX11x, CX31x, CX710 (Earlier Than V6.03), and CX91x Series Switch Modules V100R001C10 Configuration Guide 13

The documents describe the configuration of various services supported by the CX11x&CX31x&CX91x series switch modules The description covers configuration examples and function configurations.
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).
Configuring Layer 2 Protocol Transparent Transmission

Configuring Layer 2 Protocol Transparent Transmission

Configuring Interface-based Layer 2 Protocol Transparent Transmission

When each interface of a backbone device is connected to only one user network and Layer 2 protocol packets sent from the user network do not need VLAN tags, configure interface-based Layer 2 protocol transparent transmission on the interface connected to the user network. This configuration allows Layer 2 protocol packets to be transparently transmitted on the backbone network.

Pre-configuration Tasks

Before configuring interface-based Layer 2 protocol transparent transmission, complete the following task:
  • Setting link layer protocol parameters and IP addresses for interfaces to ensure that the link layer protocol on the interfaces is Up

(Optional) Defining Characteristic Information About a Layer 2 Protocol

Context

When non-standard Layer 2 protocol packets with a specified multicast destination MAC address need to be transparently transmitted on the backbone network, define characteristic information about the Layer 2 protocol on the PE. The characteristics of the Layer 2 protocol include the protocol name, Ethernet encapsulation format, destination MAC address, and MAC address that replaces the destination MAC address of Layer 2 protocol packets.

When defining characteristic information about a Layer 2 protocol, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:

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

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    Characteristic information about a Layer 2 protocol is defined.

  3. Run:

    commit

    The configuration is committed.

Configuring the Multicast MAC Address for Layer 2 Protocol Transparent Transmission

Context

To prevent a backbone network edge device from sending the received Layer 2 protocol packets to its CPU for processing and ensure that the Layer 2 protocol packets are tunneled across the backbone network, configure the edge device to replace the multicast destination MAC address in Layer 2 protocol packets with a specified multicast MAC address.

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    The original multicast destination MAC address of Layer 2 protocol packets is replaced with a specified multicast MAC address.

    Most Layer 2 protocols can be identified by protocol type. You can configure a group MAC address for this type of protocol to reduce configuration workload. The default group MAC address is 0100-0ccd-cdd0.

    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 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:

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

  3. Run:

    commit

    The configuration is committed.

Enabling Layer 2 Protocol Transparent Transmission on an Interface

Context

Perform the following operations on PEs based on the required Layer 2 protocol transparent transmission mode.

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

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The user-side interface view is displayed.

  3. Run:

    port link-type hybrid

    The link type of the interface is set to hybrid.

  4. Run:

    port hybrid pvid vlan vlan-id

    The default VLAN of the interface is configured.

  5. Run:

    port hybrid untagged vlan vlan-id

    The interface is added to the default VLAN in untagged mode.

    The VLAN tag specified in step 5 must be the same as that specified in step 4.

  6. Run:

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

    Layer 2 protocol transparent transmission is enabled on the interface.

  7. (Optional) Run:

    l2protocol-tunnel drop-threshold

    The drop threshold for Layer 2 protocol packets is configured.

    By default, the drop threshold is 0, meaning that interfaces enabled with Layer 2 protocol tunneling do not limit the volume of received Layer 2 protocol packets.

    Configuring a drop threshold for Layer 2 protocol packets protects interfaces enabled with Layer 2 protocol tunneling against protocol packet attacks. The interfaces drop excess Layer 2 protocol packets when the number of Layer 2 protocol packets received in 1s exceeds the configured drop threshold.

  8. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display l2protocol-tunnel group-mac { all | protocol-type | user-defined-protocol protocol-name } command to check information about transparent transmission of specified or all Layer 2 protocol packets.

Configuring VLAN-based Layer 2 Protocol Transparent Transmission

When each interface of a backbone device is connected to multiple user networks and Layer 2 protocol packets sent from user networks contain VLAN tags, configure VLAN-based Layer 2 protocol transparent transmission. This configuration allows Layer 2 protocol packets to be transparently transmitted on the backbone network.

Pre-configuration Tasks

Before configuring interface-based Layer 2 protocol transparent transmission, complete the following task:
  • Setting link layer protocol parameters and IP addresses for interfaces to ensure that the link layer protocol on the interfaces is Up

(Optional) Defining Characteristic Information About a Layer 2 Protocol

Context

When non-standard Layer 2 protocol packets with a specified multicast destination MAC address need to be transparently transmitted on the backbone network, define characteristic information about the Layer 2 protocol on the PE. The characteristics of the Layer 2 protocol include the protocol name, Ethernet encapsulation format, destination MAC address, and MAC address that replaces the destination MAC address of Layer 2 protocol packets.

When defining characteristic information about a Layer 2 protocol, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:

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

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    Characteristic information about a Layer 2 protocol is defined.

  3. Run:

    commit

    The configuration is committed.

Configuring the Multicast MAC Address for Layer 2 Protocol Transparent Transmission

Context

To prevent a backbone network edge device from sending the received Layer 2 protocol packets to its CPU for processing and ensure that the Layer 2 protocol packets are tunneled across the backbone network, configure the edge device to replace the multicast destination MAC address in Layer 2 protocol packets with a specified multicast MAC address.

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    The original multicast destination MAC address of Layer 2 protocol packets is replaced with a specified multicast MAC address.

    Most Layer 2 protocols can be identified by protocol type. You can configure a group MAC address for this type of protocol to reduce configuration workload. The default group MAC address is 0100-0ccd-cdd0.

    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 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:

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

  3. Run:

    commit

    The configuration is committed.

Enabling VLAN-based Layer 2 Protocol Transparent Transmission on an Interface

Context

Perform the following operations on PEs according to the type of Layer 2 protocol packets to be transparently transmitted.

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

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The user-side interface view is displayed.

  3. Configure the link type of the interface as trunk or hybrid.

    • Set the link type of the interface to trunk.

      1. Run:

        port link-type trunk

        The link type of the interface is set to trunk.

      2. Run:

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

        The interface is added to a VLAN.

    • Set the link type of the interface to hybrid.

      1. Run:

        port link-type hybrid

        The link type of the interface is set to hybrid.

      2. Run:

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

        The interface is added to the specified VLANs in tagged mode.

    The range of VLAN IDs specified in this step must include VLAN IDs of Layer 2 protocol packets from user networks.

  4. Run:

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

    VLAN-based Layer 2 protocol transparent transmission is enabled on the interface.

  5. (Optional) Run:

    l2protocol-tunnel drop-threshold

    The drop threshold for Layer 2 protocol packets is configured.

    By default, the drop threshold is 0, meaning that interfaces enabled with Layer 2 protocol tunneling do not limit the volume of received Layer 2 protocol packets.

    Configuring a drop threshold for Layer 2 protocol packets protects interfaces enabled with Layer 2 protocol tunneling against protocol packet attacks. The interfaces drop excess Layer 2 protocol packets when the number of Layer 2 protocol packets received in 1s exceeds the configured drop threshold.

  6. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display l2protocol-tunnel group-mac { all | protocol-type | user-defined-protocol protocol-name } command to check information about transparent transmission of specified or all Layer 2 protocol packets.

Configuring Basic QinQ-based Layer 2 Protocol Transparent Transmission

When each interface of a backbone device is connected to multiple user networks and Layer 2 protocol packets sent from user networks contain VLAN tags, you can configure basic QinQ-based Layer 2 protocol transparent transmission. This configuration allows Layer 2 protocol packets to be transparently transmitted on the backbone network and reduces VLAN IDs that the carrier uses.

Pre-configuration Tasks

Before configuring interface-based Layer 2 protocol transparent transmission, complete the following task:
  • Setting link layer protocol parameters and IP addresses for interfaces to ensure that the link layer protocol on the interfaces is Up

(Optional) Defining Characteristic Information About a Layer 2 Protocol

Context

When non-standard Layer 2 protocol packets with a specified multicast destination MAC address need to be transparently transmitted on the backbone network, define characteristic information about the Layer 2 protocol on the PE. The characteristics of the Layer 2 protocol include the protocol name, Ethernet encapsulation format, destination MAC address, and MAC address that replaces the destination MAC address of Layer 2 protocol packets.

When defining characteristic information about a Layer 2 protocol, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:

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

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    Characteristic information about a Layer 2 protocol is defined.

  3. Run:

    commit

    The configuration is committed.

Configuring the Multicast MAC Address for Layer 2 Protocol Transparent Transmission

Context

To prevent a backbone network edge device from sending the received Layer 2 protocol packets to its CPU for processing and ensure that the Layer 2 protocol packets are tunneled across the backbone network, configure the edge device to replace the multicast destination MAC address in Layer 2 protocol packets with a specified multicast MAC address.

Perform the following operations on PEs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

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

    The original multicast destination MAC address of Layer 2 protocol packets is replaced with a specified multicast MAC address.

    Most Layer 2 protocols can be identified by protocol type. You can configure a group MAC address for this type of protocol to reduce configuration workload. The default group MAC address is 0100-0ccd-cdd0.

    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 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:

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

  3. Run:

    commit

    The configuration is committed.

Enabling Basic QinQ-based Layer 2 Transparent Transmission on an Interface

Context

Perform the following operations on PEs based on the required Layer 2 protocol transparent transmission mode.

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

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The user-side interface view is displayed.

  3. Run:

    port link-type dot1q-tunnel

    The link type of the interface is set to dot1q-tunnel.

  4. Run:

    port default vlan vlan-id

    The Dot1q tunnel interface is enabled to add an outer VLAN tag to Layer 2 protocol packets from user networks.

  5. Run:

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

    Basic QinQ-based Layer 2 protocol transparent transmission is enabled on the interface.

    The outer VLAN tag specified in step 4 must be included in the VLAN range specified in step 5.

  6. (Optional) Run:

    l2protocol-tunnel drop-threshold

    The drop threshold for Layer 2 protocol packets is configured.

    By default, the drop threshold is 0, meaning that interfaces enabled with Layer 2 protocol tunneling do not limit the volume of received Layer 2 protocol packets.

    Configuring a drop threshold for Layer 2 protocol packets protects interfaces enabled with Layer 2 protocol tunneling against protocol packet attacks. The interfaces drop excess Layer 2 PDUs when the number of Layer 2 protocol packets received in 1s exceeds the configured drop threshold.

  7. Run:

    commit

    The configuration is committed.

Checking the Configuration

Procedure

  • Run the display l2protocol-tunnel group-mac { all | protocol-type | user-defined-protocol protocol-name } command to check information about transparent transmission of specified or all Layer 2 protocol packets.
Translation
Download
Updated: 2019-12-13

Document ID: EDOC1000041694

Views: 61074

Downloads: 3623

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