- Table of Contents
-
- H3C S12500R Ethernet Switch Router Series Config Examples-6W101
- 01-Login Management Configuration Examples
- 02-RBAC Configuration Examples
- 03-Software Upgrade Examples
- 04-Ethernet Link Aggregation Configuration Examples
- 05-Port Isolation Configuration Examples
- 06-Spanning Tree Configuration Examples
- 07-VLAN Configuration Examples
- 08-VLAN Tagging Configuration Examples
- 09-DHCP Snooping Configuration Examples
- 10-Cross-Subnet Dynamic IP Address Allocation Configuration Examples
- 11-IPv6 over IPv4 Tunneling with OSPFv3 Configuration Examples
- 12-GRE Tunnel Configuration Examples
- 13-GRE with OSPF Configuration Examples
- 14-OSPF Configuration Examples
- 15-IS-IS Configuration Examples
- 16-BGP Configuration Examples
- 17-Policy-Based Routing Configuration Examples
- 18-OSPFv3 Configuration Examples
- 19-IPv6 IS-IS Configuration Examples
- 20-Routing Policy Configuration Examples
- 21-IGMP Snooping Configuration Examples
- 22-IGMP Configuration Examples
- 23-MLD Snooping Configuration Examples
- 24-Basic MPLS Configuration Examples
- 25-MPLS L3VPN Configuration Examples
- 26-ACL Configuration Examples
- 27-Control Plane-Based QoS Policy Configuration Examples
- 28-Traffic Policing Configuration Examples
- 29-GTS and Rate Limiting Configuration Examples
- 30-Priority Mapping and Queue Scheduling Configuration Examples
- 31-Traffic Filtering Configuration Examples
- 32-AAA Configuration Examples
- 33-SSH Configuration Examples
- 34-IP Source Guard Configuration Examples
- 35-Ethernet OAM Configuration Examples
- 36-CFD Configuration Examples
- 37-DLDP Configuration Examples
- 38-VRRP Configuration Examples
- 39-BFD Configuration Examples
- 40-NTP Configuration Examples
- 41-SNMP Configuration Examples
- 42-NQA Configuration Examples
- 43-Mirroring Configuration Examples
- 44-sFlow Configuration Examples
- 45-OpenFlow Configuration Examples
- 46-MAC Address Table Configuration Examples
- 47-Static Multicast MAC Address Entry Configuration Examples
- 48-IP Unnumbered Configuration Examples
- 49-Congestion Avoidance and Queue Scheduling Configuration Examples
- 50-Attack Protection Configuration Examples
- 51-Smart Link Configuration Examples
- 52-RRPP Configuration Examples
- 53-BGP Route Selection Configuration Examples
- 54-IS-IS Route Summarization Configuration Examples
- 55-MPLS OAM Configuration Examples
- 56-MPLS TE Configuration Examples
- 57-VXLAN Configuration Examples
- 58-NetStream Configuration Examples
- 59-EVPN-DCI over an MPLS L3VPN Network Configuration Examples
- 60-PTP Configuration Examples
- 61-S-MLAG Configuration Examples
- 62-MPLS SR Configuration Examples
- 63-Puppet Configuration Examples
- 64-Configuration Example of Using Ethernet OAM to Monitor ERPS Ring Link Performance
- 65-GRE Tunneling Between DHCP Relay and DHCP Server Configuration Examples
- 66-Loop Detection Configuration Examples
- 67-MPLS L3VPN+VRRP Configuration Examples
- 68-MSTP and VRRP Load Balancing Configuration Examples
- 69-Routing Policy for VPN Access Control Configuration Examples
- 70-Switch and Firewall Connection Configuration Examples for External Network Access
- 71-Switch and Router Connection Configuration Examples for External Network Access
- 72-VRRP Network Multicast Data Transmission Configuration Examples
- Related Documents
-
Title | Size | Download |
---|---|---|
55-MPLS OAM Configuration Examples | 376.33 KB |
|
H3C S12500R Switch Router Series |
MPLS OAM Configuration Examples |
|
Copyright © 2024 New H3C Technologies Co., Ltd. All rights reserved.
No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of New H3C Technologies Co., Ltd.
Except for the trademarks of New H3C Technologies Co., Ltd., any trademarks that may be mentioned in this document are the property of their respective owners.
The information in this document is subject to change without notice.
Contents
Example: Configuring BFD for an LSP
Example: Configuring SBFD for an LSP
Example: Configuring BFD for an MPLS TE tunnel
Example: Configuring SBFD for an MPLS TE tunnel
Introduction
This document provides MPLS Operation, Administration, and Maintenance (OAM) configuration examples.
MPLS OAM provides the following fault management tools for LSPs, MPLS TE tunnels, and MPLS PWs:
· MPLS data plane connectivity verification.
· MPLS data plane and control plane consistency verification.
· Failure detection and locating.
Prerequisites
The configuration examples in this document were created and verified in a lab environment, and all the devices were started with the factory default configuration. When you are working on a live network, make sure you understand the potential impact of every command on your network.
This document assumes that you have basic knowledge of MPLS OAM.
Example: Configuring BFD for an LSP
Network configuration
As shown in Figure 1, a company has two branches that are connected to the MPLS backbone. It requires the MPLS backbone to establish LSPs for communication between the branches, and to provide high availability services for uninterrupted business between the branches.
To meet the requirements:
· Establish LSPs by using LDP.
· Configure OSPF FRR on the MPLS backbone so LDP can establish a primary LSP and a backup LSP.
· Configure BFD for the primary LSP. When the primary LSP fails, BFD can quickly detect the failure and notify LDP of the failure, so LDP can immediately switch traffic to the backup LSP.
Software versions used
This configuration example was created and verified on Release 3606.
Restrictions and guidelines
Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI.
Procedures
1. Configure IP addresses for interfaces:
# On PE 1, configure IP addresses and masks for interfaces, including the loopback interface, as shown in Figure 1.
<PE1> system-view
[PE1] interface hundredgige 1/0/1
[PE1-HundredGigE1/0/1] ip address 12.12.12.1 24
[PE1-HundredGigE1/0/1] quit
[PE1] interface hundredgige 1/0/2
[PE1-HundredGigE1/0/2] ip address 14.14.14.1 24
[PE1-HundredGigE1/0/2] quit
[PE1] interface hundredgige 1/0/3
[PE1-HundredGigE1/0/3] ip address 192.168.10.1 24
[PE1-HundredGigE1/0/3] quit
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
# Configure other devices in the same way that PE 1 is configured. (Details not shown.)
2. Configure OSPF to ensure IP connectivity within the MPLS backbone, and enable OSPF FRR:
# Configure PE 1.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] fast-reroute lfa
[PE1-ospf-1] quit
# Configure P 1.
[P1] ospf
[P1-ospf-1] area 0
[P1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[P1-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[P1-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[P1-ospf-1-area-0.0.0.0] quit
[P1-ospf-1] quit
# Configure PE 2.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 34.34.34..0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] fast-reroute lfa
[PE2-ospf-1] quit
# Configure P 2.
[P2] ospf
[P2-ospf-1] area 0
[P2-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[P2-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[P2-ospf-1-area-0.0.0.0] network 34.34.34.0 0.0.0.255
[P2-ospf-1-area-0.0.0.0] quit
[P2-ospf-1] quit
# On P 2, set the OSPF cost to 10 for HundredGigE 1/0/2 and HundredGigE 1/0/1. This setting ensures that the backup LSP has a larger OSPF cost than the primary LSP.
[P2] interface hundredgige 1/0/2
[P2-HundredGigE1/0/2] ospf cost 10
[P2-HundredGigE1/0/2] quit
[P2] interface hundredgige 1/0/1
[P2-HundredGigE1/0/1] ospf cost 10
[P2-HundredGigE1/0/1] quit
3. Configure basic MPLS and MPLS LDP:
# Configure PE 1.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls ldp
[PE1-ldp] quit
[PE1] interface hundredgige 1/0/1
[PE1-HundredGigE1/0/1] mpls enable
[PE1-HundredGigE1/0/1] mpls ldp enable
[PE1-HundredGigE1/0/1] quit
[PE1] interface hundredgige 1/0/2
[PE1-HundredGigE1/0/2] mpls enable
[PE1-HundredGigE1/0/2] mpls ldp enable
[PE1-HundredGigE1/0/2] quit
# Configure P 1.
[P1] mpls lsr-id 2.2.2.2
[P1] mpls ldp
[P1-ldp] quit
[P1] interface hundredgige 1/0/1
[P1-HundredGigE1/0/1] mpls enable
[P1-HundredGigE1/0/1] mpls ldp enable
[P1-HundredGigE1/0/1] quit
[P1] interface hundredgige 1/0/2
[P1-HundredGigE1/0/2] mpls enable
[P1-HundredGigE1/0/2] mpls ldp enable
[P1-HundredGigE1/0/2] quit
# Configure PE 2.
[PE2] mpls lsr-id 3.3.3.3
[PE2] mpls ldp
[PE2-ldp] quit
[PE2] interface hundredgige 1/0/1
[PE2-HundredGigE1/0/1] mpls enable
[PE2-HundredGigE1/0/1] mpls ldp enable
[PE2-HundredGigE1/0/1] quit
[PE2] interface hundredgige 1/0/2
[PE2-HundredGigE1/0/2] mpls enable
[PE2-HundredGigE1/0/2] mpls ldp enable
[PE2-HundredGigE1/0/2] quit
# Configure P 2.
[P2] mpls lsr-id 4.4.4.4
[P2] mpls ldp
[P2-ldp] quit
[P2] interface hundredgige 1/0/1
[P2-HundredGigE1/0/1] mpls enable
[P2-HundredGigE1/0/1] mpls ldp enable
[P2-HundredGigE1/0/1] quit
[P2] interface hundredgige 1/0/2
[P2-HundredGigE1/0/2] mpls enable
[P2-HundredGigE1/0/2] mpls ldp enable
[P2-HundredGigE1/0/2] quit
# Verify that LDP sessions in Operational state have been established on each device. The following shows the output on PE 1.
[PE1] display mpls ldp peer
Total number of peers: 2
Peer LDP ID State Role GR MD5 KA Sent/Rcvd
2.2.2.2:0 Operational Passive Off Off 55/55
4.4.4.4:0 Operational Passive Off Off 6/6
4. Configure LSP generation policies to establish LSPs to destinations 192.168.10.0/24, 192.168.20.0/24, 1.1.1.1/32, and 3.3.3.3/32:
# On PE 1, create IP prefix list PE1, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[PE1] ip prefix-list PE1 index 10 permit 192.168.10.0 24
[PE1] ip prefix-list PE1 index 20 permit 192.168.20.0 24
[PE1] ip prefix-list PE1 index 30 permit 1.1.1.1 32
[PE1] ip prefix-list PE1 index 40 permit 3.3.3.3 32
[PE1] mpls ldp
[PE1-ldp] lsp-trigger prefix-list PE1
[PE1-ldp] quit
# On P 1, create IP prefix list P1, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[P1] ip prefix-list P1 index 10 permit 192.168.10.0 24
[P1] ip prefix-list P1 index 20 permit 192.168.20.0 24
[P1] ip prefix-list P1 index 30 permit 1.1.1.1 32
[P1] ip prefix-list P1 index 40 permit 3.3.3.3 32
[P1] mpls ldp
[P1-ldp] lsp-trigger prefix-list P1
[P1-ldp] quit
# On PE 2, create IP prefix list PE2, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[PE2] ip prefix-list PE2 index 10 permit 192.168.10.0 24
[PE2] ip prefix-list PE2 index 20 permit 192.168.20.0 24
[PE2] ip prefix-list PE2 index 30 permit 1.1.1.1 32
[PE2] ip prefix-list PE2 index 40 permit 3.3.3.3 32
[PE2] mpls ldp
[PE2-ldp] lsp-trigger prefix-list PE2
[PE2-ldp] quit
# On P 2, create IP prefix list P2, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[P2] ip prefix-list P2 index 10 permit 192.168.10.0 24
[P2] ip prefix-list P2 index 20 permit 192.168.20.0 24
[P2] ip prefix-list P2 index 30 permit 1.1.1.1 32
[P2] ip prefix-list P2 index 40 permit 3.3.3.3 32
[P2] mpls ldp
[P2-ldp] lsp-trigger prefix-list P2
[P2-ldp] quit
# Verify that LSPs to destination 192.168.20.0/24 have been established on PE 1. The primary LSP uses HundredGigE 1/0/1 as the outgoing interface and the backup LSP uses HundredGigE 1/0/2 as the outgoing interface.
[PE1]display mpls ldp lsp
Status Flags: * - stale, L - liberal, B - backup, N/A – unavailable
FECs: 4 Ingress: 4 Transit: 4 Egress: 2
FEC In/Out Label Nexthop OutInterface/LSINDEX
1.1.1.1/32 3/-
-/1151(L)
-/1279(L)
3.3.3.3/32 -/1150 12.12.12.2 HGE1/0/1
1150/1150 12.12.12.2 HGE1/0/1
-/1150(B) 12.12.12.2 HGE1/0/2
1150/1150(B) 12.12.12.2 HGE1/0/2
192.168.10.0/24 1141/-
-/1141(L)
-/1141(L)
192.168.20.0/24 -/1133 12.12.12.2 HGE1/0/1
1133/1133 12.12.12.2 HGE1/0/1
-/1133(B) 14.14.14.4 HGE1/0/2
1133/1133(B) 14.14.14.4 HGE1/0/2
5. Enable BFD for MPLS and use BFD to verify LSP connectivity:
# Configure PE 1.
[PE1] mpls bfd enable
[PE1] mpls bfd 3.3.3.3 32
# Configure PE 2.
[PE2] mpls bfd enable
[PE2] mpls bfd 1.1.1.1 32
Verifying the configuration
1. Display BFD information for LSPs on PE 1 and PE 2. The following shows the output on PE 1.
[PE1] display mpls bfd
Total number of sessions: 2, 2 up, 0 down, 0 init
FEC Type: LSP
FEC Info:
Destination: 1.1.1.1
Mask Length: 32
NHLFE ID: -
Local Discr: 1026 Remote Discr: 514
Source IP: 1.1.1.1 Destination IP: 3.3.3.3
Session State: Up Session Role: Active
Template Name: -
FEC Type: LSP
FEC Info:
Destination: 3.3.3.3
Mask Length: 32
NHLFE ID: 1028
Local Discr: 1025 Remote Discr: -
Source IP: 1.1.1.1 Destination IP: 127.0.0.1
Session State: Up Session Role: Passive
Template Name: -
2. Execute the tracert mpls ipv4 command on PE 1. The output shows that the primary LSP is in use.
|
NOTE: Before you use the tracert feature, enable sending ICMP time exceeded messages on intermediate devices, and enable sending ICMP destination unreachable messages on the destination device. |
[PE1] tracert mpls -a 192.168.10.1 ipv4 192.168.20.0 24
MPLS trace route FEC 192.168.20.0/24
TTL Replier Time Type Downstream
0 Ingress 12.12.12.2/[1148]
1 12.12.12.2 2 ms Transit 23.23.23.3/[1148]
2 23.23.23.3 2 ms Egress
3. Verify that the ping operation from PE 1 to PE 2 will not fail after HundredGigE 1/0/2 on P 1 is shut down during the ping operation:
# Ping PE 2 from PE 1.
[PE1] ping -c 100000 -a 192.168.10.1 192.168.20.1
Ping 192.168.20.1 (192.168.20.1) from 192.168.10.1: 56 data bytes, press CTRL_C
to break
56 bytes from 192.168.20.1: icmp_seq=0 ttl=254 time=2.576 ms
56 bytes from 192.168.20.1: icmp_seq=1 ttl=254 time=1.996 ms
…
# Shut down HundredGigE 1/0/2 on P 1.
[P1] interface hundredgige 1/0/2
[P1-HundredGigE1/0/2] shutdown
# View the ping command output. The output shows that the communication was interrupted, and then immediately resumed.
[PE1] ping -c 100000 -a 192.168.10.1 192.168.20.1
Ping 192.168.20.1 (192.168.20.1) from 192.168.10.1: 56 data bytes, press CTRL_C
to break
56 bytes from 192.168.20.1: icmp_seq=0 ttl=254 time=2.576 ms
56 bytes from 192.168.20.1: icmp_seq=1 ttl=254 time=1.996 ms
…
56 bytes from 192.168.20.1: icmp_seq=7 ttl=254 time=2.214 ms
Request time out
56 bytes from 192.168.20.1: icmp_seq=9 ttl=254 time=2.659 ms
56 bytes from 192.168.20.1: icmp_seq=10 ttl=254 time=5.049 ms
56 bytes from 192.168.20.1: icmp_seq=11 ttl=254 time=2.098 ms
56 bytes from 192.168.20.1: icmp_seq=12 ttl=254 time=2.225 ms
56 bytes from 192.168.20.1: icmp_seq=13 ttl=254 time=2.187 ms
--- Ping statistics for 192.168.20.1 ---
14 packet(s) transmitted, 13 packet(s) received, 7.1% packet loss
round-trip min/avg/max/std-dev = 1.990/2.455/5.049/0.772 ms
4. Execute the tracert mpls ipv4 command on PE 1. The output shows that the backup LSP is in use.
[PE1] tracert mpls -a 192.168.10.1 ipv4 192.168.20.0 24
MPLS trace route FEC 192.168.20.0/24
TTL Replier Time Type Downstream
0 Ingress 14.14.14.4/[1276]
1 14.14.14.4 2 ms Transit 34.34.34.3/[1148]
2 34.34.34.3 2 ms Egress
Configuration files
· PE 1:
#
ospf 1
fast-reroute lfa
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 12.12.12.0 0.0.0.255
network 14.14.14.0 0.0.0.255
network 192.168.10.0 0.0.0.255
#
mpls lsr-id 1.1.1.1
#
mpls ldp
lsp-trigger prefix-list PE1
#
mpls bfd enable
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.1 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.1 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.10.1 255.255.255.0
#
ip prefix-list PE1 index 10 permit 192.168.10.0 24
ip prefix-list PE1 index 20 permit 192.168.20.0 24
ip prefix-list PE1 index 30 permit 1.1.1.1 32
ip prefix-list PE1 index 40 permit 3.3.3.3 32
#
mpls bfd 3.3.3.3 32
#
· PE 2:
#
ospf 1
fast-reroute lfa
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 23.23.23.0 0.0.0.255
network 34.34.34.0 0.0.0.255
network 192.168.20.0 0.0.0.255
#
mpls lsr-id 3.3.3.3
#
mpls ldp
lsp-trigger prefix-list PE2
#
mpls bfd enable
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.3 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.3 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.20.1 255.255.255.0
#
ip prefix-list PE2 index 10 permit 192.168.10.0 24
ip prefix-list PE2 index 20 permit 192.168.20.0 24
ip prefix-list PE2 index 30 permit 1.1.1.1 32
ip prefix-list PE2 index 40 permit 3.3.3.3 32
#
mpls bfd 1.1.1.1 32
#
· P 1:
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.12.12.0 0.0.0.255
network 23.23.23.0 0.0.0.255
#
mpls lsr-id 2.2.2.2
#
mpls ldp
lsp-trigger prefix-list P1
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.2 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.2 255.255.255.0
mpls enable
mpls ldp enable
#
ip prefix-list P1 index 10 permit 192.168.10.0 24
ip prefix-list P1 index 20 permit 192.168.20.0 24
ip prefix-list P1 index 30 permit 1.1.1.1 32
ip prefix-list P1 index 40 permit 3.3.3.3 32
#
· P 2:
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 14.14.14.0 0.0.0.255
network 34.34.34.0 0.0.0.255
#
mpls lsr-id 4.4.4.4
#
mpls ldp
lsp-trigger prefix-list P2
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.4 255.255.255.0
ospf cost 10
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.4 255.255.255.0
ospf cost 10
mpls enable
mpls ldp enable
#
ip prefix-list P2 index 10 permit 192.168.10.0 24
ip prefix-list P2 index 20 permit 192.168.20.0 24
ip prefix-list P2 index 30 permit 1.1.1.1 32
ip prefix-list P2 index 40 permit 3.3.3.3 32
#
Example: Configuring SBFD for an LSP
Network configuration
As shown in Figure 2, a company has two branches that are connected to the MPLS backbone. It requires the MPLS backbone to establish LSPs for communication between the branches, and to provide high availability services for uninterrupted business between the branches.
To meet the requirements:
· Establish LSPs by using LDP.
· Configure OSPF FRR on the MPLS backbone so LDP can establish a primary LSP and a backup LSP.
· Configure SBFD for the primary LSP. When the primary LSP fails, SBFD can quickly detect the failure and notify LDP of the failure, so LDP can immediately switch traffic to the backup LSP.
Software versions used
This configuration example was created and verified on Release 3606.
Restrictions and guidelines
Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI.
Procedures
1. Configure IP addresses for interfaces:
# On PE 1, configure IP addresses and masks for interfaces, including the loopback interface, as shown in Figure 2.
<PE1> system-view
[PE1] interface hundredgige 1/0/1
[PE1-HundredGigE1/0/1] ip address 12.12.12.1 24
[PE1-HundredGigE1/0/1] quit
[PE1] interface hundredgige 1/0/2
[PE1-HundredGigE1/0/2] ip address 14.14.14.1 24
[PE1-HundredGigE1/0/2] quit
[PE1] interface hundredgige 1/0/3
[PE1-HundredGigE1/0/3] ip address 192.168.10.1 24
[PE1-HundredGigE1/0/3] quit
[PE1] interface loopback 0
[PE1-LoopBack0] ip address 1.1.1.1 32
[PE1-LoopBack0] quit
2. Configure OSPF to ensure IP connectivity within the MPLS backbone, and enable OSPF FRR:
# Configure PE 1.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] fast-reroute lfa
[PE1-ospf-1] quit
# Configure P 1.
[P1] ospf
[P1-ospf-1] area 0
[P1-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[P1-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[P1-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[P1-ospf-1-area-0.0.0.0] quit
[P1-ospf-1] quit
# Configure PE 2.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 34.34.34..0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-1] fast-reroute lfa
[PE2-ospf-1] quit
# Configure P 2.
[P2] ospf
[P2-ospf-1] area 0
[P2-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[P2-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[P2-ospf-1-area-0.0.0.0] network 34.34.34.0 0.0.0.255
[P2-ospf-1-area-0.0.0.0] quit
[P2-ospf-1] quit
# On P 2, set the OSPF cost to 10 for HundredGigE 1/0/2 and HundredGigE 1/0/1. This setting ensures that the backup LSP has a larger OSPF cost than the primary LSP.
[P2] interface hundredgige 1/0/2
[P2-HundredGigE1/0/2] ospf cost 10
[P2-HundredGigE1/0/2] quit
[P2] interface hundredgige 1/0/1
[P2-HundredGigE1/0/1] ospf cost 10
[P2-HundredGigE1/0/1] quit
3. Configure basic MPLS and MPLS LDP:
# Configure PE 1.
[PE1] mpls lsr-id 1.1.1.1
[PE1] mpls ldp
[PE1-ldp] quit
[PE1] interface hundredgige 1/0/1
[PE1-HundredGigE1/0/1] mpls enable
[PE1-HundredGigE1/0/1] mpls ldp enable
[PE1-HundredGigE1/0/1] quit
[PE1] interface hundredgige 1/0/2
[PE1-HundredGigE1/0/2] mpls enable
[PE1-HundredGigE1/0/2] mpls ldp enable
[PE1-HundredGigE1/0/2] quit
# Configure P 1.
[P1] mpls lsr-id 2.2.2.2
[P1] mpls ldp
[P1-ldp] quit
[P1] interface hundredgige 1/0/1
[P1-HundredGigE1/0/1] mpls enable
[P1-HundredGigE1/0/1] mpls ldp enable
[P1-HundredGigE1/0/1] quit
[P1] interface hundredgige 1/0/2
[P1-HundredGigE1/0/2] mpls enable
[P1-HundredGigE1/0/2] mpls ldp enable
[P1-HundredGigE1/0/2] quit
# Configure PE 2.
[PE2] mpls lsr-id 3.3.3.3
[PE2] mpls ldp
[PE2-ldp] quit
[PE2] interface hundredgige 1/0/1
[PE2-HundredGigE1/0/1] mpls enable
[PE2-HundredGigE1/0/1] mpls ldp enable
[PE2-HundredGigE1/0/1] quit
[PE2] interface hundredgige 1/0/2
[PE2-HundredGigE1/0/2] mpls enable
[PE2-HundredGigE1/0/2] mpls ldp enable
[PE2-HundredGigE1/0/2] quit
# Configure P 2.
[P2] mpls lsr-id 4.4.4.4
[P2] mpls ldp
[P2-ldp] quit
[P2] interface hundredgige 1/0/1
[P2-HundredGigE1/0/1] mpls enable
[P2-HundredGigE1/0/1] mpls ldp enable
[P2-HundredGigE1/0/1] quit
[P2] interface hundredgige 1/0/2
[P2-HundredGigE1/0/2] mpls enable
[P2-HundredGigE1/0/2] mpls ldp enable
[P2-HundredGigE1/0/2] quit
# Verify that LDP sessions in Operational state have been established on each device. The following shows the output on PE 1.
[PE1] display mpls ldp peer
Total number of peers: 2
Peer LDP ID State Role GR MD5 KA Sent/Rcvd
2.2.2.2:0 Operational Passive Off Off 55/55
4.4.4.4:0 Operational Passive Off Off 6/6
4. Configure LSP generation policies to establish LSPs to destinations 192.168.10.0/24, 192.168.20.0/24, 1.1.1.1/32, and 3.3.3.3/32:
# On PE 1, create IP prefix list PE1, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[PE1] ip prefix-list PE1 index 10 permit 192.168.10.0 24
[PE1] ip prefix-list PE1 index 20 permit 192.168.20.0 24
[PE1] ip prefix-list PE1 index 30 permit 1.1.1.1 32
[PE1] ip prefix-list PE1 index 40 permit 3.3.3.3 32
[PE1] mpls ldp
[PE1-ldp] lsp-trigger prefix-list PE1
[PE1-ldp] quit
# On P 1, create IP prefix list P1, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[P1] ip prefix-list P1 index 10 permit 192.168.10.0 24
[P1] ip prefix-list P1 index 20 permit 192.168.20.0 24
[P1] ip prefix-list P1 index 30 permit 1.1.1.1 32
[P1] ip prefix-list P1 index 40 permit 3.3.3.3 32
[P1] mpls ldp
[P1-ldp] lsp-trigger prefix-list P1
[P1-ldp] quit
# On PE 2, create IP prefix list PE2, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[PE2] ip prefix-list PE2 index 10 permit 192.168.10.0 24
[PE2] ip prefix-list PE2 index 20 permit 192.168.20.0 24
[PE2] ip prefix-list PE2 index 30 permit 1.1.1.1 32
[PE2] ip prefix-list PE2 index 40 permit 3.3.3.3 32
[PE2] mpls ldp
[PE2-ldp] lsp-trigger prefix-list PE2
[PE2-ldp] quit
# On P 2, create IP prefix list P2, and configure LDP to use only the routes permitted by the prefix list to establish LSPs.
[P2] ip prefix-list P2 index 10 permit 192.168.10.0 24
[P2] ip prefix-list P2 index 20 permit 192.168.20.0 24
[P2] ip prefix-list P2 index 30 permit 1.1.1.1 32
[P2] ip prefix-list P2 index 40 permit 3.3.3.3 32
[P2] mpls ldp
[P2-ldp] lsp-trigger prefix-list P2
[P2-ldp] quit
# Verify that LSPs to destination 192.168.20.0/24 have been established on PE 1. The primary LSP uses HundredGigE 1/0/1 as the outgoing interface and the backup LSP uses HundredGigE 1/0/2 as the outgoing interface.
[PE1]display mpls ldp lsp
Status Flags: * - stale, L - liberal, B - backup, N/A – unavailable
FECs: 4 Ingress: 4 Transit: 4 Egress: 2
FEC In/Out Label Nexthop OutInterface
1.1.1.1/32 3/-
-/1151(L)
-/1279(L)
3.3.3.3/32 -/1150 12.12.12.2 HGE1/0/1
1150/1150 12.12.12.2 HGE1/0/1
-/1150(B) 12.12.12.2 HGE1/0/2
1150/1150(B) 12.12.12.2 HGE1/0/2
192.168.10.0/24 1141/-
-/1141(L)
-/1141(L)
192.168.20.0/24 -/1133 12.12.12.2 HGE1/0/1
1133/1133 12.12.12.2 HGE1/0/1
-/1133(B) 14.14.14.4 HGE1/0/2
1133/1133(B) 14.14.14.4 HGE1/0/2
5. Enable BFD for MPLS and use SBFD to verify LSP connectivity:
# Configure PE 1.
[PE1] mpls bfd enable
[PE1] sbfd local-discriminator 3000000
[PE1] mpls sbfd 3.3.3.3 32 remote 2000000
# Configure PE 2.
[PE2] mpls bfd enable
[PE2] sbfd local-discriminator 2000000
[PE2] mpls sbfd 1.1.1.1 32 remote 3000000
Verifying the configuration
1. Display SBFD information for LSPs on PE 1 and PE 2. The following shows the output on PE 1.
[PE1] display mpls sbfd
Total number of sessions: 1, 1 up, 0 down, 0 init
FEC Type: LSP
FEC Info:
Destination: 3.3.3.3
Mask Length: 32
NHLFE ID: 2
Local Discr: 513 Remote Discr: 2000000
Source IP: 1.1.1.1 Destination IP: 127.0.0.1
Session State: Up
Template Name: -
2. Execute the tracert mpls ipv4 command on PE 1. The output shows that the primary LSP is in use.
|
NOTE: Before you use the tracert feature, enable sending ICMP time exceeded messages on intermediate devices, and enable sending ICMP destination unreachable messages on the destination device. |
[PE1] tracert mpls -a 192.168.10.1 ipv4 192.168.20.0 24
MPLS trace route FEC 192.168.20.0/24
TTL Replier Time Type Downstream
0 Ingress 12.12.12.2/[1148]
1 12.12.12.2 2 ms Transit 23.23.23.3/[1148]
2 23.23.23.3 2 ms Egress
3. Verify that the ping operation from PE 1 to PE 2 will not fail after HundredGigE 1/0/2 on P 1 is shut down during the ping operation:
# Ping PE 2 from PE 1.
[PE1] ping -c 100000 -a 192.168.10.1 192.168.20.1
Ping 192.168.20.1 (192.168.20.1) from 192.168.10.1: 56 data bytes, press CTRL_C
to break
56 bytes from 192.168.20.1: icmp_seq=0 ttl=254 time=2.576 ms
56 bytes from 192.168.20.1: icmp_seq=1 ttl=254 time=1.996 ms
…
# Shut down HundredGigE 1/0/2 on P 1.
[P1] interface hundredgige 1/0/2
[P1-HundredGigE1/0/2] shutdown
# View the ping command output. The output shows that the communication was interrupted, and then immediately resumed.
[PE1] ping -c 100000 -a 192.168.10.1 192.168.20.1
Ping 192.168.20.1 (192.168.20.1) from 192.168.10.1: 56 data bytes, press CTRL_C
to break
56 bytes from 192.168.20.1: icmp_seq=0 ttl=254 time=2.576 ms
56 bytes from 192.168.20.1: icmp_seq=1 ttl=254 time=1.996 ms
…
56 bytes from 192.168.20.1: icmp_seq=7 ttl=254 time=2.214 ms
Request time out
56 bytes from 192.168.20.1: icmp_seq=9 ttl=254 time=2.659 ms
56 bytes from 192.168.20.1: icmp_seq=10 ttl=254 time=5.049 ms
56 bytes from 192.168.20.1: icmp_seq=11 ttl=254 time=2.098 ms
56 bytes from 192.168.20.1: icmp_seq=12 ttl=254 time=2.225 ms
56 bytes from 192.168.20.1: icmp_seq=13 ttl=254 time=2.187 ms
--- Ping statistics for 192.168.20.1 ---
14 packet(s) transmitted, 13 packet(s) received, 7.1% packet loss
round-trip min/avg/max/std-dev = 1.990/2.455/5.049/0.772 ms
4. Execute the tracert mpls ipv4 command on PE 1. The output shows that the backup LSP is in use.
[PE1] tracert mpls -a 192.168.10.1 ipv4 192.168.20.0 24
MPLS trace route FEC 192.168.20.0/24
TTL Replier Time Type Downstream
0 Ingress 14.14.14.4/[1276]
1 14.14.14.4 2 ms Transit 34.34.34.3/[1148]
2 34.34.34.3 2 ms Egress
Configuration files
· PE 1:
#
ospf 1
fast-reroute lfa
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 12.12.12.0 0.0.0.255
network 14.14.14.0 0.0.0.255
network 192.168.10.0 0.0.0.255
#
mpls lsr-id 1.1.1.1
#
mpls ldp
lsp-trigger prefix-list PE1
#
mpls bfd enable
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.1 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.1 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.10.1 255.255.255.0
#
ip prefix-list PE1 index 10 permit 192.168.10.0 24
ip prefix-list PE1 index 20 permit 192.168.20.0 24
ip prefix-list PE1 index 30 permit 1.1.1.1 32
ip prefix-list PE1 index 40 permit 3.3.3.3 32
#
mpls sbfd 3.3.3.3 32 remote 2000000
#
· PE 2:
#
ospf 1
fast-reroute lfa
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 23.23.23.0 0.0.0.255
network 34.34.34.0 0.0.0.255
network 192.168.20.0 0.0.0.255
#
sbfd local-discriminator 2000000
#
mpls lsr-id 3.3.3.3
#
mpls ldp
lsp-trigger prefix-list PE2
#
mpls bfd enable
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.3 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.3 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.20.1 255.255.255.0
#
ip prefix-list PE2 index 10 permit 192.168.10.0 24
ip prefix-list PE2 index 20 permit 192.168.20.0 24
ip prefix-list PE2 index 30 permit 1.1.1.1 32
ip prefix-list PE2 index 40 permit 3.3.3.3 32
#
mpls bfd 1.1.1.1 32
#
· P 1:
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.12.12.0 0.0.0.255
network 23.23.23.0 0.0.0.255
#
mpls lsr-id 2.2.2.2
#
mpls ldp
lsp-trigger prefix-list P1
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.2 255.255.255.0
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.2 255.255.255.0
mpls enable
mpls ldp enable
#
ip prefix-list P1 index 10 permit 192.168.10.0 24
ip prefix-list P1 index 20 permit 192.168.20.0 24
ip prefix-list P1 index 30 permit 1.1.1.1 32
ip prefix-list P1 index 40 permit 3.3.3.3 32
#
· P 2:
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 14.14.14.0 0.0.0.255
network 34.34.34.0 0.0.0.255
#
mpls lsr-id 4.4.4.4
#
mpls ldp
lsp-trigger prefix-list P2
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.4 255.255.255.0
ospf cost 10
mpls enable
mpls ldp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.4 255.255.255.0
ospf cost 10
mpls enable
mpls ldp enable
#
ip prefix-list P2 index 10 permit 192.168.10.0 24
ip prefix-list P2 index 20 permit 192.168.20.0 24
ip prefix-list P2 index 30 permit 1.1.1.1 32
ip prefix-list P2 index 40 permit 3.3.3.3 32
#
Example: Configuring BFD for an MPLS TE tunnel
Network configuration
As shown in Figure 3, a company has two branches that are connected to the MPLS backbone. It requires the MPLS backbone to establish an MPLS TE tunnel for communication between the branches, and to provide high availability services for uninterrupted business between the branches.
To meet the requirements:
· Use RSVP-TE to establish an MPLS TE tunnel between Router A and Router C.
· Configure CRLSP backup for the MPLS TE tunnel to simultaneously establish a primary CRLSP (CR-LSP 1) and a backup CRLSP (CR-LSP 2).
· Configure BFD for the MPLS TE tunnel. When the primary CRLSP fails, BFD can quickly detect the failure and notify RSVP of the failure, so RSVP can immediately switch traffic to the backup CRLSP.
Software versions used
This configuration example was created and verified on Release 3606.
Restrictions and guidelines
When you configure BFD for an MPLS TE tunnel, follow these restrictions and guidelines:
· Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI.
· OSPF TE uses Type-10 opaque LSAs to carry the TE attributes for a link. Before you configure OSPF TE, you must enable opaque LSA advertisement and reception by using the opaque-capability enable command. For more information about opaque LSA advertisement and reception, see Layer 3—IP Routing Configuration Guide.
· MPLS TE cannot reserve resources and distribute labels for an OSPF virtual link. Make sure no virtual link exists in an OSPF area before you configure MPLS TE.
Procedures
1. Configure IP addresses for interfaces:
# On Router A, configure IP addresses and masks for interfaces, including the loopback interface, as shown in Figure 3.
<RouterA> system-view
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] ip address 12.12.12.1 24
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] ip address 14.14.14.1 24
[RouterA-HundredGigE1/0/2] quit
[RouterA] interface hundredgige 1/0/3
[RouterA-HundredGigE1/0/3] ip address 192.168.10.1 24
[RouterA-HundredGigE1/0/3] quit
[RouterA] interface loopback 0
[RouterA-LoopBack0] ip address 1.1.1.1 32
[RouterA-LoopBack0] quit
# Configure other devices in the same way that Router A is configured. (Details not shown.)
2. Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE:
# Configure Router A.
[RouterA] mpls lsr-id 1.1.1.1
[RouterA] mpls te
[RouterA-te] quit
[RouterA] rsvp
[RouterA-rsvp] quit
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] mpls enable
[RouterA-HundredGigE1/0/1] mpls te enable
[RouterA-HundredGigE1/0/1] rsvp enable
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] mpls enable
[RouterA-HundredGigE1/0/2] mpls te enable
[RouterA-HundredGigE1/0/2] rsvp enable
[RouterA-HundredGigE1/0/2] quit
# Configure Router B, Router C, and Router D in the same way that Router A is configured. (Details not shown.)
3. Configure OSPF to ensure IP connectivity within the MPLS backbone, enable opaque LSA advertisement and reception, and enable MPLS TE for OSPF area 0:
# Configure Router A.
[RouterA] ospf
[RouterA-ospf-1] opaque-capability enable
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] mpls te enable
[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[RouterA-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
# Configure Router B.
[RouterB] ospf
[RouterB-ospf-1] opaque-capability enable
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] mpls te enable
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
[RouterC] ospf
[RouterC-ospf-1] opaque-capability enable
[RouterC ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] mpls te enable
[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[RouterC ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] network 34.34.34..0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] quit
[RouterC ospf-1] quit
# Configure Router D.
[RouterD] ospf
[RouterD-ospf-1] opaque-capability enable
[RouterD-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] mpls te enable
[RouterD-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[RouterD-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 34.34.34.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] quit
[RouterD-ospf-1] quit
4. Configure an MPLS TE tunnel:
# On Router A, configure MPLS TE tunnel interface Tunnel 3, and specify the tunnel destination address as the LSR ID of Router C.
[RouterA] interface tunnel 3 mode mpls-te
[RouterA-Tunnel3] ip address 9.1.1.1 255.255.255.0
[RouterA-Tunnel3] destination 3.3.3.3
# Configure MPLS TE to use RSVP-TE to establish the tunnel, and enable CRLSP hot backup for the tunnel.
[RouterA-Tunnel3] mpls te signaling rsvp-te
[RouterA-Tunnel3] mpls te backup hot-standby
[RouterA-Tunnel3] quit
# Configure explicit paths for the MPLS TE tunnel.
[RouterA] explicit-path cr-lsp1
[RouterA-explicit-path-cr-lsp1] nexthop 12.12.12.2
[RouterA-explicit-path-cr-lsp1] quit
[RouterA] explicit-path cr-lsp2
[RouterA-explicit-path-cr-lsp2] nexthop 14.14.14.4
[RouterA-explicit-path-cr-lsp2]quit
# Set the preference to 1 for CR-LSP 1 and set the preference to 2 for CR-LSP 2.
[RouterA] interface tunnel 3
[RouterA-Tunnel3] mpls te path preference 1 explicit-path cr-lsp1
[RouterA-Tunnel3] mpls te path preference 2 explicit-path cr-lsp2
[RouterA-Tunnel3] quit
# On Router C, configure MPLS TE tunnel interface Tunnel 3, and specify the tunnel destination address as the LSR ID of Router A.
[RouterC] interface tunnel 3 mode mpls-te
[RouterC-Tunnel3] ip address 9.3.3.3 255.255.255.0
[RouterC-Tunnel3] destination 1.1.1.1
# Configure MPLS TE to use RSVP-TE to establish the tunnel, and enable CRLSP hot backup for the tunnel.
[RouterC-Tunnel3] mpls te signaling rsvp-te
[RouterC-Tunnel3] mpls te backup hot-standby
[RouterC-Tunnel3] quit
# Configure explicit paths for the MPLS TE tunnel.
[RouterC] explicit-path cr-lsp1
[RouterC-explicit-path-cr-lsp1] nexthop 23.23.23.2
[RouterC-explicit-path-cr-lsp1] quit
[RouterC] explicit-path cr-lsp2
[RouterC-explicit-path-cr-lsp2] nexthop 34.34.34.4
[RouterC-explicit-path-cr-lsp2]quit
# Set the preference to 1 for CR-LSP 1 and set the preference to 2 for CR-LSP 2.
[RouterC] interface tunnel 3
[RouterC-Tunnel3] mpls te path preference 1 explicit-path cr-lsp1
[RouterC-Tunnel3] mpls te path preference 2 explicit-path cr-lsp2
[RouterC-Tunnel3] quit
5. Configure static routing to direct traffic to the MPLS TE tunnel:
# Configure a static route on Router A to direct the traffic destined for subnet 192.168.20.0/24 to MPLS TE Tunnel 3.
[RouterA] ip route-static 192.168.20.0 24 tunnel 3 preference 1
# Configure a static route on Router C to direct the traffic destined for subnet 192.168.10.0/24 to MPLS TE Tunnel 3.
[RouterC] ip route-static 192.168.10.0 24 tunnel 3 preference 1
6. Enable BFD for MPLS and use BFD to verify MPLS TE tunnel connectivity:
# Configure Router A.
[RouterA] mpls bfd enable
[RouterA] interface tunnel 3
[RouterA-Tunnel3] mpls bfd
[RouterA-Tunnel3] quit
# Configure Router C.
[RouterC] mpls bfd enable
[RouterC] interface tunnel 3
[RouterC-Tunnel3] mpls bfd
[RouterC-Tunnel3] quit
Verifying the configuration
1. Display MPLS TE tunnel information:
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the tunnel interface Tunnel 3 is up, the primary and backup CRLSPs have been established, and hot backup is used.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP up, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 37161 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : 1.1.1.1 Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : cr-lsp1
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37162
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
# Execute the display rsvp lsp verbose command on Router A. The output shows detailed information about the primary and backup CRLSPs. The primary CRLSP uses the output interface HundredGigE 1/0/1 and the next hop 12.12.12.2. The backup CRLSP uses the output interface HundredGigE 1/0/2 and the next hop 14.14.14.4.
[RouterA] display rsvp lsp destination 3.3.3.3 verbose
Tunnel name: Tunnel3
Destination: 3.3.3.3 Source: 1.1.1.1
Tunnel ID: 3 LSP ID: 37161
LSR type: Ingress Direction: Unidirectional
Setup priority: 7 Holding priority: 7
In-Label: - Out-Label: 1149
In-Interface: - Out-Interface: HGE1/0/1
Nexthop: 12.12.12.2 Exclude-any: 0
Include-Any: 0 Include-all: 0
Mean rate (CIR): 0 kbps Mean burst size (CBS): 1000.00 bytes
Path MTU: 1500 Class type: CT0
RRO number: 6
12.12.12.1/32 Flag: 0x00 (No FRR)
12.12.12.2/32 Flag: 0x00 (No FRR)
2.2.2.2/32 Flag: 0x20 (No FRR/Node-ID)
23.23.23.2/32 Flag: 0x00 (No FRR)
23.23.23.3/32 Flag: 0x00 (No FRR)
3.3.3.3/32 Flag: 0x20 (No FRR/Node-ID)
Fast Reroute protection: None
Tunnel name: Tunnel3
Destination: 3.3.3.3 Source: 1.1.1.1
Tunnel ID: 3 LSP ID: 37162
LSR type: Ingress Direction: Unidirectional
Setup priority: 7 Holding priority: 7
In-Label: - Out-Label: 1149
In-Interface: - Out-Interface: HGE1/0/2
Nexthop: 14.14.14.4 Exclude-any: 0
Include-Any: 0 Include-all: 0
Mean rate (CIR): 0 kbps Mean burst size (CBS): 1000.00 bytes
Path MTU: 1500 Class type: CT0
RRO number: 6
14.14.14.1/32 Flag: 0x00 (No FRR)
14.14.14.4/32 Flag: 0x00 (No FRR)
4.4.4.4/32 Flag: 0x20 (No FRR/Node-ID)
34.34.34.4/32 Flag: 0x00 (No FRR)
34.34.34.3/32 Flag: 0x00 (No FRR)
3.3.3.3/32 Flag: 0x20 (No FRR/Node-ID)
Fast Reroute protection: None
2. Display BFD information for the MPLS TE tunnel on Router A. The output shows that BFD sessions have been established for the primary and backup CRLSPs and the state of the session is up.
[RouterA] display mpls bfd te tunnel 3
Total number of sessions: 2, 2 up, 0 down, 0 init
FEC Type: TE Tunnel
FEC Info:
Send Addr: 1.1.1.1
End Addr: 3.3.3.3
Tunnel ID: 3
LSP ID : 37161
NHLFE ID: 1029
Local Discr: 34 Remote Discr: 33
Source IP: 1.1.1.1 Destination IP: 127.0.0.1
Session State: Up Session Role: Passive
Template Name: -
FEC Type: TE Tunnel
FEC Info:
Send Addr: 1.1.1.1
End Addr: 3.3.3.3
Tunnel ID: 3
LSP ID : 37162
NHLFE ID: 1031
Local Discr: 33 Remote Discr: 36
Source IP: 1.1.1.1 Destination IP: 127.0.0.4
Session State: Up Session Role: Passive
Template Name: -
3. Shut down HundredGigE 1/0/2 on Router B, and display MPLS TE tunnel information and BFD information:
# Shut down HundredGigE 1/0/2 on Router B.
[RouterB] interface hundredgige 1/0/2
[RouterB-HundredGigE1/0/2] shutdown
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the primary CRLSP is down and the backup CRLSP is up.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP down, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 0 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : - Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : -
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37162
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
# Display BFD information for CR-LSP 2 on Router A.
[RouterA] display mpls bfd te tunnel 3
Total number of sessions: 1, 1 up, 0 down, 0 init
FEC Type: TE Tunnel
FEC Info:
Send Addr: 1.1.1.1
End Addr: 3.3.3.3
Tunnel ID: 3
LSP ID : 37162
NHLFE ID: 1031
Local Discr: 33 Remote Discr: 36
Source IP: 1.1.1.1 Destination IP: 127.0.0.4
Session State: Up Session Role: Passive
Template Name: -
4. Bring up HundredGigE 1/0/2 on Router B and display MPLS TE tunnel information:
# Bring up HundredGigE 1/0/2 on Router B.
[RouterB] interface hundredgige 1/0/2
[RouterB-HundredGigE1/0/2] undo shutdown
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the primary CRLSP becomes available again.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP up, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 37177 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : 1.1.1.1 Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : cr-lsp1
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37178
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
Configuration files
· Router A:
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 12.12.12.0 0.0.0.255
network 14.14.14.0 0.0.0.255
network 192.168.10.0 0.0.0.255
mpls te enable
#
mpls lsr-id 1.1.1.1
#
explicit-path cr-lsp1
nexthop index 1 12.12.12.2 include strict
#
explicit-path cr-lsp2
nexthop index 1 14.14.14.4 include strict
#
rsvp
#
mpls bfd enable
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.1 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.1 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.10.1 255.255.255.0
#
interface Tunnel3 mode mpls-te
ip address 9.1.1.1 255.255.255.0
mpls te path preference 1 explicit-path cr-lsp1
mpls te path preference 2 explicit-path cr-lsp2
mpls te backup hot-standby
mpls bfd
destination 3.3.3.3
#
ip route-static 192.168.20.0 24 Tunnel3 preference 1
#
· Router B:
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.12.12.0 0.0.0.255
network 23.23.23.0 0.0.0.255
mpls te enable
#
mpls lsr-id 2.2.2.2
#
mpls te
#
rsvp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.2 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.2 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
· Router C:
#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 23.23.23.0 0.0.0.255
network 34.34.34.0 0.0.0.255
network 192.168.20.0 0.0.0.255
mpls te enable
#
mpls lsr-id 3.3.3.3
#
mpls te
#
explicit-path cr-lsp1
nexthop index 1 23.23.23.2 include strict
#
explicit-path cr-lsp2
nexthop index 1 34.34.34.4 include strict
#
rsvp
#
mpls bfd enable
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.3 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.3 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.20.1 255.255.255.0
#
interface Tunnel3 mode mpls-te
ip address 9.3.3.3 255.255.255.0
mpls te path preference 1 explicit-path cr-lsp1
mpls te path preference 2 explicit-path cr-lsp2
mpls te backup hot-standby
mpls bfd
destination 1.1.1.1
#
ip route-static 192.168.10.0 24 Tunnel3 preference 1
#
· Router D:
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 14.14.14.0 0.0.0.255
network 34.34.34.0 0.0.0.255
mpls te enable
#
mpls lsr-id 4.4.4.4
#
mpls te
#
rsvp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.4 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.4 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
Example: Configuring SBFD for an MPLS TE tunnel
Network configuration
As shown in Figure 4, a company has two branches that are connected to the MPLS backbone. It requires the MPLS backbone to establish an MPLS TE tunnel for communication between the branches, and to provide high availability services for uninterrupted business between the branches.
To meet the requirements:
· Use RSVP-TE to establish an MPLS TE tunnel between Router A and Router C.
· Configure CRLSP backup for the MPLS TE tunnel to simultaneously establish a primary CRLSP (CR-LSP 1) and a backup CRLSP (CR-LSP 2).
· Configure SBFD for the MPLS TE tunnel. When the primary CRLSP fails, SBFD can quickly detect the failure and notify RSVP of the failure, so RSVP can immediately switch traffic to the backup CRLSP.
Software versions used
This configuration example was created and verified on Release 3606.
Restrictions and guidelines
When you configure SBFD for an MPLS TE tunnel, follow these restrictions and guidelines:
· Before configuration, disable the spanning tree feature globally or map each VLAN to an MSTI.
· OSPF TE uses Type-10 opaque LSAs to carry the TE attributes for a link. Before you configure OSPF TE, you must enable opaque LSA advertisement and reception by using the opaque-capability enable command. For more information about opaque LSA advertisement and reception, see OSPF configuration in Layer 3—IP Routing Configuration Guide.
· MPLS TE cannot reserve resources and distribute labels for an OSPF virtual link. Make sure no virtual link exists in an OSPF area before you configure MPLS TE.
Procedures
1. Configure IP addresses for interfaces:
# On Router A, configure IP addresses and masks for interfaces, including the loopback interface, as shown in Figure 4.
<RouterA> system-view
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] ip address 12.12.12.1 24
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] ip address 14.14.14.1 24
[RouterA-HundredGigE1/0/2] quit
[RouterA] interface hundredgige 1/0/3
[RouterA-HundredGigE1/0/3] ip address 192.168.10.1 24
[RouterA-HundredGigE1/0/3] quit
[RouterA] interface loopback 0
[RouterA-LoopBack0] ip address 1.1.1.1 32
[RouterA-LoopBack0] quit
# Configure other devices in the same way that Router A is configured. (Details not shown.)
2. Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE:
# Configure Router A.
[RouterA] mpls lsr-id 1.1.1.1
[RouterA] mpls te
[RouterA-te] quit
[RouterA] rsvp
[RouterA-rsvp] quit
[RouterA] interface hundredgige 1/0/1
[RouterA-HundredGigE1/0/1] mpls enable
[RouterA-HundredGigE1/0/1] mpls te enable
[RouterA-HundredGigE1/0/1] rsvp enable
[RouterA-HundredGigE1/0/1] quit
[RouterA] interface hundredgige 1/0/2
[RouterA-HundredGigE1/0/2] mpls enable
[RouterA-HundredGigE1/0/2] mpls te enable
[RouterA-HundredGigE1/0/2] rsvp enable
[RouterA-HundredGigE1/0/2] quit
# Configure Router B, Router C, and Router D in the same way that Router A is configured. (Details not shown.)
3. Configure OSPF to ensure IP connectivity within the MPLS backbone, enable opaque LSA advertisement and reception, and enable MPLS TE for OSPF area 0:
# Configure Router A.
[RouterA] ospf
[RouterA-ospf-1] opaque-capability enable
[RouterA-ospf-1] area 0
[RouterA-ospf-1-area-0.0.0.0] mpls te enable
[RouterA-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[RouterA-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] network 192.168.10.0 0.0.0.255
[RouterA-ospf-1-area-0.0.0.0] quit
[RouterA-ospf-1] quit
# Configure Router B.
[RouterB] ospf
[RouterB-ospf-1] opaque-capability enable
[RouterB-ospf-1] area 0
[RouterB-ospf-1-area-0.0.0.0] mpls te enable
[RouterB-ospf-1-area-0.0.0.0] network 2.2.2.2 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 12.12.12.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# Configure Router C.
[RouterC] ospf
[RouterC-ospf-1] opaque-capability enable
[RouterC ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] mpls te enable
[RouterC-ospf-1-area-0.0.0.0] network 3.3.3.3 0.0.0.0
[RouterC ospf-1-area-0.0.0.0] network 23.23.23.0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] network 34.34.34..0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] network 192.168.20.0 0.0.0.255
[RouterC ospf-1-area-0.0.0.0] quit
[RouterC ospf-1] quit
# Configure Router D.
[RouterD] ospf
[RouterD-ospf-1] opaque-capability enable
[RouterD-ospf-1] area 0
[RouterC-ospf-1-area-0.0.0.0] mpls te enable
[RouterD-ospf-1-area-0.0.0.0] network 4.4.4.4 0.0.0.0
[RouterD-ospf-1-area-0.0.0.0] network 14.14.14.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] network 34.34.34.0 0.0.0.255
[RouterD-ospf-1-area-0.0.0.0] quit
[RouterD-ospf-1] quit
4. Configure an MPLS TE tunnel:
# On Router A, configure MPLS TE tunnel interface Tunnel 3, and specify the tunnel destination address as the LSR ID of Router C.
[RouterA] interface tunnel 3 mode mpls-te
[RouterA-Tunnel3] ip address 9.1.1.1 255.255.255.0
[RouterA-Tunnel3] destination 3.3.3.3
# Configure MPLS TE to use RSVP-TE to establish the tunnel, and enable CRLSP hot backup for the tunnel.
[RouterA-Tunnel3] mpls te signaling rsvp-te
[RouterA-Tunnel3] mpls te backup hot-standby
[RouterA-Tunnel3] quit
# Configure explicit paths for the MPLS TE tunnel.
[RouterA] explicit-path cr-lsp1
[RouterA-explicit-path-cr-lsp1] nexthop 12.12.12.2
[RouterA-explicit-path-cr-lsp1] quit
[RouterA] explicit-path cr-lsp2
[RouterA-explicit-path-cr-lsp2] nexthop 14.14.14.4
[RouterA-explicit-path-cr-lsp2]quit
# Set the preference to 1 for CR-LSP 1 and set the preference to 2 for CR-LSP 2.
[RouterA] interface tunnel 3
[RouterA-Tunnel3] mpls te path preference 1 explicit-path cr-lsp1
[RouterA-Tunnel3] mpls te path preference 2 explicit-path cr-lsp2
[RouterA-Tunnel3] quit
# On Router C, configure MPLS TE tunnel interface Tunnel 3, and specify the tunnel destination address as the LSR ID of Router A.
[RouterC] interface tunnel 3 mode mpls-te
[RouterC-Tunnel3] ip address 9.3.3.3 255.255.255.0
[RouterC-Tunnel3] destination 1.1.1.1
# Configure MPLS TE to use RSVP-TE to establish the tunnel, and enable CRLSP hot backup for the tunnel.
[RouterC-Tunnel3] mpls te signaling rsvp-te
[RouterC-Tunnel3] mpls te backup hot-standby
[RouterC-Tunnel3] quit
# Configure explicit paths for the MPLS TE tunnel.
[RouterC] explicit-path cr-lsp1
[RouterC-explicit-path-cr-lsp1] nexthop 23.23.23.2
[RouterC-explicit-path-cr-lsp1] quit
[RouterC] explicit-path cr-lsp2
[RouterC-explicit-path-cr-lsp2] nexthop 34.34.34.4
[RouterC-explicit-path-cr-lsp2]quit
# Set the preference to 1 for CR-LSP 1 and set the preference to 2 for CR-LSP 2.
[RouterC] interface tunnel 3
[RouterC-Tunnel3] mpls te path preference 1 explicit-path cr-lsp1
[RouterC-Tunnel3] mpls te path preference 2 explicit-path cr-lsp2
[RouterC-Tunnel3] quit
5. Configure static routing to direct traffic to the MPLS TE tunnel:
# Configure a static route on Router A to direct the traffic destined for subnet 192.168.20.0/24 to MPLS TE Tunnel 3.
[RouterA] ip route-static 192.168.20.0 24 tunnel 3 preference 1
# Configure a static route on Router C to direct the traffic destined for subnet 192.168.10.0/24 to MPLS TE Tunnel 3.
[RouterC] ip route-static 192.168.10.0 24 tunnel 3 preference 1
6. Enable BFD for MPLS and use SBFD to verify MPLS TE tunnel connectivity:
# Configure Router A.
[RouterA] mpls bfd enable
[RouterA] sbfd local-discriminator 3000000
[RouterA] interface tunnel 3
[RouterA-Tunnel3] mpls sbfd remote 2000000
[RouterA-Tunnel3] quit
# Configure Router C.
[RouterC] mpls bfd enable
[RouterC] sbfd local-discriminator 2000000
[RouterC] interface tunnel 3
[RouterC-Tunnel3] mpls sbfd remote 3000000
[RouterC-Tunnel3] quit
Verifying the configuration
1. Display MPLS TE tunnel information:
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the tunnel interface Tunnel 3 is up, the primary and backup CRLSPs have been established, and hot backup is used.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP up, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 37161 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : 1.1.1.1 Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : cr-lsp1
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37162
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
# Execute the display rsvp lsp verbose command on Router A. The output shows detailed information about the primary and backup CRLSPs. The primary CRLSP uses the output interface HundredGigE 1/0/1 and the next hop 12.12.12.2. The backup CRLSP uses the output interface HundredGigE 1/0/2 and the next hop 14.14.14.4.
[RouterA] display rsvp lsp destination 3.3.3.3 verbose
Tunnel name: Tunnel3
Destination: 3.3.3.3 Source: 1.1.1.1
Tunnel ID: 3 LSP ID: 37161
LSR type: Ingress Direction: Unidirectional
Setup priority: 7 Holding priority: 7
In-Label: - Out-Label: 1149
In-Interface: - Out-Interface: HGE1/0/1
Nexthop: 12.12.12.2 Exclude-any: 0
Include-Any: 0 Include-all: 0
Mean rate (CIR): 0 kbps Mean burst size (CBS): 1000.00 bytes
Path MTU: 1500 Class type: CT0
RRO number: 6
12.12.12.1/32 Flag: 0x00 (No FRR)
12.12.12.2/32 Flag: 0x00 (No FRR)
2.2.2.2/32 Flag: 0x20 (No FRR/Node-ID)
23.23.23.2/32 Flag: 0x00 (No FRR)
23.23.23.3/32 Flag: 0x00 (No FRR)
3.3.3.3/32 Flag: 0x20 (No FRR/Node-ID)
Fast Reroute protection: None
Tunnel name: Tunnel3
Destination: 3.3.3.3 Source: 1.1.1.1
Tunnel ID: 3 LSP ID: 37162
LSR type: Ingress Direction: Unidirectional
Setup priority: 7 Holding priority: 7
In-Label: - Out-Label: 1149
In-Interface: - Out-Interface: HGE1/0/2
Nexthop: 14.14.14.4 Exclude-any: 0
Include-Any: 0 Include-all: 0
Mean rate (CIR): 0 kbps Mean burst size (CBS): 1000.00 bytes
Path MTU: 1500 Class type: CT0
RRO number: 6
14.14.14.1/32 Flag: 0x00 (No FRR)
14.14.14.4/32 Flag: 0x00 (No FRR)
4.4.4.4/32 Flag: 0x20 (No FRR/Node-ID)
34.34.34.4/32 Flag: 0x00 (No FRR)
34.34.34.3/32 Flag: 0x00 (No FRR)
3.3.3.3/32 Flag: 0x20 (No FRR/Node-ID)
Fast Reroute protection: None
2. Display SBFD information for the MPLS TE tunnel on Router A. The output shows that SBFD sessions have been established for the primary and backup CRLSPs and the state of the session is up.
[RouterA] display mpls sbfd te tunnel 3
Total number of sessions: 2, 2 up, 0 down, 0 init
FEC Type: TE Tunnel
FEC Info:
Source : 1.1.1.1
Destination: 3.3.3.3
Tunnel ID : 3
LSP ID : 24346
NHLFE ID: 6
Local Discr: 513 Remote Discr: 2000000
Source IP: 1.1.1.1 Destination IP: 127.0.0.1
Session State: Up
Template Name: -
FEC Type: TE Tunnel
FEC Info:
Source : 1.1.1.1
Destination: 3.3.3.3
Tunnel ID : 3
LSP ID : 24347
NHLFE ID: 8
Local Discr: 514 Remote Discr: 2000000
Source IP: 1.1.1.1 Destination IP: 127.0.0.2
Session State: Up
Template Name: -
3. Shut down HundredGigE 1/0/2 on Router B, and display MPLS TE tunnel information and BFD information:
# Shut down HundredGigE 1/0/2 on Router B.
[RouterB] interface hundredgige 1/0/2
[RouterB-HundredGigE1/0/2] shutdown
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the primary CRLSP is down and the backup CRLSP is up.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP down, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 0 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : - Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : -
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37162
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
# Display SBFD information for CR-LSP 2 on Router A.
[RouterA] display mpls sbfd te tunnel 3
Total number of sessions: 1, 1 up, 0 down, 0 init
FEC Type: TE Tunnel
FEC Info:
Source : 1.1.1.1
Destination: 3.3.3.3
Tunnel ID : 3
LSP ID : 24347
NHLFE ID: 8
Local Discr: 514 Remote Discr: 2000000
Source IP: 1.1.1.1 Destination IP: 127.0.0.2
Session State: Up
Template Name: -
4. Bring up HundredGigE 1/0/2 on Router B and display MPLS TE tunnel information:
# Bring up HundredGigE 1/0/2 on Router B.
[RouterB] interface hundredgige 1/0/2
[RouterB-HundredGigE1/0/2] undo shutdown
# Execute the display mpls te tunnel-interface command on Router A. The output shows that the primary CRLSP becomes available again.
[RouterA] display mpls te tunnel-interface
Tunnel Name : Tunnel 3
Tunnel State : Up (Main CRLSP up, Backup CRLSP up)
Tunnel Attributes :
LSP ID : 37177 Tunnel ID : 3
Admin State : Normal
Ingress LSR ID : 1.1.1.1 Egress LSR ID : 3.3.3.3
Signaling : RSVP-TE Static CRLSP Name : -
Resv Style : SE
Tunnel mode : -
Reverse-LSP name : -
Reverse-LSP LSR ID : - Reverse-LSP Tunnel ID: -
Class Type : CT0 Tunnel Bandwidth : 0 kbps
Reserved Bandwidth : 0 kbps
Setup Priority : 7 Holding Priority : 7
Affinity Attr/Mask : 0/0
Explicit Path : cr-lsp1
Backup Explicit Path : -
Metric Type : TE
Record Route : Enabled Record Label : Disabled
FRR Flag : Disabled Bandwidth Protection : Disabled
Backup Bandwidth Flag: Disabled Backup Bandwidth Type: -
Backup Bandwidth : -
Bypass Tunnel : No Auto Created : No
Route Pinning : Disabled
Retry Limit : 3 Retry Interval : 2 sec
Reoptimization : Disabled Reoptimization Freq : -
Backup Type : Hot Standby Backup LSP ID : 37178
Auto Bandwidth : Disabled Auto Bandwidth Freq : -
Min Bandwidth : - Max Bandwidth : -
Collected Bandwidth : -
Configuration files
· Router A:
#
sbfd local-discriminator 3000000
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 12.12.12.0 0.0.0.255
network 14.14.14.0 0.0.0.255
network 192.168.10.0 0.0.0.255
mpls te enable
#
mpls lsr-id 1.1.1.1
#
mpls te
#
explicit-path cr-lsp1
nexthop index 1 12.12.12.2 include strict
#
explicit-path cr-lsp2
nexthop index 1 14.14.14.4 include strict
#
rsvp
#
mpls bfd enable
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.1 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.1 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.10.1 255.255.255.0
#
interface Tunnel3 mode mpls-te
ip address 9.1.1.1 255.255.255.0
mpls te path preference 1 explicit-path cr-lsp1
mpls te path preference 2 explicit-path cr-lsp2
mpls te backup hot-standby
mpls sbfd remote 2000000
destination 3.3.3.3
#
ip route-static 192.168.20.0 24 Tunnel3 preference 1
#
· Router B:
#
ospf 1
area 0.0.0.0
network 2.2.2.2 0.0.0.0
network 12.12.12.0 0.0.0.255
network 23.23.23.0 0.0.0.255
mpls te enable
#
mpls lsr-id 2.2.2.2
#
mpls te
#
rsvp
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 12.12.12.2 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/1
port link-mode route
ip address 23.23.23.2 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
· Router C:
#
sbfd local-discriminator 2000000
#
ospf 1
area 0.0.0.0
network 3.3.3.3 0.0.0.0
network 23.23.23.0 0.0.0.255
network 34.34.34.0 0.0.0.255
network 192.168.20.0 0.0.0.255
mpls te enable
#
mpls lsr-id 3.3.3.3
#
mpls te
#
explicit-path cr-lsp1
nexthop index 1 23.23.23.2 include strict
#
explicit-path cr-lsp2
nexthop index 1 34.34.34.4 include strict
#
rsvp
#
mpls bfd enable
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.3 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 23.23.23.3 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/3
port link-mode route
ip address 192.168.20.1 255.255.255.0
#
interface Tunnel3 mode mpls-te
ip address 9.3.3.3 255.255.255.0
mpls te path preference 1 explicit-path cr-lsp1
mpls te path preference 2 explicit-path cr-lsp2
mpls te backup hot-standby
mpls sbfd remote 3000000
destination 1.1.1.1
#
ip route-static 192.168.10.0 24 Tunnel3 preference 1
#
· Router D:
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 14.14.14.0 0.0.0.255
network 34.34.34.0 0.0.0.255
mpls te enable
#
mpls lsr-id 4.4.4.4
#
mpls te
#
rsvp
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
#
interface HundredGigE1/0/1
port link-mode route
ip address 34.34.34.4 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
interface HundredGigE1/0/2
port link-mode route
ip address 14.14.14.4 255.255.255.0
mpls enable
mpls te enable
rsvp enable
#
Related documentation
· H3C S12500R Switch Router Series MPLS Command Reference-R3606
· H3C S12500R Switch Router Series MPLS Configuration Guide-R3606