Documente Academic
Documente Profesional
Documente Cultură
About
This handbook aims to give hands-on practice on several MPLS VPN
technologies and implementaions
8/17/2014
Table of Contents
MPLS L3VPN Static CE-PE ................................................................................ 2
MPLS L3VPN RIPv2 CE-PE ............................................................................. 13
MPLS L3VPN OSPF CE-PE .............................................................................. 25
MPLS L3VPN ISIS CE-PE ............................................................................... 35
MPLS L3VPN BGP CE-PE ................................................................................ 46
MPLS Tunneling ........................................................................................... 55
MPLS L3VPN OSPF Sham-link ........................................................................ 67
OSPF Domain-ID .......................................................................................... 78
VRF Lite ...................................................................................................... 92
VRF Export-maps ......................................................................................... 96
MPLS AToM Eth to Eth ................................................................................ 105
MPLS AToM PPP to PPP................................................................................ 112
MPLS Inter-AS Xconnect ............................................................................. 118
MPLS L3VPN Inter-AS Option A .................................................................... 126
MPLS L3VPN Inter-AS Option B .................................................................... 138
Carrier supporting Carrier (CSC) .................................................................. 150
MPLS TE with OSPF .................................................................................... 168
MPLS 6PE .................................................................................................. 182
MPLS 6VPE ................................................................................................ 189
MPLS Internet Access ................................................................................. 195
MPLS QoS ................................................................................................. 205
MPLS EIGRP Backdoor Link.......................................................................... 227
MPLS BGP Soo ........................................................................................... 234
Lo0
1.1.1.1/32
OSPF
Area 0
R1
S1/0
19
2.
1.
13
.0/
24
S1/0
192.1.35.0/24
IBGP
F2/0
Static
F1/0
Lo0
4.4.4.4/32
S1/1
LSP
S1/0
R2
192.1.24.0/24
Lo0
2.2.2.2/32
24
0/
2.
1
.
2.1
19
AS 100
R3
F2/0
Static
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
2
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.35.3 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.12.1 0.0.0.0 area 0
network 192.1.13.1 0.0.0.0 area 0
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.12.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.13.3 0.0.0.0 area 0
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
int s1/0
mpls ip
int s1/1
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
3
int s1/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
ip route vrf MSSK 4.4.4.4 255.255.255.255 192.1.24.4
R4
ip route 0.0.0.0 0.0.0.0 192.1.24.2
R3
ip route vrf MSSK 5.5.5.5 255.255.255.255 192.1.35.5
R5
ip route 0.0.0.0 0.0.0.0 192.1.35.3
VPN Configuration
R2
router bgp 100
address-family ipv4 vrf MSSK
network 192.1.24.0 mask 255.255.255.0
redistribute static
R3
router bgp 100
address-family ipv4 vrf MSSK
network 192.1.35.0 mask 255.255.255.0
redistribute static
Verifications
R1#show mpls ldp neighbor
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
TCP connection: 2.2.2.2.38298 - 1.1.1.1.646
State: Oper; Msgs sent/rcvd: 66/66; Downstream
Up time: 00:49:35
LDP discovery sources:
Serial1/0, Src IP addr: 192.1.12.2
Addresses bound to peer LDP Ident:
192.1.12.2
2.2.2.2
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 1.1.1.1:0
TCP connection: 3.3.3.3.34974 - 1.1.1.1.646
State: Oper; Msgs sent/rcvd: 67/65; Downstream
Up time: 00:49:34
LDP discovery sources:
Serial1/1, Src IP addr: 192.1.13.3
Addresses bound to peer LDP Ident:
192.1.13.3
3.3.3.3
R1#show mpls interfaces
Interface
IP
Tunnel
Serial1/0
Yes (ldp)
No
Serial1/1
Yes (ldp)
No
AS MsgRcvd MsgSent
100
56
58
0 00:47:35
AS MsgRcvd MsgSent
100
58
56
0 00:47:48
16
17
18
19
Pop
Pop
Pop
Pop
Label
Label
Label
Label
2.2.2.2/32
7810
3.3.3.3/32
7789
192.1.12.2/32 0
192.1.13.3/32 0
Se1/0
Se1/1
Se1/0
Se1/1
point2point
point2point
point2point
point2point
11
12
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
12
.
2.1
19
R1
S1/0
S1/0
S1/1
LSP
19
2.
1.
13
.0/
24
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
RIPv2
F1/0
AS 100
R3
F2/0
RIPv2
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
13
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router rip
address-family ipv4 vrf MSSK
no auto-summary
version 2
network 192.1.24.2
R4
router rip
no auto-summary
version 2
network 4.4.4.4
network 192.1.24.4
15
R3
router rip
address-family ipv4 vrf MSSK
no auto-summary
version 2
network 192.1.35.3
R5
router rip
no auto-summary
version 2
network 5.5.5.5
network 192.1.35.5
VPN Configuration
R2
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
R3
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
Verifications
R1#show mpls ldp neighbor
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
TCP connection: 2.2.2.2.38298 - 1.1.1.1.646
State: Oper; Msgs sent/rcvd: 66/66; Downstream
Up time: 00:49:35
LDP discovery sources:
Serial1/0, Src IP addr: 192.1.12.2
Addresses bound to peer LDP Ident:
192.1.12.2
2.2.2.2
16
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/5/12 ms
R2#sh bgp vpnv4 unicast all summary
BGP router identifier 2.2.2.2, local AS number 100
BGP table version is 12, main routing table version 12
4 network entries using 624 bytes of memory
4 path entries using 320 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1544 total bytes of memory
BGP activity 6/2 prefixes, 6/2 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
3.3.3.3
4
AS MsgRcvd MsgSent
100
92
93
12
0 01:18:58
*> 192.1.24.0
0.0.0.0
32768 i
AS MsgRcvd MsgSent
100
94
92
12
0 01:19:28
*> 5.5.5.5/32
*> 192.1.35.0
192.1.35.5
0.0.0.0
32768 ?
32768 i
22
R3
router rip
address-family ipv4 vrf MSSK
no redistribute bgp 100 metric 1
redistribute bgp 100 metric transparent
R2#sh ip route vrf MSSK 4.4.4.4
Routing Table: MSSK
Routing entry for 4.4.4.4/32
Known via "rip", distance 120, metric 1
Redistributing via bgp 100, rip
Advertised by bgp 100
Last update from 192.1.24.4 on FastEthernet2/0, 00:00:11 ago
Routing Descriptor Blocks:
* 192.1.24.4, from 192.1.24.4, 00:00:11 ago, via FastEthernet2/0
Route metric is 1, traffic share count is 1
R3#sh bgp vpnv4 unicast all 4.4.4.4/32
BGP routing table entry for 100:1:4.4.4.4/32, version 11
Paths: (1 available, best #1, table MSSK)
Not advertised to any peer
Refresh Epoch 1
Local
2.2.2.2 (metric 129) from 2.2.2.2 (2.2.2.2)
Origin incomplete, metric 1, localpref 100, valid, internal, best
Extended Community: RT:100:1
mpls labels in/out nolabel/22
rx pathid: 0, tx pathid: 0x0
R5#sh ip route 4.4.4.4
Routing entry for 4.4.4.4/32
Known via "rip", distance 120, metric 2
Redistributing via rip
Last update from 192.1.35.3 on FastEthernet1/0, 00:00:06 ago
Routing Descriptor Blocks:
* 192.1.35.3, from 192.1.35.3, 00:00:06 ago, via FastEthernet1/0
Route metric is 2, traffic share count is 1
R5#sh ip route rip
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
23
24
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
12
.
2.1
19
R1
S1/0
S1/0
S1/1
LSP
19
2.
1.
13
.0/
24
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
OSPF
A0
F1/0
AS 100
R3
F2/0
OSPF
A0
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
25
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router ospf 100 vrf MSSK
network 192.1.24.2 0.0.0.0 area 0
R4
router ospf 100
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.24.4 0.0.0.0 area 0
R3
router ospf 100 vrf MSSK
network 192.1.35.3 0.0.0.0 area 0
R5
27
AS MsgRcvd MsgSent
100
4831
4833
30
0 3d01h
AS MsgRcvd MsgSent
31
2.2.2.2
100
4833
4832
22
0 3d01h
Pri State
1 FULL/BDR
34
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
2
.1
2.1
19
R1
S1/0
S1/0
S1/1
LSP
19
2.
1.
13
.0/
24
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
ISIS
L2
F1/0
AS 100
R3
F2/0
ISIS
L2
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
35
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
36
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router isis 1
vrf MSSK
net 49.0001.0000.0000.0002.00
is-type level-2-only
int f2/0
ip router isis 1
R4
router isis 1
net 49.0001.0000.0000.0004.00
passive-interface lo0
is-type level-2-only
int f1/0
37
ip router isis 1
R3
router isis 1
vrf MSSK
net 49.0001.0000.0000.0003.00
is-type level-2-only
int f2/0
ip router isis 1
R5
router isis 1
net 49.0001.0000.0000.0005.00
passive-interface lo0
is-type level-2-only
int f1/0
ip router isis 1
VPN Configuration
R2
router isis 1
vrf MSSK
redistribute bgp 100 ip level-2
router bgp 100
address-family ipv4 vrf MSSK
redistribute isis 1 ip level-2
R3
router isis 1
vrf MSSK
redistribute bgp 100 ip level-2
router bgp 100
address-family ipv4 vrf MSSK
redistribute isis 1 ip level-2
Verifications
R1#show mpls ldp neighbor
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
TCP connection: 2.2.2.2.38298 - 1.1.1.1.646
38
Interface
Serial1/0
IP
Tunnel
Yes (ldp)
No
AS MsgRcvd MsgSent
100
4941
4943
0 3d02h
AS MsgRcvd MsgSent
100
4943
4941
0 3d02h
*> 192.1.35.0
0.0.0.0
32768 i
System Id
Interface SNPA
R3
Fa1/0
ca02.7a92.0038
45
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
2
1.1
2.
19
R1
S1/0
S1/0
S1/1
LSP
19
2.
1.1
3
AS 100
.0
/2
4
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
BGP
F1/0
R3
F2/0
F1/0
R4
R5
AS 1
AS 1
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
46
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router bgp 100
address-family ipv4 vrf MSSK
neighbor 192.1.24.4 remote-as 1
neighbor 192.1.24.4 activate
network 192.1.24.0 mask 255.255.255.0
R4
router bgp 1
no bgp default ipv4-unicast
neighbor 192.1.24.2 remote-as 100
address-family ipv4
neighbor 192.1.24.2 activate
network 4.4.4.4 mask 255.255.255.255
48
R3
router bgp 100
address-family ipv4 vrf MSSK
neighbor 192.1.35.5 remote-as 1
neighbor 192.1.35.5 activate
network 192.1.35.0 mask 255.255.255.0
R5
router bgp 1
no bgp default ipv4-unicast
neighbor 192.1.35.3 remote-as 100
address-family ipv4
neighbor 192.1.35.3 activate
network 5.5.5.5 mask 255.255.255.255
Verifications
R2#sh ip route vrf MSSK bgp
Routing Table: MSSK
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
B
B
B
50
Network
*> 4.4.4.4/32
r> 192.1.24.0
*> 192.1.35.0
Next Hop
0.0.0.0
192.1.24.2
192.1.24.2
R5#sh ip bgp
BGP table version is 4, local router ID is 5.5.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
*> 5.5.5.5/32
*> 192.1.24.0
r> 192.1.35.0
Next Hop
0.0.0.0
192.1.35.3
192.1.35.3
As we can see from last two outputs above, neither R4 or R5 learned each other
loopback networks, let us check if they are advertised from the PE side toward each
of them
R2#sh bgp vpnv4 unicast vrf MSSK neighbors 192.1.24.4 advertised-routes
BGP table version is 7, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 5.5.5.5/32
3.3.3.3
0 100
01i
*> 192.1.24.0
0.0.0.0
0
32768 i
*>i 192.1.35.0
3.3.3.3
0 100
0i
Total number of prefixes 3
R3#sh bgp vpnv4 unicast vrf MSSK neighbors 192.1.35.5 advertised-routes
BGP table version is 7, local router ID is 3.3.3.3
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
51
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 4.4.4.4/32
2.2.2.2
0 100
01i
*>i 192.1.24.0
2.2.2.2
0 100
0i
*> 192.1.35.0
0.0.0.0
0
32768 i
Total number of prefixes 3
As seen, the PE routers learn those routes for both CEs and advertise toward them
as well, so what is the issue?
Let us turn debug on R4 for coming BGP updates and see what the output can tells
us
R4
debug ip bgp updates
clear ip bgp * in
*Sep 13 03:10:27.647: BGP(0): 192.1.24.2 rcv UPDATE about 5.5.5.5/32 -DENIED due to: AS-PATH contains our own AS;
So the issue is clear now, BGP speaker will not accept an update that contains its
own AS number, so what could we do? We can use the as-override feature from the
PE side toward each CE
R2
router bgp 100
address-family ipv4 vrf MSSK
neighbor 192.1.24.4 as-override
clear ip bgp * out
R3
router bgp 100
address-family ipv4 vrf MSSK
neighbor 192.1.35.5 as-override
clear ip bgp * out
R4#
*Sep 13 03:13:11.819: BGP(0): 192.1.24.2 rcvd UPDATE w/ attr: nexthop
192.1.24.2, origin i, merged path 100, AS_PATH
R4#sh ip bgp
BGP table version is 5, local router ID is 4.4.4.4
52
Next Hop
0.0.0.0
192.1.24.2
192.1.24.2
192.1.24.2
Next Hop
192.1.35.3
0.0.0.0
192.1.35.3
192.1.35.3
54
MPLS Tunneling
Network Diagram
R8
R1
F0/0
F0/0
F0/0
F0/1
R2
R7
F0/1
F0/0
F0/0
R3
R6
F0/1
F0/0
F0/0
F0/1
R4
F0/0
F0/1
R5
MPLS Backbone
ISIS Area 49.0001
Configurations
IGP Configuration
R2
router isis 1
net 49.0000.0000.0000.0002.00
is-type level-2-only
passive-interface Loopback0
55
F0/1
interface FastEthernet0/1
ip router isis 1
R3
router isis 1
net 49.0000.0000.0000.0003.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet0/0
ip router isis 1
interface FastEthernet0/1
ip router isis 1
R4
router isis 1
net 49.0000.0000.0000.0004.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet0/0
ip router isis 1
interface FastEthernet0/1
ip router isis 1
R5
router isis 1
net 49.0000.0000.0000.0005.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet0/0
ip router isis 1
interface FastEthernet0/1
ip router isis 1
56
R6
router isis 1
net 49.0000.0000.0000.0006.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet0/0
ip router isis 1
interface FastEthernet0/1
ip router isis 1
R7
router isis 1
net 49.0000.0000.0000.0007.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet0/0
ip router isis 1
MPLS LDP Configuration
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/1
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
57
mpls ip
R4
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R5
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R6
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
interface FastEthernet0/1
mpls ip
R7
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet0/0
mpls ip
58
BGP Configuration
R1
router bgp 1
no bgp default ipv4-unicast
neighbor 192.168.12.2 remote-as 100
address-family ipv4
neighbor 192.168.12.2 activate
network 1.1.1.1 mask 255.255.255.255
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 192.168.12.1 remote-as 1
neighbor 7.7.7.7 remote-as 100
neighbor 7.7.7.7 update-source lo0
address-family ipv4
neighbor 192.168.12.1 activate
neighbor 7.7.7.7 activate
neighbor 7.7.7.7 next-hop-self
R8
router bgp 20
no bgp default ipv4-unicast
neighbor 192.168.78.7 remote-as 100
R8address-family ipv4
neighbor 192.168.78.7 activate
network 8.8.8.8 mask 255.255.255.255
R7
router bgp 100
no bgp default ipv4-unicast
neighbor 192.168.78.8 remote-as 20
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family ipv4
neighbor 192.168.78.8 activate
neighbor 2.2.2.2 activate
59
Next Hop
0.0.0.0
192.168.12.2
Next Hop
192.168.78.7
0.0.0.0
Next Hop
192.168.12.1
7.7.7.7
Next Hop
2.2.2.2
192.168.78.8
Now, if we wanted to trace the packet as it traverses through the backbone and
check label assignments, we will enable debug mpls packets on the MPLS routers
(R3 through R6) and initiate an ICMP packet from R8 towards R1
R3 R6
debug mpls packets
R2#show mpls forwarding-table
Local Outgoing Prefix
Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id
switched interface
16
Pop tag
3.3.3.3/32
0
Fa0/1
192.168.23.3
17
Pop tag
192.168.34.0/24 0
Fa0/1
192.168.23.3
18
17
4.4.4.4/32
0
Fa0/1
192.168.23.3
19
18
192.168.45.0/24 0
Fa0/1
192.168.23.3
20
19
5.5.5.5/32
0
Fa0/1
192.168.23.3
21
20
192.168.56.0/24 0
Fa0/1
192.168.23.3
22
21
6.6.6.6/32
0
Fa0/1
192.168.23.3
23
23
7.7.7.7/32
0
Fa0/1
192.168.23.3
24
22
192.168.67.0/24 0
Fa0/1
192.168.23.3
R3#show mpls forwarding-table
Local Outgoing Prefix
Bytes tag Outgoing Next Hop
tag tag or VC or Tunnel Id
switched interface
16
Pop tag
2.2.2.2/32
104567
Fa0/0
192.168.23.2
17
Pop tag
4.4.4.4/32
0
Fa0/1
192.168.34.4
18
Pop tag
192.168.45.0/24 0
Fa0/1
192.168.34.4
19
18
5.5.5.5/32
0
Fa0/1
192.168.34.4
20
20
192.168.56.0/24 0
Fa0/1
192.168.34.4
21
21
6.6.6.6/32
0
Fa0/1
192.168.34.4
22
22
192.168.67.0/24 0
Fa0/1
192.168.34.4
23
23
7.7.7.7/32
65271
Fa0/1
192.168.34.4
63
Next Hop
tag
16
17
18
19
20
21
22
23
24
tag or VC or Tunnel Id
switched interface
Pop tag
6.6.6.6/32
0
Fa0/0
192.168.67.6
Pop tag
192.168.56.0/24 0
Fa0/0
192.168.67.6
16
5.5.5.5/32
0
Fa0/0
192.168.67.6
19
4.4.4.4/32
0
Fa0/0
192.168.67.6
20
3.3.3.3/32
0
Fa0/0
192.168.67.6
21
2.2.2.2/32
0
Fa0/0
192.168.67.6
17
192.168.45.0/24 0
Fa0/0
192.168.67.6
22
192.168.34.0/24 0
Fa0/0
192.168.67.6
23
192.168.23.0/24 0
Fa0/0
192.168.67.6
R6#
*Mar 1 13:38:13.812: MPLS: Fa0/1: recvd: CoS=0, TTL=254, Label(s)=21
*Mar 1 13:38:13.812: MPLS: Fa0/0: xmit: CoS=0, TTL=253, Label(s)=20
R5#
*Mar
*Mar
R4#
*Mar
*Mar
R3#
*Mar 1 13:38:14.572: MPLS: Fa0/1: recvd: CoS=0, TTL=251, Label(s)=16
*Mar 1 13:38:14.572: MPLS: Fa0/0: xmit: (no label)
Note: we can see the no label keyword which is due to PHP
As can be seen from the debug outputs above that the precedence value is 0 which
is copied from the packet header to the MPLS header (CoS)
R1
access-list
access-list
access-list
access-list
access-list
access-list
access-list
100
100
100
100
100
100
100
permit
permit
permit
permit
permit
permit
permit
ip
ip
ip
ip
ip
ip
ip
any
any
any
any
any
any
any
any
any
any
any
any
any
any
precedence
precedence
precedence
precedence
precedence
precedence
precedence
65
critical
flash
flash-override
immediate
internet
network
priority
list 100
any precedence
any precedence
any precedence
any precedence
any precedence
any precedence
any precedence
any precedence
critical
flash
flash-override
immediate
internet
network
priority
routine (5 matches)
66
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
2
.1
2.1
19
R1
S1/0
S1/1
LSP
S1/0
19
2.
1.
13
.0/
24
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
OSPF
A0
F1/0
R4
OSPF A0
192.1.45.0/24
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
67
AS 100
R3
Lo0
3.3.3.3/32
F2/0
OSPF
A0
F1/0
R5
Lo0
5.5.5.5/32
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router ospf 100 vrf MSSK
network 192.1.24.2 0.0.0.0 area 0
R4
router ospf 100
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.24.4 0.0.0.0 area 0
R3
router ospf 100 vrf MSSK
network 192.1.35.3 0.0.0.0 area 0
69
R5
router ospf 100
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0
network 192.1.35.5 0.0.0.0 area 0
CE-CE Link Configuration
R4
router ospf 100
network 192.1.45.4 0.0.0.0 area 0
R5
router ospf 100
network 192.1.45.5 0.0.0.0 area 0
VPN Configuration
R2
router ospf 100 vrf MSSK
redistribute bgp 100 subnets
router bgp 100
address-family ipv4 vrf MSSK
redistribute ospf 100 vrf MSSK
R3
router ospf 100 vrf MSSK
redistribute bgp 100 subnets
router bgp 100
address-family ipv4 vrf MSSK
redistribute ospf 100 vrf MSSK
Verifications
R2#sh ip route vrf MSSK ospf
Routing Table: MSSK
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
70
As can be seen from the output below, R2 should learn R5 loopback via iBGP not via
OSPF as we are configuring MPLS L3VPN
R5 loopback was learned via OSPF and has an AD value of 110 and cost of 3 (which
roughly means it crossed three FastEthernet links)
R3#sh ip route vrf MSSK ospf
Routing Table: MSSK
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
O
O
O
O
Next Hop
Pri State
1 FULL/BDR
1 FULL/DR
Interface
FastEthernet1/1
FastEthernet1/0
Pri State
1 FULL/DR
1 FULL/DR
Interface
FastEthernet1/1
FastEthernet1/0
As we can see, the traffic between the CEs is crossing the backdoor link and not the
primary one, which is supposed to be the MPLS L3VPN connection
So, we should configure what so called OSPF sham link, which is a virtual link
configured between the PEs inside the OSPF that resides between the PE and CE
Sham link is established with source and destination which should be attached to
the specific VRF of concern; as well it should be advertised in iBGP under the VRF
address-family
Not to forget that the cost of the backdoor link reverts to default (which is 1), so we
will implement the OSPF cost on the interfaces involved in the backdoor on both
CEs
R2
interface Loopback1
vrf forwarding MSSK
ip address 22.22.22.22 255.255.255.255
router ospf 100 vrf MSSK
area 0 sham-link 22.22.22.22 33.33.33.33
router bgp 100
address-family ipv4 vrf MSSK
network 22.22.22.22 mask 255.255.255.255
R4
interface FastEthernet1/1
ip ospf cost 100
R3
interface Loopback1
vrf forwarding MSSK
ip address 33.33.33.33 255.255.255.255
router ospf 100 vrf MSSK
area 0 sham-link 33.33.33.33 22.22.22.22
router bgp 100
address-family ipv4 vrf MSSK
network 33.33.33.33 mask 255.255.255.255
R5
interface FastEthernet1/1
ip ospf cost 100
R2#show bgp vpnv4 unicast all
74
Pri State
0 FULL/ 0 FULL/ 1 FULL/BDR
Pri State
0 FULL/ 0 FULL/ 1 FULL/BDR
76
OSPF Domain-ID
Network Diagram
MPLS Backbone
OSPF Area 0
R5
F0/0
F0/1
F0/0
R2
S0/0
P2 203
FRSW
P3 302
IBGP
F0/0
Lo0 1.1.1.1/32
S0/0
Lo0 3.3.3.3/32
R3
R1
F0/1
F0/0
F1/0
F0/1
F0/0
F0/0
F0/0
F0/0
R4
R7
R6
R8
VRF
RED
VRF
BLUE
VRF
RED
VRF
BLUE
Configurations
VRF Configuration
R1
ip vrf BLUE
rd 150:10
route-target export 150:10
route-target import 150:10
ip vrf RED
78
rd 300:10
route-target export 300:10
route-target import 300:10
interface FastEthernet0/1
ip vrf forwarding RED
ip address 192.1.14.1 255.255.255.0
interface FastEthernet1/0
ip vrf forwarding BLUE
ip address 192.1.17.1 255.255.255.0
R3
ip vrf BLUE
rd 150:10
route-target export 150:10
route-target import 150:10
ip vrf RED
rd 300:10
route-target export 300:10
route-target import 300:10
interface FastEthernet0/0
ip vrf forwarding RED
ip address 192.1.36.3 255.255.255.0
interface FastEthernet0/1
ip vrf forwarding BLUE
ip address 192.1.38.3 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.15.1 0.0.0.0 area 0
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.23.2 0.0.0.0 area 0
network 192.1.25.2 0.0.0.0 area 0
79
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.23.3 0.0.0.0 area 0
R5
router ospf 1
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0
network 192.1.15.5 0.0.0.0 area 0
network 192.1.25.5 0.0.0.0 area 0
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
int f0/0
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s0/0
mpls ip
int f0/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s0/0
mpls ip
R5
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f0/0
80
mpls ip
int f0/1
mpls ip
MP-BGP Configuration
R1
router bgp 10
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 10
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 10
neighbor 1.1.1.1 remote-as 10
neighbor 1.1.1.1 update-source lo0
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
CE-PE routing Configuration
R1
router ospf 300 vrf RED
router-id 192.1.14.1
network 192.1.14.1 0.0.0.0 area 0
router ospf 150 vrf BLUE
router-id 192.1.17.1
network 192.1.17.1 0.0.0.0 area 0
R4
router ospf 100
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.24.4 0.0.0.0 area 0
R3
router ospf 300 vrf RED
router-id 192.1.36.3
network 192.1.36.3 0.0.0.0 area 0
81
82
R3
router ospf 300 vrf RED
redistribute bgp 10 subnets
router ospf 150 vrf BLUE
redistribute bgp 10 subnets
router bgp 10
address-family ipv4 vrf RED
redistribute ospf 300 vrf RED
address-family ipv4 vrf BLUE
redistribute ospf 150 vrf BLUE
Verifications
R1#sh ip route vrf RED ospf
Routing Table: RED
O
Pri State
1 FULL/BDR
192.1.14.1
192.1.15.5
192.1.25.2
192.1.36.3
192.1.36.6
Pri State
1 FULL/BDR
192.1.36.3
192.1.23.2
192.1.25.5
192.1.14.1
192.1.14.4
Pri State
1 FULL/BDR
Pri State
1 FULL/BDR
192.1.38.3
192.1.23.2
192.1.25.5
192.1.17.1
192.1.17.7
91
VRF Lite
Network Diagram
lo0 192.168.1.1/24
PE1
172.16.12.0/24
CE1
4
.0/2
6.11
1
.
2
17
172.
16.
13.0
/24
CE3
lo0 192.168.3.1/24
CE2
lo1 192.168.2.1/24
Configurations
VRF Configuration
PE1
ip vrf CE1
ip vrf CEs
interface FastEthernet0/0
ip vrf forwarding CE1
ip address 172.16.11.1 255.255.255.0
interface FastEthernet0/1
ip vrf forwarding CEs
ip address 172.16.12.1 255.255.255.0
interface FastEthernet1/0
ip vrf forwarding CEs
ip address 172.16.13.1 255.255.255.0
IGP Configuration
PE1
router ospf 1 vrf CE1
network 172.16.11.1 0.0.0.0 area 0
92
Pri State
1 FULL/BDR
1 FULL/DR
1 FULL/DR
Neighbor ID
172.16.11.1
Pri State
1 FULL/BDR
Pri State
1 FULL/BDR
Pri State
1 FULL/DR
95
VRF Export-maps
Network Diagram
Lo0
1.1.1.1/32
Lo0
4.4.4.4/32
192.1.24.0/24
Lo0
2.2.2.2/32
R2
4
/2
.0
2
.1
2.1
19
R1
S1/0
S1/0
S1/1
LSP
19
2.
1.
13
.0/
24
S1/0
IBGP
192.1.35.0/24
OSPF
Area 0
F2/0
RIPv2
F1/0
AS 100
R3
F2/0
RIPv2
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:2
address-family ipv4
export map EXPORT_MAP
route-target import 100:5
ip prefix-list R4LOOP seq 5 permit 4.4.4.4/32
route-map EXPORT_MAP permit 10
match ip address prefix-list R4LOOP
set extcommunity rt 2.2.2.2:4
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
96
Lo0
3.3.3.3/32
Lo0
5.5.5.5/32
R3
vrf definition MSSK
rd 100:3
address-family ipv4
export map EXPORT_MAP
route-target import 2.2.2.2:4
ip prefix-list R5LOOP seq 5 permit 5.5.5.5/32
route-map EXPORT_MAP permit 10
match ip address prefix-list R5LOOP
set extcommunity rt 100:5
int f2/0
vrf forwarding MSSK
ip address 192.1.35.3 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.12.1 0.0.0.0 area 0
network 192.1.13.1 0.0.0.0 area 0
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.12.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.13.3 0.0.0.0 area 0
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
97
int s1/0
mpls ip
int s1/1
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
router rip
address-family ipv4 vrf MSSK
98
no auto-summary
version 2
network 192.1.24.2
R4
router rip
no auto-summary
version 2
network 4.4.4.4
network 192.1.24.4
R3
router rip
address-family ipv4 vrf MSSK
no auto-summary
version 2
network 192.1.35.3
R5
router rip
no auto-summary
version 2
network 5.5.5.5
network 192.1.35.5
VPN Configuration
R2
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
R3
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
99
Verifications
R1#show mpls ldp neighbor
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 1.1.1.1:0
TCP connection: 2.2.2.2.38298 - 1.1.1.1.646
State: Oper; Msgs sent/rcvd: 66/66; Downstream
Up time: 00:49:35
LDP discovery sources:
Serial1/0, Src IP addr: 192.1.12.2
Addresses bound to peer LDP Ident:
192.1.12.2
2.2.2.2
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 1.1.1.1:0
TCP connection: 3.3.3.3.34974 - 1.1.1.1.646
State: Oper; Msgs sent/rcvd: 67/65; Downstream
Up time: 00:49:34
LDP discovery sources:
Serial1/1, Src IP addr: 192.1.13.3
Addresses bound to peer LDP Ident:
192.1.13.3
3.3.3.3
R1#show mpls interfaces
Interface
IP
Tunnel
Serial1/0
Yes (ldp)
No
Serial1/1
Yes (ldp)
No
101
AS MsgRcvd MsgSent
100
14
14
0 00:09:30
AS MsgRcvd MsgSent
100
15
15
0 00:10:15
103
104
24
.0/
3
2
1.
2.
19
Lo0
2.2.2.2/32
Lo0
1.1.1.1/32
R2
OSPF Domain
Area 0
R3
LSP
IBGP
19
2.1
.3
4.
0/
24
R4
Lo0
4.4.4.4/32
F1/1
F1/1
F1/0 192.1.15.1/24
F1/0 192.1.15.5/24
R5
R1
Configurations
IGP Configuration
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.23.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.23.3 0.0.0.0 area 0
network 192.1.34.3 0.0.0.0 area 0
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.34.4 0.0.0.0 area 0
105
Lo0
5.5.5.5/32
encapsulation mpls
int f1/1
xconnect 4.4.4.4 15 pw-class MSSK
R4
pseudowire-class MSSK
encapsulation mpls
int f1/1
xconnect 2.2.2.2 15 pw-class MSSK
Verifications
R2#show mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP connection: 3.3.3.3.54771 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 14/13; Downstream
Up time: 00:05:07
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.1.23.3
Addresses bound to peer LDP Ident:
192.1.23.3
192.1.34.3
3.3.3.3
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 2.2.2.2:0
TCP connection: 4.4.4.4.28399 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 10/9; Downstream
Up time: 00:00:54
LDP discovery sources:
Targeted Hello 2.2.2.2 -> 4.4.4.4, active, passive
Addresses bound to peer LDP Ident:
192.1.34.4
4.4.4.4
R2#show mpls forwarding-table
Local
Outgoing Prefix
Bytes Label Outgoing Next Hop
Label
Label
or Tunnel Id
Switched
interface
16
Pop Label 3.3.3.3/32
0
Fa1/0
192.1.23.3
17
Pop Label 192.1.34.0/24 0
Fa1/0
192.1.23.3
18
17
4.4.4.4/32
0
Fa1/0
192.1.23.3
19
No Label l2ckt(1)
2213
Fa1/1
point2point
R4#show mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 4.4.4.4:0
TCP connection: 3.3.3.3.646 - 4.4.4.4.54817
State: Oper; Msgs sent/rcvd: 14/13; Downstream
Up time: 00:05:09
107
108
Neighbor ID
5.5.5.5
Pri State
1 FULL/DR
Interface
FastEthernet1/0
Pri State
1 FULL/BDR
Dead Time
00:00:31
Address
192.1.15.1
Interface
FastEthernet1/0
111
24
.0/
3
2
1.
2.
19
Lo0
2.2.2.2/32
Lo0
1.1.1.1/32
OSPF Domain
Area 0
R3
R2
19
2.1
.3
4.
0/
24
R4
Lo0
4.4.4.4/32
S2/0
S2/0
S1/0 192.1.15.1/24
S1/0 192.1.15.5/24
R5
R1
Configurations
IGP Configuration
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.23.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.23.3 0.0.0.0 area 0
network 192.1.34.3 0.0.0.0 area 0
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.34.4 0.0.0.0 area 0
112
Lo0
5.5.5.5/32
encapsulation mpls
int s2/0
xconnect 4.4.4.4 15 pw-class MSSK
R4
pseudowire-class MSSK
encapsulation mpls
int s2/0
xconnect 2.2.2.2 15 pw-class MSSK
Verifications
R2#sh mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP connection: 3.3.3.3.47549 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 10/10; Downstream
Up time: 00:02:20
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.1.23.3
Addresses bound to peer LDP Ident:
192.1.23.3
192.1.34.3
3.3.3.3
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 2.2.2.2:0
TCP connection: 4.4.4.4.38194 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 9/9; Downstream
Up time: 00:00:24
LDP discovery sources:
Targeted Hello 2.2.2.2 -> 4.4.4.4, active, passive
Addresses bound to peer LDP Ident:
192.1.34.4
4.4.4.4
R2#sh mpls forwarding-table
Local
Outgoing Prefix
Bytes Label Outgoing Next Hop
Label
Label
or Tunnel Id
Switched
interface
16
Pop Label 3.3.3.3/32
0
Fa1/0
192.1.23.3
17
Pop Label 192.1.34.0/24 0
Fa1/0
192.1.23.3
18
17
4.4.4.4/32
0
Fa1/0
192.1.23.3
19
No Label l2ckt(1)
1766
Se2/0
point2point
R4#sh mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 4.4.4.4:0
TCP connection: 3.3.3.3.646 - 4.4.4.4.13730
State: Oper; Msgs sent/rcvd: 10/11; Downstream
Up time: 00:02:35
114
115
Neighbor ID
5.5.5.5
Pri State
0 FULL/ -
Interface
Serial1/0
Pri State
0 FULL/ -
Interface
Serial1/0
117
point2point
R2
F1/0
S2/0
P1/0
P1/0
R3
R4
F2/0
F1/0
F2/0
S1/0
R5
S2/0
S1/0
R1
AS100
AS200
Configurations
IGP Configuration
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.23.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.23.3 0.0.0.0 area 0
R4
router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only
int lo0
ip router isis 1
int f2/0
118
R6
ip router isis 1
R5
router isis 1
net 49.0001.0000.0000.0005.00
is-type level-2-only
int lo0
ip router isis 1
int f1/0
ip router isis 1
MPLS LDP Configuration
R2
mpls label protocol ldp
mpls ldp router-id lo0 force
int f1/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f2/0
mpls ip
R4
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f2/0
mpls ip
R5
mpls label protocol ldp
mpls ldp router-id lo0 force
int f1/0
mpls ip
119
Next Hop
*> 3.3.3.3/32
*> 4.4.4.4/32
0.0.0.0
192.1.34.4
32768 i
0 200 i
R4#sh ip bgp
BGP table version is 3, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
*> 3.3.3.3/32
*> 4.4.4.4/32
Next Hop
192.1.34.3
0.0.0.0
17
No Label
l2ckt()
drop
Next Hop
192.1.23.2
0.0.0.0
192.1.34.4
192.1.34.4
R4#sh ip bgp
BGP table version is 5, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
*> 2.2.2.2/32
*> 3.3.3.3/32
*> 4.4.4.4/32
*> 5.5.5.5/32
Next Hop
192.1.34.3
192.1.34.3
0.0.0.0
192.1.45.5
R2#
*Sep 13 02:04:37.279: %LDP-5-NBRCHG: LDP Neighbor 5.5.5.5:0 (2) is UP
R5#
*Sep 13 02:04:37.803: %LDP-5-NBRCHG: LDP Neighbor 2.2.2.2:0 (2) is UP
R2#sh mpls ldp neighbor
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP connection: 3.3.3.3.62349 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 29/31; Downstream
Up time: 00:18:49
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.1.23.3
Addresses bound to peer LDP Ident:
192.1.34.3
192.1.23.3
3.3.3.3
Peer LDP Ident: 5.5.5.5:0; Local LDP Ident 2.2.2.2:0
TCP connection: 5.5.5.5.52375 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 12/12; Downstream
123
Up time: 00:02:54
LDP discovery sources:
Targeted Hello 2.2.2.2 -> 5.5.5.5, active, passive
Addresses bound to peer LDP Ident:
192.1.45.5
5.5.5.5
R2#sh mpls l2transport summary
Destination address: 5.5.5.5, total number of vc: 1
0 unknown, 1 up, 0 down, 0 admin down, 0 recovering, 0 standby, 0 hotstandby
1 active vc on MPLS interface Fa1/0
R5#sh mpls ldp neighbor
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 5.5.5.5:0
TCP connection: 4.4.4.4.646 - 5.5.5.5.45835
State: Oper; Msgs sent/rcvd: 32/32; Downstream
Up time: 00:20:41
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.1.45.4
Addresses bound to peer LDP Ident:
192.1.34.4
192.1.45.4
4.4.4.4
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 5.5.5.5:0
TCP connection: 2.2.2.2.646 - 5.5.5.5.52375
State: Oper; Msgs sent/rcvd: 12/13; Downstream
Up time: 00:03:11
LDP discovery sources:
Targeted Hello 5.5.5.5 -> 2.2.2.2, active, passive
Addresses bound to peer LDP Ident:
192.1.23.2
2.2.2.2
R5#sh mpls l2transport summary
Destination address: 2.2.2.2, total number of vc: 1
0 unknown, 1 up, 0 down, 0 admin down, 0 recovering, 0 standby, 0 hotstandby
1 active vc on MPLS interface Fa1/0
R2#show mpls forwarding-table | inc 5.5.5.5
19
19
5.5.5.5/32
0
Fa1/0
192.1.23.3
192.1.45.4
Now in order for the labels to be passed through the ASes, we have to configure the
BGP neighbors to send the labels
R3
router bgp 100
124
address-family ipv4
neighbor 192.1.34.4 send-label
R4
router bgp 200
address-family ipv4
neighbor 192.1.34.3 send-label
R3
*Sep 13 02:13:01.135: %BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding
command has been configured on interface: POS1/0
R4
*Sep 13 02:13:00.983: %BGP_LMM-6-AUTOGEN1: The mpls bgp forwarding
command has been configured on interface: POS1/0
R2#show mpls l2transport vc 16
Local intf
Local circuit
Dest address VC ID
Status
------------- -------------------------- --------------- ---------- ---------Se2/0
PPP
5.5.5.5
16
UP
R5#show mpls l2transport vc 16
Local intf
Local circuit
Dest address VC ID
Status
------------- -------------------------- --------------- ---------- ---------Se2/0
PPP
2.2.2.2
16
UP
R1#ping 192.1.16.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.16.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/41/80 ms
R6#ping 192.1.16.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.16.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 24/31/48 ms
125
AS100
R1
S1/0
S1/0
F2/0
F2/0
F1/0
F1/0
OSPF
A0
OSPF
A0
R4
R3
F1/1
F1/1
F1/0
F1/0
R5
R6
F1/1
R7
AS200
R2
F1/1
F1/0
F1/0
Configurations
VRF Configuration
R1
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int s1/0
vrf forwarding MSSK
ip address 192.1.12.1 255.255.255.0
126
R8
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int s1/0
vrf forwarding MSSK
ip address 192.1.12.2 255.255.255.0
R5
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f1/1
vrf forwarding MSSK
ip address 192.1.57.5 255.255.255.0
R6
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f1/1
vrf forwarding MSSK
ip address 192.1.68.6 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.13.1 0.0.0.0 area 0
127
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.24.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.13.3 0.0.0.0 area 0
network 192.1.35.3 0.0.0.0 area 0
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.24.4 0.0.0.0 area 0
network 192.1.46.4 0.0.0.0 area 0
R5
router ospf 1
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0
network 192.1.35.5 0.0.0.0 area 0
R6
router ospf 1
router-id 6.6.6.6
network 6.6.6.6 0.0.0.0 area 0
network 192.1.46.6 0.0.0.0 area 0
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
int f2/0
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
128
int f2/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
int f1/1
mpls ip
R4
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
int f1/1
mpls ip
R5
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
R6
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
MP-BGP Configuration
R1
router bgp 100
no bgp default ipv4-unicast
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 update-source lo0
address-family vpnv4
129
version 2
network 7.0.0.0
network 192.1.57.0
no auto-summary
R2
address-family ipv4 vrf MSSK
network 192.1.12.0
no auto-summary
version 2
R6
router rip
address-family ipv4 vrf MSSK
network 192.1.68.0
no auto-summary
version 2
R8
router rip
version 2
network 8.0.0.0
network 192.1.68.0
no auto-summary
VPN Configuration
R1
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
R2
router rip
address-family ipv4 vrf MSSK
redistribute bgp 200 metric 1
router bgp 200
address-family ipv4 vrf MSSK
redistribute rip
131
R5
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
network 192.1.57.0
redistribute rip
R6
router rip
address-family ipv4 vrf MSSK
redistribute bgp 200 metric 1
address-family ipv4 vrf MSSK
network 192.1.68.0
redistribute rip
Verifications
R1#sh bgp vpnv4 unicast all summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 9, main routing table version 9
6 network entries using 936 bytes of memory
6 path entries using 480 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2016 total bytes of memory
BGP activity 6/0 prefixes, 6/0 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
5.5.5.5
4
AS MsgRcvd MsgSent
100
31
28
0 00:21:36
132
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 7.7.7.7/32
5.5.5.5
1 100
0?
*> 8.8.8.8/32
192.1.12.2
1
32768 ?
*> 192.1.12.0
0.0.0.0
0
32768 ?
*> 192.1.12.2/32 0.0.0.0
0
32768 ?
*>i 192.1.57.0
5.5.5.5
0 100
0i
*> 192.1.68.0
192.1.12.2
1
32768 ?
R2#show bgp vpnv4 unicast all summary
BGP router identifier 2.2.2.2, local AS number 200
BGP table version is 9, main routing table version 9
6 network entries using 936 bytes of memory
6 path entries using 480 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2016 total bytes of memory
BGP activity 6/0 prefixes, 6/0 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
6.6.6.6
4
AS MsgRcvd MsgSent
200
30
29
0 00:20:56
AS MsgRcvd MsgSent
100
28
32
11
0 00:22:00
AS MsgRcvd MsgSent
200
29
31
11
134
0 00:21:18
137
AS100
R1
S1/0
S1/0
F2/0
F2/0
F1/0
F1/0
OSPF
A0
OSPF
A0
R4
R3
F1/1
F1/1
F1/0
F1/0
R5
R6
F1/1
R7
AS200
R2
F1/1
F1/0
F1/0
Configurations
VRF Configuration
R5
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f1/1
vrf forwarding MSSK
ip address 192.1.57.5 255.255.255.0
138
R8
R6
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f1/1
vrf forwarding MSSK
ip address 192.1.68.6 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.13.1 0.0.0.0 area 0
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.24.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.13.3 0.0.0.0 area 0
network 192.1.35.3 0.0.0.0 area 0
R4
router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.1.24.4 0.0.0.0 area 0
network 192.1.46.4 0.0.0.0 area 0
R5
router ospf 1
router-id 5.5.5.5
139
140
R5
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
R6
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int f1/0
mpls ip
MP-BGP Configuration
R1
router bgp 100
no bgp default ipv4-unicast
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 update-source lo0
neighbor 192.1.12.2 remote-as 200
address-family vpnv4
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community both
neighbor 5.5.5.5 next-hop-self
neighbor 192.1.12.2 activate
neighbor 192.1.12.2 send-community both
R5
router bgp 100
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source lo0
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
R2
router bgp 200
no bgp default ipv4-unicast
neighbor 6.6.6.6 remote-as 200
neighbor 6.6.6.6 update-source lo0
neighbor 192.1.12.1 remote-as 100
address-family vpnv4
141
neighbor
neighbor
neighbor
neighbor
neighbor
6.6.6.6 activate
6.6.6.6 send-community both
6.6.6.6 next-hop-self
192.1.12.1 activate
192.1.12.1 send-community both
R6
router bgp 200
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source lo0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R5
router rip
address-family ipv4 vrf MSSK
network 192.1.57.0
no auto-summary
version 2
R7
router rip
version 2
network 7.0.0.0
network 192.1.57.0
no auto-summary
R6
router rip
address-family ipv4 vrf MSSK
network 192.1.68.0
no auto-summary
version 2
R8
router rip
version 2
network 8.0.0.0
network 192.1.68.0
no auto-summary
142
VPN Configuration
R5
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
network 192.1.57.0
redistribute rip
R6
router rip
address-family ipv4 vrf MSSK
redistribute bgp 200 metric 1
router bgp 200
address-family ipv4 vrf MSSK
network 192.1.68.0
redistribute rip
Verifications
R1#show bgp vpnv4 unicast all summary
BGP router identifier 1.1.1.1, local AS number 100
BGP table version is 5, main routing table version 5
4 network entries using 624 bytes of memory
4 path entries using 320 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1568 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
5.5.5.5
4
192.1.12.2
4
AS MsgRcvd MsgSent
100
200
0 00:03:10
0 0 00:02:59
100
100
0?
0 200 ?
0i
0 200 i
AS MsgRcvd MsgSent
200
100
0 00:03:12
0 00:03:12
100
100
144
0 100 ?
0?
0 100 i
0i
AS MsgRcvd MsgSent
100
10
0 00:03:34
145
Neighbor
V
State/PfxRcd
1.1.1.1
4
AS MsgRcvd MsgSent
100
10
0 00:03:34
AS MsgRcvd MsgSent
200
10
0 00:03:34
149
R7
F1/0
RIPv2
F1/1
R5
F1/0
OSPF 1
F1/1
R3 F1/0
P1/0
P1/0
R1
R2
F1/0
R4
F2/0
F2/0
F2/0
OSPF 1
F1/0
F1/0
R6
F1/1
EIGRP 68
F1/0
F1/1
AS100
AS200
R9
F1/1
RIPv2
F1/0
R10
R8
Configurations
VRF Configuration
R3
vrf definition ABC
rd 100:1
address-family ipv4
150
151
R3
router isis 1
net 49.0001.0000.0000.0003.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet1/0
ip router isis 1
R4
router isis 1
net 49.0002.0000.0000.0004.00
is-type level-2-only
passive-interface Loopback0
interface FastEthernet1/0
ip router isis 1
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
interface FastEthernet2/0
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet2/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface FastEthernet1/0
mpls ip
R4
mpls label protocol ldp
mpls ldp router-id Loopback0 force
152
interface FastEthernet1/0
mpls ip
MP-BGP Configuration
R1
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source Loopback0
neighbor 192.1.12.2 remote-as 200
address-family vpnv4
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
neighbor 3.3.3.3 route-reflector-client
neighbor 3.3.3.3 next-hop-self
neighbor 192.1.12.2 activate
neighbor 192.1.12.2 send-community both
R2
router bgp 200
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 200
neighbor 4.4.4.4 update-source Loopback0
neighbor 192.1.12.1 remote-as 100
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
neighbor 4.4.4.4 next-hop-self
neighbor 192.1.12.1 activate
neighbor 192.1.12.1 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source Loopback0
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
153
R4
router bgp 200
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source Loopback0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R3
router ospf 1 vrf ABC
router-id 192.1.1.3
network 192.1.35.3 0.0.0.0 area 0
network 192.1.36.3 0.0.0.0 area 0
R4
router ospf 1 vrf ABC
router-id 192.1.1.4
network 192.1.49.4 0.0.0.0 area 0
R5
router ospf 1
router-id 192.1.1.5
network 192.1.35.5 0.0.0.0 area 0
network 192.1.1.5 0.0.0.0 area 0
R6
router ospf 1
router-id 192.1.1.6
network 192.1.1.6 0.0.0.0 area 0
network 192.1.36.6 0.0.0.0 area 0
R9
router ospf 1
router-id 192.1.1.9
network 192.1.1.9 0.0.0.0 area 0
network 192.1.49.9 0.0.0.0 area 0
VPN Configuration
R2
router eigrp 1
154
Pri State
1 FULL/BDR
Interface
FastEthernet1/0
Pri State
1 FULL/DR
Dead Time
00:00:39
Address
192.1.49.4
Interface
FastEthernet1/0
158
rd 300:1
address-family ipv4
route-target export 300:1
route-target import 300:1
interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.1.68.6 255.255.255.0
R9
vrf definition MSSK
rd 300:1
address-family ipv4
route-target export 300:1
route-target import 300:1
interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.1.109.9 255.255.255.0
MPLS LDP Configuration
R3
int FastEthernet1/1
mpls ip
int FastEthernet2/0
mpls ip
R4
int FastEthernet 1/1
mpls ip
R5
mpls label protocol ldp
mpls ldp router-id lo0 force
interface FastEthernet1/0
mpls ip
R6
mpls label protocol ldp
mpls ldp router-id lo0 force
interface FastEthernet1/0
mpls ip
160
R9
mpls label protocol ldp
mpls ldp router-id lo0 force
interface FastEthernet1/0
mpls ip
MP-BGP Configuration
R5
router bgp 100
no bgp default ipv4-unicast
neighbor 192.1.1.6 remote-as 100
neighbor 192.1.1.6 update-source Loopback0
neighbor 192.1.1.9 remote-as 200
neighbor 192.1.1.9 ebgp-multihop 255
neighbor 192.1.1.9 update-source Loopback0
address-family vpnv4
neighbor 192.1.1.6 activate
neighbor 192.1.1.6 send-community both
neighbor 192.1.1.9 activate
neighbor 192.1.1.9 send-community both
neighbor 192.1.1.9 next-hop-unchanged
R6
router bgp 100
no bgp default ipv4-unicast
neighbor 192.1.1.5 remote-as 100
neighbor 192.1.1.5 update-source Loopback0
address-family vpnv4
neighbor 192.1.1.5 activate
neighbor 192.1.1.5 send-community both
R9
router bgp 200
no bgp default ipv4-unicast
neighbor 192.1.1.5 remote-as 100
neighbor 192.1.1.5 ebgp-multihop 255
neighbor 192.1.1.5 update-source Loopback0
address-family vpnv4
neighbor 192.1.1.5 activate
161
162
VPN Configuration
R5
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
R6
router eigrp 68
address-family ipv4 vrf MSSK autonomous-system 68
redistribute bgp 100
default-metric 10000 1000 255 1 1500
router bgp 100
address-family ipv4 vrf MSSK
redistribute eigrp 68
R9
router rip
address-family ipv4 vrf MSSK
redistribute bgp 200 metric 1
router bgp 200
address-family ipv4 vrf MSSK
redistribute rip
Verification
R5#sh ip route vrf MSSK rip
Routing Table: MSSK
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is not set
163
AS MsgRcvd MsgSent
100
200
11
11
12
12
11
11
0
0
0 00:06:37
0 00:06:28
2
2
*>
*>i
*>
*>
*>i
*>
172.1.1.7/32
192.1.57.7
172.1.1.8/32
192.1.1.6
172.1.1.10/32 192.1.1.9
192.1.57.0
0.0.0.0
192.1.68.0
192.1.1.6
192.1.109.0
192.1.1.9
1
32768 ?
156160 100
0?
1
0 200 ?
0
32768 ?
0 100
0?
0
0 200 ?
AS MsgRcvd MsgSent
100
13
12
11
0 00:06:51
AS MsgRcvd MsgSent
100
13
12
11
0 00:06:53
167
R6
RIPv2
R7
F1/0
F1/0
F1/1
F1/1
R4
F2/0
F1/0
R1
R2
F1/0
F1/0
RIPv2
R5
F2/0
F1/0
F1/1
F1/1
F1/0
R3
Configurations
VRF Configuration
R4
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
int f1/1
vrf forwarding MSSK
ip address 192.1.46.4 255.255.255.0
R5
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
168
F1/1
OSPF A0
AS 100
169
MP-BGP Configuration
R4
router bgp 100
no bgp default ipv4-unicast
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 update-source lo0
address-family vpnv4
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community both
R5
router bgp 100
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source lo0
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
CE-PE routing Configuration
R4
router rip
address-family ipv4 vrf MSSK
network 192.1.46.0
no auto-summary
version 2
R6
router rip
version 2
network 6.0.0.0
network 192.1.46.0
no auto-summary
R5
router rip
address-family ipv4 vrf MSSK
network 192.1.57.0
no auto-summary
version 2
R7
router rip
170
version 2
network 7.0.0.0
network 192.1.57.0
no auto-summary
VPN Configuration
R4
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
network 192.1.46.0
R5
router rip
address-family ipv4 vrf MSSK
redistribute bgp 100 metric 1
router bgp 100
address-family ipv4 vrf MSSK
redistribute rip
network 192.1.57.0
MPLS TE Configuration
R1
interface FastEthernet1/0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface FastEthernet1/1
ip address 192.1.13.1 255.255.255.0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface FastEthernet2/0
mpls traffic-eng tunnels
ip rsvp bandwidth
router ospf 1
mpls traffic-eng router-id Loopback0
171
AS MsgRcvd MsgSent
100
77
77
0 01:05:24
173
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 6.6.6.6/32
192.1.46.6
1
32768 ?
*>i 7.7.7.7/32
5.5.5.5
1 100
0?
*> 192.1.46.0
0.0.0.0
0
32768 i
*>i 192.1.57.0
5.5.5.5
0 100
0i
R5#show bgp vpnv4 unicast all summary
BGP router identifier 5.5.5.5, local AS number 100
BGP table version is 7, main routing table version 7
4 network entries using 624 bytes of memory
4 path entries using 320 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1544 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
4.4.4.4
4
AS MsgRcvd MsgSent
100
77
77
0 01:05:37
177
P2MP:
Head: 0 interfaces, 0 active signalling attempts, 0 established
0 sub-LSP activations, 0 sub-LSP deactivations
0 LSP successful activations, 0 LSP deactivations
0 SSO recovery attempts, LSP recovered: 0 full, 0 partial, 0 fail
Midpoints: 0, Tails: 0
R5#show mpls traffic-eng tunnels tunnel 0
Name: R5_t0
(Tunnel0) Destination: 4.4.4.4
Status:
Admin: up
Oper: up
Path: valid
Signalling: connected
path option 1, type dynamic (Basis for Setup, path weight 3)
Config Parameters:
Bandwidth: 0
kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled LockDown: disabled Loadshare: 0 [0] bw-based
auto-bw: disabled
Active Path Option Parameters:
State: dynamic path option 1 is active
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : OutLabel : FastEthernet1/0, 17
Next Hop : 192.1.25.2
RSVP Signalling Info:
Src 5.5.5.5, Dst 4.4.4.4, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 192.1.25.5
Explicit Route: 192.1.25.2 192.1.12.2 192.1.12.1 192.1.14.1
192.1.14.4 4.4.4.4
Record Route: NONE
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
Shortest Unconstrained Path Info:
Path Weight: 3 (TE)
Explicit Route: 192.1.25.5 192.1.25.2 192.1.12.2 192.1.12.1
192.1.14.1 192.1.14.4 4.4.4.4
History:
Tunnel:
Time since created: 46 minutes, 34 seconds
178
R6#ping 7.7.7.7
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 52/72/88 ms
R6#traceroute 7.7.7.7 numeric
Type escape sequence to abort.
Tracing the route to 7.7.7.7
VRF info: (vrf in name/id, vrf out name/id)
1 192.1.46.4 16 msec 12 msec 12 msec
2 192.1.14.1 [MPLS: Labels 16/17 Exp 0] 92 msec 88 msec 64 msec
3 192.1.12.2 [MPLS: Labels 16/17 Exp 0] 68 msec 64 msec 60 msec
4 192.1.57.5 [MPLS: Label 17 Exp 0] 68 msec 44 msec 56 msec
5 192.1.57.7 92 msec * 60 msec
R7#sh ip route rip
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
180
R7#ping 6.6.6.6
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 40/68/88 ms
R7#traceroute 6.6.6.6 numeric
Type escape sequence to abort.
Tracing the route to 6.6.6.6
VRF info: (vrf in name/id, vrf out name/id)
1 192.1.57.5 8 msec 12 msec 8 msec
2 192.1.25.2 [MPLS: Labels 17/17 Exp 0] 84 msec 52 msec 64 msec
3 192.1.12.1 [MPLS: Labels 17/17 Exp 0] 48 msec 84 msec 56 msec
4 192.1.46.4 [MPLS: Label 17 Exp 0] 48 msec 44 msec 44 msec
5 192.1.46.6 48 msec * 76 msec
181
MPLS 6PE
Network Diagram
Lo0
1.1.1.1/32
S1/0
2001:db8:24::/64
192.1.12.0/24
Lo0
2.2.2.2/32
Lo0
4.4.4.4/32
2001:db8::4/128
R2
R1
S1/1
LSP
IBGP
F2/0
19
2.1
.13
.0/
24
S1/0
Lo0
3.3.3.3/32
R3
F2/0
Static
Static
F1/0
F1/0
R5
R4
Configurations
VRF Configuration
R2
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1
int f2/0
ip vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1
int f2/0
ip vrf forwarding MSSK
182
192.1.45.0/24
2001:db8:35::/64
2
19
24
.0/ S1/0
2
1
.1.
OSPF Domain
Area 0
Lo0
5.5.5.5/32
2001:db8::5/128
redistribute static
Verifications
R2#show bgp ipv6 unicast summary
BGP router identifier 2.2.2.2, local AS number 100
BGP table version is 7, main routing table version 7
4 network entries using 672 bytes of memory
4 path entries using 416 bytes of memory
4/4 BGP path/bestpath attribute entries using 544 bytes of memory
1 BGP extended community entries using 24 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1656 total bytes of memory
BGP activity 15/7 prefixes, 15/7 paths, scan interval 60 secs
Neighbor
V
State/PfxRcd
3.3.3.3
4
AS MsgRcvd MsgSent
100
62
55
0 00:36:51
Neighbor
V
State/PfxRcd
2.2.2.2
4
AS MsgRcvd MsgSent
100
55
62
0 00:37:11
187
188
MPLS 6VPE
Network Diagram
Lo0
1.1.1.1/32
S1/0
2001:db8:24::/64
192.1.12.0/24
Lo0
2.2.2.2/32
Lo0
4.4.4.4/32
2001:db8::4/128
R2
R1
S1/1
LSP
IBGP
F2/0
19
2.1
.13
.0/
24
S1/0
R3
F2/0
Static
Static
F1/0
F1/0
R5
R4
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export
route-target import
address-family ipv6
route-target export
route-target import
Lo0
3.3.3.3/32
100:1
100:1
100:1
100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
R3
vrf definition MSSK
rd 100:1
address-family ipv4
189
192.1.45.0/24
2001:db8:35::/64
2
19
24
.0/ S1/0
2
1
.1.
OSPF Domain
Area 0
Lo0
5.5.5.5/32
2001:db8::5/128
route-target export
route-target import
address-family ipv6
route-target export
route-target import
100:1
100:1
100:1
100:1
int f2/0
vrf forwarding MSSK
ip address 192.1.35.3 255.255.255.0
IPv6 Addressing Configuration
R2
ipv6 unicast-routing
ipv6 cef
interface FastEthernet2/0
ipv6 address 2001:DB8:24::2/64
R3
ipv6 unicast-routing
ipv6 cef
interface FastEthernet2/0
ipv6 address 2001:DB8:35::3/64
R4
ipv6 unicast-routing
ipv6 cef
interface FastEthernet1/0
ipv6 address 2001:DB8:24::4/64
interface Loopback0
ipv6 address 2001:DB8::4/128
R5
ipv6 unicast-routing
ipv6 cef
interface FastEthernet1/0
ipv6 address 2001:DB8:35::5/64
interface Loopback0
ipv6 address 2001:DB8::5/128
190
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.1.12.1 0.0.0.0 area 0
network 192.1.13.1 0.0.0.0 area 0
R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.1.12.2 0.0.0.0 area 0
R3
router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.1.13.3 0.0.0.0 area 0
MPLS LDP Configuration
R1
mpls label protocol ldp
mpls ldp router-id lo0 force
int s1/0
mpls ip
int s1/1
mpls ip
R2
mpls label protocol ldp
mpls ldp router-id Loopback0 force
int s1/0
mpls ip
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
191
int s1/0
mpls ip
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source lo0
address-family vpnv6
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community both
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source lo0
address-family vpnv6
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
CE-PE routing Configuration
R2
ipv6 route vrf MSSK 2001:DB8::4/128 2001:DB8:24::4
R4
ipv6 route ::/0 2001:DB8:24::2
R3
ipv6 route vrf MSSK 2001:DB8::5/128 2001:DB8:35::5
R5
ipv6 route ::/0 2001:DB8:35::3
VPN Configuration
R2
router bgp 100
address-family ipv6 vrf MSSK
redistribute static
redistribute connected
192
R3
router bgp 100
address-family ipv6 vrf MSSK
redistribute static
redistribute connected
Verifications
R4#sh ipv6 route
IPv6 Routing Table - default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
S ::/0 [1/0]
via 2001:DB8:24::2
LC 2001:DB8::4/128 [0/0]
via Loopback0, receive
C 2001:DB8:24::/64 [0/0]
via FastEthernet1/0, directly connected
L 2001:DB8:24::4/128 [0/0]
via FastEthernet1/0, receive
L FF00::/8 [0/0]
via Null0, receive
R4#ping 2001:DB8::5 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001:DB8::5, timeout is 2 seconds:
Packet sent with a source address of 2001:DB8::4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/23/28 ms
R5#sh ipv6 route
IPv6 Routing Table - default - 5 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
B - BGP, R - RIP, H - NHRP, I1 - ISIS L1
I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary, D - EIGRP
EX - EIGRP external, ND - ND Default, NDp - ND Prefix, DCE - Destination
NDr - Redirect, O - OSPF Intra, OI - OSPF Inter, OE1 - OSPF ext 1
OE2 - OSPF ext 2, ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2, l - LISP
S ::/0 [1/0]
via 2001:DB8:35::3
LC 2001:DB8::5/128 [0/0]
193
C
L
L
194
AS#200
AS#100
R6
R2
R3
R7
R4
AS#200
R1
AS#1
R5
Internet
R8
Configurations
VRF Configuration
R2
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
interface FastEthernet1/0
vrf forwarding MSSK
ip address 172.1.12.2 255.255.255.0
195
AS#300
R4
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
interface FastEthernet1/1
vrf forwarding MSSK
ip address 172.1.45.4 255.255.255.0
R6
vrf definition ABC
rd 200:1
address-family ipv4
route-target export 200:1
route-target import 200:1
interface FastEthernet1/1
vrf forwarding ABC
ip address 172.1.67.6 255.255.255.0
IGP Configuration
R2
mpls label protocol ldp
mpls ldp router-id lo0 force
router isis 1
net 49.0001.0000.0000.0002.00
is-type level-2-only
passive-interface Loopback0
mpls ldp autoconfig
interface FastEthernet1/1
ip router isis 1
R3
mpls label protocol ldp
mpls ldp router-id lo0 force
router isis 1
net 49.0001.0000.0000.0003.00
196
is-type level-2-only
passive-interface Loopback0
mpls ldp autoconfig
interface FastEthernet1/0
ip router isis 1
interface FastEthernet1/1
ip router isis 1
interface FastEthernet2/0
ip router isis 1
R4
mpls label protocol ldp
mpls ldp router-id lo0 force
router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only
passive-interface Loopback0
mpls ldp autoconfig
interface FastEthernet1/0
ip router isis 1
R6
mpls label protocol ldp
mpls ldp router-id lo0 force
router isis 1
net 49.0001.0000.0000.0006.00
is-type level-2-only
passive-interface Loopback0
mpls ldp autoconfig
interface FastEthernet1/0
ip router isis 1
MP-BGP Configuration
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 3.3.3.3 remote-as 100
197
route
route
route
route
R8
router bgp 1
no bgp default ipv4-unicast
neighbor 192.1.38.3 remote-as 100
address-family ipv4
network 8.8.8.8 mask 255.255.255.255
neighbor 192.1.38.3 activate
Verifications
Let us first check VPN connectivity
R1#ping 172.16.5.5 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.5.5, timeout is 2 seconds:
Packet sent with a source address of 172.16.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 580/646/724 ms
R5#ping 172.16.1.1 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.1.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 44/205/404 ms
And, according to the configuration above, each CE must have a default route in
their routing table
R1#sh ip route
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
201
R1#sh ip bgp
BGP table version is 4, local router ID is 172.16.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
*> 0.0.0.0
172.1.12.2
*> 172.16.1.1/32 0.0.0.0
*> 172.16.5.5/32 172.1.12.2
R5#sh ip route
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 172.1.45.4 to network 0.0.0.0
B*
C
L
B
C
R5#sh ip bgp
BGP table version is 4, local router ID is 172.16.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
*> 0.0.0.0
172.1.45.4
*> 172.16.1.1/32 172.1.45.4
*> 172.16.5.5/32 0.0.0.0
R7#sh ip route
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
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route, H - NHRP, l - LISP
+ - replicated route, % - next hop override
Gateway of last resort is 172.1.67.6 to network 0.0.0.0
B*
C
L
C
R7#sh ip bgp
BGP table version is 3, local router ID is 192.168.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
203
Network
Next Hop
*> 0.0.0.0
172.1.67.6
*> 192.168.7.7/32 0.0.0.0
204
MPLS QoS
Network Diagram
R4
R5
R6
R7
OSPF A0
OSPF A0
R2
0
10
gp 0 0
-2
AS 100
Eb
R1
AS 100
ISIS L2
49.0001
Eb
gp
20 10
0 0
R3
Elements
We are going to examine QoS configuration through our MPLS backbone and across the
L3VPN connection implemented to maintain connectivity between site #1(R4, R6) and
site #2 (R5, R7)
ISIS level-2 will be the IGP used inside our MPLS backbone, and BGP will be the PE-CE
routing protocol, OSPF will be the CE-C routing protocol
Configurations
R1
vrf definition MSSK
rd 100:1
address-family ipv4
route-target export 100:1
route-target import 100:1
205
206
207
R3
mpls label protocol ldp
mpls ldp router-id Loopback0 force
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ip router isis 1
interface FastEthernet1/0
ip address 192.1.13.3 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
no shut
interface FastEthernet1/1
ip address 192.1.23.3 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
no shut
router isis 1
net 49.0001.0000.0000.0003.00
is-type level-2-only
router bgp 100
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source Loopback0
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
neighbor 1.1.1.1 route-reflector-client
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
neighbor 2.2.2.2 route-reflector-client
R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255
208
interface FastEthernet1/0
ip address 192.1.14.4 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.46.4 255.255.255.0
speed 100
duplex full
no shut
router ospf 1
router-id 4.4.4.4
redistribute bgp 200 subnets
network 192.1.46.4 0.0.0.0 area 0
router bgp 200
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 192.1.14.1 remote-as 100
address-family ipv4
network 4.4.4.4 mask 255.255.255.255
redistribute ospf 1
neighbor 192.1.14.1 activate
exit-address-family
R5
interface Loopback0
ip address 5.5.5.5 255.255.255.255
interface FastEthernet1/0
ip address 192.1.25.5 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.57.5 255.255.255.0
speed 100
duplex full
no shut
router ospf 1
router-id 5.5.5.5
209
Verifications
210
211
Network
*> 4.4.4.4/32
*> 5.5.5.5/32
*> 6.6.6.6/32
*> 7.7.7.7/32
r> 192.1.14.0
*> 192.1.25.0
*> 192.1.46.0
*> 192.1.57.0
Next Hop
0.0.0.0
192.1.14.1
192.1.46.6
192.1.14.1
192.1.14.1
192.1.14.1
0.0.0.0
192.1.14.1
Next Hop
192.1.25.2
0.0.0.0
192.1.25.2
192.1.57.7
192.1.25.2
192.1.25.2
192.1.25.2
0.0.0.0
212
213
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/72/96 ms
Now, as reachability is in place let us start diving in configuring MPLS QoS
We will start from the C routers and configure it for IP Precedence classification
Let us choose precedence values 1, 2, 3 and 6
We will depend on MQC model to for our purposes
R6
class-map PRECEDENCE_6
match ip precedence 6
class-map PRECEDENCE_3
match ip precedence 3
class-map PRECEDENCE_2
match ip precedence 2
class-map PRECEDENCE_1
match ip precedence 1
policy-map MATCH
class PRECEDENCE_1
class PRECEDENCE_2
class PRECEDENCE_3
class PRECEDENCE_6
interface FastEthernet1/0
service-policy input MATCH
R7
class-map PRECEDENCE_6
match ip precedence 6
class-map PRECEDENCE_3
match ip precedence 3
class-map PRECEDENCE_2
match ip precedence 2
class-map PRECEDENCE_1
match ip precedence 1
policy-map MATCH
class PRECEDENCE_1
class PRECEDENCE_2
class PRECEDENCE_3
class PRECEDENCE_6
interface FastEthernet1/0
service-policy input MATCH
R6#ping 7.7.7.7 repeat 10
214
215
216
set ip precedence 2
class ICMP_CLASS
set ip precedence 3
class class-default
set ip precedence 6
interface FastEthernet1/0
service-policy output MARK
R5
ip access-list extended TELNET
permit tcp any any eq telnet
permit tcp any eq telnet any
ip access-list extended TFTP
permit udp any any eq 69
ip access-list extended ICMP
permit icmp any any
class-map ICMP_CLASS
match access-group name ICMP
class-map TFTP_CLASS
match access-group name TFTP
class-map TELNET_CLASS
match access-group name TELNET
policy-map MARK
class TELNET_CLASS
set ip precedence 1
class TFTP_CLASS
set ip precedence 2
class ICMP_CLASS
set ip precedence 3
class class-default
set ip precedence 6
interface FastEthernet1/0
service-policy output MARK
To enable telnet access
R6, R7
line vty 0 4
password cisco
login
217
218
Packets marked 0
Class-map: TFTP_CLASS (match-all)
Packets marked 0
Class-map: ICMP_CLASS (match-all)
Packets marked 0
Class-map: class-default (match-any)
Packets marked 0
R6#ping 7.7.7.7 repeat 20
Type escape sequence to abort.
Sending 20, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!!!!!!!!!!!!!!!!!!
Success rate is 100 percent (20/20), round-trip min/avg/max = 44/71/128 ms
R6#telnet 7.7.7.7
Trying 7.7.7.7 ... Open
User Access Verification
Password:
R7>en
Password:
R7#exit
[Connection to 7.7.7.7 closed by foreign host]
R6#copy tftp://7.7.7.7/underlying-config null:
Accessing tftp://7.7.7.7/underlying-config...
Loading underlying-config from 7.7.7.7 (via FastEthernet1/0): !
[OK - 233 bytes]
233 bytes copied in 0.252 secs (925 bytes/sec)
R4#show policy-map interface fastEthernet 1/0 | inc Class|marked
Class-map: TELNET_CLASS (match-all)
Packets marked 34
Class-map: TFTP_CLASS (match-all)
Packets marked 4
Class-map: ICMP_CLASS (match-all)
Packets marked 20
Class-map: class-default (match-any)
Packets marked 8
R5#show policy-map interface fastEthernet 1/0 | inc Class|marked
Class-map: TELNET_CLASS (match-all)
Packets marked 27
Class-map: TFTP_CLASS (match-all)
219
Packets marked 0
Class-map: ICMP_CLASS (match-all)
Packets marked 20
Class-map: class-default (match-any)
Packets marked 8
As we can see the count appears, but for TFTP traffic its a one way as one of the
routers is acting as a server and the other one is acting as a client
Now, let us implement some queuing and policing
Let us focus on ICMP traffic, we will configure a 3 rate policer as below (as traffic is
leaving toward the MPLS backbone)
Conform action: transmit
Exceed action: set the MPLS EXP bit to 5
Violate action: drop
R1
class-map EXP_CLASS
match mpls experimental topmost 3
policy-map EXP_POLICY
class EXP_CLASS
police 64000 conform-action transmit exceed-action set-mpls-exp-topmost-transmit 5
violate-action drop
interface FastEthernet1/0
service-policy output EXP_POLICY
R1#sh policy-map interface fastEthernet 1/0
FastEthernet1/0
Service-policy output: EXP_POLICY
Class-map: EXP_CLASS (match-all)
20 packets, 2440 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: mpls experimental topmost 3
police:
cir 64000 bps, bc 2000 bytes, be 2000 bytes
conformed 20 packets, 2440 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
set-mpls-exp-topmost-transmit 5
violated 0 packets, 0 bytes; actions:
drop
conformed 0000 bps, exceeded 0000 bps, violated 0000 bps
220
221
222
class INPUT_CLASS
set qos-group 3
interface FastEthernet1/0
service-policy input INPUT_POLICY
class-map match-all OUTPUT_CLASS
match qos-group 3
policy-map OUTPUT_POLICY
class OUTPUT_CLASS
police 64000 conform-action transmit exceed-action set-mpls-exp-topmost-transmit 5
violate-action drop
interface FastEthernet1/1
service-policy output OUTPUT_POLICY
R6#ping 7.7.7.7 repeat 20 size 1600
Type escape sequence to abort.
Sending 20, 1600-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
!!!.!!.!!.!!.!!.!!!.
Success rate is 70 percent (14/20), round-trip min/avg/max = 64/87/128 ms
R1#sh policy-map interface fastEthernet 1/0
FastEthernet1/0
Service-policy output: EXP_POLICY
Class-map: EXP_CLASS (match-all)
40 packets, 33280 bytes
5 minute offered rate 3000 bps, drop rate 1000 bps
Match: mpls experimental topmost 3
police:
cir 64000 bps, bc 2000 bytes, be 2000 bytes
conformed 28 packets, 19156 bytes; actions:
transmit
exceeded 9 packets, 9558 bytes; actions:
set-mpls-exp-topmost-transmit 5
violated 3 packets, 4566 bytes; actions:
drop
conformed 2000 bps, exceeded 1000 bps, violated 1000 bps
Class-map: class-default (match-any)
25 packets, 10724 bytes
5 minute offered rate 1000 bps, drop rate 0000 bps
Match: any
223
224
225
226
192.1.12.0/24
F1/0
AS 1
S1/0
F1/0
R2
F1/1
F1/1
F1/0
F1/0
Lo0
3.3.3.3/32
R3
S2/0
192.1.34.0/24
Configuratioons
VRF Configuration
R1
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1
interface FastEthernet1/1
ip vrf forwarding MSSK
ip address 192.1.13.1 255.255.255.0
R2
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1
interface FastEthernet1/1
ip vrf forwarding MSSK
ip address 192.1.24.2 255.255.255.0
IGP Configuration
R1
router ospf 1
router-id 1.1.1.1
228
S2/0
R4
192.1.24.0/24
R1
192.1.13.0/24
Lo0
1.1.1.1/32
Lo0
2.2.2.2/32
Lo0
5.5.5.5/32
Verifications
R1#sh bgp vpnv4 unicast all
BGP table version is 27, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 3.3.3.3/32
192.1.13.3
156160
32768 ?
*>i 4.4.4.4/32
2.2.2.2
156160 100
0?
r>i 192.1.13.0
2.2.2.2
2174976 100
0?
*>i 192.1.24.0
2.2.2.2
0 100
0?
*> 192.1.34.0
192.1.13.3
2172416
32768 ?
*i
2.2.2.2
2172416 100
0?
*>i 192.1.34.3/32 2.2.2.2
2172416 100
0?
*> 192.1.34.4/32 192.1.13.3
2172416
32768 ?
R2#sh bgp vpnv4 unicast all
BGP table version is 25, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 3.3.3.3/32
1.1.1.1
156160 100
0?
*> 4.4.4.4/32
192.1.24.4
156160
32768 ?
*> 192.1.13.0
192.1.24.4
2174976
32768 ?
*> 192.1.24.0
0.0.0.0
0
32768 ?
* i 192.1.34.0
1.1.1.1
2172416 100
0?
*>
192.1.24.4
2172416
32768 ?
*> 192.1.34.3/32 192.1.24.4
2172416
32768 ?
*>i 192.1.34.4/32 1.1.1.1
2172416 100
0?
R3#sh ip route eigrp
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
231
MPLS Backbone
OSPF Area 0
R5
F0/0
F0/1
F0/0
R2
S0/0
P2 203
FRSW
P3 302
IBGP
F0/0
Lo0 1.1.1.1/32
S0/0
Lo0 3.3.3.3/32
R3
R1
F0/0
F1/0
F0/1
F0/0
F0/0
F0/0
R4
R7
R6
VRF
RED
VRF
RED
RIP
Domain
VRF
RED
Configurations
VRF Configuration
R1
ip vrf RED
rd 100:1
route-target export 100:1
route-target import 100:1
int f0/1
ip vrf forwarding RED
ip address 192.1.14.1 255.255.255.0
int f1/0
235
V
4
V
4
V
4
As we can see that neither of the CEs can receive the loopback of any other CEs
(which is advertised in BGP) why?
The reason behind that is that the bgp speaker will not accept a route with its own
AS number (which is 200 in our case)
240
BGP AS-Override
BGP AllowAS-in
We will go with AS-Override; the configuration will be applied on the PE towards the
CE under the address-family ipv4 configuration mode
R1
router bgp 100
address-family ipv4 vrf RED
neighbor 192.1.14.4 as-override
neighbor 192.1.17.7 as-override
R3
router bgp 100
address-family ipv4 vrf RED
neighbor 192.1.36.6 as-override
R4#sh ip bgp
BGP table version is 8, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*> 4.4.4.4/32
*> 6.6.6.6/32
*> 7.7.7.7/32
Next Hop
0.0.0.0
192.1.14.1
192.1.14.1
R6#sh ip bgp
BGP table version is 4, local router ID is 6.6.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*> 4.4.4.4/32
*> 6.6.6.6/32
*> 7.7.7.7/32
Next Hop
192.1.36.3
0.0.0.0
192.1.36.3
R7#sh ip bgp
BGP table version is 6, local router ID is 7.7.7.7
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
241
Next Hop
192.1.17.1
192.1.17.1
0.0.0.0
Now , the SOO community is used in MPLS networks to prevent looping between
the PEs , when a PE advertise a route to its neighbor PE that is attached with a soo
community that matches the same rd configured under the ip vrf configuration
mode , it will not advertise it to its CE
R1
route-map SOO permit 10
set extcommunity soo 100:1
router bgp 100
address-family ipv4 vrf RED
neighbor 192.1.14.4 route-map SOO in
neighbor 192.1.17.7 route-map SOO in
R1#sh ip bgp vpnv4 vrf RED 6.6.6.6
BGP routing table entry for 100:1:6.6.6.6/32, version 12
Paths: (1 available, best #1, table RED)
Advertised to update-groups:
2 3
200
3.3.3.3 (metric 67) from 3.3.3.3 (3.3.3.3)
Origin IGP, metric 0, localpref 100, valid, internal, best
Extended Community: RT:100:1
mpls labels in/out nolabel/22
R1#sh ip bgp vpnv4 vrf RED 4.4.4.4
BGP routing table entry for 100:1:4.4.4.4/32, version 7
Paths: (1 available, best #1, table RED)
Advertised to update-groups:
1 2
200
192.1.14.4 from 192.1.14.4 (4.4.4.4)
Origin IGP, metric 0, localpref 100, valid, external, best
Extended Community: RT:100:1
mpls labels in/out 22/nolabel
Network Diagram
Initrial Configurations
R1
hostname R1
interface Loopback0
ip address 192.168.1.1 255.255.255.255
ipv6 address 2001:DB8::1/128
interface FastEthernet1/0
ip address 192.1.12.1 255.255.255.0
speed 100
duplex full
ipv6 address 2001:DB8:12::1/64
no shut
R2
hostname R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255
243
interface FastEthernet1/0
ip address 192.1.12.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:DB8:12::2/64
no shut
interface FastEthernet1/1
ip address 192.1.23.2 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet2/0
ip address 192.1.25.2 255.255.255.0
speed 100
duplex full
no shut
R3
hostname R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255
interface FastEthernet1/0
no ip address
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.23.3 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet2/0
ip address 192.1.34.3 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet2/1
244
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.25.5 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet2/0
ip address 192.1.45.5 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet2/1
ip address 192.1.35.5 255.255.255.0
speed 100
duplex full
no shut
R6
hostname R6
interface Loopback0
ip address 172.16.6.6 255.255.255.255
interface FastEthernet1/0
ip address 192.1.56.6 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.67.6 255.255.255.0
speed 100
duplex full
no shut
R7
hostname R7
interface Loopback0
ip address 10.7.7.7 255.255.255.255
246
interface FastEthernet1/0
ip address 192.1.67.7 255.255.255.0
speed 100
duplex full
no shut
R8
hostname R8
interface Serial1/0
ip address 192.1.89.8 255.255.255.0
encapsulation ppp
serial restart-delay 0
clock rate 128000
no shut
R9
hostname R9
interface FastEthernet1/0
ip address 192.1.89.9 255.255.255.0
speed 100
duplex full
no shut
GW
hostname Gw
interface FastEthernet1/0
ip address 192.1.40.10 255.255.255.0
speed 100
duplex full
no shut
interface FastEthernet1/1
ip address 192.1.100.10 255.255.255.0
speed 100
duplex full
no shut
Configure ISIS as the IGP inside AS 100 and make sure all circuits are
level-2 circuits
R2
247
interface FastEthernet1/1
ip router isis 1
interface FastEthernet2/0
ip router isis 1
router isis 1
net 49.0001.0000.0000.0002.00
is-type level-2-only
passive-interface Loopback0
R3
interface FastEthernet1/1
ip router isis 1
interface FastEthernet2/0
ip router isis 1
interface FastEthernet2/1
ip router isis 1
router isis 1
net 49.0001.0000.0000.0003.00
is-type level-2-only
passive-interface Loopback0
R4
interface FastEthernet1/0
ip router isis 1
interface FastEthernet1/1
ip router isis 1
router isis 1
net 49.0001.0000.0000.0004.00
is-type level-2-only
passive-interface Loopback0
R5
interface FastEthernet1/1
ip router isis 1
interface FastEthernet2/0
ip router isis 1
248
interface FastEthernet2/1
ip router isis 1
router isis 1
net 49.0001.0000.0000.0005.00
is-type level-2-only
passive-interface Loopback0
R2#show isis neighbors
Tag 1:
System Id
Type Interface IP Address
State Holdtime Circuit Id
R3
L2 Fa1/1
192.1.23.3
UP 8
R3.01
R5
L2 Fa2/0
192.1.25.5
UP 7
R5.01
R2#show clns neighbors
Tag 1:
System Id
Interface SNPA
R3
Fa1/1
ca02.270a.001d
R5
Fa2/0
ca04.270a.001d
249
State
Up
Up
Up
i L2
i
i
i
i
250
i L2
i
i
i
i
i
State
Up
Up
Up
251
i L2
i
i
i
i
192.1.56.5
5.5.5.5
192.1.25.5
192.1.45.5
192.1.35.5
Up time: 00:02:22
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.1.34.3
Addresses bound to peer LDP Ident:
192.1.23.3
192.1.34.3
192.1.35.3
3.3.3.3
Peer LDP Ident: 5.5.5.5:0; Local LDP Ident 4.4.4.4:0
TCP connection: 5.5.5.5.28271 - 4.4.4.4.646
State: Oper; Msgs sent/rcvd: 14/15; Downstream
Up time: 00:02:21
LDP discovery sources:
FastEthernet1/1, Src IP addr: 192.1.45.5
Addresses bound to peer LDP Ident:
192.1.56.5
192.1.25.5
192.1.45.5
192.1.35.5
5.5.5.5
R4#show mpls interfaces
Interface
IP
Tunnel BGP Static Operational
FastEthernet1/0
Yes (ldp)
No
No No
Yes
FastEthernet1/1
Yes (ldp)
No
No No
Yes
R5#show mpls ldp neighbor
Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 5.5.5.5:0
TCP connection: 2.2.2.2.646 - 5.5.5.5.44091
State: Oper; Msgs sent/rcvd: 15/15; Downstream
Up time: 00:02:33
LDP discovery sources:
FastEthernet1/1, Src IP addr: 192.1.25.2
Addresses bound to peer LDP Ident:
192.1.12.2
192.1.23.2
192.1.25.2
2.2.2.2
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 5.5.5.5:0
TCP connection: 3.3.3.3.646 - 5.5.5.5.49471
State: Oper; Msgs sent/rcvd: 16/14; Downstream
Up time: 00:02:33
LDP discovery sources:
FastEthernet2/1, Src IP addr: 192.1.35.3
Addresses bound to peer LDP Ident:
192.1.23.3
192.1.34.3
192.1.35.3
3.3.3.3
Peer LDP Ident: 4.4.4.4:0; Local LDP Ident 5.5.5.5:0
TCP connection: 4.4.4.4.646 - 5.5.5.5.28271
State: Oper; Msgs sent/rcvd: 15/15; Downstream
Up time: 00:02:33
LDP discovery sources:
FastEthernet2/0, Src IP addr: 192.1.45.4
Addresses bound to peer LDP Ident:
192.1.34.4
192.1.45.4
4.4.4.4
254
Default RD
100:1
Interfaces
Fa1/0
R5#sh ip vrf
Name
MSSK
Default RD
100:1
Interfaces
Fa1/0
R2
router bgp 100
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
R3
router bgp 100
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
R4
router bgp 100
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
neighbor 3.3.3.3 remote-as 100
neighbor 3.3.3.3 update-source Loopback0
neighbor 5.5.5.5 remote-as 100
neighbor 5.5.5.5 update-source Loopback0
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community extended
neighbor 2.2.2.2 route-reflector-client
neighbor 3.3.3.3 activate
neighbor 3.3.3.3 send-community extended
neighbor 3.3.3.3 route-reflector-client
neighbor 5.5.5.5 activate
neighbor 5.5.5.5 send-community extended
neighbor 5.5.5.5 route-reflector-client
R5
router bgp 100
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 100
neighbor 4.4.4.4 update-source Loopback0
256
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
R2#show bgp vpnv4 unicast all summary
BGP router identifier 2.2.2.2, local AS number 100
BGP table version is 1, main routing table version 1
Neighbor
V
State/PfxRcd
4.4.4.4
4
AS MsgRcvd MsgSent
100
0 00:00:55
AS MsgRcvd MsgSent
100
0 00:01:05
AS MsgRcvd MsgSent
100
100
100
3
4
2
4
4
4
1
1
1
0 00:01:11
0 00:01:07
0 00:00:51
0
0
0
AS MsgRcvd MsgSent
100
0 00:00:52
Configure OSPF PID 100 as the PE-CE routing protocol between R6-R7 and
R5 (noting that R5-R6 resides in Area 0 , R6-R7 resides in Area 1 and R7
lo0 is part of Area 2), EIGRP AS 1 as the PE-CE routing protocol between
R1 and R2
R1
router eigrp 1
257
no auto-summary
network 192.1.12.1 0.0.0.0
network 192.168.1.1 0.0.0.0
R2
router eigrp 1
address-family ipv4 vrf MSSK autonomous-system 1
network 192.1.12.2 0.0.0.0
no auto-summary
R6
router ospf 100
router-id 6.6.6.6
area 1 virtual-link 7.7.7.7
network 172.16.6.6 0.0.0.0 area 0
network 192.1.56.6 0.0.0.0 area 0
network 192.1.67.6 0.0.0.0 area 1
R7
router ospf 100
router-id 7.7.7.7
area 1 virtual-link 6.6.6.6
network 10.7.7.7 0.0.0.0 area 2
network 192.1.67.7 0.0.0.0 area 1
R5
router ospf 100 vrf MSSK
network 192.1.56.5 0.0.0.0 area 0
R1#sh ip eigrp neighbors
EIGRP-IPv4 Neighbors for AS(1)
H Address
Interface
0
192.1.12.2
Fa1/0
(sec)
Pri State
1 FULL/BDR
Dead Time
00:00:38
258
Address
192.1.56.6
Interface
FastEthernet1/0
Pri State
1 FULL/DR
0 FULL/ 1 FULL/DR
Pri State
0 FULL/ 1 FULL/BDR
Interface
OSPF_VL0
FastEthernet1/0
AS MsgRcvd MsgSent
100
18
15
10
0 00:10:39
*>i 192.168.1.1/32
2.2.2.2
156160
100
0?
262
router isis 1
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
R5
mpls traffic-eng tunnels
interface FastEthernet1/1
mpls traffic-eng tunnels
ip rsvp bandwidth
interface FastEthernet2/0
mpls traffic-eng tunnels
ip rsvp bandwidth
interface FastEthernet2/1
mpls traffic-eng tunnels
ip rsvp bandwidth
router isis 1
metric-style wide
mpls traffic-eng router-id Loopback0
mpls traffic-eng level-2
R2#sh ip rsvp interface
interface rsvp
allocated i/f max flow max sub max VRF
Fa1/1
ena
0
75M
75M
0
Fa2/0
ena
0
75M
75M
0
R3#sh ip rsvp interface
interface rsvp
allocated i/f max flow
Fa1/1
ena
0
75M
75M
Fa2/0
ena
0
75M
75M
Fa2/1
ena
0
75M
75M
Fa2/0
Fa2/1
ena
ena
0
0
75M
75M
75M
75M
0
0
Configure MPLE-TE in such a way that traffic flow from R5 to R2 follow the
path R5 R4 R3 R2 and the traffic flow from R2 to R5 follow the poath
R2 R3 R4 R5
R2
ip explicit-path name TO_R5 enable
next-address 3.3.3.3
next-address 4.4.4.4
next-address 5.5.5.5
interface Tunnel0
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 5.5.5.5
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng path-option 1 explicit name TO_R5
tunnel mpls traffic-eng path-option 2 dynamic
R5
ip explicit-path name TO_R2 enable
next-address 4.4.4.4
next-address 3.3.3.3
next-address 2.2.2.2
interface Tunnel0
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 2.2.2.2
RSVP Process:
running
Forwarding:
enabled
Periodic reoptimization:
every 3600 seconds, next in 3291 seconds
Periodic FRR Promotion:
Not Running
Periodic auto-bw collection: every 300 seconds, next in 291 seconds
P2P:
Head: 1 interfaces, 1 active signalling attempts, 1 established
1 activations, 0 deactivations
0 SSO recovery attempts, 0 SSO recovered
Midpoints: 0, Tails: 1
P2MP:
Head: 0 interfaces, 0 active signalling attempts, 0 established
0 sub-LSP activations, 0 sub-LSP deactivations
0 LSP successful activations, 0 LSP deactivations
0 SSO recovery attempts, LSP recovered: 0 full, 0 partial, 0 fail
Midpoints: 0, Tails: 0
R5#show mpls traffic-eng tunnels summary
Signalling Summary:
LSP Tunnels Process:
running
Passive LSP Listener:
running
RSVP Process:
running
Forwarding:
enabled
Periodic reoptimization:
every 3600 seconds, next in 3211 seconds
Periodic FRR Promotion:
Not Running
Periodic auto-bw collection: every 300 seconds, next in 211 seconds
P2P:
Head: 1 interfaces, 1 active signalling attempts, 1 established
1 activations, 0 deactivations
0 SSO recovery attempts, 0 SSO recovered
Midpoints: 0, Tails: 1
P2MP:
Head: 0 interfaces, 0 active signalling attempts, 0 established
0 sub-LSP activations, 0 sub-LSP deactivations
0 LSP successful activations, 0 LSP deactivations
0 SSO recovery attempts, LSP recovered: 0 full, 0 partial, 0 fail
Midpoints: 0, Tails: 0
R2#show mpls traffic-eng tunnels
P2P TUNNELS/LSPs:
Name: R2_t0
Status:
Admin: up
Oper: up
Path: valid
Signalling: connected
path option 1, type explicit TO_R5 (Basis for Setup, path weight 30)
path option 2, type dynamic
Config Parameters:
Bandwidth: 0
kbps (Global) Priority: 7 7 Affinity: 0x0/0xFFFF
Metric Type: TE (default)
AutoRoute: enabled LockDown: disabled Loadshare: 0 [0] bw-based
auto-bw: disabled
Active Path Option Parameters:
State: explicit path option 1 is active
BandwidthOverride: disabled LockDown: disabled Verbatim: disabled
InLabel : OutLabel : FastEthernet1/1, 21
Next Hop : 192.1.23.3
RSVP Signalling Info:
Src 2.2.2.2, Dst 5.5.5.5, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 192.1.23.2
Explicit Route: 192.1.23.3 192.1.34.3 192.1.34.4 192.1.45.4
192.1.45.5 5.5.5.5
Record Route: NONE
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
History:
Tunnel:
Time since created: 3 minutes, 10 seconds
Time since path change: 3 minutes, 10 seconds
Number of LSP IDs (Tun_Instances) used: 1
Current LSP: [ID: 1]
Uptime: 3 minutes, 10 seconds
LSP Tunnel R5_t0 is signalled, connection is up
InLabel : FastEthernet1/1, implicit-null
Prev Hop : 192.1.23.3
OutLabel : RSVP Signalling Info:
Src 5.5.5.5, Dst 2.2.2.2, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 2.2.2.2
269
History:
Tunnel:
Time since created: 3 minutes, 25 seconds
Time since path change: 3 minutes, 24 seconds
Number of LSP IDs (Tun_Instances) used: 1
Current LSP: [ID: 1]
Uptime: 3 minutes, 24 seconds
LSP Tunnel R2_t0 is signalled, connection is up
InLabel : FastEthernet2/0, implicit-null
Prev Hop : 192.1.45.4
OutLabel : RSVP Signalling Info:
Src 2.2.2.2, Dst 5.5.5.5, Tun_Id 0, Tun_Instance 1
RSVP Path Info:
My Address: 5.5.5.5
Explicit Route: NONE
Record Route: NONE
Tspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
RSVP Resv Info:
Record Route: NONE
Fspec: ave rate=0 kbits, burst=1000 bytes, peak rate=0 kbits
P2MP TUNNELS:
P2MP SUB-LSPS:
R1#traceroute 10.7.7.7 source lo0 numeric
Type escape sequence to abort.
Tracing the route to 10.7.7.7
VRF info: (vrf in name/id, vrf out name/id)
1 192.1.12.2 8 msec 4 msec 4 msec
2 192.1.23.3 [MPLS: Labels 21/21 Exp 0] 24 msec 20 msec 20 msec
3 192.1.34.4 [MPLS: Labels 22/21 Exp 0] 20 msec 20 msec 24 msec
4 192.1.56.5 [MPLS: Label 21 Exp 0] 20 msec 20 msec 16 msec
5 192.1.56.6 20 msec 20 msec 20 msec
6 192.1.67.7 24 msec * 24 msec
R7#traceroute 192.168.1.1 source lo0 numeric
Type escape sequence to abort.
Tracing the route to 192.168.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.1.67.6 4 msec 0 msec 4 msec
2 192.1.56.5 8 msec 8 msec 8 msec
3 192.1.45.4 [MPLS: Labels 23/22 Exp 0] 28 msec 24 msec 28 msec
271
AS MsgRcvd MsgSent
200
0 00:00:12
R4#sh ip bgp
BGP table version is 2, local router ID is 4.4.4.4
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
272
Network
Next Hop
*> 192.1.100.0
192.1.40.10
AS MsgRcvd MsgSent
100
0 00:00:31
Gw#sh ip bgp
BGP table version is 2, local router ID is 192.1.100.10
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
*> 192.1.100.0
0.0.0.0
R4
vrf definition MSSK
rd 100:1
route-target export 100:1
route-target import 100:1
address-family ipv4
ip route 30.40.50.0 255.255.255.0 Null0
ip route vrf MSSK 0.0.0.0 0.0.0.0 192.1.40.10 global
ip access-list standard RFC
permit 10.0.0.0 0.255.255.255
permit 172.16.0.0 0.15.255.255
permit 192.168.0.0 0.0.0.255
ip nat pool POOL 30.40.50.0 30.40.50.255 prefix-length 24
ip nat inside source list RFC pool POOL vrf MSSK
router bgp 100
address-family ipv4
network 30.40.50.0 mask 255.255.255.0
address-family ipv4 vrf MSSK
network 0.0.0.0
interface FastEthernet1/0
ip nat inside
interface FastEthernet1/1
ip nat inside
interface FastEthernet2/0
ip nat outside
R2#show bgp vpnv4 unicast all
BGP table version is 24, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
Network
Next Hop
Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 0.0.0.0
4.4.4.4
0 100
0i
274
*>i
*>i
*>i
*>i
*>
10.7.7.7/32
5.5.5.5
172.16.6.6/32 5.5.5.5
192.1.56.0
5.5.5.5
192.1.67.0
5.5.5.5
192.168.1.1/32 192.1.12.1
3 100
2 100
0 100
2 100
156160
0?
0?
0?
0?
32768 ?
R9#ping 192.1.89.8
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.1.89.8, timeout is 2 seconds:
.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/15/20 ms
277