Huawei AR1200 Series Configuration Manual - Mpls
Huawei AR1200 Series Configuration Manual - Mpls

Huawei AR1200 Series Configuration Manual - Mpls

Enterprise routers
Hide thumbs Also See for AR1200 Series:
Table of Contents

Advertisement

Huawei AR1200 Series Enterprise Routers
V200R002C00
Configuration Guide - MPLS
Issue
01
Date
2011-12-30
HUAWEI TECHNOLOGIES CO., LTD.

Advertisement

Table of Contents
loading

Summary of Contents for Huawei AR1200 Series

  • Page 1 Huawei AR1200 Series Enterprise Routers V200R002C00 Configuration Guide - MPLS Issue Date 2011-12-30 HUAWEI TECHNOLOGIES CO., LTD.
  • Page 2 All other trademarks and trade names mentioned in this document are the property of their respective holders. Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope.
  • Page 3: About This Document

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS About This Document About This Document Intended Audience This document provides the basic concepts, configuration procedures, and configuration examples in different application scenarios of the static LSPs configuration, and MPLS LDP configuration supported by the AR1200 device.
  • Page 4: Command Conventions

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS About This Document Command Conventions The command conventions that may be found in this document are defined as follows. Convention Description Boldface The keywords of a command line are in boldface.
  • Page 5: Table Of Contents

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS Contents Contents About This Document........................ii 1 Static LSPs Configuration......................1 1.1 Overview of Static LSPs.............................2 1.2 Static LSPs Features Supported by the AR1200....................2 1.3 Configuring Static LSPs.............................2 1.3.1 Establishing the Configuration Task......................2 1.3.2 Configuring the LSR ID..........................3...
  • Page 6 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS Contents 2.4.4 Configuring a Remote LDP Session......................32 2.4.5 (Optional) Configuring Timers for a Remote LDP Session..............33 2.4.6 Checking the Configuration........................37 2.5 Configuring LDP LSPs.............................39 2.5.1 Establishing the Configuration Task.......................39 2.5.2 Establishing LDP LSPs...........................40 2.5.3 (Optional) Configuring PHP........................40...
  • Page 7 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS Contents 2.11 Configuring LDP GR............................67 2.11.1 Establishing the Configuration Task.....................68 2.11.2 Enabling LDP GR..........................68 2.11.3 (Optional) Configuring GR Helper Timers...................69 2.11.4 Checking the Configuration........................70 2.12 Maintaining MPLS LDP..........................70 2.12.1 Resetting LDP............................70 2.12.2 Checking the LSP Connectivity and Reachability................71...
  • Page 8: Static Lsps Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration Static LSPs Configuration About This Chapter You can set up a static LSP by manually allocating labels to LSRs. The static LSP applies stable, small-scale networks. 1.1 Overview of Static LSPs The static LSP cannot be set up using a label distribution protocol but can be set up by an administrator.
  • Page 9: Overview Of Static Lsps

    The administrator, therefore, needs to adjust the static LSPs according to the network topology. Static LSPs are used over MPLS L2VPNs. For information about the MPLS L2VPN configuration, refer to the Huawei AR1200 Series Enterprise Routers Configuration Guide - VPN. Issue 01 (2011-12-30) Huawei Proprietary and Confidential Copyright ©...
  • Page 10: Configuring The Lsr Id

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration Pre-configuration Tasks Before configuring static LSPs, complete the following task: Configuring a static unicast route or an IGP to connect LSRs on the network layer Data Preparation To configure static LSPs, you need the following data.
  • Page 11: Enabling Mpls

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration 1.3.3 Enabling MPLS MPLS features can be configured only after MPLS is enabled. Context Perform the following steps on each LSR in an MPLS domain: Procedure Step 1 Run: system-view The system view is displayed.
  • Page 12: Configuring The Transit Node For A Static Lsp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration To modify the destination destination-address, nexthop next-hop-address, outgoing- interface interface-type interface-number, or out-label out-label, run the static-lsp ingress command to set a new value. There is no need to run the undo static-lsp ingress command before changing a configured value.
  • Page 13: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration To modify the incoming-interface interface-type interface-number or in-label in-label-value, run the static-lsp egress command to set a new value. There is no need to run the undo static- lsp egress command before changing a configured value.
  • Page 14: Enabling The Lsp Trap Function

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration Procedure Run: ping lsp [ -a source-ip | -c count | -exp exp-value | -h ttl-value | -m interval | -r reply-mode | -s packet-size | -t time-out | -v ]...
  • Page 15: Networking Requirements

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration Networking Requirements As shown in Figure 1-1, the LSRs support MPLS and OSPF as an IGP running on the MPLS backbone network. Bidirectional static LSPs are set up between LSRA and LSRD. The LSP from LSRA to LSRD is LSRA ->...
  • Page 16 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration Outgoing label of the interfaces Procedure Step 1 Configure the IP address of each interface. According to Figure 1-1, configure the IP address and the mask of the interfaces, including the loopback interface.
  • Page 17 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration OSPF 10.3.1.2 GigabitEthernet2/0/0 10.1.1.0/30 Direct 0 10.1.1.1 GigabitEthernet1/0/0 10.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 10.1.1.2/32 Direct 0 10.1.1.2 GigabitEthernet1/0/0 10.2.1.0/30 OSPF 10.1.1.2 GigabitEthernet1/0/0 10.3.1.0/30 Direct 0 10.3.1.1 GigabitEthernet2/0/0 10.3.1.1/32...
  • Page 18 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration [LSRD-mpls] quit Step 4 Configure the basic MPLS functions on each interface. # Configure LSRA. [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] mpls [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0...
  • Page 19 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration As the LSP is unidirectional, you need to configure a static LSP from LSRD to LSRA. Step 6 Establish the static LSP from LSRD to LSRA. In the same method, configure the static LSP from LSRD to LSRA.
  • Page 20 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration sysname LSRA mpls lsr-id 1.1.1.9 mpls interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.252 mpls interface GigabitEthernet2/0/0 ip address 10.3.1.1 255.255.255.252 mpls interface LoopBack1 ip address 1.1.1.9 255.255.255.255 ospf 1 area 0.0.0.0...
  • Page 21 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 1 Static LSPs Configuration mpls interface LoopBack1 ip address 3.3.3.9 255.255.255.255 ospf 1 area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.3.1.0 0.0.0.3 network 10.4.1.0 0.0.0.3 static-lsp transit RDtoRA incoming-interface GigabitEthernet2/0/0 in-label 30 nexthop 10.3.1.1 out-label 60...
  • Page 22: Mpls Ldp Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration MPLS LDP Configuration About This Chapter MPLS LDP defines the messages used during label distribution and the processing of the messages that are used to negotiate parameters between LSRs and allocate labels to set up an LSP.
  • Page 23 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration By configuring LDP GTSM, you can detect TTLs to prevent attacks. 2.10 Configuring LDP Security Features LDP security features such as MD5 authentication, keychain authentication, and the GTSM can be configured to meet high network security requirements.
  • Page 24: Instruction To Mpls Ldp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.1 Instruction to MPLS LDP MPLS LDP, a label distribution protocol, is widely used for transmitting VPN services. Its networking and configurations are simple. MPLS LDP supports route-driven establishment of a large number of LSPs.
  • Page 25: Mpls Ldp Features Supported By The Ar1200

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.2 MPLS LDP Features Supported by the AR1200 The AR1200 supports LDP sessions, LDP LSPs, the inter-area LDP extension, and reliability. LDP Sessions LDP sessions are established to exchange labels between label switching routers (LSRs). LDP sessions are classified into the following types: Local LDP session: established only between adjacent LSRs.
  • Page 26: Configuring A Local Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration – LDP MD5: A typical MD5 application is to calculate a message digest to prevent message spoofing. The MD5 message digest is a unique result calculated using an irreversible character string conversion.
  • Page 27: Configuring Global Ldp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Item Data LSR ID of each LSR Type and number of the interface on which the local LDP session is to be set up (Optional) LDP transport addresses...
  • Page 28: Optional) Configuring The Dynamic Ldp Advertisement Capability

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration By default, no node is enabled with MPLS globally. Step 4 Run: quit The system view is displayed. Step 5 Run: mpls ldp LDP is enabled globally and the MPLS-LDP view is displayed.
  • Page 29: Configuring A Local Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration capability-announcement The dynamic LDP advertisement capability is enabled. By default, the dynamic LDP advertisement capability is not enabled. NOTE Enabling dynamic LDP advertisement after an LDP session is established will result in reestablishment of the LDP session.
  • Page 30: Optional) Configuring Timers For A Local Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Context LDP transport addresses are used to set up a TCP connection and need to be configured on both nodes of a local LDP session. The default transport address is the loopback interface address used as an LSR ID.
  • Page 31 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Table 2-1 Timers for a local LDP session LDP Timers Description Suggestion Link Hello send Used to send Hello messages On an unstable network, decrease the timer...
  • Page 32 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Procedure Perform the following steps to configure a link Hello send timer: Run: system-view The system view is displayed. Run: interface interface-type interface-number The view of an interface on which an LDP session is to be established is displayed.
  • Page 33 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Effective value of a KeepAlive send timer = Min { Configured value of the KeepAlive send timer, one third of the value of the KeepAlive hold timer } If more than one LDP-enabled links connect two LSRs, the values of KeepAlive send timers for all links must be the same.
  • Page 34: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls ldp The MPLS-LDP view is displayed. Run: backoff timer init max An Exponential backoff timer is configured. Note the following settings: – init: specifies the initial value of an Exponential backoff timer. The value is an integer ranging from 5 to 2147483, in seconds.
  • Page 35 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Example Run the display mpls interface command to view information about all MPLS-enabled interfaces. <Huawei> display mpls interface Interface Status TE Attr LSP Count CRLSP Count Effective MTU...
  • Page 36: Configuring A Remote Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration PeerID Status SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 2.2.2.2:0 Operational DU Passive 0000:01:36 387/386 3.3.3.3:0 Operational DU Passive 0000:01:30 361/361 ------------------------------------------------------------------------------ TOTAL: 2 session(s) Found. <Huawei> display mpls ldp session verbose...
  • Page 37: Configuring Global Ldp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuring static routes or an IGP to ensure reachable routes between LSRs Data Preparation To configure a remote LDP session, you need the following data. Data LSR ID of every LSR...
  • Page 38: Optional) Configuring The Dynamic Ldp Advertisement Capability

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 3 Run: mpls MPLS is enabled globally and the MPLS view is displayed. By default, no node is enabled with MPLS globally. Step 4 Run: quit The system view is displayed.
  • Page 39: Huawei Proprietary And Confidential

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls ldp The MPLS-LDP view is displayed. Step 3 Run: capability-announcement The dynamic LDP advertisement capability is enabled. By default, the dynamic LDP advertisement capability is not enabled.
  • Page 40: Optional) Configuring Timers For A Remote Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.4.5 (Optional) Configuring Timers for a Remote LDP Session A remote LDP session uses the following timers: target Hello send timer, target Hello hold timer, Keepalive send timer, Keepalive hold timer, and Exponential backoff timer.
  • Page 41 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Timer Description Usage Exponential Started by an LSR that plays an l The initial and maximum values backoff timer active role after the LSR fails to can be increased to allow a longer...
  • Page 42 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration The default value of the target Hello hold timer is 45, in seconds. The value of the target Hello hold timer configured using the mpls ldp timer hello- hold command may not be equal to the value of the timer that takes effect.
  • Page 43 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration If there is more than one LDP link between two LSRs, the values of the Keepalive hold timers configured for the links must be the same. Different settings cause the LDP sessions to be unstable.
  • Page 44: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.4.6 Checking the Configuration After configuring a remote LDP session successfully, you can view information about MPLS- and LDP-enabled interfaces, LDP configurations, LDP session status, LDP peers, and remote LDP peers.
  • Page 45 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration LDP Interface Information in Public Network ------------------------------------------------------------------------------ Interface Name : GigabitEthernet1/0/0 LDP ID : 1.1.1.1:0 Transport Address : 1.1.1.1 Entity Status : Active Effective MTU : 1500...
  • Page 46: Configuring Ldp Lsps

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ------------------------------------------------------------------------------ PeerID TransportAddress DiscoverySource ------------------------------------------------------------------------------ 2.2.2.2:0 2.2.2.2 GigabitEthernet1/0/0 3.3.3.3:0 3.3.3.3 GigabitEthernet2/0/0 ------------------------------------------------------------------------------ TOTAL: 2 Peer(s) Found. Run the display mpls ldp remote-peer command to view remote LDP peer information.
  • Page 47: Establishing Ldp Lsps

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration VPN Configuration" in the Huawei AR1200 Series Enterprise Routers Configuration Guide - VPN. – Host routes trigger LSP establishment. – Routes matching an IP prefix list triggers LSP establishment.
  • Page 48: Optional) Configuring An Ldp Label Advertisement Mode

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Procedure Step 1 Run: system-view The system view is displayed. Step 2 Run: mpls The MPLS view is displayed. Step 3 Run: label advertise { explicit-null | implicit-null | non-null } The label allocated to the LSR at the penultimate hop is configured.
  • Page 49: Optional) Configuring Ldp To Automatically Trigger The Request In Dod Mode

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration system-view The system view is displayed. Run: interface interface-type interface-number The interface view is displayed. Run: mpls ldp advertisement { dod | du } A label advertisement mode is configured.
  • Page 50: Configuring An Mpls Mtu On An Interface

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration remote-peer auto-dod-request The function of triggering a request to a downstream node for a label mapping message associated with all remote LDP peers with a specified LSR ID in DoD mode.
  • Page 51: Optional) Configuring Ldp Mtu Signaling

    Huawei device. This command allows the Huawei device to send the MTU TLV in compliance with RFC 3988 to the non-Huawei device. If this command is not run, a configured LDP MTU may fail to take effect.
  • Page 52: Optional) Configuring The Inbound And Outbound Ldp Policies

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration LDP split horizon policy can be configured to reduce the number of unwanted LSPs and efficiently use memory. Procedure Step 1 Run: system-view The system view is displayed.
  • Page 53 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Run: system-view The system view is displayed. Run: mpls ldp The MPLS-LDP view is displayed. Run: inbound peer { peer-id | peer-group peer-group-name | all } fec { none |...
  • Page 54: Optional) Configuring A Policy For Triggering Ldp Lsp Establishment

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration outbound peer { peer-id | peer-group peer-group-name | all } bgp-label- route { none | ip-prefix prefix-name } To apply a policy associated with a single FEC range to an LDP peer group or all LDP peers to which the local LSR sends Label Mapping messages, configure either the peer-group peer-group-name or all parameter in the command.
  • Page 55: Optional) Configuring A Policy For Triggering Transit Lsp Establishment

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 2 Run: mpls The MPLS view is displayed. Step 3 Perform either of the following steps to configure a policy for triggering LDP LSP establishment: l To allow static routes and IGP routes to trigger LDP LSP establishment, run:...
  • Page 56: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration propagate mapping for ip-prefix ip-prefix-name A policy for triggering transit LSP establishment is configured. LDP uses all routes without filtering them to establish transit LSPs by default.
  • Page 57: Configuring Ldp Extension For Inter-Area Lsp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration _------------------------------------------------------------------------------- TOTAL: 1 Normal LSP(s) Found. TOTAL: 0 Liberal LSP(s) Found. TOTAL: 0 Frr LSP(s) Found. A '*' before an LSP means the LSP is not established...
  • Page 58: Configuring Ldp Extension For Inter-Area Lsp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Data IS-IS area ID of each node and level of each node and interface 2.6.2 Configuring LDP Extension for Inter-Area LSP To configure LDP extension for inter-area LSP, configure the ingress or transit node.
  • Page 59: Configuring Synchronization Between Ldp And Igp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration LSP Information: LDP LSP ------------------------------------------------------------------------------- In/Out Label In/Out IF Vrf Name 1.2.0.1/32 NULL/3 -/GE1/0/0 1.2.0.1/32 1024/3 -/GE1/0/0 1.3.0.1/32 NULL/1025 -/GE1/0/0 1.3.0.1/32 1025/1025 -/GE1/0/0 1.3.0.2/32 NULL/1026 -/GE1/0/0 1.3.0.2/32...
  • Page 60: Enabling Synchronization Between Ldp And Igp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.7.2 Enabling Synchronization Between LDP and IGP To enable LDP and IGP synchronization, configure the interfaces of both ends of the link between the crossing node of active and standby links and the LDP neighboring node.
  • Page 61: Optional) Setting The Hold-Max-Cost Timer Value

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Procedure When OSPF runs as an IGP, perform the following steps on the interfaces of both ends of the link between the crossing node of active and standby links and the LDP neighboring...
  • Page 62: Optional) Setting The Delay Timer Value

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration The system view is displayed. Run: interface interface-type interface-number The interface view is displayed. Run: ospf timer ldp-sync hold-max-cost { value | infinite } The interval for advertising the maximum cost in the LSAs of local LSRs through OSPF is set.
  • Page 63: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Context Perform the following steps on the interfaces of both ends of the link between the crossing node of active and standby links and the LDP neighboring node on the active link:...
  • Page 64: Configuring Synchronization Between Ldp And Static Routes

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.8 Configuring Synchronization Between LDP and Static Routes By configuring synchronization between LDP and static routes, you can switch traffic from a faulty primary link to the backup link by suppressing the activation of static routes. You can also delay traffic switchback to synchronize LDP and static routes.
  • Page 65: Enabling Synchronization Between Ldp And Static Routes

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-2 Networking diagram for configuring synchronization between LDP and static routes LSRB LSRD LSRE LSRA LSRC Primary link Bypass link Pre-configuration Tasks Before configuring synchronization between LDP and static routes, complete the following...
  • Page 66: Optional) Setting A Hold-Down Timer

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Context With synchronization between LDP and static routes, you can switch traffic from the faulty primary link to the backup link by suppressing the activation of static routes and delay traffic switchback to the primary link, ensuring that LDP is synchronous with static routes.
  • Page 67: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration The outbound interface view of the primary link of the static route is displayed. Step 3 Run: static-route timer ldp-sync hold-down { timer | infinite } A Hold-down timer is set.
  • Page 68: Establishing The Configuration Task

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.9.1 Establishing the Configuration Task Before configuring LDP GTSM, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. Applicable Environment The Generalized TTL Security Mechanism (GTSM) prevents attacks by using the TTL detection.
  • Page 69: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 3 Run: gtsm peer ip-address valid-ttl-hops hops LDP GTSM is configured. If the value of hops is set to the maximum number of valid hops permitted by GTSM, when the TTL values carried in the packets sent by an LDP peer are within the range [255 - hops + 1, 255], the packets are received;...
  • Page 70 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration A typical MD5 application is to calculate a message digest to prevent message spoofing. The MD5 message digest is a unique result calculated using an irreversible character string conversion.
  • Page 71: Configuring Ldp Md5 Authentication

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.10.2 Configuring LDP MD5 Authentication LDP authentication can be configured to improve the security of the connection of an LDP session. LDP authentication is configured on LSRs at both ends of an LDP session.
  • Page 72: Configuring Ldp Keychain Authentication

    NOTE Keychain authentication and MD5 authentication cannot be both configured on a single LDP peer. Before configuring LDP keychain authentication, configure keychain globally. For the detailed configuration procedure, see the Huawei AR1200 Series Enterprise Routers Configuration Guide - Security. Procedure...
  • Page 73: Configuring The Ldp Gtsm

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 3 Run: authentication key-chain peer peer-id name keychain-name LDP keychain is enabled and a keychain name is specified. By default, LDP keychain authentication is not performed between LDP peers.
  • Page 74: Configuring Ldp Gr

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Prerequisite The configurations of LDP security features are complete. Procedure Run the display mpls ldp session verbose command to check the configurations of LDP MD5 authentication and LDP keychain authentication.
  • Page 75: Establishing The Configuration Task

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.11.1 Establishing the Configuration Task Before configuring LDP GR, familiarize yourself with the applicable environment, complete the pre-configuration tasks, and obtain the required data. Applicable Environment It is necessary to enable LDP GR to maintain normal forwarding and resume the LDP session and establish LSPs after the switchover and system update.
  • Page 76: Optional) Configuring Gr Helper Timers

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 2 Run: mpls lsr-id lsr-id The local LSR ID is configured. Step 3 Run: mpls The MPLS function is enabled on the local node and the MPLS view is displayed.
  • Page 77: Checking The Configuration

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 3 Run: graceful-restart timer recovery time The LSP Recovery timer is set. By default, the LSP Recovery timer is set to 300 seconds. Step 4 Run: graceful-restart timer neighbor-liveness time The Neighbor-liveness timer is set.
  • Page 78: Checking The Lsp Connectivity And Reachability

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Context CAUTION Resetting LDP may temporarily affect the reestablishment of the LSP. Take care to reset LDP. Resetting LDP is prohibited during the LDP GR. After you confirm to reset LDP, run the following commands in the user view.
  • Page 79: Configuration Examples

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Context Run the following commands in the system view to notify the Network Management System (NMS) of LSP status changes. By default, the trap function is disabled during the setup of the LDP LSP.
  • Page 80 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-4 Networking diagram for a local LDP session (II) L o o p b a ck1 L o o p b a ck1 L o o p b a ck1 2 .2 .2 .9 /3 2...
  • Page 81 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration # Configure LSRC. <LSRC> system-view [LSRC] mpls lsr-id 3.3.3.9 [LSRC] mpls [LSRC-mpls] quit [LSRC] mpls ldp [LSRC-mpls-ldp] quit Step 3 Enable MPLS on interfaces of every LSR.
  • Page 82 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ------------------------------------------------------------------------------ 2.2.2.9:0 Operational DU Passive 0000:00:22 91/91 ------------------------------------------------------------------------------ TOTAL: 1 session(s) Found. ----End Configuration Files Configuration file of LSRA sysname LSRA mpls lsr-id 1.1.1.9 mpls mpls ldp interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.252...
  • Page 83: Example For Configuring A Remote Ldp Session

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls mpls ldp interface GigabitEthernet1/0/0 ip address 10.2.1.2 255.255.255.252 mpls mpls ldp interface LoopBack1 ip address 3.3.3.9 255.255.255.255 ospf 1 area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.2.1.0 0.0.0.3 return 2.13.2 Example for Configuring a Remote LDP Session...
  • Page 84 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-6 Remote LDP session networking II L o o p b a ck1 L o o p b a ck1 L o o p b a ck1 2 .2 .2 .9 /3 2...
  • Page 85 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRC] mpls lsr-id 3.3.3.9 [LSRC] mpls [LSRC-mpls] quit [LSRC] mpls ldp [LSRC-mpls-ldp] quit Step 3 Specify a remote LDP peer and its IP address on two LSRs at both ends of a remote LDP session.
  • Page 86 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuration Files Configuration file of LSRA sysname LSRA mpls lsr-id 1.1.1.9 mpls mpls ldp mpls ldp remote-peer LSRC remote-ip 3.3.3.9 interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.252 interface LoopBack1 ip address 1.1.1.9 255.255.255.255...
  • Page 87: Example For Using Ldp To Establish Lsps

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ip address 3.3.3.9 255.255.255.255 ospf 1 area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.2.1.0 0.0.0.3 return 2.13.3 Example for Using LDP to Establish LSPs This example describes how to use LDP to establish LSPs. The configuration procedure includes operations of configuring a local LDP session and configuring a policy for triggering LDP LSP establishment on each LSR.
  • Page 88 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuration Roadmap The configuration roadmap is as follows: Configure a local LDP session. (Optional) Modify a policy for triggering LDP LSP establishment on each LSR. Data Preparation To complete the configuration, you need the following data: IP addresses of the interfaces on each LSR, as listed in "Data Preparation"...
  • Page 89 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRA-mpls] quit # Configure LSRB. [LSRB] mpls [LSRB-mpls] lsp-trigger all [LSRB-mpls] quit # Configure LSRC. [LSRC] mpls [LSRC-mpls] lsp-trigger all [LSRC-mpls] quit Step 3 Verify the configuration.
  • Page 90 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 10.1.1.0 0.0.0.3 return Configuration file of LSRB sysname LSRB mpls lsr-id 2.2.2.9 mpls lsp-trigger all mpls ldp interface GigabitEthernet1/0/0 ip address 10.1.1.2 255.255.255.252...
  • Page 91: Example For Configuring Ldp To Automatically Trigger A Request In Dod Mode

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.13.4 Example for Configuring LDP to Automatically Trigger a Request in DoD Mode This section provides an example for configuring LDP to automatically trigger a request in DoD mode.
  • Page 92 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Procedure Step 1 Assign an IP address to each interface of each node and configure the loopback address that is used as the LSR ID. As shown in...
  • Page 93 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 0.0.0.0/0 Static 60 10.1.1.2 GigabitEthernet1/0/0 1.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 10.1.1.0/24 Direct 0 10.1.1.1 GigabitEthernet1/0/0 10.1.1.1/32 Direct 0 127.0.0.1 InLoopBack0 127.0.0.0/8 Direct 0 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 127.0.0.1...
  • Page 94 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRB] interface gigabitethernet 1/0/0 [LSRB-GigabitEthernet1/0/0] mpls ldp advertisement dod [LSRB-GigabitEthernet1/0/0] quit # Configure LSRC. <LSRC> system-view [LSRC] interface gigabitethernet 2/0/0 [LSRC-GigabitEthernet2/0/0] mpls ldp advertisement dod [LSRC-GigabitEthernet2/0/0] quit # Configure LSRD.
  • Page 95 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 0.0.0.0/0 Static 60 10.1.1.2 GigabitEthernet1/0/0 Only a default route exists and no exact route to 4.4.4.4 exists in the routing table. # Run the display mpls ldp lsp command on LSRA to view information about the established LSPs.
  • Page 96 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ip route-static 0.0.0.0 0.0.0.0 10.1.1.2 return Configuration file of LSRB sysname LSRB mpls lsr-id 2.2.2.2 mpls mpls ldp isis 1 network-entity 10.0000.0000.0001.00 interface GigabitEthernet1/0/0 ip address 10.1.1.2 255.255.255.0...
  • Page 97: Example For Configuring An Inbound Ldp Policy

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuration file of LSRD sysname LSRD mpls lsr-id 4.4.4.4 mpls mpls ldp longest-match mpls ldp remote-peer lsra remote-ip 1.1.1.1 undo remote-ip pwe3 remote-ip auto-dod-request interface GigabitEthernet1/0/0 ip address 10.1.3.2 255.255.255.0...
  • Page 98 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuration Roadmap The configuration roadmap is as follows: Configure the IP address and loopback address of each interface. Configure OSPF to advertise the route to each network segment of each interface and to advertise the host route to each LSR ID.
  • Page 99 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRB-Ethernet2/0/0] mpls [LSRB-Ethernet2/0/0] mpls ldp [LSRB-Ethernet2/0/0] quit # Configure LSRC. <LSRC> system-view [LSRC] mpls lsr-id 3.3.3.9 [LSRC] mpls [LSRC-mpls] quit [LSRC] mpls ldp [LSRC-mpls-ldp] quit [LSRC] interface ethernet 1/0/0...
  • Page 100 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration <LSRD> display mpls lsp ------------------------------------------------------------------------------- LSP Information: LDP LSP ------------------------------------------------------------------------------- In/Out Label In/Out IF Vrf Name 3.3.3.9/32 NULL/1025 -/Eth1/0/0 3.3.3.9/32 1026/1025 -/Eth1/0/0 ----End Configuration Files Configuration file of LSRA sysname LSRA mpls lsr-id 1.1.1.9...
  • Page 101 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ip address 2.2.2.9 255.255.255.255 ospf 1 area 0.0.0.0 network 2.2.2.9 0.0.0.0 network 10.1.1.0 0.0.0.255 network 10.1.2.0 0.0.0.255 network 10.1.3.0 0.0.0.255 return Configuration file of LSRC sysname LSRC mpls lsr-id 3.3.3.9...
  • Page 102: Example For Configuring An Outbound Ldp Policy

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.13.6 Example for Configuring an Outbound LDP Policy This section describes how to configure an outbound LDP policy, including the operation of enabling MPLS and MPLS LDP globally.
  • Page 103 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Procedure Step 1 Assign the IP address to and configure OSPF on each interface. Configure the IP address and mask of each interface, including the loopback interface, as shown...
  • Page 104 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRD-Ethernet1/0/0] mpls ldp [LSRD-Ethernet1/0/0] quit # After completing the configuration, run the display mpls lsp command on LSRD to view information about the established LSPs. <LSRD> display mpls lsp...
  • Page 105 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration interface Ethernet1/0/0 ip address 10.1.1.1 255.255.255.0 mpls mpls ldp interface NULL0 interface LoopBack1 ip address 1.1.1.9 255.255.255.255 ospf 1 area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 10.1.1.0 0.0.0.255...
  • Page 106: Example For Configuring Transit Lsps Through The Prefix List

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ip address 10.1.2.2 255.255.255.0 mpls mpls ldp interface NULL0 interface LoopBack1 ip address 3.3.3.9 255.255.255.255 ospf 1 area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.1.2.0 0.0.0.255 return Configuration file of LSRD sysname LSRD mpls lsr-id 4.4.4.9...
  • Page 107 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-12 Networking diagram of configuring transit LSPs through the prefix list L o o p b a ck1 L o o p b a ck1 2 .2 .2 .2 /3 2 3 .3 .3 .3 /3 2...
  • Page 108 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRB] ip ip-prefix FilterOnTransit permit 4.4.4.4 32 Step 3 Configure basic MPLS functions and MPLS LDP functions globally and on the interfaces. # Configure LSRA. [LSRA] mpls lsr-id 1.1.1.1...
  • Page 109 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRB] display mpls ldp lsp LDP LSP Information ------------------------------------------------------------------------------- DestAddress/Mask In/OutLabel UpstreamPeer NextHop OutInterface ------------------------------------------------------------------------------- 1.1.1.1/32 NULL/3 192.168.1.1 GE1/0/0 2.2.2.2/32 3/NULL 1.1.1.1 127.0.0.1 InLoop0 2.2.2.2/32 3/NULL 3.3.3.3 127.0.0.1...
  • Page 110 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration A '*' before a UpstreamPeer means the session is in GR state A '*' before a NextHop means the LSP is FRR LSP # Display the LDP LSP on LSRD.
  • Page 111 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration sysname LSRB mpls lsr-id 2.2.2.2 mpls lsp-trigger all mpls ldp propagate mapping for ip-prefix FilterOnTransit interface GigabitEthernet1/0/0 ip address 192.168.1.2 255.255.255.0 mpls mpls ldp interface GigabitEthernet2/0/0 ip address 192.168.2.1 255.255.255.0...
  • Page 112: Example For Configuring Ldp Extension For Inter-Area Lsp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls ldp interface GigabitEthernet1/0/0 ip address 192.168.3.2 255.255.255.0 mpls mpls ldp interface LoopBack1 ip address 4.4.4.4 255.255.255.255 ospf 1 area 0.0.0.0 network 192.168.3.0 0.0.0.255 network 4.4.4.4 0.0.0.0 return 2.13.8 Example for Configuring LDP Extension for Inter-Area LSP...
  • Page 113 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Configuration Roadmap The configuration roadmap is as follows: Assign IP addresses to interfaces on each node and configure the loopback addresses that are used as LSR IDs.
  • Page 114 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRD-LoopBack0] isis enable 1 [LSRD-LoopBack0] quit # Configure LSRB. <LSRB> system-view [LSRB] isis 1 [LSRB-isis-1] is-level level-1 [LSRB-isis-1] network-entity 10.0010.0300.0001.00 [LSRB-isis-1] quit [LSRB] interface ethernet 1/0/0 [LSRB-Ethernet1/0/0] isis enable 1...
  • Page 115 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 1.2.0.1/32 ISIS-L1 10.1.1.2 Ethernet1/0/0 1.3.0.0/24 ISIS-L1 10.1.1.2 Ethernet1/0/0 10.1.1.0/24 Direct 10.1.1.1 Ethernet1/0/0 10.1.1.1/32 Direct 127.0.0.1 InLoopBack0 20.1.1.0/24 ISIS-L1 10.1.1.2 Ethernet1/0/0 20.1.2.0/24 ISIS-L1 10.1.1.2 Ethernet1/0/0 127.0.0.0/8 Direct 127.0.0.1 InLoopBack0 127.0.0.1/32...
  • Page 116 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration # After the configuration is complete, run the display mpls lsp command on LSRA to view the established LSP. [LSRA] display mpls lsp ------------------------------------------------------------------------------- LSP Information: LDP LSP...
  • Page 117 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls mpls ldp interface LoopBack0 ip address 1.1.0.1 255.255.255.255 isis enable 1 return Configuration file of LSRB sysname LSRB mpls lsr-id 1.3.0.1 mpls mpls ldp isis 1 is-level level-1 network-entity 10.0010.0300.0001.00...
  • Page 118: Example For Configuring Synchronization Between Ldp And Igp

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration summary 1.3.0.0 255.255.255.0 avoid-feedback interface Ethernet1/0/0 ip address 20.1.1.1 255.255.255.0 isis enable 1 isis circuit-level level-1 mpls mpls ldp interface Ethernet1/0/1 ip address 10.1.1.2 255.255.255.0 isis enable 1...
  • Page 119 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-14 Networking diagram for configuring synchronization between LDP and IGP L o o p b a ck1 2 .2 .2 .9 /3 2 L o o p b a ck1 L o o p b a ck1 1 .1 .1 .9 /3 2...
  • Page 120 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 14 Routes : 14 Destination/Mask Proto Cost Flags NextHop Interface 1.1.1.9/32 Direct 0 127.0.0.1...
  • Page 121 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [P3-GigabitEthernet2/0/0] mpls ldp [P3-GigabitEthernet2/0/0] quit # Configure PE2. <PE2> system-view [PE2] mpls lsr-id 4.4.4.9 [PE2] mpls [PE2-mpls] quit [PE2] mpls ldp [PE2-mpls-ldp] quit [PE2] interface gigabitethernet 1/0/0...
  • Page 122 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 5 Set a value for the hold-max-cost timer on the P1 and P2 interfaces. # Configure P1. <P1> system-view [P1] interface gigabitethernet 1/0/0 [P1-GigabitEthernet1/0/0] ospf timer ldp-sync hold-max-cost 9 [P1-GigabitEthernet1/0/0] quit # Configure P2.
  • Page 123 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration mpls ldp interface LoopBack1 ip address 1.1.1.9 255.255.255.255 ospf 1 area 0.0.0.0 network 1.1.1.9 0.0.0.0 network 10.1.1.0 0.0.0.3 network 10.3.1.0 0.0.0.3 return Configuration file of P2 sysname P2 mpls lsr-id 2.2.2.9...
  • Page 124: Example For Configuring Synchronization Between Ldp And Static Routes

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration area 0.0.0.0 network 3.3.3.9 0.0.0.0 network 10.3.1.0 0.0.0.3 network 10.4.1.0 0.0.0.3 return Configuration file of PE2 sysname PE2 mpls lsr-id 4.4.4.9 mpls mpls ldp interface GigabitEthernet1/0/0 ip address 10.2.1.2 255.255.255.252...
  • Page 125 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Figure 2-15 Networking diagram for configuring synchronization between LDP and static routes L o o p b a ck0 L S R B L o o p b a ck0...
  • Page 126 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration Step 2 Configure static routes on devices to ensure network connectivity. # On LSRA, configure two static routes with different priorities to LSRD, and on LSRD, configure two static routes with different priorities to LSRA.
  • Page 127 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration [LSRA] mpls lsr-id 1.1.1.1 [LSRA] mpls [LSRA-mpls] quit [LSRA] mpls ldp [LSRA-mpls-ldp] quit [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] mpls [LSRA-GigabitEthernet1/0/0] mpls ldp [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0...
  • Page 128 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration l If the LDP session of the primary link (Link A) is disconnected, traffic is immediately switched to the backup link (Link B) to synchronize LDP and static routes. This ensures non- stop traffic forwarding.
  • Page 129 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ip address 2.2.2.2 255.255.255.255 ip route-static 1.1.1.1 255.255.255.255 GigabitEthernet1/0/0 ip route-static 4.4.4.4 255.255.255.255 GigabitEthernet2/0/0 return Configuration file of LSRC sysname LSRC mpls lsr-id 3.3.3.3 mpls mpls ldp interface GigabitEthernet1/0/0 ip address 20.1.1.2 255.255.255.252...
  • Page 130: Example For Configuring Ldp Gtsm

    Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration 2.13.11 Example for Configuring LDP GTSM This section provides an example for configuring LDP GTSM. The procedure consists of enabling MPLS and MPLS LDP on each device and each interface and configuring LDP GTMP on both LDP peers.
  • Page 131 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration ------------------------------------------------------------------------------ PeerID Status SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 2.2.2.9:0 Operational DU Passive 0000:00:02 ------------------------------------------------------------------------------ TOTAL: 1 session(s) Found. Step 4 Configure LDP GTSM. # On LSRA, configure the range of valid TTL values carried in LDP packets received from LSRB to be from 253 to 255.
  • Page 132 Huawei AR1200 Series Enterprise Routers Configuration Guide - MPLS 2 MPLS LDP Configuration sysname LSRB mpls lsr-id 2.2.2.9 mpls mpls ldp gtsm peer 1.1.1.9 valid-ttl-hops 4 gtsm peer 3.3.3.9 valid-ttl-hops 5 interface GigabitEthernet1/0/0 ip address 10.1.1.2 255.255.255.252 mpls mpls ldp interface GigabitEthernet2/0/0 ip address 10.2.1.1 255.255.255.252...

Table of Contents