Example for Configuring Manual LDP FRR
Networking Requirements
On a simple and stable network shown in Figure 3-32, MPLS LDP is deployed. The primary and backup LSPs are set up between LSRA and LSRC. The LSP from LSRA to LSRC is the primary LSP, while the LSP LSRA -> LSRB -> LSRC is the backup LSP. Services are interrupted and traffic is lost if a fault occurs on the primary LSP. Traffic must be quickly switched to the backup LSP upon a fault on the primary LSP.
Configuration Roadmap
To meet the preceding requirements, configure manual LDP FRR. The configuration roadmap is as follows:
- Configure LDP FRR to support fast switchover to the backup LSP upon a fault on the primary LSP.
- Configure manual LDP FRR on a stable network. Specify the next hop IP address used to create the backup LSP.
On a network where manual LDP FRR is enabled, the backup LSP must be in liberal state. When you run the display ip routing-table ip-address verbose command on an LSR that is enabled with FRR, the command output shows that the status of the backup LSP route is Inactive Adv.
Procedure
- Configure IP addresses for interfaces.
# Configure LSRA. The configurations of LSRB and LSRC are similar to the configuration of LSRA, and are not mentioned here.
<Huawei> system-view [Huawei] sysname LSRA [LSRA] interface loopback 1 [LSRA-LoopBack1] ip address 10.10.1.1 32 [LSRA-LoopBack1] quit [LSRA] interface gigabitethernet 1/0/0 [LSRA-GigabitEthernet1/0/0] ip address 10.1.1.1 30 [LSRA-GigabitEthernet1/0/0] quit [LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] ip address 10.3.1.1 30 [LSRA-GigabitEthernet2/0/0] quit
- Configure OSPF to advertise the network segments connecting
to interfaces on each node and to advertise the routes of hosts with
LSR IDs.
# Configure LSRA.
[LSRA] ospf 1 [LSRA-ospf-1] area 0 [LSRA-ospf-1-area-0.0.0.0] network 10.10.1.1 0.0.0.0 [LSRA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.3 [LSRA-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.3 [LSRA-ospf-1-area-0.0.0.0] quit [LSRA-ospf-1] quit
# Configure LSRB.
[LSRB] ospf 1 [LSRB-ospf-1] area 0 [LSRB-ospf-1-area-0.0.0.0] network 10.10.1.2 0.0.0.0 [LSRB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.3 [LSRB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.3 [LSRB-ospf-1-area-0.0.0.0] quit [LSRB-ospf-1] quit
# Configure LSRC.
[LSRC] ospf 1 [LSRC-ospf-1] area 0 [LSRC-ospf-1-area-0.0.0.0] network 10.10.1.3 0.0.0.0 [LSRC-ospf-1-area-0.0.0.0] network 10.3.1.0 0.0.0.3 [LSRC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.3 [LSRC-ospf-1-area-0.0.0.0] quit [LSRC-ospf-1] quit
When the configurations are complete, run the display ip routing-table command on each node. The command output shows that the nodes have learned routes from each other. LSRA is used as an example.
[LSRA] display ip routing-table Route Flags: R - relay, D - download to fib ------------------------------------------------------------------------------ Routing Tables: Public Destinations : 14 Routes : 15 Destination/Mask Proto Pre Cost Flags NextHop Interface 10.10.1.1/32 Direct 0 0 D 127.0.0.1 LoopBack1 10.10.1.2/32 OSPF 10 1 D 10.1.1.2 GigabitEthernet1/0/0 10.10.1.3/32 OSPF 10 1 D 10.3.1.2 GigabitEthernet2/0/0 10.1.1.0/30 Direct 0 0 D 10.1.1.1 GigabitEthernet1/0/0 10.1.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 10.1.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet1/0/0 10.2.1.0/30 OSPF 10 2 D 10.3.1.2 GigabitEthernet2/0/0 OSPF 10 2 D 10.1.1.2 GigabitEthernet1/0/0 10.3.1.0/30 Direct 0 0 D 10.3.1.1 GigabitEthernet2/0/0 10.3.1.1/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 10.3.1.255/32 Direct 0 0 D 127.0.0.1 GigabitEthernet2/0/0 127.0.0.0/8 Direct 0 0 D 127.0.0.1 InLoopBack0 127.0.0.1/32 Direct 0 0 D 127.0.0.1 InLoopBack0 127.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0 255.255.255.255/32 Direct 0 0 D 127.0.0.1 InLoopBack0
- Enable MPLS and MPLS LDP on each node globally and on the
interfaces.
# Configure LSRA.
[LSRA] mpls lsr-id 10.10.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 [LSRA-GigabitEthernet2/0/0] mpls [LSRA-GigabitEthernet2/0/0] mpls ldp [LSRA-GigabitEthernet2/0/0] quit
# Configure LSRB.
[LSRB] mpls lsr-id 10.10.1.2 [LSRB] mpls [LSRB-mpls] quit [LSRB] mpls ldp [LSRB-mpls-ldp] quit [LSRB] interface gigabitethernet 1/0/0 [LSRB-GigabitEthernet1/0/0] mpls [LSRB-GigabitEthernet1/0/0] mpls ldp [LSRB-GigabitEthernet1/0/0] quit [LSRB] interface gigabitethernet 2/0/0 [LSRB-GigabitEthernet2/0/0] mpls [LSRB-GigabitEthernet2/0/0] mpls ldp [LSRB-GigabitEthernet2/0/0] quit
# Configure LSRC.
[LSRC] mpls lsr-id 10.10.1.3 [LSRC] mpls [LSRC-mpls] quit [LSRC] mpls ldp [LSRC-mpls-ldp] quit [LSRC] interface gigabitethernet 1/0/0 [LSRC-GigabitEthernet1/0/0] mpls [LSRC-GigabitEthernet1/0/0] mpls ldp [LSRC-GigabitEthernet1/0/0] quit [LSRC] interface gigabitethernet 2/0/0 [LSRC-GigabitEthernet2/0/0] mpls [LSRC-GigabitEthernet2/0/0] mpls ldp [LSRC-GigabitEthernet2/0/0] quit
When the configurations are complete, LDP sessions are established between neighboring nodes. Run the display mpls ldp session command on each node. The command output shows that LDP session status is Operational. LSRA is used as an example.
[LSRA] display mpls ldp session LDP Session(s) in Public Network Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM) A '*' before a session means the session is being deleted. ------------------------------------------------------------------------------ PeerID Status LAM SsnRole SsnAge KASent/Rcv ------------------------------------------------------------------------------ 10.10.1.2:0 Operational DU Passive 0000:00:01 8/8 10.10.1.3:0 Operational DU Passive 0000:00:01 6/6 ------------------------------------------------------------------------------ TOTAL: 2 session(s) Found.
- Enable manual LDP FRR on GE2/0/0 of LSRA, and specify the next hop address used to
create the backup LSP.
# Configure LSRA.
[LSRA] interface gigabitethernet 2/0/0 [LSRA-GigabitEthernet2/0/0] mpls ldp frr nexthop 10.1.1.2 [LSRA-GigabitEthernet2/0/0] quit
- Verify the configuration.
# Run the display mpls lsp command on LSRA. The command output shows that manual LDP FRR is enabled on the LSP of LSRC.
[LSRA] display mpls lsp ---------------------------------------------------------------------- LSP Information: LDP LSP ---------------------------------------------------------------------- FEC In/Out Label In/Out IF Vrf Name 10.10.1.2/32 NULL/3 -/GE1/0/0 10.10.1.2/32 1024/3 -/GE1/0/0 10.10.1.3/32 NULL/3 -/GE2/0/0 **LDP FRR** /1025 /GE1/0/0 10.10.1.3/32 1025/3 -/GE2/0/0 **LDP FRR** /1025 /GE1/0/0 10.10.1.1/32 3/NULL -/-
Configuration Files
LSRA configuration file
# sysname LSRA # mpls lsr-id 10.10.1.1 mpls # mpls ldp # interface GigabitEthernet1/0/0 ip address 10.1.1.1 255.255.255.252 mpls mpls ldp # interface GigabitEthernet2/0/0 ip address 10.3.1.1 255.255.255.252 mpls mpls ldp mpls ldp frr nexthop 10.1.1.2 # interface LoopBack1 ip address 10.10.1.1 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.10.1.1 0.0.0.0 network 10.1.1.0 0.0.0.3 network 10.3.1.0 0.0.0.3 # return
LSRB configuration file
# sysname LSRB # mpls lsr-id 10.10.1.2 mpls # mpls ldp # 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 mpls mpls ldp # interface LoopBack1 ip address 10.10.1.2 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.10.1.2 0.0.0.0 network 10.1.1.0 0.0.0.3 network 10.2.1.0 0.0.0.3 # return
LSRC configuration file
# sysname LSRC # mpls lsr-id 10.10.1.3 mpls # mpls ldp # interface GigabitEthernet1/0/0 ip address 10.3.1.2 255.255.255.252 mpls mpls ldp # interface GigabitEthernet2/0/0 ip address 10.2.1.2 255.255.255.252 mpls mpls ldp # interface LoopBack1 ip address 10.10.1.3 255.255.255.255 # ospf 1 area 0.0.0.0 network 10.10.1.3 0.0.0.0 network 10.3.1.0 0.0.0.3 network 10.2.1.0 0.0.0.3 # return