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