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

Configuration Guide - VPN

S1720, S2700, S5700, and S6720 V200R010C00

This document describes the VPN configuration procedures and provides configuration examples.
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 PW Switching

Configuring PW Switching

Context

To forward packets through a multi-segment PW, configure PW switching so that PW labels can be exchanged. PW switching must be configured on the Superstratum PE (SPE) where a large number of MPLS LDP sessions can be established.

In the following cases, PW switching is required:

  • Two PEs are in different ASs, and no signaling connection or tunnel can be set up between the two PEs.

  • Two PEs use different signaling.

  • If the access device can run MPLS but does not support a large number of LDP sessions, the User Facing Provider Edge (UFPE) can be used as a UPE and the SPE as a node for switching LDP sessions. The SPE is similar to a signaling reflector.

PW switching supports three modes: static mode, dynamic mode, and mixed mode:

  • When static PWs are used between the SPE and two connected PEs, configure static PW switching.
  • When dynamic PWs are used between the SPE and two connected PEs, configure dynamic PW switching.
  • When a static PW and a dynamic PW are used between the SPE and two connected PEs, configure mixed PW switching.

Pre-configuration Tasks

Before configuring multi-segment PW switching, complete the following tasks:

  • Enable MPLS L2VPN on PEs.

  • Configure a static PW on UPEs if PW switching is performed between two static PWs. For details, see Configuring a Static PW.

  • Configure a dynamic PW on UPEs if PW switching is performed between two dynamic PWs. For details, see Configuring a Dynamic PW.

Procedure

  • Configuring static PW switching

    Perform the following operations on the SPE.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      mpls switch-l2vc ip-address vc-id trans trans-label recv received-label between ip-address vc-id trans trans-label recv received-label encapsulation encapsulation-type [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]

      Static PW switching is configured.

      To configure static PW switching, you must configure PW labels on each SPE.

      A static multi-segment PW is established as follows:

      • On the UPE, when the AC status is Up and the PSN tunnel exists, the PW status is Up.

      • On the SPE, as long as the PSN tunnels exist on both sides, the PW is in Up state even if the SPE and UPE use different PW encapsulation types.

      It is recommended that you set the same PW encapsulation type by specifying the encapsulation-type parameter on the SPE and UPE to facilitate management.

  • Configuring dynamic PW switching

    Perform the following operations on the SPE.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      mpls switch-l2vc ip-address vc-id between ip-address vc-id encapsulation encapsulation-type [ control-word-transparent ]

      Dynamic PW switching is configured.

      Dynamic PW switching is easy to configure. Two neighboring endpoints (UPE or SPE) will send remote labels to the SPE through signaling. Two UPEs will send the control word and VCCV to the SPE through signaling.

      The PW encapsulation type (specified by the encapsulation-type parameter) on the SPE must be the same as that on the UPE. Otherwise, the PW cannot go Up.

  • Configuring mixed PW switching

    NOTE:

    When you configure mixed PW switching, ip-address vc-id before between specifies the VC ID of a dynamic PW and ip-address vc-id after between specifies the VC ID of a static PW. The two values cannot be interchanged.

    Perform the following operations on the SPE.

    1. Run:

      system-view

      The system view is displayed.

    2. Run:

      mpls switch-l2vc ip-address vc-id between ip-address vc-id trans trans-label recv received-label encapsulation encapsulation-type [ mtu mtu-value ] [ control-word [ cc { alert | cw } * cv lsp-ping ] | [ no-control-word ] [ cc alert cv lsp-ping ] ] [ control-word-transparent ]

      Mixed PW switching is configured.

      To configure mixed PW switching, configure a PW label for the static PW. The PW encapsulation type (specified by the encapsulation-type parameter) on the SPE must be the same as that on the UPE connected to a dynamic PW.

      To configure mixed PW switching, the following MTUs must be the same:

      • Local MTU of the dynamic PW

      • Peer MTU of the dynamic PW

      • Local MTU of the static PW

      • Peer MTU of the static PW

      NOTE:

      In mixed PW switching, the MTUs of the interfaces on the two ends must be the same and cannot be greater than 1500 bytes.

Checking the Configuration

Run the display mpls switch-l2vc [ ip-address vc-id encapsulation encapsulation-type | state { down | up } ] command on the SPE to view information about PW switching.

Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000141944

Views: 102966

Downloads: 572

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