Professional Documents
Culture Documents
Applications
Ravi Narahari, Technical Leader
Grant Pieterse, Solutions Integration Architect
LTRMPL-2108
Cisco Spark
Questions?
Use Cisco Spark to chat with the
speaker after the session
How
1. Find this session in the Cisco Live Mobile App
2. Click “Join the Discussion”
3. Install Spark or go directly to the space
4. Enter messages/questions in the space
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public
Agenda - LTRMPL-2108
• Introduction to MPLS
• MPLS Forwarding
• Layer 3 VPN and its flavors
• Traffic Engineering
• Layer 2 VPN
• Wrap up Summary
Session Structure
• Theory - @ 90 minutes
• Hands on - @ 150 minutes
• Interactive Q&A
Theory commences
Introduction to MPLS
What is MPLS?
• Brief Summary
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 8
Technology Comparison
• Key Characteristics of IP, Native Ethernet, and MPLS
QoS 8 bit TOS field in IP header 3-bit 802.1p field in VLAN tag 3 bit TC field in label
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Topics
• Basics of MPLS Signaling and Forwarding
MPLS OAM
Transport
MPLS Forwarding
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
MPLS Reference Architecture
• Different Type of Nodes in a MPLS Network
• P (Provider) router
MPLS Domain
• Label switching router (LSR)
• Switches MPLS-labeled packets
P P
CE PE PE CE
• PE (Provider Edge) router
• Edge router (LER)
• Imposes and removes MPLS CE CE
labels
PE P P PE
• CE (Customer Edge) router
Label switched traffic
• Connects customer network to
MPLS network
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
MPLS Labels
• Label Definition and Encapsulation
MPLS Label Stack Entry
• Labels used for making Label = 20 bits TC S TTL
forwarding decision TC = Traffic Class: 3 Bits; S = Bottom of Stack; TTL = Time to Live
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Basic MPLS Forwarding Operations
• How Labels Are Being Used to Establish End-to-end Connectivity
• Label imposition (Push) Label Imposition Label Swap Label Swap Label Disposition
(Push) (PoP)
• By ingress PE router; classify and
label packets
• Based on Forwarding Equivalence
Class (FEC) P P
CE PE L1
L3
PE CE
L2
• Label swapping
• By P router; forward packets using
labels; indicates service class & CE CE
destination
PE P P PE
• Label disposition (Pop)
• By egress PE router; remove label
and forward original packet to
destination CE
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
MPLS Path (LSP) Setup and Traffic Forwarding
• MPLS Traffic Forwarding and MPLS Path (LSP) Setup
• MPLS forwarding QoS 8 bit TOS field in IP header 3 bit TC field in label
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
MPLS Path (LSP) Setup
• Signaling Options
LDP RSVP
• LDP signaling
• Leverages existing routing Forwarding path
LSP or TE Tunnel
LSP
Primary and, optionally, backup
• RSVP signaling
Based on TE topology database
• Aka MPLS RSVP/TE Forwarding Based on IP routing database Shortest-path and/or other
Calculation Shortest-Path based constraints
• Enables enhanced capabilities, such as (CSPF calculation)
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
MPLS Path (LSP) Setup with LDP
• Step 1: IP Routing (IGP) Convergence
reachability … … … … … …
0 128.89
0 0
1
0
1
You Can Reach 128.89 Thru Me
You Can Reach 128.89 and 11
171.69 Thru Me
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
IP Packet Forwarding Example
• Basic IP Packet Forwarding
Forwarding
• IP routing information Table
Forwarding Forwarding
exchanged between nodes Table Table Address I/F
0
0 128.89.25.4 Data
1 128.89.25.4 Data
1
128.89.25.4 Data 128.89.25.4 Data
171.69
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
MPLS Path (LSP) Setup with LDP
• Step 2: Assignment of Remote Labels
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
MPLS Traffic Forwarding with LDP
• Hop-by-hop Traffic Forwarding Using Labels
Forwarding Table Forwarding Table Forwarding Table
• Ingress PE node adds label In Address Out Out In Address Out Out In Address Out Out
to packet (push) Label Prefix I’faceLabel Label Prefix I’faceLabel Label Prefix I’faceLabel
- 128.89 1 20 20 128.89 0 30 30 128.89 0 -
• Via forwarding table - 171.69 1 21 21 171.69 1 36
… … … … … … … … … … … …
• Downstream node use
label for forwarding 0 128.89
0
decision (swap) 0
0
128.89.25.4 Data
1
• Outgoing interface 1 30 128.89.25.4 Data
128.89.25.4 Data 20 128.89.25.4 Data 11
• Out label
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
MPLS Traffic Forwarding with LDP
• Quick recap
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
MPLS OAM
• Tools for Reactive and Proactive Trouble Shooting of MPLS Connectivity
• Auto IP SLA
• Automated discovery of all available equal cost LSP paths between PEs
• LSP pings are being sent over each discovered LSP path
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
Summary
• Key Takeaways
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
MPLS Virtual Private Networks
MPLS Virtual Private Networks
• Topics
MPLS OAM
Transport
• Technology options
IP/MPLS (LDP/RSVP-TE/BGP)
MPLS Forwarding
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
What Is a Virtual Private Network?
• Definition
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
MPLS VPN Example
• Basic Building Blocks
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
MPLS VPN Models
• Technology Options
MPLS VPN Models
• MPLS Layer-3 VPNs
• Peering relationship between CE
and PE MPLS Layer-2 VPNs MPLS Layer-3 VPNs
MPLS OAM
Transport
• Deployment use cases
• Business VPN services
• Network segmentation
IP/MPLS (LDP/RSVP-TE/BGP)
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
MPLS Layer-3 VPN Overview
• Technology Components
• VPN policies
• Separation of customer routing via virtual VPN routing table (VRF)
• In PE router, customer interfaces are connected to VRFs
• VPN signaling
• Between PE routers: customer routes exchanged via BGP (MP-iBGP)
• VPN traffic forwarding
• Separation of customer VPN traffic via additional VPN label
• VPN label used by receiving PE to identify VPN routing table
• PE-CE link
• Can be any type of layer-2 connection (e.g., FR, Ethernet)
• CE configured to route IP traffic to/from adjacent PE router
• Variety of routing options; static routes, eBGP, OSPF, IS-IS
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 31
Virtual Routing and Forwarding Instance
• Virtual Routing Table and Forwarding to Separate Customer Traffic
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
VPN Route Distribution
• Exchange of VPN Policies Among PE Routers
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
VPN Control Plane Processing
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
VPN Control Plane Processing
• Interactions Between VRF and BGP VPN Signaling
BGP advertisement:
1. CE1 redistribute IPv4 route to VPN-IPv4 Addr = RD:16.1/16
BGP Next-Hop = PE1
PE1 via eBGP Route Target = 100:1
eBGP: Label=42
eBGP:
2. PE1 allocates VPN label for 16.1/16 16.1/16
prefix learnt from CE1 to create
unique VPNv4 route PE1 P P PE2
CE1 Blue VPN CE2
3. PE1 redistributes VPNv4 route
into MP-iBGP, it sets itself as a ip vrf blue-vpn
next hop and relays VPN site VRF
Name
parameters:
RD 1:100
= blue-vpn
route-target export
routes to PE2 RD = 1:100
1:100
Import Route-Target
route-target import = 100:1
Export Route-Target = 100:1
1:100
4. PE2 receives VPNv4 route
and, via processing in local
VRF (green), it redistributes
original IPv4 route to CE2
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
VPN Forwarding Plane Processing
• Forwarding of Layer-3 MPLS VPN Packets
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
Service Provider Deployment Scenario
• MPLS Layer-3 VPNs for Offering Layer-3 Business VPN Services
Managed VPN Service
• Deployment Use Case
Unmanaged VPN Service
• Delivery of IP VPN services to
business customers Edge Core Core Edge
CPE VPN CPE
• Benefits
• Leverage same network for
multiple services and customers Network
CPE Edge Core
(CAPEX) Segment
• Highly scalable MPLS Node CE PE P
• Service enablement only Typical ASR1K ASR9K CRS-1
requires edge node Platforms
configuration (OPEX) ISR/G2 7600 ASR9K
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
Enterprise Deployment Scenario
• MPLS Layer-3 VPNs for Implementing Network Segmentation
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Data Center Deployment Scenario
• MPLS Layer-3 VPNs for Segmented L3 Data Center Access and Interconnect
MPLS VPNs terminating on DC
• Deployment Use Case aggregation
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
Summary
• Key Takeaways
• Path Calculation
Layer-3 VPNs Layer-2 VPNs
• FRR
MPLS OAM
Transport
IP/MPLS (LDP/RSVP-TE/BGP)
MPLS Forwarding
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
MPLS Path (RSVP) Setup
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
MPLS Path (RSVP) Setup
TE
Topology
database
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 44
MPLS Path (RSVP) Setup
10 8
10
10
TE
Topology
database
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 45
MPLS Path (RSVP) Setup
TE LSP
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
MPLS TE Fast ReRoute (FRR)
• Implementing Network Failure Protection Using MPLS RSVP/TE
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
Summary
• Key Takeaways
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
MPLS Layer-2 Virtual Private
Networks
MPLS Layer-2 Virtual Private Networks
• Topics
MPLS OAM
• VPN forwarding plane Transport
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 50
MPLS Layer-2 Virtual Private Networks
• Technology Options
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
VPWS Control Plane Processing
• Signaling of a New Pseudo-Wire
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
VPWS Forwarding Plane Processing
• Forwarding of Layer-2 Traffic Over PWs
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
EVPN
• Signaling: BGP
• Learning: Control plane (BGP) BGP RR
PE PE
CE1 CE3
• Allows for multihomed CEs
CE2 CE4
PE PE
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
Data Center Deployment Scenario Data Center
• VPLS for Layer-2 Data Center Interconnect (DCI) Services
DC
Edge
• Deployment Use Case Data Center Core Core Edge
• E-LAN services for Data Center
interconnect DC Data Center
Edge Edge
DC
• Benefits Edge
• Single WAN uplink to connect to
multiple Core Core Edge
Data Centers
• Easy implementation of Network
DC Edge Core Edge
segmented layer-2 traffic Segment
between Data Centers MPLS Node CE P PE
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 60
Summary
• Key Takeaways
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Theory Ends. Hands on
Commences – Enjoy !
Overview of the MPLS
Labs
• Section 1: Basic MPLS Forwarding
• Section 2: MPLS Layer 3 VPN (L3VPN)
• Section 3: MPLS Traffic-Engineering
• Section 4: MPLS Layer 2 (L2VPN)
Detailed Physical Topology
IP/MPLS
172.16.255.1 172.16.0.0
172.16.255.129
10.1.1/24 AS65016
CE1 e0/0.1 e0/0.1 P1
.2/32 .1/30
s1/0 s1/0 .9/30
s1/1 Area 0 IP/MPLS
172.16.1/24 172.17.0.0
PE1 s1/1
.10/30 P2 PE5-ASBR PE4-ASBR
.1/30
192.168.255.0/30 AS65017 PE2
s1/2 172.17.0.0/30 CE2
.1/30 .2/30 .1/30 .2/30 .1/30 .2/30 10.6.1/24
s1/2 172.16.0/24 s1/0 s1/0 e0/0 e0/0 s1/0 s1/0 s1/1 s1/1
.2/30 172.16.2/24
.6/30
CE3 PE3 s1/3 172.16.255.130 172.16.255.2 172.17.255.1 172.17.255.2
s1/3
.2/30 .1/30 .5/30
e0/0.1 e0/0.1 s1/0 s1/0 P3
10.1.1/24 172.16.3/24
172.16.255.3 172.16.255.131
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Section 1: Basic MPLS Forwarding
Section 1: Basic MPLS Forwarding Overview
• Get familiarized with the lab topology.
• Execute show commands and understand the concepts of Label and Label Switched path.
• You will configure a few routers for a given exercise. Some devices are pre-configured.
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Reachability from PE1 (Within AS 65016)
[PE1]#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Configure LSP on PE1
hostname [PE1]
Enabling Label
!
Distribution
mpls label protocol ldp
!
Protocol
interface Serial1/0
mpls ip
!
Provisioning a
Label Switched
Path - LSP
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Show MPLS Forwarding Table on PE1
[PE1]#show mpls forwarding-table Outgoing Label
Local Outgoing Prefix Bytes Label Outgoing Next Hop
for FEC
Label Label or Tunnel Id Switched interface
16 19 172.16.255.131/32 \ 172.16.255.130/32
0 Se1/0 point2point
17 16 172.16.255.130/32 \
0 Se1/0 point2point
18 Pop Label 172.16.255.129/32 \
0 Se1/0 point2point
19 20 172.16.3.0/30 0 Se1/0 point2point
20 Pop Label 172.16.0.8/30 0 Se1/0 point2point
21 18 172.16.0.4/30 0 Se1/0 point2point
22 Pop Label 172.16.0.0/30 0 Se1/0 point2point
23 21 172.16.255.3/32 0 Se1/0 point2point
24 22 172.16.2.0/30 0 Se1/0 point2point
25 23 172.16.255.2/32 0 Se1/0 point2point Pop Tag for
Connected
Interfaces
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Test MPLS LSP Using MPLS Ping on PE1
[PE1]#ping mpls ipv4 172.16.255.2 255.255.255.255 MPLS PING to PE5
Sending 5, 100-byte MPLS Echos to 172.16.255.2/32,
timeout is 2 seconds, send interval is 0 msec:
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Test MPLS LSP Using MPLS Trace on PE1
[PE1]#trace mpls ipv4 172.16.255.2 255.255.255.255 MPLS Trace to PE5
Tracing MPLS Label Switched Path to 172.16.255.2/32, timeout is 2 seconds
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Section 2: MPLS Layer 3 VPN (L3VPN)
Section 2: MPLS L3VPN Overview
• Configure Intranet: Customer VRF Blue is provisioned as a MPLS VPN
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 73
L3VPNs Topology Intranet – Provisioning VPN Blue
IP/MPLS
11.1.1.1 172.16.255.1
172.16.255.129
172.16.0.0
11.1.1.2 AS 100 AS65016
11.1.1.3 P1
CE1
PE1 AS 11.2.1.1
P2 PE5-ASBR 65017 11.2.1.2
11.2.1.3
12.1.1.1 172.16.0/24 PE4-ASBR
12.1.1.2 172.16.2/24
12.1.1.3 CE3 PE3 172.16.255.130 172.16.255.2
172.17.255.1
P3
172.16.3/24
14.1.1.1
14.1.1.2 172.16.255.131
172.16.255.3
14.1.1.3
VPN—Blue
VPN—Green
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 74
Intranet
• Define BGP Communities (RT) Cintranet
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 75
Configure VRF Blue on PE1
hostname [PE1]
Note: Route-
!
Target Is Different
ip vrf blue
rd 65016:1
from RD
route-target export 1:1
route-target import 1:1
!
! Make Interface
interface Ethernet0/0.1
Ethernet 0/0.1
encapsulation dot1Q 100
Part of VRF Blue
ip vrf forwarding blue
ip address 10.1.1.2 255.255.255.0
no ip directed-broadcast
!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 76
Check VRF Information on PE1
[PE1]#show ip vrf
Name Default RD Interfaces
blue 65016:1 Et0/0.1
[PE1]#show ip vrf detail blue
VRF blue (VRF Id = 1); default RD 65016:1; default VPNID <not set>
Interfaces:
Et0/0.1
VRF Blue
VRF Table ID = 1
Detail
Export VPN route-target communities
RT:1:1
Import VPN route-target communities
RT:1:1 Export/Import
No import route-map
Details
No global export route-map
No export route-map
VRF label distribution protocol: not configured
VRF label allocation mode: per-prefix
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 77
VRF Blue Routing Table on PE1
[PE1]#show ip route vrf blue
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 78
Ping CE1 from PE1 (VRF Blue)
10.1.1.1 Does
[PE1]#ping vrf blue 10.1.1.1
Exist in the
Type escape sequence to abort.
VRF Blue
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
Table!
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/24/32 ms
[PE1]#ping 10.1.1.1
10.1.1.1 Does
Not Exist in
Type escape sequence to abort. the Global
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds: Table!
.....
Success rate is 0 percent (0/5)
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 79
CE-PE Routing
IP/MPLS
11.1.1.1
AS 172.16.255.1 172.16.255.129172.16.0.0
11.1.1.2 100 AS65016
11.1.1.3 P1
CE1 AS
PE1 65017 11.2.1.1
P2 PE5-ASBR 11.2.1.2
11.2.1.3
12.1.1.1 PE4-ASBR
12.1.1.2 172.16.2/24
12.1.1.3 CE3 PE3 172.16.255.130 172.16.255.2
172.17.255.1
172.16.3/24 P3
14.1.1.1
14.1.1.2 172.16.255.131
172.16.255.3
14.1.1.3
VPN—Blue
Static VPN—Green
BGP
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 80
Configure BGP Routing on PE1
router bgp 65016
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 172.16.255.2 remote-as 65016
VRF Blue CE1-PE1
neighbor 172.16.255.2 update-source Loopback0
neighbor 172.16.255.3 remote-as 65016 Protocol is eBGP
neighbor 172.16.255.3 update-source Loopback0
no auto-summary
!
address-family ipv4 vrf blue
redistribute connected
neighbor 10.1.1.1 remote-as 100
neighbor 10.1.1.1 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor 172.16.255.2 activate Address Family
neighbor 172.16.255.2 send-community extended
neighbor 172.16.255.3 activate VPNv4 Config with
neighbor 172.16.255.3 send-community extended
Remote PE5 & PE3
exit-address-family
! LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 81
VRF Blue BGP Table on PE1
[PE1]#show ip bgp vpnv4 vrf blue <truncated output>
BGP table version is 28, local router ID is 172.16.255.1
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 65016:1 (default for vrf blue)
*> 10.1.1.0/24 0.0.0.0 0 32768 ? Local Routes
* 10.1.1.1 0 0 100 ? from CE1
*>i10.2.1.0/24 172.16.255.3 0 100 0 ?
*>i10.5.1.0/24 172.16.255.2 0 100 0 ? Routes from
*> 11.1.1.1/32 10.1.1.1 0 0 100 ? PE5-ASBR
*> 11.1.1.2/32 10.1.1.1 0 0 100 ?
*> 11.1.1.3/32 10.1.1.1 0 0 100 ?
*>i11.2.1.1/32 172.16.255.2 0 100 0 65017 i Routes from
*>i11.2.1.2/32 172.16.255.2 0 100 0 65017 i PE3
*>i11.2.1.3/32 172.16.255.2 0 100 0 65017 i
*>i14.1.1.1/32 172.16.255.3 0 100 0 ?
*>i14.1.1.2/32 172.16.255.3 0 100 0 ?
*>i14.1.1.3/32 172.16.255.3 0 100 0 ?
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 82
VPN Labels for VRF Blue on PE1
[PE1]#show ip bgp vpnv4 vrf blue labels
Network Next Hop In label/Out label
Route Distinguisher: 65016:1 (blue)
10.0.100.0/30 10.1.1.1 26/nolabel
10.0.200.0/30 10.1.1.1 27/nolabel
10.1.1.0/24 10.1.1.1 32/nolabel
0.0.0.0 32/nolabel
10.1.2.0/24 10.1.1.1 28/nolabel
10.2.1.0/24 172.16.255.3 nolabel/24
10.5.1.0/24 172.16.255.2 nolabel/16 VPN Label 19
11.1.1.1/32 10.1.1.1 29/nolabel
11.1.1.2/32 10.1.1.1 30/nolabel from PE5-ASBR
11.1.1.3/32 10.1.1.1 31/nolabel
11.2.1.1/32 172.16.255.2 nolabel/17
11.2.1.2/32 172.16.255.2 nolabel/18
11.2.1.3/32 172.16.255.2 nolabel/19
14.1.1.1/32 172.16.255.3 nolabel/25
14.1.1.2/32 172.16.255.3 nolabel/26
14.1.1.3/32 172.16.255.3 nolabel/27
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 83
VRF Blue Routing Table on PE1
[PE1]#show ip route vrf blue <truncated output>
Routing Table: blue
Gateway of last resort is not set
10.0.0.0/24 is subnetted, 3 subnets
B 10.2.1.0 [200/0] via 172.16.255.3, 00:17:25
C 10.1.1.0 is directly connected, Ethernet0/0.1
Local Route
B 10.5.1.0 [200/0] via 172.16.255.2, 00:03:24
11.0.0.0/32 is subnetted, 6 subnets
Learned from
B 11.1.1.3 [20/0] via 10.1.1.1, 00:26:50
CE1
B 11.2.1.1 [200/0] via 172.16.255.2, 00:26:41
B 11.1.1.2 [20/0] via 10.1.1.1, 00:26:50
Route from
B 11.2.1.2 [200/0] via 172.16.255.2, 00:26:41
B 11.1.1.1 [20/0] via 10.1.1.1, 00:26:50
PE5-ASBR
B 11.2.1.3 [200/0] via 172.16.255.2, 00:26:41
14.0.0.0/32 is subnetted, 3 subnets
B 14.1.1.2 [200/0] via 172.16.255.3, 00:17:27 Route from
B 14.1.1.3 [200/0] via 172.16.255.3, 00:17:27 PE3
B 14.1.1.1 [200/0] via 172.16.255.3, 00:17:27
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 84
Label Stack on PE1
[PE1]#show ip cef vrf blue 11.2.1.3
11.2.1.3/32
nexthop 172.16.1.1 Serial1/0 label 23 19
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 85
Extranet Topology
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 87
Configure Extranet on PE1
ip vrf blue
rd 65016:1 All Exports Should Be
no route-target export 1:1 Controlled by Route Map
export map set-ext-community set-ext-community
route-target import 1:1
!
If the Prefix Is
!
11.1.1.1 then Set the
access-list 10 permit 11.1.1.1
Route Target to 1:2
route-map set-ext-community permit 10
match ip address 10
set extcommunity rt 1:2 Route Target Set to
! 1:1 for Other
route-map set-ext-community permit 20 Prefixes
set extcommunity rt 1:1
!
[PE1]clear ip bgp vpnv4 unicast update-group Activate export map
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 88
Extranet Route(s) in VRF Green on PE3
[PE3]#show ip route vrf green <truncated output>
Routing Table: green
Only Extranet
10.0.0.0/24 is subnetted, 1 subnets
Route Gets
C 10.1.1.0 is directly connected, Ethernet0/0.1 Imported into
11.0.0.0/32 is subnetted, 1 subnets VRF Green and
B 11.1.1.1 [200/0] via 172.16.255.1, 00:00:34 Not Other VRF
12.0.0.0/32 is subnetted, 3 subnets Blue Routes
S 12.1.1.1 [1/0] via 10.1.1.1
S 12.1.1.2 [1/0] via 10.1.1.1
S 12.1.1.3 [1/0] via 10.1.1.1
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 89
Internet Access
IP/MPLS
172.16.255.1 172.16.255.129
172.16.0.0
Internet AS 100 AS65016
P1
Gateway CE1
e0/0.1 e0/0.1 Spoke2
PE1 AS 11.2.1.1
P2 PE5-ASBR 65017 11.2.1.2
11.2.1.3
172.16.0/24 PE4-ASBR
RT 1:1
172.16.2/24
CE3 PE3 172.16.255.130 172.16.255.2
172.17.255.1
14.1.1.1 RT 1:1
14.1.1.2 10.1.3/24
14.1.1.3
P3
172.16.3/24
Spoke1 172.16.255.3 172.16.255.131
Static
VRF—Blue = Export 1:1, Import 1:1 BGP
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 90
MPLS VPN Example: Internet
• Define one BGP Communities (RT) Cblue
• At the PE attached to Internet site
Export default route into providers BGP with Cblue
Import into local VRF routes with Cblue
• At the PE attached to remote sites
Import/export all routes learned into providers BGP with Cblue
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 91
Configure Internet Access on PE1
ip vrf blue
Modify VRF Blue
rd 65016:1 Configuration
route-target export 1:1
route-target import 1:1
!
interface Ethernet0/0.1
encapsulation dot1Q 100 Configure
ip vrf forwarding blue
ip address 10.1.1.2 255.255.255.0
Ethernet0/0.1
no ip directed-broadcast
!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 92
Configure Internet Access on PE1
router bgp 65016
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 172.16.255.2 remote-as 65016
neighbor 172.16.255.2 update-source Loopback0
neighbor 172.16.255.3 remote-as 65016 BGP Does Not
neighbor 172.16.255.3 update-source Loopback0
! Send Default Route
address-family vpnv4
neighbor 172.16.255.2 activate
Automatically
neighbor 172.16.255.2 send-community extended
neighbor 172.16.255.3 activate
neighbor 172.16.255.3 send-community extended
exit-address-family
!
address-family ipv4 vrf blue
redistribute static
default-information originate
Default Static
no auto-summary
no synchronization
Pointing to
exit-address-family Internet GW
!
ip classless Router CE1
ip route vrf blue 0.0.0.0 0.0.0.0 10.1.1.1
!
!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 93
VRF Blue Default Route for Internet Access on PE3
[PE3]#show ip route vrf blue <truncated output>
Routing Table: blue
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-
2 Default Route to
ia - IS-IS inter area, * - candidate default, U - per-user static Internet Gateway
route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
CE1 Through
+ - replicated route, % - next hop override
PE1
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 94
Inter-AS Deployment Scenarios
Multiple Options
This lab section configures option 10B
1. Back-to-back VRFs
Option 10A
PE5-ASBR PE4-ASBR
2. MP-eBGP for VPNv4
Option 10B
3. Multihop MP-eBGP AS #2
PE1 AS #1 between RRs
Option 10C PE2
CE1 CE2
VPN-A
RFC 4364 (obsoletes 2547bis) VPN-A
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 95
Inter-AS VPN – VPN Blue peers with AS 65016 and 65017
Lab Topology
PE1 IP/MPLS
172.16.255.1
172.16.255.129
172.16.0.0
CE1 AS65016
.2/32 .1/30 P1
11.1.1.1 RT 1:1 S1/0 s1/0 IP/MPLS
11.1.1.2 172.16.1/24 172.17.0.0
11.1.1.3 AS 100 P2 PE5-ASBR PE4-ASBR
AS65017 PE2 CE2
RT 1:1
13.1.1.1
13.1.1.2
CE3 PE3 172.16.255.130 172.16.255.2 172.17.255.1 AS 200 13.1.1.3
172.17.255.2
P3
172.16.255.3 172.16.255.131
eBGP
Static
BGP + Label
MP-BGP (VPNv4)
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 96
Configure Inter-AS on PE5-ASBR
no ip vrf blue
!
no router bgp 65016 Remove VRF Blue
!
router bgp 65016
no bgp default ipv4-unicast
no bgp default route-target filter
Let Us Start with a Clean BGP
bgp log-neighbor-changes Config- wait till the process gets
neighbor 172.16.255.1 remote-as 65016
neighbor 172.16.255.1 update-source Loopback0 deleted
neighbor 172.16.255.3 remote-as 65016
neighbor 172.16.255.3 update-source Loopback0
neighbor 192.168.255.2 remote-as 65017 Route-Target Filter Required
! Because ASBRs Will Not Have VRFs
address-family ipv4
neighbor 192.168.255.2 activate Configured locally
neighbor 192.168.255.2 send-label
no auto-summary
no synchronization eBGP + Label (RFC-3107)
network 172.16.255.2 mask 255.255.255.255
network 192.168.255.2 mask 255.255.255.255 Especially Needed if This Is Inter-
exit-address-family
! Provider Because We Don’t Want to
address-family vpnv4
neighbor 172.16.255.1 activate
Run IGP + LDP Between Two
neighbor 172.16.255.1 send-community extended Different Autonomous Systems
neighbor 172.16.255.1 next-hop-self
neighbor 172.16.255.3 activate
neighbor 172.16.255.3 send-community extended eBGP + VPNv4 Between PE5-ASBR
neighbor 172.16.255.3 next-hop-self
neighbor 192.168.255.2 activate & PE4-ASBR Option 10B (RFC-4364)
neighbor 192.168.255.2 send-community extended
exit-address-family LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 97
Configure Inter-AS on PE4-ASBR
!
no router bgp 65017
!
router bgp 65017
no synchronization
no bgp default ipv4-unicast Required Because ASBRs Will Not
no bgp default route-target filter
bgp log-neighbor-changes
Have VRFs Configured locally
neighbor 172.17.255.2 remote-as 65017
neighbor 172.17.255.2 update-source Loopback0
neighbor 192.168.255.1 remote-as 65016
no auto-summary
!
!
address-family ipv4
neighbor 192.168.255.1 activate eBGP + Label (RFC-3107)
neighbor 192.168.255.1 send-label
no auto-summary
no synchronization
network 172.17.255.1 mask 255.255.255.255
network 192.168.255.1 mask 255.255.255.255
exit-address-family
!
address-family vpnv4
neighbor 172.17.255.2 activate
neighbor 172.17.255.2 send-community extended eBGP + VPNv4 Between ASBRs
neighbor 172.17.255.2 next-hop-self
neighbor 192.168.255.1 activate
Option 10B (RFC-4364)
neighbor 192.168.255.1 send-community extended
exit-address-family
!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 98
VRF Blue on PE1
[PE1]#show ip route vrf blue <truncated output>
Routing Table: blue
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
Gateway of last resort is 10.1.1.1 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
B 10.2.1.0/24 [200/0] via 172.16.255.3, 1d08h
B 10.1.2.0/24 [20/0] via 10.1.1.1, 1d08h
C 10.1.1.0/24 is directly connected, Ethernet0/0.1
B 10.6.1.0/30 [200/0] via 172.16.255.2, 00:22:24
11.0.0.0/32 is subnetted, 3 subnets
B 11.1.1.3 [20/0] via 10.1.1.1, 1d08h
Inter-AS
B 11.1.1.2 [20/0] via 10.1.1.1, 1d08h Routes
B 11.1.1.1 [20/0] via 10.1.1.1, 1d08h Known via
13.0.0.0/32 is subnetted, 3 subnets PE5-ASBR
B 13.1.1.1 [200/0] via 172.16.255.2, 00:22:24
B 13.1.1.3 [200/0] via 172.16.255.2, 00:22:27
B 13.1.1.2 [200/0] via 172.16.255.2, 00:22:27
14.0.0.0/32 is subnetted, 3 subnets
B 14.1.1.2 [200/0] via 172.16.255.3, 1d08h
B 14.1.1.3 [200/0] via 172.16.255.3, 1d08h
B 14.1.1.1 [200/0] via 172.16.255.3, 1d08h
S* 0.0.0.0/0 [1/0] via 10.1.1.1
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 99
VRF Blue Reachability in Inter-AS Scenario on PE1
[PE1]#ping vrf blue 13.1.1.1 Make Sure CE2 Is Reachable
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 101
Section 3: MPLS Traffic Engineering
Section 3: MPLS Traffic Engineering Overview
• Configure explicit path
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 103
Verifying Interfaces Enabled for MPLS TE on PE1
[PE1]#show mpls interface TE Not
Interface IP Tunnel BGP Static Enabled
Operational
Serial1/0 Yes (ldp) No No No Yes
on Any
Interface
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 104
Configure MPLS TE on PE1
hostname [PE1]
! Enable MPLS TE on
mpls traffic-eng tunnels This Router
!
interface serial1/0
mpls traffic-eng tunnels Enable MPLS TE on
ip rsvp bandwidth Serial1/0 and
! Advertise Available
router ospf 16
Bandwidth
mpls traffic-eng router-id loopback0
mpls traffic-eng area 0
! Enable MPLS TE
Extensions for OSPF
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 105
Verify MPLS TE Link Advertisements on PE1
[PE1]#show mpls traffic-eng link-management advertisements
Flooding Status: ready
Configured Areas: 1
Link/Neighbor Address
IGP Area[1] ID:: ospf 16 area 0
System Information::
Flooding Protocol: OSPF
Header Information::
IGP System ID: 172.16.255.1
MPLS TE Router ID: 172.16.255.1
Flooded Links: 1 Link Metrics
Link ID:: 0
Link Subnet Type: Point-to-Point
Link IP Address: 172.16.1.2
IGP Neighbor: ID 172.16.255.129, IP 172.16.1.1
Link Physical and
TE metric: 48 Maximum Reservable
IGP metric: 48
SRLGs: None Bandwidth
Physical Bandwidth: 2048 kbits/sec
Res. Global BW: 1536 kbits/sec
Res. Sub BW: 0 kbits/sec
Available Bandwidth at
Downstream:: the Eight Priority Levels
Global Pool Sub Pool
----------- ----------
Reservable Bandwidth[0]: 1536 0 kbits/sec Attribute Flags to
<truncated output>-- deleted 1 through 6 for space Color Links
Reservable Bandwidth[7]: 1536 0 kbits/sec
Attribute Flags: 0x00000000
affinity 0x00000000
mask 0x0000FFFF)
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public
Verify MPLS TE Topology Database (Brief) on PE1
[PE1]#show mpls traffic-eng topology brief
My_System_id: 172.16.255.1 (ospf 16 area 1)
IGP Id: 172.16.255.129, MPLS TE Id:172.16.255.129 Router Node (ospf 16 area 0) Remote End
link[0]: Point-to-Point, Nbr IGP Id: 172.16.255.1, nbr_node_id:1, gen:3
frag_id 0, Intf Address:172.16.1.1, Nbr Intf Address:172.16.1.2
as Advertised
TE metric:48, IGP metric:48, attribute_flags:0x0 by Neighbor
SRLGs: None
==snip===
Local End as
IGP Id: 172.16.255.1, MPLS TE Id:172.16.255.1 Router Node (ospf 16 area 0)
Advertised to
link[0]: Point-to-Point, Nbr IGP Id: 172.16.255.129, nbr_node_id:2, gen:2
frag_id 0, Intf Address:172.16.1.2, Nbr Intf Address:172.16.1.1
Neighbor
TE metric:48, IGP metric:48, attribute_flags:0x0
SRLGs: None
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 107
Verify MPLS TE Topology Database on PE1
[PE1]#show mpls traffic-eng topology
My_System_id: 172.16.255.1 (ospf 16 area 0)
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 108
Tunnel Paths from
PE1 to PE5-ASBR and PE3
IP/MPLS
172.16.0.0
172.16.255.1 172.16.255.129 AS65016
P1 Area 0
.2/32 .1/30
PE1
s1/0 s1/0 .9/30
s2/0
172.16.1/24
s0/0
.10/30 P2
.1/30
s0/0
.1/30 .2/30
PE5-ASBR
s2/0 172.16.0/24
s1/0 s1/0
.2/30
.6/30 172.16.2/24
s2/0 172.16.255.130 172.16.255.2
s0/0
.2/30 .1/30 .5/30
PE3
s1/0 s1/0 P3
172.16.3/24
172.16.255.3 172.16.255.131
TE Tunnel
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 109
Configure TE Tunnel with Explicit Path on PE1
hostname [PE1]
Destination PE5-ASBR
!
interface Tunnel1
description PE1-P1-P2-PE5-ASBR Bandwidth and
ip unnumbered Loopback0 Priority
tunnel destination 172.16.255.2
tunnel mode mpls traffic-eng Use Path PE1-TO-
tunnel mpls traffic-eng priority 7 7 PE5-ASBR
tunnel mpls traffic-eng bandwidth 512
tunnel mpls traffic-eng path-option 10 explicit name PE1-TO-PE5-ASBR Protection
tunnel mpls traffic-eng fast-reroute Desired
!
ip route 172.16.255.2 255.255.255.255 Tunnel1 Traffic to PE5-
! ASBR Loopback0
ip explicit-path name PE1-TO-PE5-ASBR enable Routed to
next-address 172.16.255.129
Tunnel1
next-address 172.16.255.130
next-address 172.16.255.2
Explicit Path
!
Hops
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 110
Verify Tunnel Operation (Brief) on PE1
[PE1]#show mpls traffic-eng tunnels brief
Signaling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
Periodic reoptimization: every 3600 seconds, next in 2490 seconds
Periodic FRR Promotion: Not Running
Periodic auto-bw collection: disabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT Status
PE1-P1-P2-PE5-ASBR 172.16.255.2 - Se1/0 up/up
Displayed 1 (of 1) heads, 0 (of 0) midpoints, 0 (of 0) tails
[PE1]# Tunnel Count
[PE1]#ping mpls traffic-eng tunnel1
Sending 5, 100-byte MPLS Echos to Tunnel1,
timeout is 2 seconds, send interval is 0 msec: LSP Ping
Codes: '!' - success, 'Q' - request not transmitted, Through
'.' - timeout, 'U' - unreachable,
'R' - downstream router but not target,
Tunnel 1
'M' - malformed request
Type escape sequence to abort.
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 60/68/80 ms
[PE1]#
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 111
Verify Tunnel Operation on PE1
[PE1]#show mpls traffic-eng tunnels Status
P2P TUNNELS/LSPs:
Name: PE1-P1-P2-PE5-ASBR (Tunnel1) Destination: 172.16.255.2
Status:
Admin: up Oper: up Path: valid Signalling: connected
Path
path option 10, type explicit PE1-TO-PE5-ASBR (Basis for Setup, path weight 192) and Cost
Config Parameters:
Bandwidth: 512 kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default) Bandwidth,
AutoRoute: disabled LockDown: disabled Loadshare: 512 [3906250] bw-based
auto-bw: disabled
Active Path Option Parameters:
Priority and
State: explicit path option 10 is active Affinity (Link
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : -
OutLabel : Serial1/0, 24 Attributes)
Next Hop : 172.16.1.1
RSVP Signalling Info:
Src 172.16.255.1, Dst 172.16.255.2, Tun_Id 1, Tun_Instance 1
RSVP Path Info:
Label Pushed
My Address: 172.16.1.2
Explicit Route: 172.16.1.1 172.16.0.10 172.16.2.2 172.16.255.2 and Output
Record Route: NONE
Tspec: ave rate=512 kbits, burst=1000 bytes, peak rate=512 kbits Interface
RSVP Resv Info:
Record Route: 172.16.255.129(24) 172.16.255.130(24)
172.16.255.2(3) Explicit Route
Fspec: ave rate=512 kbits, burst=1000 bytes, peak rate=512 kbits
History:
Tunnel: Signaled
Time since created: 2 minutes, 54 seconds
Time since path change: 2 minutes, 28 seconds
Number of LSP IDs (Tun_Instances) used: 1
Current LSP: [ID: 1]
Explicit Route
Uptime: 2 minutes, 28 seconds
P2MP TUNNELS: Recorded
P2MP SUB-LSPS:
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 112
Configure a TE Tunnel with Explicit Path on PE1
hostname [PE1] Destination PE3
!
interface Tunnel2 Bandwidth and
description PE1-P1-P3-PE3 Priority
ip unnumbered Loopback0
no ip directed-broadcast Use Path EXPL-
tunnel destination 172.16.255.3 PE1-TO-PE3
tunnel mode mpls traffic-eng
tunnel mpls traffic-eng priority 7 7 Protection
tunnel mpls traffic-eng bandwidth 512
Desired
tunnel mpls traffic-eng path-option 10 explicit name EXPL-PE1-TO-PE3
tunnel mpls traffic-eng fast-reroute
Traffic to PE3
!
Loopback0
ip route 172.16.255.3 255.255.255.255 Tunnel2
!
Routed to
ip explicit-path name EXPL-PE1-TO-PE3 enable Tunnel2
next-address 172.16.1.1
next-address 172.16.0.2 Path with
next-address 172.16.3.2 Explicit Hops
! LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 113
Verify Tunnel Operation (Brief) on PE1
[PE1]#sh mpls tr tunnels brief
Signaling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
Periodic reoptimization: every 3600 seconds, next in 2306 seconds
Periodic FRR Promotion: Not Running
Periodic auto-bw collection: disabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT Status
PE1-P1-P2-PE5-ASBR 172.16.255.2 - Se1/0 up/up
PE1-P1-P3-PE3 172.16.255.3 - Se1/0 up/up
Displayed 2 (of 2) heads, 0 (of 0) midpoints, 0 (of 0) tails
[PE1]#ping mpls traffic-eng tunnel2 Tunnel Count
Sending 5, 100-byte MPLS Echos to Tunnel2,
timeout is 2 seconds, send interval is 0 msec:
Codes: '!' - success, 'Q' - request not transmitted, LSP Ping
'.' - timeout, 'U' - unreachable, Through
'R' - downstream router but not target,
Tunnel2
'M' - malformed request
P1
.2/32 .1/30 Area 0
PE1
s1/0 s1/0 .9/30
s1/1
172.16.1/24
s1/1
.10/30 P2
.1/30
s1/2
.1/30 .2/30
PE5-ASBR
S1/2 172.16.0/24
s1/0 s1/0
.2/30
.6/30 172.16.2/24
s1/3 172.16.255.130 172.16.255.2
s1/3
.2/30 .1/30 .5/30
PE3
s1/0 s1/0 P3
172.16.3/24
172.16.255.3 172.16.255.131
Primary TE Tunnel
Backup TE Tunnel
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 115
Configure a Backup TE Tunnel on P1
hostname [P1]
Destination P2
!
interface Tunnel1 Use Path EXPL-
description P1-P3-P2-BACKUP P1-TO-P2 to
ip unnumbered Loopback0
no ip directed-broadcast
Reach NHOP
tunnel destination 172.16.255.130
tunnel mode mpls traffic-eng Tunnel1 as
tunnel mpls traffic-eng path-option 10 explicit name EXPL-P1-TO-P2 Backup for
!
Failures on
interface Serial1/1
mpls traffic-eng backup-path Tunnel1
Serial1/1
!
ip explicit-path name EXPL-P1-TO-P2 enable Path with
next-address 172.16.0.2 Explicit Hops
next-address 172.16.0.6
!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 116
Verify Tunnel Operation (Brief) on P1
[P1]#show mpls traffic-eng tunnels brief
Signaling Summary:
LSP Tunnels Process: running
RSVP Process: running
Forwarding: enabled
Periodic reoptimization: every 3600 seconds, next in 1650 seconds
Periodic FRR Promotion: Not Running
Periodic auto-bw collection: disabled
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT Status
P1-P3-P2-BACKUP 172.16.255.130 - Se1/2 up/up
PE1-P1-P2-PE5-ASBR 172.16.255.2 Se1/0 Se1/1 up/up
PE1-P1-P3-PE3 172.16.255.3 Se1/0 Se1/2 up/up
Displayed 1 (of 1) heads, 2 (of 2) midpoints, 0 (of 0) tails Tunnel Count
[P1]#
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 117
Configure Auto-Tunnel Backup on P1
hostname [P1]
! Automatically
mpls traffic-eng auto-tunnel backup nhop-only
[P1]#show mpls traffic-eng tunnels brief Create NHOP
Signalling Summary: Backup when
LSP Tunnels Process: running
Passive LSP Listener: running Required
RSVP Process: running
Forwarding: enabled
auto-tunnel:
backup Enabled (1 ), id-range:65436-65535 Interface
onehop Disabled (0 ), id-range:65336-65435 Range for
mesh Disabled (0 ), id-range:64336-65335
Periodic reoptimization: every 3600 seconds, next in 1280 seconds Automatically
Periodic FRR Promotion: Not Running
Periodic auto-tunnel: Created
backup notinuse scan: every 3600 seconds, next in 3140 seconds Backup
Periodic auto-bw collection: disabled
P2P TUNNELS/LSPs: Tunnels
TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT
P1-P3-P2-BACKUP 172.16.255.130 - Se1/2 up/up
[P1]_t65436 172.16.255.131 - Se1/1 up/up
PE1-P1-P2-PE5-ASBR 172.16.255.2 Se1/0 Se1/1 up/up Status
PE1-P1-P3-PE3 172.16.255.3 Se1/0 Se1/2 up/up
Displayed 2 (of 2) heads, 2 (of 2) midpoints, 0 (of 0) tails
P2MP TUNNELS: Displayed 0 (of 0) P2MP heads
P2MP SUB-LSPS:
Tunnel Count
Displayed 0 P2MP sub-LSPs:0 (of 0) heads, 0 (of 0) midpoints, 0 (of 0) tails
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 118
Verify Backup Tunnel Operation on P1 Backup Tunnel
[P1]#show mpls traffic-eng tunnels backup
P1-P3-P2-BACKUP
LSP Head, Admin: up, Oper: up
Operational
Tun ID: 1, LSP ID: 1, Source: 172.16.255.129
Destination: 172.16.255.130
Fast Reroute Backup Provided:
Protects One
Protected i/fs: Se1/1
Protected LSPs/Sub-LSPs: 1, Active: 0
Primary Tunnel
Backup BW: any pool unlimited; inuse: 512 kbps
Backup flags: 0x0
[P1]_t65436
Backup Tunnel
LSP Head, Admin: up, Oper: up
Tun ID: 65436, LSP ID: 1, Source: 172.16.255.129
Operational
Destination: 172.16.255.131
Fast Reroute Backup Provided:
Protected i/fs: Se1/1
Protects One
Protected LSPs/Sub-LSPs: 1, Active: 0
Backup BW: any pool unlimited; inuse: 512 kbps
Primary Tunnel
Backup flags: 0x0
[P1]#show mpls traffic-eng fast-reroute database
P2P Headend FRR information: FRR in Ready
Protected tunnel In-label Out intf/label FRR intf/label Status
--------------------------- -------- -------------- -------------- ------ State for
P2P LSP midpoint frr information:
Primary
LSP identifier
---------------------------
In-label
--------
Out intf/label
--------------
FRR intf/label
--------------
Status
------
Tunnels
172.16.255.1 1 [1] 24 Se1/1:24 Tu1:24 ready
172.16.255.1 2 [1] 25 Se/2:24 Tu65436:24 ready
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 119
MPLS TE-FRR in Action on P1
hostname [P1]
!
interface Serial1/1 Shut Protected
shut Interface
!
[P1]#show mpls traffic-eng fast-reroute database
P2P Headend FRR information:
Protected tunnel In-label Out intf/label FRR intf/label Status
--------------------------- -------- -------------- -------------- ------ FRR in
P2P LSP midpoint frr information: Active State
LSP identifier In-label Out intf/label FRR intf/label Status
--------------------------- -------- -------------- -------------- ------ for Primary
172.16.255.1 1 [1] 24 Se1/1:24 Tu1:24 active
Tunnels
hostname [P1]
!
interface Serial1/1 Unshut
no shut
!
Protected
Interface
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 120
Congratulations!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 121
Section 4: MPLS L2VPN
Section 4: MPLS L2VPN Overview
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 123
Ethernet VLAN Pseudowire
IP/MPLS
172.16.0.0
172.16.255.1 AS65016
CE1
e0/0 e0/0
PE1
PE3
CE3
e0/0 e0/0
172.16.255.3
Pseudowire
TE Tunnel
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 124
Configure Ethernet VLAN Pseudowire on PE1&PE3
hostname [PE1]
! Pseudowire Profile
pseudowire-class ETHER-PW
encapsulation mpls
! VLAN 10 as
interface Ethernet0/0.10 Attachment Circuit
encapsulation dot1Q 10
no ip directed-broadcast
no cdp enable Connect to PW
xconnect 172.16.255.3 100 pw-class ETHER-PW Peer for VC Id 100
!
hostname [PE3]
! Pseudowire Profile
pseudowire-class ETHER-PW
encapsulation mpls
! VLAN 15 as
interface Ethernet0/0.15 Attachment Circuit
encapsulation dot1Q 15
no ip directed-broadcast
no cdp enable Connect to PW
xconnect 172.16.255.1 100 pw-class ETHER-PW
Peer for Matching
!
VC Id 100
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 125
Verify Xconnect/Pseudowire Operation (Brief) PE3
[PE3]#show xconnect all detail
Legend: XC ST=Xconnect State, S1=Segment1 State, S2=Segment2 State Xconnect
UP=Up, DN=Down, AD=Admin Down, IA=Inactive, NH=No Hardware
XC ST Segment 1 S1 Segment 2 S2 Segments
------+---------------------------------+--+---------------------------------+-- and Status
UP ac Et0/0.15:15(Eth VLAN) UP mpls 172.16.255.1:100 UP
Interworking: none Local VC label 98
Remote VC label 67
pw-class: ETHER-PW
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 126
Verify Pseudowire Operation on PE3 Attachment
[PE3]#show mpls l2transport vc detail<truncated output>
Local interface: Et0/0.15 up, line protocol up, Eth VLAN 15 up Circuit Status
Destination address: 172.16.255.1, VC ID: 100, VC status: up
Preferred path: not configured PW Status
Default path: active
Next hop: point2point Label Stack
Output interface: Se1/0, imposed label stack {37 67}
Create time: 00:01:40, last status change time: 00:01:36 (IGP, VC)
Signaling protocol: LDP, peer 172.16.255.1:0 up
MPLS VC labels: local 98, remote 67 LDP Session
Group ID: local 0, remote 0
MTU: local 1500, remote 1500 VC Labels
Remote interface description:
Sequencing: receive disabled, send disabled Sequencing
VC statistics:
packet totals: receive 2, send 2 Disabled
byte totals: receive 760, send 848
packet drops: receive 0, seq error 0, send 0 Pseudowire
Packet/Byte
[PE3]#
Counters
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 127
Pseudowire Connectivity Verification on PE3
Ping
[PE3]#ping mpls pseudowire 172.16.255.1 100
Sending 5, 100-byte MPLS Echos to 172.16.255.1/0,
Pseudowire to
timeout is 2 seconds, send interval is 0 msec:
Peer
172.16.255.1
Codes: '!' - success, 'Q' - request not transmitted, with VC id 100
'.' - timeout, 'U' - unreachable,
'R' - downstream router but not target,
'M' - malformed request
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 128
Multi-Segment Pseudowire (Switching) with
Interworking
IP/MPLS
172.16.0.0
172.16.255.1
CE1 AS65016
Pseudowire Segment 1
Pseudowire Segment 2
Pseudowire Segment 3
Pseudowire Switch Point
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 129
Configure Intra and Inter-AS Pseudowire on PE1
hostname [PE1]
!
IP Interworking
pseudowire-class ETHER-FR-IP-PW (PW Type 11)
encapsulation mpls
interworking ip
! VLAN 15 as
interface Ethernet0/0.15
encapsulation dot1Q 15 Attachment Circuit
no ip directed-broadcast
no cdp enable Connect to PW Peer
xconnect 172.16.255.2 200 pw-class ETHER-FR-IP-PW
! for VC id 200
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 130
Define Intra and Inter-AS Pseudowire on PE5
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 131
Verify Xconnect and Pseudowire Operation on PE5
[PE5-ASBR]#show xconnect all detail<truncated output>
Legend: XC ST=Xconnect State, S1=Segment1 State, S2=Segment2 State Xconnect
UP=Up, DN=Down, AD=Admin Down, IA=Inactive, NH=No Hardware
XC ST Segment 1 S1 Segment 2 S2 Segments
------+---------------------------------+--+---------------------------------+-- (MPLS) and
UP mpls 172.16.255.1:200 UP mpls 172.17.255.1:100 UP
Status
[PE5-ASBR]#
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 132
Verify Pseudowire Operation Connects to PW
[PE5-ASBR]#show mpls l2transport vc detail<truncated output>
172.16.255.1:200
Local interface: MPLS PW 172.17.255.1:100 up
Destination address: 172.16.255.1, VC ID: 200, VC status: up
Preferred path: not configured
Default path: active
Next hop: point2point
PW Status
Output interface: Se1/0, imposed label stack {35 68}
Create time: 00:01:44, last status change time: 00:01:37
Label Stack
Signaling protocol: LDP, peer 172.16.255.1:0 up (IGP, VC)
MPLS VC labels: local 160, remote 68
Group ID: local 0, remote 0 LDP Session
MTU: local 1500, remote 1500
Remote interface description: VC Labels
Sequencing: receive transparent, send transparent
Sequencing resync disabled Sequencing
VC statistics:
packet totals: receive 0, send 0
Transparent
byte totals: receive 0, send 0
packet drops: receive 0, seq error 0, send 0 Pseudowire
Packet/Byte
[PE5-ASBR]#
Counters
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 133
Congratulations!
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 134
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 135
Terminology Reference
• Acronyms Used in MPLS Reference Architecture
Terminology Description
AC Attachment Circuit. An AC Is a Point-to-Point, Layer 2 Circuit Between a CE and a PE.
AS Autonomous System (a Domain)
CoS Class of Service
ECMP Equal Cost Multipath
IGP Interior Gateway Protocol
LAN Local Area Network
LDP Label Distribution Protocol, RFC 3036.
LER Label Edge Router. An Edge LSR Interconnects MPLS and non-MPLS Domains.
LFIB Labeled Forwarding Information Base
LSP Label Switched Path
LSR Label Switching Router
NLRI Network Layer Reachability Information
P Router An Interior LSR in the Service Provider's Autonomous System
PE Router An LER in the Service Provider Administrative Domain that Interconnects the Customer Network and the Backbone Network.
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 136
Terminology Reference
• Acronyms Used in MPLS Reference Architecture
Terminology Description
Pseudo-Wire A Pseudo-Wire Is a Bidirectional “Tunnel" Between Two Features on a Switching Path.
PWE3 Pseudo-Wire End-to-End Emulation
QoS Quality of Service
RD Route Distinguisher
RIB Routing Information Base
RR Route Reflector
RT Route Target
RSVP-TE Resource Reservation Protocol based Traffic Engineering
VPN Virtual Private Network
VFI Virtual Forwarding Instance
VLAN Virtual Local Area Network
VPLS Virtual Private LAN Service
VPWS Virtual Private WAN Service
VRF Virtual Route Forwarding Instance
VSI Virtual Switching Instance
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 137
Complete Your Online
Session Evaluation
• Give us your feedback to be
entered into a Daily Survey
Drawing. A daily winner will
receive a $750 gift card.
• Complete your session surveys
through the Cisco Live mobile
app or on www.CiscoLive.com/us.
© 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public
Continue Your Education
• Demos in the Cisco campus
• Walk-in Self-Paced Labs
• Lunch & Learn
• Meet the Engineer 1:1 meetings
• Related sessions
LTRMPL-2108 © 2017 Cisco and/or its affiliates. All rights reserved. Cisco Public 139
Thank you