You are on page 1of 232

2014

Cisco IOS XR
Workbook
Cisco IOS XR Practice Labs
This workbook aims to give network engineers the chance to practice new Cisco
software : IOS XR combined with Cisco IOS software , the workbook mainly focus
on MPLS technologies and different MPLS VPN implementantions using GNS3 to
simulate , it’s a good preparation guide for both CCNP SP and CCIE SP tracks

Mohammad Khalil CCIE #35484 (RS,SP)


www.nmsboost.com
9/4/2014
Contents
MPLS L3VPN Static PE-CE ...................................................................... 2
MPLS L3VPN RIPv2 PE-CE .................................................................... 12
MPLS L3VPN OSPF PE-CE ..................................................................... 21
MPLS L3VPN OSPF Sham-link ............................................................... 31
MPLS L3VPN EIGRP PE-CE ................................................................... 41
MPLS L3VPN BGP PE-CE ...................................................................... 51
MPLS Tunneling .................................................................................. 61
Carrier Supporting Carrier (CsC) 1 ........................................................ 71
Carrier supporting Carrier (CsC) 2 ........................................................ 89
MPLS 6VPE Static ............................................................................. 111
MPLS 6VPE OSPF .............................................................................. 128
MPLS 6VPE EIGRP ............................................................................. 145
MPLS 6VPE BGP ................................................................................ 163
Inter-AS Option-A............................................................................. 180
Inter-AS Option-B............................................................................. 195
Export Maps ..................................................................................... 208
SNMP .............................................................................................. 220
VPLS ............................................................................................... 224

1
MPLS L3VPN Static PE-CE

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
Static Static

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto

2
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

3
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

4
Configurations

R1
ip route 0.0.0.0 0.0.0.0 192.168.102.10

R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

interface FastEthernet0/1
mpls ip

R4
ip route 0.0.0.0 0.0.0.0 192.168.34.3

R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

ip route vrf MSSK 4.4.4.4 255.255.255.255 192.168.34.4

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1

5
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


network 192.168.34.0 mask 255.255.255.0
redistribute static
no synchronization
exit-address-family

XR1
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

interface GigabitEthernet0/0/0/0
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

router static
vrf MSSK
address-family ipv4 unicast
1.1.1.1/32 192.168.102.1

router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK

6
rd 100:1
address-family ipv4 unicast
network 192.168.102.0/24
redistribute static

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip route
Codes: 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

Gateway of last resort is 192.168.102.10 to network 0.0.0.0

1.0.0.0/32 is subnetted, 1 subnets


C 1.1.1.1 is directly connected, Loopback0
C 192.168.102.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.102.10

R1#ping 4.4.4.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 532/658/764 ms

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 548/569/600 ms

R1#traceroute 4.4.4.4 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 4.4.4.4

7
1 192.168.102.10 4 msec 184 msec 188 msec
2 192.168.101.2 [MPLS: Labels 16/21 Exp 0] 600 msec 560 msec 564 msec
3 192.168.34.3 [MPLS: Label 21 Exp 0] 564 msec 472 msec 472 msec
4 192.168.34.4 660 msec 656 msec 664 msec

R4#sh ip route
Codes: 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

Gateway of last resort is 192.168.34.3 to network 0.0.0.0

4.0.0.0/32 is subnetted, 1 subnets


C 4.4.4.4 is directly connected, Loopback0
C 192.168.34.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 192.168.34.3

R4#ping 1.1.1.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 628/672/752 ms

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 320/656/856 ms

R4#traceroute 1.1.1.1 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 132 msec 184 msec 188 msec


2 192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 872 msec 660 msec 660 msec
3 192.168.101.10 [MPLS: Label 16003 Exp 0] 688 msec 660 msec 564 msec
4 192.168.102.1 692 msec 656 msec 564 msec

8
R3#sh ip route vrf MSSK static
4.0.0.0/32 is subnetted, 1 subnets
S 4.4.4.4 [1/0] via 192.168.34.4

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 277, main routing table version 277
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 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
Bitfield cache entries: current 1 (at peak 2) using 32 bytes of memory
BGP using 1508 total bytes of memory
BGP activity 12/8 prefixes, 14/10 paths, scan interval 15 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 2089 4072 277 0 0 2d19h 2

R3#sh bgp vpnv4 unicast all


BGP table version is 277, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32 10.10.10.10 0 100 0?
*> 4.4.4.4/32 192.168.34.4 0 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 i
*>i192.168.102.0 10.10.10.10 0 100 0i

R3#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 277, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*> 4.4.4.4/32 192.168.34.4 0 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 i

Total number of prefixes 2

RP/0/0/CPU0:XR1#sh route vrf MSSK static

9
Tue Jun 24 02:12:37.292 UTC

S 1.1.1.1/32 [1/0] via 192.168.102.1, 00:03:47


RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary
Tue Jun 24 02:12:39.952 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 35
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 35 35 35 35 35 35

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 4073 2089 35 0 0 1d10h 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Tue Jun 24 02:12:41.002 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 35
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 0 32768 ?
*>i4.4.4.4/32 3.3.3.3 0 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0i
*> 192.168.102.0/24 0.0.0.0 0 32768 i

Processed 4 prefixes, 4 paths

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast neighbors 3.3.3.3 advertised-routes


Tue Jun 24 02:12:43.012 UTC
Network Next Hop From AS Path
Route Distinguisher: 100:1
1.1.1.1/32 10.10.10.10 Local ?
192.168.102.0/24 10.10.10.10 Local i

10
Processed 2 prefixes, 2 paths

R3#debug mpls packets


MPLS packet debugging is on
R3#
*Mar 1 03:40:12.883: MPLS: Fa0/0: recvd: CoS=0, TTL=253, Label(s)=19
*Mar 1 03:40:12.883: MPLS: Fa0/1: xmit: (no label)
*Mar 1 03:40:13.011: MPLS: Fa0/0: recvd: CoS=0, TTL=253, Label(s)=19
*Mar 1 03:40:13.011: MPLS: Fa0/1: xmit: (no label)
*Mar 1 03:40:13.083: MPLS: Fa0/0: recvd: CoS=0, TTL=253, Label(s)=19
*Mar 1 03:40:13.083: MPLS: Fa0/1: xmit: (no label)
*Mar 1 03:40:13.151: MPLS: Fa0/0: recvd: CoS=0, TTL=253, Label(s)=19
*Mar 1 03:40:13.151: MPLS: Fa0/1: xmit: (no label)
*Mar 1 03:40:13.207: MPLS: Fa0/0: recvd: CoS=0, TTL=253, Label(s)=19
*Mar 1 03:40:13.207: MPLS: Fa0/1: xmit: (no label)

11
MPLS L3VPN RIPv2 PE-CE

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
RIPv2 RIPv2

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto

12
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

13
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

14
Configurations

R1
router rip
version 2
network 1.0.0.0
network 192.168.102.0
no auto-summary

R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

interface FastEthernet0/1
mpls ip

R4
router rip
version 2
network 4.0.0.0
network 192.168.34.0
no auto-summary

R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0

15
network 192.168.23.3 0.0.0.0 area 0

router rip

address-family ipv4 vrf MSSK


redistribute bgp 1 metric 1
network 192.168.34.0
no auto-summary
version 2
exit-address-family

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip

XR1
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

interface GigabitEthernet0/0/0/0
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

router rip
vrf MSSK

16
interface GigabitEthernet0/0/0/0

redistribute bgp 1

router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute rip

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip route rip


4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [120/2] via 192.168.102.10, 00:00:41, FastEthernet0/0
R 192.168.34.0/24 [120/1] via 192.168.102.10, 00:00:41, FastEthernet0/0

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 568/748/848 ms

R1#traceroute 4.4.4.4 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 4 msec 188 msec 208 msec


2 192.168.101.2 [MPLS: Labels 16/21 Exp 0] 752 msec 752 msec 752 msec
3 192.168.34.3 [MPLS: Label 21 Exp 0] 572 msec 560 msec 564 msec
4 192.168.34.4 748 msec 788 msec 664 msec

R4#sh ip route rip

17
1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/1] via 192.168.34.3, 00:00:08, FastEthernet0/0
R 192.168.102.0/24 [120/1] via 192.168.34.3, 00:00:08, FastEthernet0/0

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 568/618/664 ms

R4#traceroute 1.1.1.1 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 220 msec 188 msec 188 msec


2 192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 564 msec 692 msec 564 msec
3 192.168.101.10 [MPLS: Label 16003 Exp 0] 660 msec 660 msec 756 msec
4 192.168.102.1 596 msec 756 msec 564 msec

R3#sh ip route vrf MSSK rip


4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [120/1] via 192.168.34.4, 00:00:22, FastEthernet0/1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 29, main routing table version 29
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
2 BGP extended community entries using 84 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
Bitfield cache entries: current 1 (at peak 2) using 32 bytes of memory
BGP using 1568 total bytes of memory
BGP activity 8/4 prefixes, 10/6 paths, scan interval 15 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 30 55 29 0 0 00:37:25 2

R3#sh bgp vpnv4 unicast all


BGP table version is 29, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

18
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32 10.10.10.10 1 100 0?
*> 4.4.4.4/32 192.168.34.4 1 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?
*>i192.168.102.0 10.10.10.10 0 100 0?

R3#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 29, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*> 4.4.4.4/32 192.168.34.4 1 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

RP/0/0/CPU0:XR1#sh route vrf MSSK rip


Sun Jun 22 15:56:17.664 UTC

R 1.1.1.1/32 [120/1] via 192.168.102.1, 00:02:13, GigabitEthernet0/0/0/0


RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary
Sun Jun 22 15:56:25.834 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 25
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 25 25 25 25 25 25

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 56 30 25 0 0 00:21:17 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Sun Jun 22 15:56:26.924 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active

19
Table ID: 0x0 RD version: 0
BGP main routing table version 25
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 1 32768 ?
*>i4.4.4.4/32 3.3.3.3 1 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 4 prefixes, 4 paths


RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast neighbors 3.3.3.3 advertised-routes
Sun Jun 22 15:56:29.873 UTC
Network Next Hop From AS Path
Route Distinguisher: 100:1
1.1.1.1/32 10.10.10.10 Local ?
192.168.102.0/24 10.10.10.10 Local ?

Processed 2 prefixes, 2 paths

20
MPLS L3VPN OSPF PE-CE

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
OSPF OSPF

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto

21
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

22
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

23
Configurations

R1
router ospf 2
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 192.168.102.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.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

interface FastEthernet0/1
mpls ip

R4
router ospf 2
router-id 4.4.4.4
log-adjacency-changes
network 4.4.4.4 0.0.0.0 area 0
network 192.168.34.4 0.0.0.0 area 0

R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0

24
network 192.168.23.3 0.0.0.0 area 0

router ospf 2 vrf MSSK


redistribute bgp 1 subnets
network 192.168.34.3 0.0.0.0 area 0

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute ospf 2 vrf MSSK
no synchronization
exit-address-family

XR1
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

interface GigabitEthernet0/0/0/0
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

router ospf 2
vrf MSSK
redistribute bgp 1
area 0
interface GigabitEthernet0/0/0/0

25
router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute ospf 2

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


10.10.10.10 1 FULL/BDR 00:00:38 192.168.102.10 FastEthernet0/0

R1#sh ip route ospf


4.0.0.0/32 is subnetted, 1 subnets
O E2 4.4.4.4 [110/2] via 192.168.102.10, 00:45:30, FastEthernet0/0
O E2 192.168.34.0/24 [110/1] via 192.168.102.10, 00:45:30, FastEthernet0/0

R1#sh ip ospf database

OSPF Router with ID (1.1.1.1) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 724 0x8000000A 0x00AFB2 2
10.10.10.10 10.10.10.10 2555 0x80000009 0x000825 1

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.102.1 1.1.1.1 724 0x80000008 0x0069C8

Type-5 AS External Link States

26
Link ID ADV Router Age Seq# Checksum Tag
4.4.4.4 10.10.10.10 2555 0x80000008 0x00061B 3489660929
192.168.34.0 10.10.10.10 2555 0x80000008 0x008B1B 3489660929

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 480/649/756 ms

R1#traceroute 4.4.4.4 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 36 msec 88 msec 188 msec


2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 664 msec 752 msec 660 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 376 msec 472 msec 376 msec
4 192.168.34.4 848 msec 660 msec 656 msec

R4#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


192.168.34.3 1 FULL/DR 00:00:35 192.168.34.3 FastEthernet0/0

R4#sh ip route ospf


1.0.0.0/32 is subnetted, 1 subnets
O E2 1.1.1.1 [110/2] via 192.168.34.3, 00:54:14, FastEthernet0/0
O E2 192.168.102.0/24 [110/1] via 192.168.34.3, 00:54:14, FastEthernet0/0

R4#sh ip ospf database

OSPF Router with ID (4.4.4.4) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


4.4.4.4 4.4.4.4 860 0x8000000A 0x007F4B 2
192.168.34.3 192.168.34.3 748 0x8000000A 0x00806C 1

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.34.3 192.168.34.3 1000 0x80000008 0x00E195

27
Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag


1.1.1.1 192.168.34.3 1255 0x80000002 0x004409 3489660929
192.168.102.0 192.168.34.3 1255 0x80000002 0x005032 3489660929

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 472/607/672 ms

R4#traceroute 1.1.1.1 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 228 msec 184 msec 184 msec


2 192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 660 msec 660 msec 664 msec
3 192.168.101.10 [MPLS: Label 16003 Exp 0] 752 msec 660 msec 660 msec
4 192.168.102.1 560 msec 660 msec 596 msec

R3#sh ip route vrf MSSK ospf

Routing Table: MSSK

4.0.0.0/32 is subnetted, 1 subnets


O 4.4.4.4 [110/2] via 192.168.34.4, 04:11:44, FastEthernet0/1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 21, main routing table version 21
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
3 BGP extended community entries using 120 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1604 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 15 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 129 255 21 0 0 04:08:31 2

28
R3#sh bgp vpnv4 unicast all
BGP table version is 21, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32 10.10.10.10 2 100 0?
*> 4.4.4.4/32 192.168.34.4 2 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?
*>i192.168.102.0 10.10.10.10 0 100 0?

R3#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 21, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*> 4.4.4.4/32 192.168.34.4 2 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

R3#sh ip vrf
Name Default RD Interfaces
MSSK 100:1 Fa0/1

RP/0/0/CPU0:XR1#sh route vrf MSSK ospf


Thu Jun 19 12:52:32.714 UTC

O 1.1.1.1/32 [110/2] via 192.168.102.1, 02:03:06, GigabitEthernet0/0/0/0

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary


Thu Jun 19 12:52:36.424 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 10
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

29
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 10 10 10 10 10 10

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 256 129 10 0 0 02:05:46 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Thu Jun 19 12:52:37.074 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 10
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 2 32768 ?
*>i4.4.4.4/32 3.3.3.3 2 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 4 prefixes, 4 paths

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast neighbors 3.3.3.3 advertised-routes


Thu Jun 19 12:52:39.094 UTC
Network Next Hop From AS Path
Route Distinguisher: 100:1
1.1.1.1/32 10.10.10.10 Local ?
192.168.102.0/24 10.10.10.10 Local ?

Processed 2 prefixes, 2 paths


RP/0/0/CPU0:XR1#sh vrf MSSK
Thu Jun 19 12:52:41.274 UTC
VRF RD RT AFI SAFI
MSSK 100:1
import 100:1 IPV4 Unicast
export 100:1 IPV4 Unicast

30
MPLS L3VPN OSPF Sham-link
Network Diagram
Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
OSPF OSPF

Lo0 1.1.1.1/32 Lo0 4.4.4.4/32


R1 R4
192.168.14.0/24

AS200
Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

interface FastEthernet0/0
ip address 192.168.14.1 255.255.255.0
speed 100
full-duplex
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

31
interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

interface FastEthernet0/1
ip address 192.168.14.4 255.255.255.0
speed 100
full-duplex
no shutdown

32
XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

33
Configurations

Now, we have connected a new link between the CEs with the subnet 192.168.14.0/24

Let us check what happened

R1#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


4.4.4.4 1 FULL/DR 00:00:34 192.168.14.4 FastEthernet0/1
10.10.10.10 1 FULL/BDR 00:00:36 192.168.102.10 FastEthernet0/0

R1#sh ip route ospf


4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/2] via 192.168.14.4, 00:01:30, FastEthernet0/1
O 192.168.34.0/24 [110/2] via 192.168.14.4, 00:01:30, FastEthernet0/1

We can see now that R1 prefers the backdoor link to reach R4 loopback 0 network

R4#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


1.1.1.1 1 FULL/BDR 00:00:38 192.168.14.1 FastEthernet0/1
192.168.34.3 1 FULL/DR 00:00:39 192.168.34.3 FastEthernet0/0

R4#sh ip route ospf


1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/2] via 192.168.14.1, 00:02:00, FastEthernet0/1
O 192.168.102.0/24 [110/11] via 192.168.14.1, 00:02:00, FastEthernet0/1

R1#traceroute 4.4.4.4 source lo0

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.14.4 32 msec 64 msec 60 msec

R1#sh ip ospf database

OSPF Router with ID (1.1.1.1) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 200 0x80000005 0x00B2B0 3
4.4.4.4 4.4.4.4 201 0x80000005 0x00A622 3
10.10.10.10 10.10.10.10 546 0x80000003 0x00141F 1

34
192.168.34.3 192.168.34.3 613 0x80000003 0x008E65 1

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.14.4 4.4.4.4 201 0x80000001 0x006D2D
192.168.34.3 192.168.34.3 793 0x80000001 0x00EF8E
192.168.102.1 1.1.1.1 797 0x80000001 0x0077C1

R4#traceroute 1.1.1.1 source lo0

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.14.1 60 msec 60 msec 64 msec

R4#sh ip ospf database

OSPF Router with ID (4.4.4.4) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 253 0x80000005 0x00B2B0 3
4.4.4.4 4.4.4.4 252 0x80000005 0x00A622 3
10.10.10.10 10.10.10.10 597 0x80000003 0x00141F 1
192.168.34.3 192.168.34.3 664 0x80000003 0x008E65 1

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.14.4 4.4.4.4 252 0x80000001 0x006D2D
192.168.34.3 192.168.34.3 844 0x80000001 0x00EF8E
192.168.102.1 1.1.1.1 849 0x80000001 0x0077C1

R1
interface FastEthernet0/1
ip address 192.168.14.1 255.255.255.0
ip ospf cost 1000
ip ospf 2 area 0
speed 100
full-duplex

R4
interface FastEthernet0/1
ip address 192.168.14.4 255.255.255.0

35
ip ospf cost 1000
ip ospf 2 area 0
speed 100
full-duplex

R3
interface Loopback1
ip vrf forwarding MSSK
ip address 33.33.33.33 255.255.255.255

router ospf 2 vrf MSSK


log-adjacency-changes
area 0 sham-link 33.33.33.33 11.11.11.11
redistribute bgp 1 subnets
network 192.168.34.3 0.0.0.0 area 0

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute ospf 2 vrf MSSK
no synchronization
network 33.33.33.33 mask 255.255.255.255
exit-address-family

RP/0/0/CPU0:XR1
interface Loopback1
vrf MSSK
ipv4 address 11.11.11.11 255.255.255.255

router ospf 2
vrf MSSK
redistribute bgp 1
area 0
sham-link 11.11.11.11 33.33.33.33
cost 1

interface GigabitEthernet0/0/0/0

36
router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
network 11.11.11.11/32
redistribute ospf 2

R3#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


2.2.2.2 0 FULL/ - 00:00:34 192.168.23.2 FastEthernet0/0
10.10.10.10 0 FULL/ - - 11.11.11.11 OSPF_SL0
4.4.4.4 1 FULL/DR 00:00:39 192.168.34.4 FastEthernet0/1

RP/0/0/CPU0:XR1#sh ospf vrf MSSK neighbor


Sun Apr 27 14:19:16.598 UTC

* Indicates MADJ interface

Neighbors for OSPF 2, VRF MSSK

Neighbor ID Pri State Dead Time Address Interface


192.168.34.3 1 FULL/ - - 33.33.33.33 OSPF_SL0
Neighbor is up for 00:03:14
1.1.1.1 1 FULL/BDR 00:00:39 192.168.102.1 GigabitEthernet0/0/0/0
Neighbor is up for 00:03:49

Total neighbor count: 2

R1#sh ip route ospf


33.0.0.0/32 is subnetted, 1 subnets
O E2 33.33.33.33 [110/1] via 192.168.102.10, 00:03:56, FastEthernet0/0
4.0.0.0/32 is subnetted, 1 subnets
O 4.4.4.4 [110/13] via 192.168.102.10, 00:03:30, FastEthernet0/0
11.0.0.0/32 is subnetted, 1 subnets
O E2 11.11.11.11 [110/1] via 192.168.102.10, 00:03:30, FastEthernet0/0
O 192.168.34.0/24 [110/12] via 192.168.102.10, 00:03:30, FastEthernet0/0

R1#ping 4.4.4.4 source lo0

37
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/76/124 ms

R1#traceroute 4.4.4.4 source lo0

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 32 msec 64 msec 0 msec


2 192.168.101.2 [MPLS: Labels 17/25 Exp 0] 68 msec 52 msec 44 msec
3 192.168.34.3 [MPLS: Label 25 Exp 0] 52 msec 64 msec 32 msec
4 192.168.34.4 64 msec 64 msec 64 msec

R1#sh ip ospf database

OSPF Router with ID (1.1.1.1) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 267 0x80000009 0x00F278 3
4.4.4.4 4.4.4.4 267 0x8000000A 0x0034A3 3
10.10.10.10 10.10.10.10 232 0x8000000C 0x00245D 2
192.168.34.3 192.168.34.3 233 0x80000006 0x005D4F 2

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.14.4 4.4.4.4 272 0x80000001 0x006D2D
192.168.34.4 4.4.4.4 272 0x80000001 0x007487
192.168.102.10 10.10.10.10 264 0x80000003 0x000AFF

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag


11.11.11.11 192.168.34.3 243 0x80000001 0x006EB8 3489660929
33.33.33.33 10.10.10.10 262 0x80000005 0x004EE2 3489660929
33.33.33.33 192.168.34.3 267 0x80000003 0x00725A 3489660929

R4#sh ip route ospf


1.0.0.0/32 is subnetted, 1 subnets
O 1.1.1.1 [110/4] via 192.168.34.3, 00:03:58, FastEthernet0/0
33.0.0.0/32 is subnetted, 1 subnets
O E2 33.33.33.33 [110/1] via 192.168.34.3, 00:04:24, FastEthernet0/0

38
11.0.0.0/32 is subnetted, 1 subnets
O E2 11.11.11.11 [110/1] via 192.168.34.3, 00:04:13, FastEthernet0/0
O 192.168.102.0/24 [110/3] via 192.168.34.3, 00:03:58, FastEthernet0/0
R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 160/192/224 ms

R4#traceroute 1.1.1.1 source lo0

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 68 msec 40 msec 64 msec


2 192.168.23.2 [MPLS: Labels 16/16004 Exp 0] 176 msec 176 msec 192 msec
3 192.168.101.10 [MPLS: Label 16004 Exp 0] 216 msec 160 msec 192 msec
4 192.168.102.1 180 msec 192 msec 184 msec

R4#sh ip ospf database

OSPF Router with ID (4.4.4.4) (Process ID 2)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 294 0x80000009 0x00F278 3
4.4.4.4 4.4.4.4 293 0x8000000A 0x0034A3 3
10.10.10.10 10.10.10.10 260 0x8000000C 0x00245D 2
192.168.34.3 192.168.34.3 258 0x80000006 0x005D4F 2

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.14.4 4.4.4.4 298 0x80000001 0x006D2D
192.168.34.4 4.4.4.4 298 0x80000001 0x007487
192.168.102.10 10.10.10.10 291 0x80000003 0x000AFF

Type-5 AS External Link States

Link ID ADV Router Age Seq# Checksum Tag


11.11.11.11 192.168.34.3 269 0x80000001 0x006EB8 3489660929
33.33.33.33 10.10.10.10 290 0x80000005 0x004EE2 3489660929
33.33.33.33 192.168.34.3 293 0x80000003 0x00725A 3489660929

39
R1#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


4.4.4.4 1 FULL/DR 00:00:37 192.168.14.4 FastEthernet0/1
10.10.10.10 1 FULL/DR 00:00:39 192.168.102.10 FastEthernet0/0

R4#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


1.1.1.1 1 FULL/BDR 00:00:36 192.168.14.1 FastEthernet0/1
192.168.34.3 1 FULL/BDR 00:00:32 192.168.34.3 FastEthernet0/0

R1#sh ip ospf interface fastEthernet 0/1 | inc Cost


Process ID 2, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 1000

R4#sh ip ospf interface fastEthernet 0/1 | inc Cost


Process ID 2, Router ID 4.4.4.4, Network Type BROADCAST, Cost: 1000

40
MPLS L3VPN EIGRP PE-CE

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
EIGRP EIGRP

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto

41
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

42
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

43
Configurations

R1
router eigrp 100
network 1.1.1.1 0.0.0.0
network 192.168.102.1 0.0.0.0
no auto-summary

R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

interface FastEthernet0/1
mpls ip

R4
router eigrp 100
network 4.4.4.4 0.0.0.0
network 192.168.34.4 0.0.0.0
no auto-summary

R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

44
router eigrp 1
address-family ipv4 vrf MSSK
redistribute bgp 1
network 192.168.34.3 0.0.0.0
default-metric 1000 1000 255 1 1500
no auto-summary
autonomous-system 100

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute eigrp 100

XR1
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

interface GigabitEthernet0/0/0/0
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

router eigrp 1
vrf MSSK
address-family ipv4
default-metric 1000 1000 255 1 1500
autonomous-system 100

45
redistribute bgp 1
interface GigabitEthernet0/0/0/0

router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute eigrp 100

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip route eigrp


4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/412160] via 192.168.102.10, 00:01:34, FastEthernet0/0
D 192.168.34.0/24 [90/284160] via 192.168.102.10, 00:01:34, FastEthernet0/0

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 508/665/936 ms

R1#traceroute 4.4.4.4 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 192 msec 92 msec 88 msec


2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 692 msec 972 msec 664 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 468 msec 564 msec 372 msec
4 192.168.34.4 564 msec 564 msec 784 msec

R4#sh ip route eigrp


1.0.0.0/32 is subnetted, 1 subnets

46
D 1.1.1.1 [90/156416] via 192.168.34.3, 00:01:39, FastEthernet0/0
D 192.168.102.0/24 [90/28416] via 192.168.34.3, 00:01:39, FastEthernet0/0

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 280/372/448 ms

R4#traceroute 1.1.1.1 source lo0 numeric

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 36 msec 188 msec 92 msec


2 192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 468 msec 472 msec 400 msec
3 192.168.101.10 [MPLS: Label 16003 Exp 0] 380 msec 280 msec 752 msec
4 192.168.102.1 280 msec 472 msec 376 msec

R3#sh ip eigrp vrf MSSK interfaces


IP-EIGRP interfaces for process 100

Xmit Queue Mean Pacing Time Multicast Pending


Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Fa0/1 1 0/0 298 0/1 1352 0

R3#sh ip eigrp vrf MSSK neighbors


IP-EIGRP neighbors for process 100
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.34.4 Fa0/1 10 00:09:17 298 1788 0 3

R3#sh ip route vrf MSSK eigrp


4.0.0.0/32 is subnetted, 1 subnets
D 4.4.4.4 [90/156160] via 192.168.34.4, 00:09:22, FastEthernet0/1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 9, main routing table version 9
4 network entries using 560 bytes of memory
4 path entries using 272 bytes of memory
5/4 BGP path/bestpath attribute entries using 620 bytes of memory
4 BGP extended community entries using 240 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

47
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 1724 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 15 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 11 20 9 0 0 00:12:26 2

R3#sh bgp vpnv4 unicast all


BGP table version is 9, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32 10.10.10.10 2570240 100 0?
*> 4.4.4.4/32 192.168.34.4 156160 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?
*>i192.168.102.0 10.10.10.10 0 100 0?

R3#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 9, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*> 4.4.4.4/32 192.168.34.4 156160 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

RP/0/0/CPU0:XR1#sh eigrp vrf MSSK interfaces


Sun Jun 22 15:42:32.111 UTC

IPv4-EIGRP Interfaces for AS(100)

Xmit Queue Mean Pacing Time Multicast Pending


Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer Routes
Gi0/0/0/0 1 0/0 69 0/10 320 0

RP/0/0/CPU0:XR1#sh eigrp vrf MSSK neighbors


Sun Jun 22 15:42:33.631 UTC

IPv4-EIGRP Neighbors for AS(100) VRF MSSK

48
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.102.1 Gi0/0/0/0 13 00:02:24 69 414 0 9

RP/0/0/CPU0:XR1#sh route vrf MSSK eigrp


Sun Jun 22 15:42:36.431 UTC

D 1.1.1.1/32 [90/2570240] via 192.168.102.1, 00:02:09, GigabitEthernet0/0/0/0


RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary
Sun Jun 22 15:42:39.790 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 8
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 8 8 8 8 8 8

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 21 12 8 0 0 00:07:31 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Sun Jun 22 15:42:41.700 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 8
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 2570240 32768 ?
*>i4.4.4.4/32 3.3.3.3 156160 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 4 prefixes, 4 paths


RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast neighbors 3.3.3.3 advertised-routes
Sun Jun 22 15:42:43.790 UTC

49
Network Next Hop From AS Path
Route Distinguisher: 100:1
1.1.1.1/32 10.10.10.10 Local ?
192.168.102.0/24 10.10.10.10 Local ?

Processed 2 prefixes, 2 paths

50
MPLS L3VPN BGP PE-CE

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
BGP BGP

AS2 R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4 AS2

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0

51
duplex auto
speed auto
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

52
no shutdown

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

53
Configurations

R1
router bgp 2
no bgp default ipv4-unicast
neighbor 192.168.102.10 remote-as 1
address-family ipv4 unicast
neighbor 192.168.102.10 activate
network 1.1.1.1 mask 255.255.255.255

R2
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

interface FastEthernet0/1
mpls ip

R4
router bgp 2
no bgp default ipv4-unicast
neighbor 192.168.34.3 remote-as 1
address-family ipv4 unicast
neighbor 192.168.34.3 activate
network 4.4.4.4 mask 255.255.255.255

R3
ip vrf MSSK
rd 100:1
route-target export 100:1
route-target import 100:1

mpls label protocol ldp


mpls ldp router-id Loopback0 force

interface FastEthernet0/0
mpls ip

router ospf 1

54
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


neighbor 192.168.34.4 remote-as 2
neighbor 192.168.34.4 activate

XR1
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

interface GigabitEthernet0/0/0/0
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

router bgp 1
address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

55
vrf MSSK
rd 100:1
address-family ipv4 unicast

neighbor 192.168.102.1
remote-as 2
address-family ipv4 unicast

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip bgp summary


BGP router identifier 1.1.1.1, local AS number 2
BGP table version is 2, main routing table version 2
1 network entries using 120 bytes of memory
1 path entries using 52 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 452 total bytes of memory
BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.102.10 4 1 3 5 2 0 0 00:00:31 0

As can be seen that there are no routes received from XR1 (PE)

RP/0/0/CPU0:XR1#sh bgp vrf MSSK summary


Tue Jun 24 02:52:41.698 UTC
BGP VRF MSSK, state: Active
BGP Route Distinguisher: 100:1
VRF ID: 0x60000002
BGP router identifier 10.10.10.10, local AS number 1
BGP table state: Active
Table ID: 0xe0000002 RD version: 41
BGP main routing table version 41

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 41 41 41 41 41 41

Some configured eBGP neighbors (under default or non-default vrfs)

56
do not have both inbound and outbound policies configured for IPv4 Unicast
address family. These neighbors will default to sending and/or
receiving no routes and are marked with '!' in the output below.
Use the 'show bgp neighbor <nbr_address>' command for details.

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


192.168.102.1 0 2 6 3 41 0 0 00:00:58 0!

We can see the ! mark which means that no routes will advertised or received from this
neighbor due to the default policy which will drop all prefixes

RP/0/0/CPU0:XR1#sh bgp vrf MSSK neighbors 192.168.102.1 | include polic


Tue Jun 24 02:53:15.675 UTC
eBGP neighbor with no inbound or outbound policy; defaults to 'drop'
No policy: 1, Failed RT match: 0
By ORF policy: 0, By policy: 0

So , we have to define a route-policy that will allow the routes exchange

XR1
route-policy PASS
pass

router bgp 1
vrf MSSK
neighbor 192.168.102.1
address-family ipv4 unicast
route-policy PASS in
route-policy PASS out

RP/0/0/CPU0:XR1#sh bgp vrf MSSK summary


Tue Jun 24 02:54:28.420 UTC
BGP VRF MSSK, state: Active
BGP Route Distinguisher: 100:1
VRF ID: 0x60000002
BGP router identifier 10.10.10.10, local AS number 1
BGP table state: Active
Table ID: 0xe0000002 RD version: 42
BGP main routing table version 42

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 42 42 42 42 42 42

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


192.168.102.1 0 2 10 6 42 0 0 00:02:45 1

57
R1#sh ip bgp summary
BGP router identifier 1.1.1.1, local AS number 2
BGP table version is 2, main routing table version 2
1 network entries using 120 bytes of memory
1 path entries using 52 bytes of memory
2/1 BGP path/bestpath attribute entries using 248 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 452 total bytes of memory
BGP activity 1/0 prefixes, 1/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.102.10 4 1 6 10 2 0 0 00:04:52 0

Still we do not receive any routes , what new about IOS XR is that we need to add a
/32 route for the labled next-hop address

XR1
router static
vrf MSSK
address-family ipv4 unicast
192.168.102.1/32 GigabitEthernet0/0/0/0

And still there are no routes , let us turn some debugging on R4 and softly clear the
session

R4#debug ip bgp updates


BGP updates debugging is on for address family: IPv4 Unicast
R4#clear ip bgp * soft in
R4#
*Mar 3 21:13:29.218: BGP(0): 192.168.34.3 rcv UPDATE w/ attr: nexthop
192.168.34.3, origin i, originator 0.0.0.0, path 1 2, community , extended community
*Mar 3 21:13:29.226: BGP(0): 192.168.34.3 rcv UPDATE about 1.1.1.1/32 -- DENIED
due to: AS-PATH contains our own AS;

So , R4 will not install any updates originated from R1 because it’s originated from the
same AS R4 resides in

R3
router bgp 1
address-family ipv4 vrf MSSK
neighbor 192.168.34.4 as-override

*Mar 3 21:15:15.974: BGP(0): 192.168.34.3 send UPDATE (format) 4.4.4.4/32, next


192.168.34.4, metric 0, path Local

58
*Mar 3 21:15:16.062: BGP(0): 192.168.34.3 rcvd UPDATE w/ attr: nexthop
192.168.34.3, origin i, path 1 1
*Mar 3 21:15:16.066: BGP(0): 192.168.34.3 rcvd 1.1.1.1/32
*Mar 3 21:15:16.074: BGP(0): Revise route installing 1 of 1 routes for 1.1.1.1/32 ->
192.168.34.3(main) to main IP table

XR1
router bgp 1
vrf MSSK
neighbor 192.168.102.1
address-family ipv4 unicast
as-override

R1#sh ip bgp summary


BGP router identifier 1.1.1.1, local AS number 2
BGP table version is 3, main routing table version 3
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 772 total bytes of memory
BGP activity 2/0 prefixes, 2/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.102.10 4 1 16 24 3 0 0 00:18:14 1
R1#sh ip bgp
BGP table version is 3, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 192.168.102.10 011i

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 500/611/880 ms

And now we can reach R4 loopback 0 network

59
Note that we cannot reach using the physical links between our CEs and PEs because
we did not advertise them into BGP

R4#sh ip bgp
BGP table version is 7, 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 Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 192.168.34.3 011i
*> 4.4.4.4/32 0.0.0.0 0 32768 i

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 576/688/784 ms

R1#ping 4.4.4.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)

R3
router bgp 1
address-family ipv4 vrf MSSK
network 192.168.34.0 mask 255.255.255.0

XR1
router bgp 1
vrf MSSK
address-family ipv4 unicast
network 192.168.102.0/24

R1#ping 4.4.4.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 568/684/772 ms

60
MPLS Tunneling

Network Diagram

Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24
BGP BGP

AS10 R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4 AS40

Initial Configurations

R1
interface Loopback0
ip address 1.1.1.1 255.255.255.255

interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

R2
interface Loopback0
ip address 2.2.2.2 255.255.255.255

interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto
speed auto
mpls ip
no shutdown

61
interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

R3
interface Loopback0
ip address 3.3.3.3 255.255.255.255

interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
mpls ip
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

R4
interface Loopback0
ip address 4.4.4.4 255.255.255.255

interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

XR1
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.0

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full
no shutdown

interface GigabitEthernet0/0/0/2
cdp

62
ipv4 address 192.168.101.10 255.255.255.0
no shutdown

63
Configurations

R1
router bgp 10
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.102.10 remote-as 1

address-family ipv4
neighbor 192.168.102.10 activate
no auto-summary
no synchronization
network 1.1.1.1 mask 255.255.255.255
exit-address-family

R4
router bgp 40
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 192.168.34.3 remote-as 1

address-family ipv4
neighbor 192.168.34.3 activate
no auto-summary
no synchronization
network 4.4.4.4 mask 255.255.255.255
exit-address-family

R3
router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0
neighbor 192.168.34.4 remote-as 40

address-family ipv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 next-hop-self
neighbor 192.168.34.4 activate
no auto-summary
no synchronization
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both

64
exit-address-family

address-family ipv4 vrf MSSK


no synchronization
exit-address-family

RP/0/0/CPU0:XR1
router bgp 1
address-family ipv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family ipv4 unicast
next-hop-self

neighbor 192.168.102.1
remote-as 10
address-family ipv4 unicast
route-policy PASS_CE in
route-policy PASS_CE out

route-policy PASS_CE
pass
end-policy

Verifications

R2#sh mpls interfaces


Interface IP Tunnel Operational
FastEthernet0/0 Yes (ldp) No Yes
FastEthernet0/1 Yes (ldp) No Yes

R2#sh mpls ldp neighbor


Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 2.2.2.2:0
TCP connection: 10.10.10.10.20151 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 283/276; Downstream
Up time: 04:00:47
LDP discovery sources:
FastEthernet0/0, Src IP addr: 192.168.101.10
Addresses bound to peer LDP Ident:
10.10.10.10 192.168.101.10 192.168.102.10
Peer LDP Ident: 3.3.3.3:0; Local LDP Ident 2.2.2.2:0
TCP connection: 3.3.3.3.12506 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 261/266; Downstream
Up time: 03:41:48
LDP discovery sources:

65
FastEthernet0/1, Src IP addr: 192.168.23.3
Addresses bound to peer LDP Ident:
192.168.23.3 3.3.3.3 192.168.34.3

R3#sh mpls interfaces


Interface IP Tunnel Operational
FastEthernet0/0 Yes (ldp) No Yes

R3#sh mpls ldp neighbor


Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
TCP connection: 2.2.2.2.646 - 3.3.3.3.12506
State: Oper; Msgs sent/rcvd: 266/261; Downstream
Up time: 03:42:03
LDP discovery sources:
FastEthernet0/0, Src IP addr: 192.168.23.2
Addresses bound to peer LDP Ident:
192.168.101.2 192.168.23.2 2.2.2.2

RP/0/0/CPU0:XR1#show mpls interfaces


Sun Apr 27 15:57:58.622 UTC
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/2 Yes No No Yes

RP/0/0/CPU0:XR1#show mpls ldp neighbor


Sun Apr 27 15:58:00.832 UTC

Peer LDP Identifier: 2.2.2.2:0


TCP connection: 2.2.2.2:646 - 10.10.10.10:20151
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 276/284; Downstream-Unsolicited
Up time: 03:53:32
LDP Discovery Sources:
GigabitEthernet0/0/0/2
Addresses bound to this peer:
2.2.2.2 192.168.23.2 192.168.101.2

R1#sh ip bgp summary


BGP router identifier 1.1.1.1, local AS number 10
BGP table version is 5, main routing table version 5
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH 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

66
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 772 total bytes of memory
BGP activity 2/0 prefixes, 3/1 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.102.10 4 1 16 17 5 0 0 00:12:05 1
R1#sh ip bgp
BGP table version is 5, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 192.168.102.10 0 1 40 i

R4#sh ip bgp summary


BGP router identifier 4.4.4.4, local AS number 40
BGP table version is 5, main routing table version 5
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
1 BGP AS-PATH 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
Bitfield cache entries: current 1 (at peak 1) using 32 bytes of memory
BGP using 772 total bytes of memory
BGP activity 3/1 prefixes, 3/1 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


192.168.34.3 4 1 20 18 5 0 0 00:13:17 1
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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 192.168.34.3 0 1 10 i
*> 4.4.4.4/32 0.0.0.0 0 32768 i

R3#sh ip bgp summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 5, main routing table version 5
2 network entries using 240 bytes of memory
2 path entries using 104 bytes of memory

67
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
2 BGP AS-PATH entries using 48 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
Bitfield cache entries: current 2 (at peak 3) using 64 bytes of memory
BGP using 828 total bytes of memory
BGP activity 15/13 prefixes, 42/40 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 271 284 5 0 0 00:02:58 1
192.168.34.4 4 40 18 20 5 0 0 00:13:33 1
R3#sh ip bgp
BGP table version is 5, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


*>i1.1.1.1/32 10.10.10.10 0 100 0 10 i
*> 4.4.4.4/32 192.168.34.4 0 0 40 i

RP/0/0/CPU0:XR1#sh bgp ipv4 unicast summary


Sun Apr 27 15:59:06.457 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0xe0000000 RD version: 5
BGP main routing table version 5
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 5 5 5 5 5 5

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 284 272 5 0 0 00:03:09 1
192.168.102.1 0 10 17 17 5 0 0 00:12:25 1

RP/0/0/CPU0:XR1#sh bgp ipv4 unicast


Sun Apr 27 15:59:07.957 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0xe0000000 RD version: 5
BGP main routing table version 5
BGP scan interval 60 secs

68
Status codes: s suppressed, d damped, h history, * valid, > best
i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 1.1.1.1/32 192.168.102.1 0 0 10 i
*>i4.4.4.4/32 3.3.3.3 0 100 0 40 i

Processed 2 prefixes, 2 paths

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 0 Fa0/0 192.168.23.2
17 16 10.10.10.10/32 0 Fa0/0 192.168.23.2
18 Pop tag 192.168.101.0/24 0 Fa0/0 192.168.23.2

RP/0/0/CPU0:XR1#show mpls forwarding


Sun Apr 27 15:59:41.095 UTC
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
16001 Pop 2.2.2.2/32 Gi0/0/0/2 192.168.101.2 12797
16002 Pop 192.168.23.0/24 Gi0/0/0/2 192.168.101.2 0
16003 17 3.3.3.3/32 Gi0/0/0/2 192.168.101.2 20720

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 172/186/192 ms

R1#traceroute 4.4.4.4 source lo0

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 32 msec 28 msec 28 msec


2 192.168.101.2 [MPLS: Label 17 Exp 0] 160 msec 96 msec 188 msec
3 192.168.23.3 128 msec 132 msec 132 msec
4 192.168.34.4 196 msec 180 msec 176 msec

R4#ping 1.1.1.1 source lo0

69
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 164/190/220 ms

R4#traceroute 1.1.1.1 source lo0

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 64 msec 64 msec 44 msec


2 192.168.23.2 [MPLS: Label 16 Exp 0] 164 msec 156 msec 160 msec
3 192.168.101.10 160 msec 160 msec 160 msec
4 192.168.102.1 188 msec 192 msec 192 msec

70
Carrier Supporting Carrier (CsC) 1

Network Diagram

AS #1

XR1 192.168.101.0/24
R2 192.168.23.0/24
R3
192.168.102.0/24

192.168.34.0/24
R1 AS #14 AS #14 R4

192.168.46.0/24
192.168.15.0/24

R5 R6
Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
no shutdown

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full
no shutdown

interface Loopback0
ip address 1.1.1.1 255.255.255.255

71
R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
no shutdown

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
no shutdown

interface Loopback0
ip address 2.2.2.2 255.255.255.255

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
no shutdown

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
no shutdown

interface Loopback0
ip address 3.3.3.3 255.255.255.255

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
no shutdown

interface FastEthernet1/1
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full
no shutdown

interface Loopback0
ip address 4.4.4.4 255.255.255.255

72
R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
duplex full
speed 100
no shutdown

interface Loopback0
ip address 5.5.5.5 255.255.255.255

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full
no shutdown

interface Loopback0
ip address 6.6.6.6 255.255.255.255

RP/0/0/CPU0:XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0

73
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
mpls bgp forwarding

interface FastEthernet1/1
vrf forwarding ABC
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 1.1.1.1 255.255.255.255

vrf definition ABC


rd 200:1

address-family ipv4
route-target export 200:1
route-target import 200:1
exit-address-family

router ospf 56 vrf ABC


router-id 1.1.1.1
redistribute bgp 14 subnets
network 192.168.15.1 0.0.0.0 area 0

router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 14
neighbor 4.4.4.4 update-source Loopback0
neighbor 192.168.102.10 remote-as 1

address-family ipv4
network 1.1.1.1 mask 255.255.255.255
neighbor 192.168.102.10 activate
neighbor 192.168.102.10 send-label
exit-address-family
address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
exit-address-family

74
address-family ipv4 vrf ABC
redistribute ospf 56
exit-address-family

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
mpls ip

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface Loopback0
ip address 2.2.2.2 255.255.255.255

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
mpls bgp forwarding

75
interface Loopback0
ip address 3.3.3.3 255.255.255.255

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


neighbor 192.168.34.4 remote-as 14
neighbor 192.168.34.4 activate
neighbor 192.168.34.4 as-override
neighbor 192.168.34.4 send-label
exit-address-family

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
mpls bgp forwarding

interface FastEthernet1/1
vrf forwarding ABC
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 4.4.4.4 255.255.255.255

76
vrf definition ABC
rd 200:1

address-family ipv4
route-target export 200:1
route-target import 200:1
exit-address-family

router ospf 56 vrf ABC


router-id 4.4.4.4
redistribute bgp 14 subnets
network 192.168.46.4 0.0.0.0 area 0

router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 14
neighbor 1.1.1.1 update-source Loopback0
neighbor 192.168.34.3 remote-as 1

address-family ipv4
network 4.4.4.4 mask 255.255.255.255
neighbor 192.168.34.3 activate
neighbor 192.168.34.3 send-label
exit-address-family

address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
exit-address-family

address-family ipv4 vrf ABC


redistribute ospf 56
exit-address-family

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
duplex full

interface Loopback0
ip address 5.5.5.5 255.255.255.255

router ospf 56
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0

77
network 192.168.15.5 0.0.0.0 area 0

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 6.6.6.6 255.255.255.255

router ospf 56
router-id 6.6.6.6
network 6.6.6.6 0.0.0.0 area 0
network 192.168.46.6 0.0.0.0 area 0

RP/0/0/CPU0:XR1
hostname XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

address-family ipv6 unicast


import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0

78
route-policy PASS_CE
pass
end-policy

router static
vrf MSSK
address-family ipv4 unicast
192.168.102.1/32 GigabitEthernet0/0/0/0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router bgp 1
address-family ipv4 unicast

address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
allocate-label all

neighbor 192.168.102.1
remote-as 14
address-family ipv4 labeled-unicast
route-policy PASS_CE in
route-policy PASS_CE out
as-override

79
mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip bgp summary


BGP router identifier 1.1.1.1, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 288 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 80 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 824 total bytes of memory
BGP activity 26/20 prefixes, 33/27 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
192.168.102.10 4 1 49 56 3 0 0 00:47:49 1

R1#sh ip bgp
BGP table version is 3, 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


*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 192.168.102.10 011i

R1#ping 4.4.4.4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 288/465/628 ms

R1#traceroute 4.4.4.4 source lo0


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)

80
1 192.168.102.10 [MPLS: Label 16005 Exp 0] 484 msec 364 msec 520 msec
2 192.168.101.2 [MPLS: Labels 17/21 Exp 0] 388 msec 360 msec 468 msec
3 192.168.34.3 [MPLS: Label 21 Exp 0] 280 msec 280 msec 308 msec
4 192.168.34.4 472 msec 560 msec 564 msec

R1#sh bgp vpnv4 unicast all summary


BGP router identifier 1.1.1.1, local AS number 14
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 AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 80 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 1624 total bytes of memory
BGP activity 26/20 prefixes, 33/27 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
4.4.4.4 4 14 58 59 7 0 0 00:49:07 2

R1#sh bgp vpnv4 unicast all


BGP table version is 7, 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: 200:1 (default for vrf ABC)
*> 5.5.5.5/32 192.168.15.5 2 32768 ?
*>i 6.6.6.6/32 4.4.4.4 2 100 0?
*> 192.168.15.0 0.0.0.0 0 32768 ?
*>i 192.168.46.0 4.4.4.4 0 100 0?

R1#sh bgp vpnv4 unicast all neighbors 4.4.4.4 advertised-routes


BGP table version is 7, 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: 200:1 (default for vrf ABC)

81
*> 5.5.5.5/32 192.168.15.5 2 32768 ?
*> 192.168.15.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

R1#sh mpls interfaces


Interface IP Tunnel BGP Static Operational
FastEthernet1/0 No No Yes No Yes

R4#sh ip bgp summary


BGP router identifier 4.4.4.4, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 288 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 80 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 824 total bytes of memory
BGP activity 25/19 prefixes, 32/26 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
192.168.34.3 4 1 59 60 3 0 0 00:50:31 1

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 Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 192.168.34.3 011i
*> 4.4.4.4/32 0.0.0.0 0 32768 i

R4#ping 1.1.1.1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 360/440/508 ms

R4#traceroute 1.1.1.1 source lo0


Type escape sequence to abort.

82
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 [MPLS: Label 23 Exp 0] 408 msec 376 msec 440 msec
2 192.168.23.2 [MPLS: Labels 16/16004 Exp 0] 468 msec 528 msec 520 msec
3 192.168.101.10 [MPLS: Label 16004 Exp 0] 444 msec 536 msec 444 msec
4 192.168.102.1 536 msec 360 msec 384 msec

R4#sh bgp vpnv4 unicast all summary


BGP router identifier 4.4.4.4, local AS number 14
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 AS-PATH entries using 24 bytes of memory
2 BGP extended community entries using 80 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 1624 total bytes of memory
BGP activity 25/19 prefixes, 32/26 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
1.1.1.1 4 14 61 61 7 0 0 00:51:18 2

R4#sh bgp vpnv4 unicast all


BGP table version is 7, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 200:1 (default for vrf ABC)
*>i 5.5.5.5/32 1.1.1.1 2 100 0?
*> 6.6.6.6/32 192.168.46.6 2 32768 ?
*>i 192.168.15.0 1.1.1.1 0 100 0?
*> 192.168.46.0 0.0.0.0 0 32768 ?

R4#sh bgp vpnv4 unicast all neighbors 1.1.1.1 advertised-routes


BGP table version is 7, 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

83
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 200:1 (default for vrf ABC)
*> 6.6.6.6/32 192.168.46.6 2 32768 ?
*> 192.168.46.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

R4#sh mpls interfaces


Interface IP Tunnel BGP Static Operational
FastEthernet1/0 No No Yes No Yes

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 36, main routing table version 36
2 network entries using 312 bytes of memory
2 path entries using 160 bytes of memory
3/2 BGP path/bestpath attribute entries using 432 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 952 total bytes of memory
BGP activity 5/3 prefixes, 14/12 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 305 341 36 0 0 05:02:13 1
192.168.34.4 4 14 63 62 36 0 0 00:53:01 1

R3#sh bgp vpnv4 unicast all


BGP table version is 36, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 1.1.1.1/32 10.10.10.10 0 100 0 14 i
*> 4.4.4.4/32 192.168.34.4 0 0 14 i

R3#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 36, 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,

84
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)
*> 4.4.4.4/32 192.168.34.4 0 0 14 i

Total number of prefixes 1

R3#sh mpls interfaces


Interface IP Tunnel BGP Static Operational
FastEthernet1/0 Yes (ldp) No No No Yes

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary


Mon May 5 16:55:40.549 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 35
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 35 35 35 35 35 35

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 342 306 35 0 0 04:52:31 1

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Mon May 5 16:55:41.569 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 35
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 0 0 14 i
*>i4.4.4.4/32 3.3.3.3 0 100 0 14 i

85
Processed 2 prefixes, 2 paths
RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast neighbors 3.3.3.3 advertised-routes
Mon May 5 16:55:46.469 UTC
Network Next Hop From AS Path
Route Distinguisher: 100:1
1.1.1.1/32 10.10.10.10 192.168.102.1 14i

Processed 1 prefixes, 1 paths


RP/0/0/CPU0:XR1#show mpls interfaces
Mon May 5 16:55:50.309 UTC
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/0 No No No Yes
GigabitEthernet0/0/0/2 Yes No No Yes

R5#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


1.1.1.1 1 FULL/DR 00:00:31 192.168.15.1 FastEthernet1/0
R5#sh ip rou
R5#sh ip route os
R5#sh ip route ospf
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

6.0.0.0/32 is subnetted, 1 subnets


O IA 6.6.6.6 [110/3] via 192.168.15.1, 00:53:19, FastEthernet1/0
O IA 192.168.46.0/24 [110/2] via 192.168.15.1, 00:53:19, FastEthernet1/0

R5#ping 6.6.6.6 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 5.5.5.5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 484/575/664 ms

R5#traceroute 6.6.6.6 source lo0 numeric


Type escape sequence to abort.
Tracing the route to 6.6.6.6

86
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.15.1 8 msec 104 msec 96 msec
2 192.168.102.10 [MPLS: Labels 16005/16 Exp 0] 712 msec 476 msec 492 msec
3 192.168.101.2 [MPLS: Labels 17/21/16 Exp 0] 480 msec 536 msec 580 msec
4 192.168.23.3 [MPLS: Labels 21/16 Exp 0] 588 msec 764 msec 668 msec
5 192.168.46.4 [MPLS: Label 16 Exp 0] 660 msec 464 msec 576 msec
6 192.168.46.6 564 msec 688 msec 644 msec

R5#sh ip ospf database

OSPF Router with ID (5.5.5.5) (Process ID 56)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


1.1.1.1 1.1.1.1 917 0x80000009 0x00B676 1
5.5.5.5 5.5.5.5 1273 0x80000009 0x007472 2

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.15.1 1.1.1.1 1422 0x80000005 0x00356B

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


6.6.6.6 1.1.1.1 1422 0x80000002 0x00E0BC
192.168.46.0 1.1.1.1 1422 0x80000002 0x003EE0

R6#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


4.4.4.4 1 FULL/BDR 00:00:32 192.168.46.4 FastEthernet1/0

R6#sh ip route ospf


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

5.0.0.0/32 is subnetted, 1 subnets

87
O IA 5.5.5.5 [110/3] via 192.168.46.4, 00:54:02, FastEthernet1/0
O IA 192.168.15.0/24 [110/2] via 192.168.46.4, 00:54:02, FastEthernet1/0

R6#ping 5.5.5.5 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:
Packet sent with a source address of 6.6.6.6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 572/668/728 ms

R6#traceroute 5.5.5.5 source lo0 numeric


Type escape sequence to abort.
Tracing the route to 5.5.5.5
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.46.4 188 msec 96 msec 188 msec
2 192.168.34.3 [MPLS: Labels 23/17 Exp 0] 952 msec 852 msec 852 msec
3 192.168.23.2 [MPLS: Labels 16/16004/17 Exp 0] 760 msec 852 msec 852 msec
4 192.168.101.10 [MPLS: Labels 16004/17 Exp 0] 640 msec 756 msec 700 msec
5 192.168.15.1 [MPLS: Label 17 Exp 0] 724 msec 664 msec 568 msec
6 192.168.15.5 640 msec 684 msec 756 msec

R6#sh ip ospf database

OSPF Router with ID (6.6.6.6) (Process ID 56)

Router Link States (Area 0)

Link ID ADV Router Age Seq# Checksum Link count


4.4.4.4 4.4.4.4 1633 0x8000000B 0x00D6F5 1
6.6.6.6 6.6.6.6 1401 0x8000000A 0x00682D 2

Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


192.168.46.6 6.6.6.6 1657 0x80000002 0x0094C6

Summary Net Link States (Area 0)

Link ID ADV Router Age Seq# Checksum


5.5.5.5 4.4.4.4 1390 0x80000002 0x00B4E0
192.168.15.0 4.4.4.4 1390 0x80000002 0x003AF7

88
Carrier supporting Carrier (CsC) 2
Network Diagram

AS #1

XR1 192.168.101.0/24
R2 192.168.23.0/24
R3
192.168.102.0/24

192.168.34.0/24
R1 AS #14 AS #14 R4

192.168.46.0/24
192.168.15.0/24

R5 R6

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64
no shutdown

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:15::1/64
no shutdown

interface Loopback0

89
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
no shutdown

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::2/64
no shutdown

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::3/64
no shutdown

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64
no shutdown

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

90
no shutdown

interface FastEthernet1/1
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:46::4/64
no shutdown

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
duplex full
ipv6 address 2001:192:15::5/64
no shutdown

interface Loopback0
ip address 5.5.5.5 255.255.255.255
ipv6 address 2001::5/128

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:46::6/64
no shutdown

interface Loopback0
ip address 6.6.6.6 255.255.255.255
ipv6 address 2001::6/128

RP/0/0/CPU0:XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64

91
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

92
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64
mpls bgp forwarding

interface FastEthernet1/1
vrf forwarding ABC
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:15::1/64
ospfv3 56 ipv6 area 0

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

vrf definition ABC


rd 200:1

address-family ipv4
route-target export 200:1
route-target import 200:1
exit-address-family

address-family ipv6
route-target export 200:1
route-target import 200:1
exit-address-family

router ospfv3 56
router-id 1.1.1.1

address-family ipv6 unicast vrf ABC


redistribute bgp 14
exit-address-family

router ospf 56 vrf ABC


router-id 1.1.1.1
redistribute bgp 14 subnets
network 192.168.15.1 0.0.0.0 area 0

93
router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 14
neighbor 4.4.4.4 update-source Loopback0
neighbor 2001:192:102::10 remote-as 1
neighbor 192.168.102.10 remote-as 1

address-family ipv4
network 1.1.1.1 mask 255.255.255.255
neighbor 192.168.102.10 activate
neighbor 192.168.102.10 send-label
exit-address-family

address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community extended
exit-address-family

address-family ipv6
network 2001::1/128
neighbor 2001:192:102::10 activate
exit-address-family

address-family vpnv6
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family

address-family ipv4 vrf ABC


redistribute ospf 56
exit-address-family

address-family ipv6 vrf ABC


redistribute ospf 56 include-connected
exit-address-family

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

94
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128
ospfv3 1 ipv6 area 0

router ospfv3 1
router-id 2.2.2.2

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::3/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64
mpls bgp forwarding

95
interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128
ospfv3 1 ipv6 area 0

vrf definition MSSK


rd 100:1

address-family ipv4
route-target export 100:1
route-target import 100:1
exit-address-family

address-family ipv6
route-target export 100:1
route-target import 100:1
exit-address-family

router ospfv3 1
router-id 3.3.3.3

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family
address-family vpnv6
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

96
address-family ipv4 vrf MSSK
neighbor 192.168.34.4 remote-as 14
neighbor 192.168.34.4 activate
neighbor 192.168.34.4 as-override
neighbor 192.168.34.4 send-label
exit-address-family

address-family ipv6 vrf MSSK


neighbor 2001:192:34::4 remote-as 14
neighbor 2001:192:34::4 activate
neighbor 2001:192:34::4 as-override
exit-address-family

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64
mpls bgp forwarding

interface FastEthernet1/1
vrf forwarding ABC
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:46::4/64
ospfv3 56 ipv6 area 0

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

vrf definition ABC


rd 200:1

address-family ipv4
route-target export 200:1
route-target import 200:1
exit-address-family

address-family ipv6
route-target export 200:1
route-target import 200:1
exit-address-family

router ospfv3 56

97
router-id 4.4.4.4

address-family ipv6 unicast vrf ABC


redistribute bgp 14
exit-address-family

router ospf 56 vrf ABC


router-id 4.4.4.4
redistribute bgp 14 subnets
network 192.168.46.4 0.0.0.0 area 0

router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 1.1.1.1 remote-as 14
neighbor 1.1.1.1 update-source Loopback0
neighbor 2001:192:34::3 remote-as 1
neighbor 192.168.34.3 remote-as 1

address-family ipv4
network 4.4.4.4 mask 255.255.255.255
neighbor 192.168.34.3 activate
neighbor 192.168.34.3 send-label
exit-address-family

address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community extended
exit-address-family

address-family ipv6
network 2001::4/128
neighbor 2001:192:34::3 activate
exit-address-family

address-family vpnv6
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
exit-address-family

address-family ipv4 vrf ABC


redistribute ospf 56
exit-address-family

address-family ipv6 vrf ABC


redistribute ospf 56 include-connected
exit-address-family

98
R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
duplex full
ipv6 address 2001:192:15::5/64
ospfv3 56 ipv6 area 0

interface Loopback0
ip address 5.5.5.5 255.255.255.255
ipv6 address 2001::5/128
ospfv3 56 ipv6 area 0

router ospfv3 56
router-id 5.5.5.5

address-family ipv6 unicast


exit-address-family

router ospf 56
router-id 5.5.5.5
network 5.5.5.5 0.0.0.0 area 0
network 192.168.15.5 0.0.0.0 area 0

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:46::6/64
ospfv3 56 ipv6 area 0

interface Loopback0
ip address 6.6.6.6 255.255.255.255
ipv6 address 2001::6/128
ospfv3 56 ipv6 area 0

router ospfv3 56
router-id 6.6.6.6

address-family ipv6 unicast


exit-address-family

router ospf 56
router-id 6.6.6.6
network 6.6.6.6 0.0.0.0 area 0
network 192.168.46.6 0.0.0.0 area 0

99
RP/0/0/CPU0:XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

address-family ipv6 unicast


import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

route-policy PASS_CE
pass
end-policy

router static
vrf MSSK
address-family ipv4 unicast
192.168.102.1/32 GigabitEthernet0/0/0/0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

100
interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router bgp 1
address-family ipv4 unicast

address-family vpnv4 unicast

address-family ipv6 unicast

address-family vpnv6 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

address-family vpnv6 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
allocate-label all

address-family ipv6 unicast

neighbor 192.168.102.1
remote-as 14
address-family ipv4 labeled-unicast
route-policy PASS_CE in
route-policy PASS_CE out
as-override
neighbor 2001:192:102::1
remote-as 14
address-family ipv6 unicast
route-policy PASS_CE in
route-policy PASS_CE out
as-override

101
mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh bgp ipv6 unicast summary


BGP router identifier 1.1.1.1, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 336 bytes of memory
2 path entries using 208 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
4 BGP extended community entries using 160 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 1000 total bytes of memory
BGP activity 34/22 prefixes, 45/33 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
2001:192:102::10
4 1 13 17 3 0 0 00:11:52 1

R1#sh bgp ipv6 unicast


BGP table version is 3, 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


*> 2001::1/128 :: 0 32768 i
*> 2001::4/128 2001:192:102::10
011i
R1#ping 2001::4 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 372/490/576 ms

R1#sh bgp vpnv6 unicast all summary


BGP router identifier 1.1.1.1, local AS number 14
BGP table version is 7, main routing table version 7

102
4 network entries using 720 bytes of memory
4 path entries using 432 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
4 BGP extended community entries using 160 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 1912 total bytes of memory
BGP activity 34/22 prefixes, 45/33 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
4.4.4.4 4 14 13 14 7 0 0 00:04:30 2

R1#sh bgp vpnv6 unicast all


BGP table version is 7, 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: 200:1 (default for vrf ABC)
*> 2001::5/128 :: 1 32768 ?
*>i 2001::6/128 ::FFFF:4.4.4.4 1 100 0?
*> 2001:192:15::/64 :: 0 32768 ?
*>i 2001:192:46::/64 ::FFFF:4.4.4.4 0 100 0?

R1#sh bgp vpnv6 unicast all neighbors 4.4.4.4 advertised-routes


BGP table version is 7, 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: 200:1 (default for vrf ABC)
*> 2001::5/128 :: 1 32768 ?
*> 2001:192:15::/64 :: 0 32768 ?

Total number of prefixes 2

R4#sh bgp ipv6 unicast summary


BGP router identifier 4.4.4.4, local AS number 14
BGP table version is 3, main routing table version 3

103
2 network entries using 336 bytes of memory
2 path entries using 208 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH entries using 24 bytes of memory
4 BGP extended community entries using 160 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 1000 total bytes of memory
BGP activity 32/20 prefixes, 44/32 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
2001:192:34::3 4 1 18 18 3 0 0 00:11:56 1

R4#sh bgp ipv6 unicast


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 Next Hop Metric LocPrf Weight Path


*> 2001::1/128 2001:192:34::3 011i
*> 2001::4/128 :: 0 32768 i

R4#ping 2001::1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 440/476/528 ms

R4#sh bgp vpnv6 unicast all summary


BGP router identifier 4.4.4.4, local AS number 14
BGP table version is 7, main routing table version 7
4 network entries using 720 bytes of memory
4 path entries using 432 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
4 BGP extended community entries using 160 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 1912 total bytes of memory
BGP activity 32/20 prefixes, 44/32 paths, scan interval 60 secs

104
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
1.1.1.1 4 14 14 14 7 0 0 00:05:00 2

R4#sh bgp vpnv6 unicast all


BGP table version is 7, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 200:1 (default for vrf ABC)
*>i 2001::5/128 ::FFFF:1.1.1.1 1 100 0?
*> 2001::6/128 :: 1 32768 ?
*>i 2001:192:15::/64 ::FFFF:1.1.1.1 0 100 0?
*> 2001:192:46::/64 :: 0 32768 ?

R4#sh bgp vpnv6 unicast all neighbors 1.1.1.1 advertised-routes


BGP table version is 7, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 200:1 (default for vrf ABC)
*> 2001::6/128 :: 1 32768 ?
*> 2001:192:46::/64 :: 0 32768 ?

Total number of prefixes 2

R2#sh ospfv3 neighbor

OSPFv3 1 address-family ipv6 (router-id 2.2.2.2)

Neighbor ID Pri State Dead Time Interface ID Interface


3.3.3.3 0 FULL/ - 00:00:38 3 FastEthernet1/1
10.10.10.10 0 FULL/ - 00:00:35 5 FastEthernet1/0

R2#sh ipv6 route ospf


IPv6 Routing Table - default - 8 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

105
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
O 2001::3/128 [110/1]
via FE80::C803:1FF:FE54:1C, FastEthernet1/1
O 2001::10/128 [110/1]
via FE80::A00:27FF:FE1F:7011, FastEthernet1/0

RP/0/0/CPU0:XR1#sh ospfv3 neighbor


Mon May 5 18:32:39.591 UTC

Neighbors for OSPFv3 1

Neighbor ID Pri State Dead Time Interface ID Interface


2.2.2.2 1 FULL/ - 00:00:36 3 GigabitEthernet0/0/0/2
Neighbor is up for 00:23:32

Total neighbor count: 1


RP/0/0/CPU0:XR1#sh ospfv3 routes
Mon May 5 18:32:45.360 UTC

Topology Table for OSPFv3 1 with ID 10.10.10.10

* 2001::2/128, Intra, cost 1/0, area 0


GigabitEthernet0/0/0/2, fe80::c801:6ff:fe00:1c
* 2001::3/128, Intra, cost 2/0, area 0
GigabitEthernet0/0/0/2, fe80::c801:6ff:fe00:1c
* 2001::10/128, Intra, cost 0/0, area 0
Loopback0, connected
* 2001:192:23::/64, Intra, cost 2/0, area 0
GigabitEthernet0/0/0/2, fe80::c801:6ff:fe00:1c
* 2001:192:101::/64, Intra, cost 1/0, area 0
GigabitEthernet0/0/0/2, connected

RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast summary


Mon May 5 18:32:56.210 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 4
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 4 4 4 4 4 4

106
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
3.3.3.3 0 1 462 410 4 0 0 00:16:32 1

RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast


Mon May 5 18:32:57.029 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 4
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 2001::1/128 2001:192:102::1 0 0 14 i
*>i2001::4/128 3.3.3.3 0 100 0 14 i

Processed 2 prefixes, 2 paths


RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast neighbors 3.3.3.3 advertised-routes
Mon May 5 18:33:02.369 UTC
Network Next Hop From AS Path
Route Distinguisher: 100:1
2001::1/128 10.10.10.10 2001:192:102::1 14i

Processed 1 prefixes, 1 paths

R5#sh ipv6 ospf neighbor

OSPFv3 Router with ID (5.5.5.5) (Process ID 56)

Neighbor ID Pri State Dead Time Interface ID Interface


1.1.1.1 1 FULL/BDR 00:00:31 4 FastEthernet1/0

R5#sh ospfv3 neighbor

OSPFv3 56 address-family ipv6 (router-id 5.5.5.5)

Neighbor ID Pri State Dead Time Interface ID Interface


1.1.1.1 1 FULL/BDR 00:00:37 4 FastEthernet1/0

R5#sh ipv6 route ospf


IPv6 Routing Table - default - 6 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route

107
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
OI 2001::6/128 [110/2]
via FE80::C800:6FF:FE00:1D, FastEthernet1/0
OI 2001:192:46::/64 [110/2]
via FE80::C800:6FF:FE00:1D, FastEthernet1/0

R5#ping 2001::6 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::6, timeout is 2 seconds:
Packet sent with a source address of 2001::5
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 600/683/800 ms

R5#sh ipv6 ospf database

OSPFv3 Router with ID (5.5.5.5) (Process ID 56)

Router Link States (Area 0)

ADV Router Age Seq# Fragment ID Link count Bits


1.1.1.1 825 0x80000003 0 1 BE
5.5.5.5 1643 0x80000002 0 1 None

Net Link States (Area 0)

ADV Router Age Seq# Link ID Rtr count


5.5.5.5 1643 0x80000001 3 2

Inter Area Prefix Link States (Area 0)

ADV Router Age Seq# Prefix


1.1.1.1 547 0x80000001 2001::6/128
1.1.1.1 547 0x80000001 2001:192:46::/64

Link (Type-8) Link States (Area 0)

ADV Router Age Seq# Link ID Interface


1.1.1.1 1641 0x80000002 4 Fa1/0
5.5.5.5 1786 0x80000001 3 Fa1/0

Intra Area Prefix Link States (Area 0)

ADV Router Age Seq# Link ID Ref-lstype Ref-LSID

108
5.5.5.5 1643 0x80000003 0 0x2001 0
5.5.5.5 1643 0x80000001 3072 0x2002 3

R6#sh ipv6 ospf neighbor

OSPFv3 Router with ID (6.6.6.6) (Process ID 56)

Neighbor ID Pri State Dead Time Interface ID Interface


4.4.4.4 1 FULL/BDR 00:00:32 4 FastEthernet1/0

R6#sh ospfv3 neighbor

OSPFv3 56 address-family ipv6 (router-id 6.6.6.6)

Neighbor ID Pri State Dead Time Interface ID Interface


4.4.4.4 1 FULL/BDR 00:00:36 4 FastEthernet1/0
R6#sh ipv6 route ospf
IPv6 Routing Table - default - 6 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
OI 2001::5/128 [110/2]
via FE80::C802:1FF:FE54:1D, FastEthernet1/0
OI 2001:192:15::/64 [110/2]
via FE80::C802:1FF:FE54:1D, FastEthernet1/0

R6#ping 2001::5 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::5, timeout is 2 seconds:
Packet sent with a source address of 2001::6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 628/748/868 ms

R6#sh ipv6 ospf database

OSPFv3 Router with ID (6.6.6.6) (Process ID 56)

Router Link States (Area 0)

ADV Router Age Seq# Fragment ID Link count Bits


4.4.4.4 883 0x80000003 0 1 BE
6.6.6.6 1636 0x80000002 0 1 None

109
Net Link States (Area 0)

ADV Router Age Seq# Link ID Rtr count


6.6.6.6 1636 0x80000001 3 2

Inter Area Prefix Link States (Area 0)

ADV Router Age Seq# Prefix


4.4.4.4 583 0x80000001 2001::5/128
4.4.4.4 583 0x80000001 2001:192:15::/64

Link (Type-8) Link States (Area 0)

ADV Router Age Seq# Link ID Interface


4.4.4.4 1637 0x80000001 4 Fa1/0
6.6.6.6 1780 0x80000002 3 Fa1/0

Intra Area Prefix Link States (Area 0)

ADV Router Age Seq# Link ID Ref-lstype Ref-LSID


6.6.6.6 1636 0x80000003 0 0x2001 0
6.6.6.6 1636 0x80000001 3072 0x2002 3

110
MPLS 6VPE Static

Network Diagram
Lo0 2.2.2.2/32
Lo0 2001::2/128

R2
192.168.101.0/24 192.168.23.0/24
2001:192:101::/64 2001:192:23::/64

XR1
Lo0 10.10.10.10/32
Lo0 2001::10/128 OSPFv2 A0 R3 Lo0 3.3.3.3/32
Lo0 2001::3/128
OSPFv3 A0
AS1
192.168.102.0/24 192.168.34.0/24
2001:192:102::/64 2001:192:34::/64

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4


Lo0 2001::1/128 Lo0 2001::4/128

AS200 AS200

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:101::2/64

interface FastEthernet1/1

111
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::2/64

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::3/64

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

RP/0/0/CPU0:XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp

112
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

113
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

ip route 0.0.0.0 0.0.0.0 192.168.102.10

ipv6 route ::/0 2001:192:102::10

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

mpls label protocol ldp


mpls ldp router-id Loopback0 force

router ospfv3 1
router-id 2.2.2.2

114
address-family ipv6 unicast
exit-address-family

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::3/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128
ospfv3 1 ipv6 area 0

router ospfv3 1
router-id 3.3.3.3

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast

115
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family vpnv6
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute static
exit-address-family

address-family ipv6 vrf MSSK


redistribute static
exit-address-family

mpls label protocol ldp


mpls ldp router-id Loopback0 force

vrf definition MSSK


rd 100:1

address-family ipv4
route-target export 100:1
route-target import 100:1
exit-address-family

address-family ipv6
route-target export 100:1
route-target import 100:1
exit-address-family

ip route vrf MSSK 4.4.4.4 255.255.255.255 192.168.34.4


ipv6 route vrf MSSK 2001::4/128 2001:192:34::4

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100

116
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

ip route 0.0.0.0 0.0.0.0 192.168.34.3

ipv6 route ::/0 2001:192:34::3

RP/0/0/CPU0:XR1
hostname XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

address-family ipv6 unicast


import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

router static
vrf MSSK

117
address-family ipv4 unicast
1.1.1.1/32 192.168.102.1

address-family ipv6 unicast


2001::1/128 2001:192:102::1

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 MSSK_OSPFv3


router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

address-family ipv6 unicast

router bgp 1
address-family vpnv4 unicast

address-family vpnv6 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

address-family vpnv6 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute static

address-family ipv6 unicast


redistribute static

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

118
Verifications

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
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 192.168.102.10 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 192.168.102.10


1.0.0.0/32 is subnetted, 1 subnets
C 1.1.1.1 is directly connected, Loopback0
192.168.102.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.102.0/24 is directly connected, FastEthernet1/0
L 192.168.102.1/32 is directly connected, FastEthernet1/0

R1#ping 4.4.4.4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/160/192 ms

R1#traceroute 4.4.4.4 source lo0 numeric


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 72 msec 64 msec 64 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 136 msec 164 msec 152 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 132 msec 128 msec 96 msec
4 192.168.34.4 148 msec * 156 msec

R1#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:192:102::10

119
LC 2001::1/128 [0/0]
via Loopback0, receive
C 2001:192:102::/64 [0/0]
via FastEthernet1/0, directly connected
L 2001:192:102::1/128 [0/0]
via FastEthernet1/0, receive
L FF00::/8 [0/0]
via Null0, receive

R1#ping 2001::4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 132/156/188 ms

R1#traceroute 4.4.4.4 source lo0 numeric


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 4 msec 20 msec 40 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 184 msec 160 msec 188 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 80 msec 96 msec 100 msec
4 192.168.34.4 148 msec 172 msec 184 msec

R4#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 192.168.34.3 to network 0.0.0.0

S* 0.0.0.0/0 [1/0] via 192.168.34.3


4.0.0.0/32 is subnetted, 1 subnets
C 4.4.4.4 is directly connected, Loopback0
192.168.34.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.34.0/24 is directly connected, FastEthernet1/0
L 192.168.34.4/32 is directly connected, FastEthernet1/0

R4#ping 1.1.1.1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

120
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 156/170/188 ms

R4#traceroute 1.1.1.1 source lo0


Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 64 msec 88 msec *
2 192.168.23.2 [MPLS: Labels 17/16004 Exp 0] 172 msec 168 msec 168 msec
3 192.168.101.10 [MPLS: Label 16004 Exp 0] 136 msec 144 msec 184 msec
4 192.168.102.1 184 msec 168 msec 172 msec

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:192:34::3
LC 2001::4/128 [0/0]
via Loopback0, receive
C 2001:192:34::/64 [0/0]
via FastEthernet1/0, directly connected
L 2001:192:34::4/128 [0/0]
via FastEthernet1/0, receive
L FF00::/8 [0/0]
via Null0, receive

R4#ping 2001::1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/132/148 ms

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.43203 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 103/103; Downstream
Up time: 01:24:06
LDP discovery sources:
FastEthernet1/1, Src IP addr: 192.168.23.3
Addresses bound to peer LDP Ident:

121
192.168.23.3 3.3.3.3
Peer LDP Ident: 10.10.10.10:0; Local LDP Ident 2.2.2.2:0
TCP connection: 10.10.10.10.23681 - 2.2.2.2.646
State: Oper; Msgs sent/rcvd: 101/101; Downstream
Up time: 01:19:08
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.101.10
Addresses bound to peer LDP Ident:
10.10.10.10 192.168.101.10

R2#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


10.10.10.10 0 FULL/ - 00:00:35 192.168.101.10 FastEthernet1/0
3.3.3.3 0 FULL/ - 00:00:39 192.168.23.3 FastEthernet1/1

R2#sh ospfv3 neighbor

OSPFv3 1 address-family ipv6 (router-id 2.2.2.2)

Neighbor ID Pri State Dead Time Interface ID Interface


10.10.10.10 0 FULL/ - 00:00:39 5 FastEthernet1/0
3.3.3.3 0 FULL/ - 00:00:37 3 FastEthernet1/1

R2#sh mpls interfaces


Interface IP Tunnel BGP Static Operational
FastEthernet1/0 Yes (ldp) No No No Yes
FastEthernet1/1 Yes (ldp) No No No Yes

R3#sh mpls interfaces


Interface IP Tunnel BGP Static Operational
FastEthernet1/0 Yes (ldp) No No No Yes

R3#sh mpls ldp neighbor


Peer LDP Ident: 2.2.2.2:0; Local LDP Ident 3.3.3.3:0
TCP connection: 2.2.2.2.646 - 3.3.3.3.43203
State: Oper; Msgs sent/rcvd: 105/105; Downstream
Up time: 01:25:15
LDP discovery sources:
FastEthernet1/0, Src IP addr: 192.168.23.2
Addresses bound to peer LDP Ident:
192.168.101.2 192.168.23.2 2.2.2.2

R3#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface

122
2.2.2.2 0 FULL/ - 00:00:31 192.168.23.2 FastEthernet1/0

R3#sh ospfv3 neighbor

OSPFv3 1 address-family ipv6 (router-id 3.3.3.3)

Neighbor ID Pri State Dead Time Interface ID Interface


2.2.2.2 0 FULL/ - 00:00:35 4 FastEthernet1/0

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 4, main routing table version 4
2 network entries using 312 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 288 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 784 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 43 50 4 0 0 00:40:45 1

R3#sh bgp vpnv4 unicast all


BGP table version is 4, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 1.1.1.1/32 10.10.10.10 0 100 0?
*> 4.4.4.4/32 192.168.34.4 0 32768 ?

R3#sh bgp vpnv6 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 4, main routing table version 4
2 network entries using 360 bytes of memory
2 path entries using 216 bytes of memory
2/2 BGP path/bestpath attribute entries using 288 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

123
BGP using 888 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 43 50 4 0 0 00:40:51 1

R3#sh bgp vpnv6 unicast all


BGP table version is 4, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 2001::1/128 ::FFFF:10.10.10.10
0 100 0?
*> 2001::4/128 2001:192:34::4 0 32768 ?

RP/0/0/CPU0:XR1#sh mpls interfaces


Tue Apr 29 14:13:24.958 UTC
Interface LDP Tunnel Static Enabled
-------------------------- -------- -------- -------- --------
GigabitEthernet0/0/0/2 Yes No No Yes
RP/0/0/CPU0:XR1#sh mpls ldp neighbor
Tue Apr 29 14:13:28.268 UTC

Peer LDP Identifier: 2.2.2.2:0


TCP connection: 2.2.2.2:646 - 10.10.10.10:23681
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 103/103; Downstream-Unsolicited
Up time: 01:18:36
LDP Discovery Sources:
GigabitEthernet0/0/0/2
Addresses bound to this peer:
2.2.2.2 192.168.23.2 192.168.101.2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary


Tue Apr 29 14:14:22.664 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5

124
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 5 5 5 5 5 5

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 51 45 5 0 0 00:40:55 1

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Tue Apr 29 14:14:23.394 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 0 32768 ?
*>i4.4.4.4/32 3.3.3.3 0 100 0?

Processed 2 prefixes, 2 paths


RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast s
standby summary
RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast summary
Tue Apr 29 14:14:31.414 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 5 5 5 5 5 5

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 51 45 5 0 0 00:41:04 1

125
RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast
Tue Apr 29 14:14:32.084 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 2001::1/128 2001:192:102::1 0 32768 ?
*>i2001::4/128 3.3.3.3 0 100 0?

Processed 2 prefixes, 2 paths

R3#sh ip route vrf MSSK static

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

4.0.0.0/32 is subnetted, 1 subnets


S 4.4.4.4 [1/0] via 192.168.34.4
R3#sh ipv6 route vrf MSSK stat
R3#sh ipv6 route vrf MSSK static
IPv6 Routing Table - MSSK - 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 2001::4/128 [1/0]
via 2001:192:34::4

126
RP/0/0/CPU0:XR1#sh route vrf MSSK ipv4 static
Tue Apr 29 14:15:33.779 UTC

S 1.1.1.1/32 [1/0] via 192.168.102.1, 00:38:24


RP/0/0/CPU0:XR1#sh route vrf MSSK ipv6 static
Tue Apr 29 14:15:37.359 UTC

S 2001::1/128
[1/0] via 2001:192:102::1, 00:38:28

127
MPLS 6VPE OSPF

Network Diagram
Lo0 2.2.2.2/32
Lo0 2001::2/128

R2
192.168.101.0/24 192.168.23.0/24
2001:192:101::/64 2001:192:23::/64

XR1
Lo0 10.10.10.10/32
Lo0 2001::10/128 OSPFv2 A0 R3 Lo0 3.3.3.3/32
Lo0 2001::3/128
OSPFv3 A0
AS1
192.168.102.0/24 192.168.34.0/24
2001:192:102::/64 2001:192:34::/64

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4


Lo0 2001::1/128 Lo0 2001::4/128

AS200 AS200

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:101::2/64

128
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::2/64

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::3/64

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

RP/0/0/CPU0:XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0

129
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

130
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64
ospfv3 14 ipv6 area 0

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128
ospfv3 14 ipv6 area 0

router ospfv3 14
router-id 1.1.1.1

address-family ipv6 unicast


exit-address-family

router ospf 14
router-id 1.1.1.1
network 1.1.1.1 0.0.0.0 area 0
network 192.168.102.1 0.0.0.0 area 0

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

131
interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128
ospfv3 1 ipv6 area 0

router ospfv3 1
router-id 2.2.2.2

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::3/64
mpls ip
ospfv3 network point-to-point

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64
ospfv3 14 ipv6 area 0

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

mpls label protocol ldp


mpls ldp router-id Loopback0 force

router ospfv3 14
router-id 3.3.3.3

132
address-family ipv6 unicast vrf MSSK
redistribute bgp 1
exit-address-family

router ospf 14 vrf MSSK


redistribute bgp 1 subnets
network 192.168.34.3 0.0.0.0 area 0

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family vpnv6
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute ospf 14
exit-address-family

address-family ipv6 vrf MSSK


redistribute ospf 14 include-connected
exit-address-family

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

133
ospfv3 14 ipv6 area 0

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128
ospfv3 14 ipv6 area 0

router ospfv3 14
router-id 4.4.4.4

address-family ipv6 unicast


exit-address-family

router ospf 14
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.34.4 0.0.0.0 area 0

RP/0/0/CPU0:XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

address-family ipv6 unicast


import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2

134
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

route-policy PASS_CE
pass
end-policy

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospf 14
vrf MSSK
redistribute bgp 1
area 0
interface GigabitEthernet0/0/0/0

router ospfv3 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 14
vrf MSSK
redistribute bgp 1
area 0
interface GigabitEthernet0/0/0/0

router bgp 1
address-family vpnv4 unicast

address-family vpnv6 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

address-family vpnv6 unicast

135
vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute ospf 14
!
address-family ipv6 unicast
redistribute ospfv3 14
redistribute eigrp 14

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


10.10.10.10 1 FULL/BDR 00:00:38 192.168.102.10 FastEthernet1/0
R1#sh ip route ospf
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

4.0.0.0/32 is subnetted, 1 subnets


O E2 4.4.4.4 [110/2] via 192.168.102.10, 00:06:35, FastEthernet1/0
O E2 192.168.34.0/24 [110/1] via 192.168.102.10, 00:06:35, FastEthernet1/0

R1#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/169/244 ms
R1#ping 4.4.4.4 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 140/150/168 ms

136
R1#traceroute 4.4.4.4
Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 64 msec 60 msec 32 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 156 msec 184 msec 220 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 160 msec 76 msec 96 msec
4 192.168.34.4 180 msec 164 msec 132 msec

R1#traceroute 4.4.4.4 source lo0


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 32 msec 64 msec 64 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 188 msec 172 msec 156 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 160 msec 100 msec 92 msec
4 192.168.34.4 168 msec 224 msec 188 msec

R1#sh ipv6 ospf neighbor

OSPFv3 Router with ID (1.1.1.1) (Process ID 14)

Neighbor ID Pri State Dead Time Interface ID Interface


10.10.10.10 1 FULL/BDR 00:00:33 4 FastEthernet1/0
R1#sh ipv6 route ospf
IPv6 Routing Table - default - 6 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
OI 2001::4/128 [110/2]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
OI 2001:192:34::/64 [110/2]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0

R1#ping 2001::4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/154/176 ms

R1#ping 2001::4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:

137
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/159/192 ms

R1#traceroute 2001::4
Type escape sequence to abort.
Tracing the route to 2001::4

1 2001:192:102::10 32 msec 32 msec 8 msec


2 ::FFFF:192.168.101.2 [MPLS: Labels 16/21 Exp 0] 176 msec 160 msec 128 msec
3 2001:192:34::3 [MPLS: Label 21 Exp 0] 148 msec 160 msec 156 msec
4 2001:192:34::4 180 msec 164 msec 128 msec

R4#sh ip ospf neighbor

Neighbor ID Pri State Dead Time Address Interface


192.168.34.3 1 FULL/DR 00:00:33 192.168.34.3 FastEthernet1/0
R4#sh ip route ospf
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

1.0.0.0/32 is subnetted, 1 subnets


O E2 1.1.1.1 [110/2] via 192.168.34.3, 00:07:41, FastEthernet1/0
O E2 192.168.102.0/24 [110/1] via 192.168.34.3, 00:07:41, FastEthernet1/0

R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 128/169/196 ms

R4#ping 1.1.1.1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 144/172/220 ms

R4#traceroute 1.1.1.1

138
Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 92 msec 76 msec 60 msec
2 192.168.23.2 [MPLS: Labels 17/16005 Exp 0] 184 msec 148 msec 152 msec
3 192.168.101.10 [MPLS: Label 16005 Exp 0] 196 msec 172 msec 128 msec
4 192.168.102.1 180 msec 164 msec 156 msec

R4#traceroute 1.1.1.1 source lo0


Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 56 msec 92 msec 56 msec
2 192.168.23.2 [MPLS: Labels 17/16005 Exp 0] 148 msec 204 msec 136 msec
3 192.168.101.10 [MPLS: Label 16005 Exp 0] 188 msec 124 msec 156 msec
4 192.168.102.1 152 msec 196 msec 156 msec

R4#sh ipv6 ospf neighbor

OSPFv3 Router with ID (4.4.4.4) (Process ID 14)

Neighbor ID Pri State Dead Time Interface ID Interface


3.3.3.3 1 FULL/BDR 00:00:37 4 FastEthernet1/0

R4#sh ipv6 route ospf


IPv6 Routing Table - default - 6 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
OI 2001::1/128 [110/2]
via FE80::C803:3FF:FEF8:1D, FastEthernet1/0
OI 2001:192:102::/64 [110/2]
via FE80::C803:3FF:FEF8:1D, FastEthernet1/0

R4#ping 2001::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/130/140 ms

R4#ping 2001::1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::4

139
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 120/152/172 ms

R4#traceroute 2001::1
Type escape sequence to abort.
Tracing the route to 2001::1

1 2001:192:34::3 36 msec 68 msec 68 msec


2 ::FFFF:192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 168 msec 172 msec 164 msec
3 2001:192:101::10 [MPLS: Label 16003 Exp 0] 156 msec 152 msec 160 msec
4 2001:192:102::1 208 msec 124 msec 192 msec

RP/0/0/CPU0:XR1#sh ospf vrf MSSK neighbor


Fri May 2 00:59:02.479 UTC

* Indicates MADJ interface

Neighbors for OSPF 14, VRF MSSK

Neighbor ID Pri State Dead Time Address Interface


1.1.1.1 1 FULL/DR 00:00:31 192.168.102.1 GigabitEthernet0/0/0/0
Neighbor is up for 00:12:13

Total neighbor count: 1


RP/0/0/CPU0:XR1#sh route vrf MSSK ospf
Fri May 2 00:59:07.709 UTC

O 1.1.1.1/32 [110/2] via 192.168.102.1, 00:12:18, GigabitEthernet0/0/0/0


RP/0/0/CPU0:XR1#sh ospfv3 vrf MSSK neighbor
Fri May 2 00:59:17.218 UTC

Neighbors for OSPFv3 14, VRF MSSK

Neighbor ID Pri State Dead Time Interface ID Interface


1.1.1.1 1 FULL/DR 00:00:35 3 GigabitEthernet0/0/0/0
Neighbor is up for 00:11:48

Total neighbor count: 1


RP/0/0/CPU0:XR1#sh route ipv
ipv4 ipv6
RP/0/0/CPU0:XR1#sh route vrf MSSK ipv
ipv4 ipv6
RP/0/0/CPU0:XR1#sh route vrf MSSK ipv6 ospf
Fri May 2 00:59:35.917 UTC

O 2001::1/128
[110/1] via fe80::c800:bff:fee4:1c, 00:12:00, GigabitEthernet0/0/0/0

140
RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary
Fri May 2 00:59:48.926 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 23
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 23 23 23 23 23 23

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 736 646 23 0 0 10:30:58 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Fri May 2 00:59:50.296 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 23
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 2 32768 ?
*>i4.4.4.4/32 3.3.3.3 2 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 4 prefixes, 4 paths


RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast summary
Fri May 2 00:59:55.026 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 23
BGP scan interval 60 secs

141
BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 23 23 23 23 23 23

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 736 646 23 0 0 10:31:04 2

RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast


Fri May 2 00:59:55.676 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 23
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 2001::1/128 fe80::c800:bff:fee4:1c
1 32768 ?
*>i2001::4/128 3.3.3.3 1 100 0?
*>i2001:192:34::/64 3.3.3.3 0 100 0?
*> 2001:192:102::/64 :: 0 32768 ?

Processed 4 prefixes, 4 paths

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

4.0.0.0/32 is subnetted, 1 subnets


O 4.4.4.4 [110/2] via 192.168.34.4, 00:19:25, FastEthernet1/1

142
R3#sh ospfv3 vrf MSSK neighbor

OSPFv3 14 address-family ipv6 vrf MSSK (router-id 3.3.3.3)

Neighbor ID Pri State Dead Time Interface ID Interface


4.4.4.4 1 FULL/DR 00:00:39 3 FastEthernet1/1

R3#sh ipv6 route vrf MSSK ospf


IPv6 Routing Table - MSSK - 6 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
O 2001::4/128 [110/1]
via FE80::C802:3FF:FEF8:1C, FastEthernet1/1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 22, main routing table version 22
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
5 BGP extended community entries using 200 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 1720 total bytes of memory
BGP activity 20/12 prefixes, 20/12 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 647 738 22 0 0 10:51:17 2

R3#sh bgp vpnv4 unicast all


BGP table version is 22, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 1.1.1.1/32 10.10.10.10 2 100 0?
*> 4.4.4.4/32 192.168.34.4 2 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?

143
*>i 192.168.102.0 10.10.10.10 0 100 0?

R3#sh bgp vpnv6 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 22, main routing table version 22
4 network entries using 720 bytes of memory
4 path entries using 432 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
5 BGP extended community entries using 200 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 1928 total bytes of memory
BGP activity 20/12 prefixes, 20/12 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 647 738 22 0 0 10:51:22 2

R3#sh bgp vpnv6 unicast all


BGP table version is 22, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 2001::1/128 ::FFFF:10.10.10.10
1 100 0?
*> 2001::4/128 :: 1 32768 ?
*> 2001:192:34::/64 :: 0 32768 ?
*>i 2001:192:102::/64
::FFFF:10.10.10.10
0 100 0?

144
MPLS 6VPE EIGRP
Network Diagram
Lo0 2.2.2.2/32
Lo0 2001::2/128

R2
192.168.101.0/24 192.168.23.0/24
2001:192:101::/64 2001:192:23::/64

XR1
Lo0 10.10.10.10/32
Lo0 2001::10/128 OSPFv2 A0 R3 Lo0 3.3.3.3/32
Lo0 2001::3/128
OSPFv3 A0
AS1
192.168.102.0/24 192.168.34.0/24
2001:192:102::/64 2001:192:34::/64

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4


Lo0 2001::1/128 Lo0 2001::4/128

AS200 AS200

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:101::2/64

145
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::2/64

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::3/64

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

RP/0/0/CPU0:XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0

146
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

147
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

router eigrp MSSK

address-family ipv4 unicast autonomous-system 14

topology base
exit-af-topology
network 1.1.1.1 0.0.0.0
network 192.168.102.1 0.0.0.0
exit-address-family

address-family ipv6 unicast autonomous-system 14

topology base
exit-af-topology
exit-address-family

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::2/64
mpls ip

148
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128
ospfv3 1 ipv6 area 0

router ospfv3 1
router-id 2.2.2.2

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::3/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128
ospfv3 1 ipv6 area 0

mpls label protocol ldp

149
mpls ldp router-id Loopback0 force

router eigrp MSSK

address-family ipv4 unicast vrf MSSK autonomous-system 14

topology base
redistribute bgp 1 metric 1000 1000 255 1 1500
exit-af-topology
network 192.168.34.3 0.0.0.0
exit-address-family

address-family ipv6 unicast vrf MSSK autonomous-system 14

topology base
redistribute bgp 1 metric 1000 1000 255 1 1500
exit-af-topology
exit-address-family

router ospfv3 1
router-id 3.3.3.3

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family vpnv6
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both

150
exit-address-family

address-family ipv4 vrf MSSK


redistribute eigrp 14
exit-address-family

address-family ipv6 vrf MSSK


redistribute eigrp 14 include-connected
exit-address-family

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

router eigrp MSSK

address-family ipv4 unicast autonomous-system 14

topology base
exit-af-topology
network 4.4.4.4 0.0.0.0
network 192.168.34.4 0.0.0.0
exit-address-family

address-family ipv6 unicast autonomous-system 14

topology base
exit-af-topology
exit-address-family

RP/0/0/CPU0:XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

export route-target
100:1

151
address-family ipv6 unicast
import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

route-policy PASS_CE
pass
end-policy

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router bgp 1
address-family vpnv4 unicast

address-family vpnv6 unicast

152
neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

address-family vpnv6 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute eigrp 14

address-family ipv6 unicast


redistribute eigrp 14

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

router eigrp MSSK


vrf MSSK
address-family ipv4
default-metric 1000 1000 255 1 1500
autonomous-system 14
redistribute bgp 1
interface GigabitEthernet0/0/0/0

address-family ipv6
default-metric 1000 1000 255 1 1500
autonomous-system 14
redistribute bgp 1
interface GigabitEthernet0/0/0/0

Verifications

R1#sh ip eigrp neighbors


EIGRP-IPv4 VR(MSSK) Address-Family Neighbors for AS(14)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.102.10 Fa1/0 11 00:10:50 116 696 0 4
R1#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
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

153
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

4.0.0.0/32 is subnetted, 1 subnets


D 4.4.4.4 [90/153600] via 192.168.102.10, 00:05:34, FastEthernet1/0
D 192.168.34.0/24
[90/153600] via 192.168.102.10, 00:05:34, FastEthernet1/0

R1#ping 4.4.4.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 132/153/188 ms

R1#ping 4.4.4.4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/157/192 ms

R1#traceroute 4.4.4.4 source lo0


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 28 msec 36 msec 28 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 184 msec 112 msec 136 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 92 msec 136 msec 156 msec
4 192.168.34.4 176 msec 152 msec 160 msec

R1#traceroute 4.4.4.4
Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 0 msec 20 msec 28 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 200 msec 180 msec 180 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 112 msec 96 msec 100 msec
4 192.168.34.4 132 msec 144 msec 164 msec

R1#sh ipv6 eigrp neighbors


EIGRP-IPv6 VR(MSSK) Address-Family Neighbors for AS(14)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 Link-local address: Fa1/0 11 00:11:17 76 456 0 4

154
FE80::A00:27FF:FE35:643D

R1#sh ipv6 route eigrp


IPv6 Routing Table - default - 6 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
EX 2001::4/128 [170/10291200]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0
EX 2001:192:34::/64 [170/10291200]
via FE80::A00:27FF:FE35:643D, FastEthernet1/0

R1#ping 2001::4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 124/141/164 ms

R1#ping 2001::4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/143/160 ms

R1#traceroute 2001::4
Type escape sequence to abort.
Tracing the route to 2001::4

1 2001:192:102::10 20 msec 44 msec 28 msec


2 ::FFFF:192.168.101.2 [MPLS: Labels 16/21 Exp 0] 124 msec 144 msec 160 msec
3 2001:192:34::3 [MPLS: Label 21 Exp 0] 128 msec 80 msec 140 msec
4 2001:192:34::4 160 msec 156 msec 160 msec

R4#sh ip eigrp neighbors


EIGRP-IPv4 VR(MSSK) Address-Family Neighbors for AS(14)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.34.3 Fa1/0 12 03:57:26 103 618 0 4

R4#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

155
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

1.0.0.0/32 is subnetted, 1 subnets


D 1.1.1.1 [90/112640] via 192.168.34.3, 00:06:01, FastEthernet1/0
D 192.168.102.0/24 [90/107520] via 192.168.34.3, 00:06:01, FastEthernet1/0

R4#ping 1.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 136/166/196 ms

R4#ping 1.1.1.1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 164/178/200 ms

R4#traceroute 1.1.1.1
Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 76 msec 60 msec 60 msec
2 192.168.23.2 [MPLS: Labels 17/16005 Exp 0] 192 msec 140 msec 152 msec
3 192.168.101.10 [MPLS: Label 16005 Exp 0] 164 msec 160 msec 176 msec
4 192.168.102.1 164 msec 156 msec 188 msec

R4#traceroute 1.1.1.1 source lo0


Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 72 msec 36 msec 68 msec
2 192.168.23.2 [MPLS: Labels 17/16005 Exp 0] 160 msec 148 msec 224 msec
3 192.168.101.10 [MPLS: Label 16005 Exp 0] 156 msec 136 msec 148 msec
4 192.168.102.1 132 msec 164 msec 156 msec

R4#sh ipv6 eigrp neighbors


EIGRP-IPv6 VR(MSSK) Address-Family Neighbors for AS(14)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num

156
0 Link-local address: Fa1/0 12 03:57:43 75 450 0 4
FE80::C803:3FF:FEF8:1D

R4#sh ipv6 route eigrp


IPv6 Routing Table - default - 6 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
EX 2001::1/128 [170/10291200]
via FE80::C803:3FF:FEF8:1D, FastEthernet1/0
EX 2001:192:102::/64 [170/10291200]
via FE80::C803:3FF:FEF8:1D, FastEthernet1/0

R4#ping 2001::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 132/164/208 ms

R4#ping 2001::1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 136/157/172 ms

R4#traceroute 2001::1
Type escape sequence to abort.
Tracing the route to 2001::1

1 2001:192:34::3 72 msec 40 msec 56 msec


2 ::FFFF:192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 228 msec 156 msec 140 msec
3 2001:192:101::10 [MPLS: Label 16003 Exp 0] 164 msec 164 msec 192 msec
4 2001:192:102::1 168 msec 136 msec 160 msec

R3#sh ip eigrp vrf MSSK neighbors


EIGRP-IPv4 VR(MSSK) Address-Family Neighbors for AS(14)
VRF(MSSK)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 192.168.34.4 Fa1/1 11 03:59:33 127 762 0 3

R3#sh ip route vrf MSSK eigrp

157
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

4.0.0.0/32 is subnetted, 1 subnets


D 4.4.4.4 [90/103040] via 192.168.34.4, 03:59:41, FastEthernet1/1

R3#sh eigrp address-family ipv6 vrf MSSK neighbors


EIGRP-IPv6 VR(MSSK) Address-Family Neighbors for AS(14)
VRF(MSSK)
H Address Interface Hold Uptime SRTT RTO Q Seq
(sec) (ms) Cnt Num
0 Link-local address: Fa1/1 13 04:00:07 1287 5000 0 3
FE80::C802:3FF:FEF8:1C

R3#sh ipv6 route vrf MSSK eigrp


IPv6 Routing Table - MSSK - 6 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
D 2001::4/128 [90/103040]
via FE80::C802:3FF:FEF8:1C, FastEthernet1/1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
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
5 BGP extended community entries using 644 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 2164 total bytes of memory
BGP activity 12/4 prefixes, 12/4 paths, scan interval 60 secs

158
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
10.10.10.10 4 1 610 696 12 0 0 10:19:40 2

R3#sh bgp vpnv4 unicast all


BGP table version is 12, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 1.1.1.1/32 10.10.10.10 10880 100 0?
*> 4.4.4.4/32 192.168.34.4 103040 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?
*>i 192.168.102.0 10.10.10.10 0 100 0?

R3#sh bgp vpnv6 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 12, main routing table version 12
4 network entries using 720 bytes of memory
4 path entries using 432 bytes of memory
4/4 BGP path/bestpath attribute entries using 576 bytes of memory
5 BGP extended community entries using 644 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 2372 total bytes of memory
BGP activity 12/4 prefixes, 12/4 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 610 696 12 0 0 10:19:49 2

R3#sh bgp vpnv6 unicast all


BGP table version is 12, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 2001::1/128 ::FFFF:10.10.10.10
10880 100 0?

159
*> 2001::4/128 :: 103040 32768 ?
*> 2001:192:34::/64 :: 0 32768 ?
*>i 2001:192:102::/64
::FFFF:10.10.10.10
0 100 0?

RP/0/0/CPU0:XR1#sh eigrp vrf MSSK neighbors


Fri May 2 00:31:13.294 UTC

IPv4-EIGRP VR(MSSK) Neighbors for AS(14) VRF MSSK

H Address Interface Hold Uptime SRTT RTO Q Seq


(sec) (ms) Cnt Num
0 192.168.102.1 Gi0/0/0/0 11 00:15:55 76 456 0 3

RP/0/0/CPU0:XR1#sh route vrf MSSK eigrp


Fri May 2 00:31:17.613 UTC

D 1.1.1.1/32 [90/10880] via 192.168.102.1, 00:15:42, GigabitEthernet0/0/0/0


RP/0/0/CPU0:XR1#sh eigrp ipv
ipv4 ipv6
RP/0/0/CPU0:XR1#sh eigrp ipv6 vrf MSSK neighbors
Fri May 2 00:31:27.443 UTC

IPv6-EIGRP VR(MSSK) Neighbors for AS(14) VRF MSSK

H Address Interface Hold Uptime SRTT RTO Q Seq


(sec) (ms) Cnt Num
0 Link Local Address: Gi0/0/0/0 14 00:15:56 53 318 0 3
fe80::c800:bff:fee4:1c

RP/0/0/CPU0:XR1#sh route vrf MSSK ipv6 eigrp


Fri May 2 00:32:34.198 UTC

D 2001::1/128
[90/10880] via fe80::c800:bff:fee4:1c, 00:16:45, GigabitEthernet0/0/0/0

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary


Fri May 2 00:32:52.847 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 13
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

160
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 13 13 13 13 13 13

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 699 612 13 0 0 10:04:02 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Fri May 2 00:32:53.517 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 13
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 10880 32768 ?
*>i4.4.4.4/32 3.3.3.3 103040 100 0?
*>i192.168.34.0/24 3.3.3.3 0 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 4 prefixes, 4 paths


RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast summary
Fri May 2 00:32:57.756 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 13
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 13 13 13 13 13 13

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 699 612 13 0 0 10:04:07 2

RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast


Fri May 2 00:32:59.786 UTC
BGP router identifier 10.10.10.10, local AS number 1

161
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 13
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 2001::1/128 fe80::c800:bff:fee4:1c
10880 32768 ?
*>i2001::4/128 3.3.3.3 103040 100 0?
*>i2001:192:34::/64 3.3.3.3 0 100 0?
*> 2001:192:102::/64 :: 0 32768 ?

Processed 4 prefixes, 4 paths

162
MPLS 6VPE BGP
Network Diagram
Lo0 2.2.2.2/32
Lo0 2001::2/128

R2
192.168.101.0/24 192.168.23.0/24
2001:192:101::/64 2001:192:23::/64

XR1
Lo0 10.10.10.10/32
Lo0 2001::10/128 OSPFv2 A0 R3 Lo0 3.3.3.3/32
Lo0 2001::3/128
OSPFv3 A0
AS1
192.168.102.0/24 192.168.34.0/24
2001:192:102::/64 2001:192:34::/64

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4


Lo0 2001::1/128 Lo0 2001::4/128

AS200 AS200

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:101::2/64

163
interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::2/64

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:23::3/64

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

RP/0/0/CPU0:XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0

164
cdp
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

165
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto
ipv6 address 2001:192:102::1/64

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ipv6 address 2001::1/128

router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2001:192:102::10 remote-as 1
neighbor 192.168.102.10 remote-as 1

address-family ipv4
network 1.1.1.1 mask 255.255.255.255
neighbor 192.168.102.10 activate
exit-address-family

address-family ipv6
network 2001::1/128
neighbor 2001:192:102::10 activate
exit-address-family

R2
interface FastEthernet1/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
speed auto
duplex auto
ipv6 address 2001:192:101::2/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::2/64
mpls ip

166
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface Loopback0
ip address 2.2.2.2 255.255.255.255
ipv6 address 2001::2/128
ospfv3 1 ipv6 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

router ospfv3 1
router-id 2.2.2.2

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
ipv6 address 2001:192:23::3/64
mpls ip
ospfv3 network point-to-point
ospfv3 1 ipv6 area 0

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::3/64

interface Loopback0
ip address 3.3.3.3 255.255.255.255
ipv6 address 2001::3/128
ospfv3 1 ipv6 area 0

mpls label protocol ldp

167
mpls ldp router-id Loopback0 force

vrf definition MSSK


rd 100:1

address-family ipv4
route-target export 100:1
route-target import 100:1
exit-address-family

address-family ipv6
route-target export 100:1
route-target import 100:1
exit-address-family

router ospfv3 1
router-id 3.3.3.3

address-family ipv6 unicast


exit-address-family

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family vpnv6
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


neighbor 192.168.34.4 remote-as 14

168
neighbor 192.168.34.4 activate
neighbor 192.168.34.4 as-override
exit-address-family

address-family ipv6 vrf MSSK


neighbor 2001:192:34::4 remote-as 14
neighbor 2001:192:34::4 activate
neighbor 2001:192:34::4 as-override
exit-address-family

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full
ipv6 address 2001:192:34::4/64

interface Loopback0
ip address 4.4.4.4 255.255.255.255
ipv6 address 2001::4/128

router bgp 14
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2001:192:34::3 remote-as 1
neighbor 192.168.34.3 remote-as 1

address-family ipv4
network 4.4.4.4 mask 255.255.255.255
neighbor 192.168.34.3 activate
exit-address-family

address-family ipv6
network 2001::4/128
neighbor 2001:192:34::3 activate
exit-address-family

RP/0/0/CPU0:XR1
hostname XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1

169
export route-target
100:1

address-family ipv6 unicast


import route-target
100:1

export route-target
100:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255
ipv6 address 2001::10/128

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
ipv6 address 2001:192:102::10/64
duplex full

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.101.10 255.255.255.0
ipv6 address 2001:192:101::10/64

route-policy PASS_CE
pass
end-policy

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router ospfv3 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

170
router bgp 1
address-family vpnv4 unicast

address-family vpnv6 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

address-family vpnv6 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast

address-family ipv6 unicast

neighbor 192.168.102.1
remote-as 14
address-family ipv4 unicast
route-policy PASS_CE in
route-policy PASS_CE out
as-override

neighbor 2001:192:102::1
remote-as 14
address-family ipv6 unicast
route-policy PASS_CE in
route-policy PASS_CE out
as-override

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

Verifications

R1# sh ip bgp summary


BGP router identifier 1.1.1.1, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 288 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH 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

171
BGP using 744 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
192.168.102.10 4 1 32 38 3 0 0 00:29:53 1

R1# sh ip bgp
BGP table version is 3, 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


*> 1.1.1.1/32 0.0.0.0 0 32768 i
*> 4.4.4.4/32 192.168.102.10 011i

R1#sh ip bgp neighbors 192.168.102.10 advertised-routes


BGP table version is 3, 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


*> 1.1.1.1/32 0.0.0.0 0 32768 i

Total number of prefixes 1

R1#ping 4.4.4.4 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 104/129/160 ms

R1#traceroute 4.4.4.4 source lo0


Type escape sequence to abort.
Tracing the route to 4.4.4.4
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.102.10 32 msec 32 msec 32 msec
2 192.168.101.2 [MPLS: Labels 16/19 Exp 0] 132 msec 124 msec 100 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 92 msec 88 msec 92 msec
4 192.168.34.4 120 msec 156 msec 156 msec

172
R1#sh bgp ipv6 unicast summary
BGP router identifier 1.1.1.1, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 336 bytes of memory
2 path entries using 208 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH 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 840 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
2001:192:102::10
4 1 20 23 3 0 0 00:17:29 1

R1#sh bgp ipv6 unicast


BGP table version is 3, 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


*> 2001::1/128 :: 0 32768 i
*> 2001::4/128 2001:192:102::10
011i
R1#ping 2001::4 source lo0
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::4, timeout is 2 seconds:
Packet sent with a source address of 2001::1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 116/156/188 ms

R1#sh bgp ipv6 unicast neighbors 2001:192:102::10 advertised-routes


BGP table version is 3, 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


*> 2001::1/128 :: 0 32768 i

173
Total number of prefixes 1

R4#sh ip bgp summary


BGP router identifier 4.4.4.4, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 288 bytes of memory
2 path entries using 160 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH 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 744 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
192.168.34.3 4 1 46 46 3 0 0 00:37:47 1

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 Next Hop Metric LocPrf Weight Path


*> 1.1.1.1/32 192.168.34.3 011i
*> 4.4.4.4/32 0.0.0.0 0 32768 i

R4#sh ip bgp neighbors 192.168.34.3 advertised-routes


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 Next Hop Metric LocPrf Weight Path


*> 4.4.4.4/32 0.0.0.0 0 32768 i

Total number of prefixes 1

R4#ping 1.1.1.1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:

174
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 112/162/188 ms

R4#traceroute 1.1.1.1 source lo0


Type escape sequence to abort.
Tracing the route to 1.1.1.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.34.3 64 msec 36 msec 72 msec
2 192.168.23.2 [MPLS: Labels 17/16003 Exp 0] 168 msec 176 msec 152 msec
3 192.168.101.10 [MPLS: Label 16003 Exp 0] 160 msec 144 msec 172 msec
4 192.168.102.1 108 msec 184 msec 156 msec

R4#sh bgp ipv6 unicast summary


BGP router identifier 4.4.4.4, local AS number 14
BGP table version is 3, main routing table version 3
2 network entries using 336 bytes of memory
2 path entries using 208 bytes of memory
2/2 BGP path/bestpath attribute entries using 272 bytes of memory
1 BGP AS-PATH 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 840 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
2001:192:34::3 4 1 46 46 3 0 0 00:37:51 1

R4#sh bgp ipv6 unicast


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 Next Hop Metric LocPrf Weight Path


*> 2001::1/128 2001:192:34::3 011i
*> 2001::4/128 :: 0 32768 i

R4#ping 2001::1 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::1, timeout is 2 seconds:
Packet sent with a source address of 2001::4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 108/152/196 ms

175
R4#sh bgp ipv6 unicast neighbors 2001:192:34::3 advertised-routes
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 Next Hop Metric LocPrf Weight Path


*> 2001::4/128 :: 0 32768 i

Total number of prefixes 1

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 4, main routing table version 4
2 network entries using 312 bytes of memory
2 path entries using 160 bytes of memory
3/2 BGP path/bestpath attribute entries using 432 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 952 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 362 415 4 0 0 06:10:41 1
192.168.34.4 4 14 47 47 4 0 0 00:38:57 1

R3#sh bgp vpnv4 unicast all


BGP table version is 4, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 1.1.1.1/32 10.10.10.10 0 100 0 14 i
*> 4.4.4.4/32 192.168.34.4 0 0 14 i

R3#sh bgp vpnv6 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1

176
BGP table version is 4, main routing table version 4
2 network entries using 360 bytes of memory
2 path entries using 216 bytes of memory
3/2 BGP path/bestpath attribute entries using 432 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 1056 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 1 363 415 4 0 0 06:10:52 1
2001:192:34::4 4 14 47 47 4 0 0 00:38:43 1

R3#sh bgp vpnv6 unicast all


BGP table version is 4, 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

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i 2001::1/128 ::FFFF:10.10.10.10
0 100 0 14 i
*> 2001::4/128 2001:192:34::4 0 0 14 i

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary


Thu May 1 20:28:13.882 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 5 5 5 5 5 5

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 416 363 5 0 0 05:59:23 1

177
RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast
Thu May 1 20:28:14.602 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 0 0 14 i
*>i4.4.4.4/32 3.3.3.3 0 100 0 14 i

Processed 2 prefixes, 2 paths


RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast summary
Thu May 1 20:28:20.842 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 5 5 5 5 5 5

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 416 363 5 0 0 05:59:30 1

RP/0/0/CPU0:XR1#sh bgp vpnv6 unicast


Thu May 1 20:28:21.632 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 5
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete

178
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 2001::1/128 2001:192:102::1 0 0 14 i
*>i2001::4/128 3.3.3.3 0 100 0 14 i

Processed 2 prefixes, 2 paths

179
Inter-AS Option-A
Network Diagram

R1 XR1 R2 R3
192.168.102.0/24 192.168.101.0/24 192.168.23.0/24

192.168.34.0/24
192.168.15.0/24

R5 R4

192.168.46.0/24
192.168.57.0/24

R7 R6
AS #10 AS #20
ISIS A49.0001 OSPF A0

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 1.1.1.1 255.255.255.255

R2
interface FastEthernet1/0
no ip address

180
speed auto
duplex auto

interface FastEthernet1/0.201
encapsulation dot1Q 201
ip address 192.168.101.2 255.255.255.0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 2.2.2.2 255.255.255.255

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 3.3.3.3 255.255.255.255

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full

interface FastEthernet1/1
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 4.4.4.4 255.255.255.255

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
speed 100

181
duplex full

interface FastEthernet1/1
ip address 192.168.57.5 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 5.5.5.5 255.255.255.255

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 6.6.6.6 255.255.255.255

R7
interface FastEthernet1/0
ip address 192.168.57.7 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 7.7.7.7 255.255.255.255

RP/0/0/CPU0:XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2.201
ipv4 address 192.168.101.10 255.255.255.0
encapsulation dot1q 201

182
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
ip router isis 1
speed auto
duplex auto
mpls ip

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
isis circuit-type level-2-only

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip router isis 1

router isis 1
net 49.0001.0000.0000.0001.00
is-type level-2-only

mpls ldp router-id Loopback0 force

R2
interface FastEthernet1/0
no ip address
speed auto
duplex auto

interface FastEthernet1/0.201
encapsulation dot1Q 201
vrf forwarding MSSK
ip address 192.168.101.2 255.255.255.0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

183
interface Loopback0
ip address 2.2.2.2 255.255.255.255

router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0

router rip

address-family ipv4 vrf MSSK


redistribute bgp 20 metric 1
network 192.168.101.0
no auto-summary
version 2
exit-address-family

router bgp 20
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 4.4.4.4 remote-as 20
neighbor 4.4.4.4 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 4.4.4.4 activate
neighbor 4.4.4.4 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip
exit-address-family

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
ip ospf network point-to-point
speed 100

184
duplex full
mpls ip

interface Loopback0
ip address 3.3.3.3 255.255.255.255

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0
network 192.168.34.3 0.0.0.0 area 0

mpls ldp router-id Loopback0 force

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 4.4.4.4 255.255.255.255

router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.34.4 0.0.0.0 area 0

router rip

address-family ipv4 vrf MSSK


redistribute bgp 20 metric 1
network 192.168.46.0
no auto-summary
version 2
exit-address-family

router bgp 20
bgp log-neighbor-changes

185
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 20
neighbor 2.2.2.2 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip
exit-address-family

mpls ldp router-id Loopback0 force

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
isis circuit-type level-2-only

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.57.5 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 5.5.5.5 255.255.255.255
ip router isis 1

router isis 1
net 49.0001.0000.0000.0005.00
is-type level-2-only

router rip

address-family ipv4 vrf MSSK


redistribute bgp 10 metric 1
network 192.168.57.0
no auto-summary

186
version 2
exit-address-family

router bgp 10
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 10
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip
exit-address-family
mpls ldp router-id Loopback0 force

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 6.6.6.6 255.255.255.255

router rip
version 2
network 6.0.0.0
network 192.168.46.0
no auto-summary

R7
interface FastEthernet1/0
ip address 192.168.57.7 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 7.7.7.7 255.255.255.255

router rip

187
version 2
network 7.0.0.0
network 192.168.57.0
no auto-summary

RP/0/0/CPU0:XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
10:1

export route-target
10:1

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2
cdp

interface GigabitEthernet0/0/0/2.201
vrf MSSK
ipv4 address 192.168.101.10 255.255.255.0
encapsulation dot1q 201

route-policy PASS
pass
end-policy

route-policy RIP_METRIC
set rip-metric 1
end-policy

router isis 1
is-type level-2-only
net 49.0001.0000.0000.0010.00
address-family ipv4 unicast

interface Loopback0
address-family ipv4 unicast
interface GigabitEthernet0/0/0/0

188
address-family ipv4 unicast

router bgp 10
address-family ipv4 unicast

address-family vpnv4 unicast

neighbor 5.5.5.5
remote-as 10
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 10:1
address-family ipv4 unicast
redistribute rip

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/0

router rip
vrf MSSK
interface GigabitEthernet0/0/0/2.201

redistribute bgp 10 route-policy RIP_METRIC

router eigrp MSSK


address-family ipv4
autonomous-system 1
interface Loopback0
passive-interface

interface GigabitEthernet0/0/0/2

Verifications

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
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

189
Gateway of last resort is not set

6.0.0.0/32 is subnetted, 1 subnets


R 6.6.6.6 [120/1] via 192.168.57.5, 00:00:21, FastEthernet1/0
R 192.168.46.0/24 [120/1] via 192.168.57.5, 00:00:21, FastEthernet1/0
R 192.168.101.0/24 [120/1] via 192.168.57.5, 00:00:21, FastEthernet1/0

R7#ping 6.6.6.6 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 7.7.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1140/1361/1524 ms

R7#traceroute 6.6.6.6 source lo0 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.168.57.5 24 msec 116 msec 188 msec
2 192.168.15.1 [MPLS: Labels 17/16004 Exp 0] 784 msec 732 msec 476 msec
3 192.168.102.10 [MPLS: Label 16004 Exp 0] 632 msec 640 msec 764 msec
4 192.168.101.2 636 msec 708 msec 704 msec
5 192.168.23.3 [MPLS: Labels 17/19 Exp 0] 1376 msec 896 msec 1116 msec
6 192.168.46.4 [MPLS: Label 19 Exp 0] 904 msec 700 msec 852 msec
7 192.168.46.6 988 msec 828 msec 984 msec

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

7.0.0.0/32 is subnetted, 1 subnets


R 7.7.7.7 [120/1] via 192.168.57.7, 00:00:11, FastEthernet1/1

R5#sh bgp vpnv4 unicast all summary


BGP router identifier 5.5.5.5, local AS number 10
BGP table version is 13, main routing table version 13
5 network entries using 780 bytes of memory

190
5 path entries using 400 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 1780 total bytes of memory
BGP activity 7/2 prefixes, 7/2 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
10.10.10.10 4 10 94 216 13 0 0 03:04:22 3

R5#sh bgp vpnv4 unicast all


BGP table version is 13, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 10:1 (default for vrf MSSK)
*>i 6.6.6.6/32 10.10.10.10 1 100 0?
*> 7.7.7.7/32 192.168.57.7 1 32768 ?
*>i 192.168.46.0 10.10.10.10 1 100 0?
*> 192.168.57.0 0.0.0.0 0 32768 ?
*>i 192.168.101.0 10.10.10.10 0 100 0?

R5#sh bgp vpnv4 unicast all neighbors 10.10.10.10 advertised-routes


BGP table version is 13, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 10:1 (default for vrf MSSK)
*> 7.7.7.7/32 192.168.57.7 1 32768 ?
*> 192.168.57.0 0.0.0.0 0 32768 ?

Total number of prefixes 2

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Sun May 11 13:38:55.696 UTC
BGP router identifier 10.10.10.10, local AS number 10
BGP generic scan interval 60 secs

191
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 295
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 10:1 (default for vrf MSSK)
*> 6.6.6.6/32 192.168.101.2 1 32768 ?
*>i7.7.7.7/32 5.5.5.5 1 100 0?
*> 192.168.46.0/24 192.168.101.2 1 32768 ?
*>i192.168.57.0/24 5.5.5.5 0 100 0?
*> 192.168.101.0/24 0.0.0.0 0 32768 ?

Processed 5 prefixes, 5 paths


RP/0/0/CPU0:XR1#sh route vrf MSSK rip
Sun May 11 13:39:05.435 UTC

R 6.6.6.6/32 [120/1] via 192.168.101.2, 00:06:30, GigabitEthernet0/0/0/2.201


R 192.168.46.0/24 [120/1] via 192.168.101.2, 00:06:30,
GigabitEthernet0/0/0/2.201

R2#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

7.0.0.0/32 is subnetted, 1 subnets


R 7.7.7.7 [120/1] via 192.168.101.10, 00:00:38, FastEthernet1/0.201
R 192.168.57.0/24
[120/1] via 192.168.101.10, 00:00:38, FastEthernet1/0.201

R2#sh bgp vpnv4 unicast all summary


BGP router identifier 2.2.2.2, local AS number 20
BGP table version is 34, main routing table version 34
5 network entries using 780 bytes of memory

192
5 path entries using 400 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 1780 total bytes of memory
BGP activity 9/4 prefixes, 17/12 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
4.4.4.4 4 20 222 223 34 0 0 03:07:34 2

R2#sh bgp vpnv4 unicast all neighbors 4.4.4.4 advertised-routes


BGP table version is 34, 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: 10:1 (default for vrf MSSK)
*> 7.7.7.7/32 192.168.101.10 1 32768 ?
*> 192.168.57.0 192.168.101.10 1 32768 ?
*> 192.168.101.0 0.0.0.0 0 32768 ?

R4#sh bgp vpnv4 unicast all summary


BGP router identifier 4.4.4.4, local AS number 20
BGP table version is 43, main routing table version 43
5 network entries using 780 bytes of memory
5 path entries using 400 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 1780 total bytes of memory
BGP activity 9/4 prefixes, 17/12 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
2.2.2.2 4 20 223 223 43 0 0 03:08:10 3

R4#sh bgp vpnv4 unicast all


BGP table version is 43, 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,

193
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: 10:1 (default for vrf MSSK)
*> 6.6.6.6/32 192.168.46.6 1 32768 ?
*>i 7.7.7.7/32 2.2.2.2 1 100 0?
*> 192.168.46.0 0.0.0.0 0 32768 ?
*>i 192.168.57.0 2.2.2.2 1 100 0?
*>i 192.168.101.0 2.2.2.2 0 100 0?

R6#ping 7.7.7.7 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
Packet sent with a source address of 6.6.6.6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1012/1083/1140 ms

R6#traceroute 7.7.7.7 source lo0 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.168.46.4 192 msec 152 msec 256 msec
2 192.168.34.3 [MPLS: Labels 16/26 Exp 0] 664 msec 564 msec 700 msec
3 192.168.101.2 [MPLS: Label 26 Exp 0] 568 msec 624 msec 688 msec
4 192.168.101.10 856 msec 916 msec 916 msec
5 192.168.102.1 [MPLS: Labels 16/21 Exp 0] 1704 msec 1328 msec 1512 msec
6 192.168.57.5 [MPLS: Label 21 Exp 0] 1296 msec 1384 msec 1140 msec
7 192.168.57.7 1452 msec 1648 msec 1268 msec

194
Inter-AS Option-B

Network Diagram

R1 XR1 R2 R3
192.168.102.0/24 192.168.101.0/24 192.168.23.0/24

192.168.34.0/24
192.168.15.0/24

R5 R4

192.168.46.0/24
192.168.57.0/24

R7 R6
AS #10 AS #20
ISIS A49.0001 OSPF A0

Initial Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
speed auto
duplex auto

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 1.1.1.1 255.255.255.255

R2
interface FastEthernet1/0

195
no ip address
speed auto
duplex auto

interface FastEthernet1/0.201
encapsulation dot1Q 201
ip address 192.168.101.2 255.255.255.0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 2.2.2.2 255.255.255.255

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
speed 100
duplex full

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 3.3.3.3 255.255.255.255

R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
speed 100
duplex full

interface FastEthernet1/1
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 4.4.4.4 255.255.255.255

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0

196
speed 100
duplex full

interface FastEthernet1/1
ip address 192.168.57.5 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 5.5.5.5 255.255.255.255

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 6.6.6.6 255.255.255.255

R7
interface FastEthernet1/0
ip address 192.168.57.7 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 7.7.7.7 255.255.255.255

RP/0/0/CPU0:XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2.201
ipv4 address 192.168.101.10 255.255.255.0
encapsulation dot1q 201

197
Configurations

R1
interface FastEthernet1/0
ip address 192.168.102.1 255.255.255.0
ip router isis 1
speed auto
duplex auto
mpls ip

interface FastEthernet1/1
ip address 192.168.15.1 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
isis circuit-type level-2-only

interface Loopback0
ip address 1.1.1.1 255.255.255.255
ip router isis 1

router isis 1
net 49.0001.0000.0000.0001.00
is-type level-2-only

mpls ldp router-id Loopback0 force

R2
interface FastEthernet1/0
no ip address
speed auto
duplex auto

interface FastEthernet1/0.201
encapsulation dot1Q 201
ip address 192.168.101.2 255.255.255.0

interface FastEthernet1/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface Loopback0
ip address 2.2.2.2 255.255.255.255

198
router ospf 1
router-id 2.2.2.2
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0

router bgp 20
bgp log-neighbor-changes
no bgp default ipv4-unicast
no bgp default route-target filter
neighbor 4.4.4.4 remote-as 20
neighbor 4.4.4.4 update-source Loopback0
neighbor 192.168.101.10 remote-as 10

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.168.101.10 activate
neighbor 192.168.101.10 send-community both
exit-address-family

R3
interface FastEthernet1/0
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface FastEthernet1/1
ip address 192.168.34.3 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface Loopback0
ip address 3.3.3.3 255.255.255.255

router ospf 1
router-id 3.3.3.3
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0
network 192.168.34.3 0.0.0.0 area 0

mpls ldp router-id Loopback0 force

199
R4
interface FastEthernet1/0
ip address 192.168.34.4 255.255.255.0
ip ospf network point-to-point
speed 100
duplex full
mpls ip

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.46.4 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 4.4.4.4 255.255.255.255

router ospf 1
router-id 4.4.4.4
network 4.4.4.4 0.0.0.0 area 0
network 192.168.34.4 0.0.0.0 area 0

router rip

address-family ipv4 vrf MSSK


redistribute bgp 20 metric 1
network 192.168.46.0
no auto-summary
version 2
exit-address-family

router bgp 20
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 2.2.2.2 remote-as 20
neighbor 2.2.2.2 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
exit-address-family

address-family ipv4 vrf MSSK

200
redistribute rip
exit-address-family

mpls ldp router-id Loopback0 force

R5
interface FastEthernet1/0
ip address 192.168.15.5 255.255.255.0
ip router isis 1
speed 100
duplex full
mpls ip
isis circuit-type level-2-only

interface FastEthernet1/1
vrf forwarding MSSK
ip address 192.168.57.5 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 5.5.5.5 255.255.255.255
ip router isis 1

router isis 1
net 49.0001.0000.0000.0005.00
is-type level-2-only

router rip

address-family ipv4 vrf MSSK


redistribute bgp 10 metric 1
network 192.168.57.0
no auto-summary
version 2
exit-address-family

router bgp 10
bgp log-neighbor-changes
no bgp default ipv4-unicast
neighbor 10.10.10.10 remote-as 10
neighbor 10.10.10.10 update-source Loopback0

address-family ipv4
exit-address-family

address-family vpnv4

201
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip
exit-address-family
mpls ldp router-id Loopback0 force

R6
interface FastEthernet1/0
ip address 192.168.46.6 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 6.6.6.6 255.255.255.255

router rip
version 2
network 6.0.0.0
network 192.168.46.0
no auto-summary

R7
interface FastEthernet1/0
ip address 192.168.57.7 255.255.255.0
speed 100
duplex full

interface Loopback0
ip address 7.7.7.7 255.255.255.255

router rip
version 2
network 7.0.0.0
network 192.168.57.0
no auto-summary

RP/0/0/CPU0:XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0

202
duplex full

interface GigabitEthernet0/0/0/2
cdp

interface GigabitEthernet0/0/0/2.201
ipv4 address 192.168.101.10 255.255.255.0
encapsulation dot1q 201

route-policy PASS
pass
end-policy

router static
address-family ipv4 unicast
192.168.101.2/32 GigabitEthernet0/0/0/2.201

router isis 1
is-type level-2-only
net 49.0001.0000.0000.0010.00
address-family ipv4 unicast

interface Loopback0
address-family ipv4 unicast

interface GigabitEthernet0/0/0/0
address-family ipv4 unicast

router bgp 10
address-family vpnv4 unicast
retain route-target all

neighbor 5.5.5.5
remote-as 10
update-source Loopback0
address-family vpnv4 unicast
next-hop-self

neighbor 192.168.101.2
remote-as 20
address-family vpnv4 unicast
route-policy PASS in
route-policy PASS out

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/0

203
Verifications

R6#ping 7.7.7.7 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 7.7.7.7, timeout is 2 seconds:
Packet sent with a source address of 6.6.6.6
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1048/1358/1552 ms

R6#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
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

7.0.0.0/32 is subnetted, 1 subnets


R 7.7.7.7 [120/1] via 192.168.46.4, 00:00:17, FastEthernet1/0
R 192.168.57.0/24 [120/1] via 192.168.46.4, 00:00:17, FastEthernet1/0

R6#traceroute 7.7.7.7 source lo0 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.168.46.4 252 msec 64 msec 124 msec
2 192.168.34.3 [MPLS: Labels 16/23 Exp 0] 1564 msec 1600 msec 1584 msec
3 192.168.23.2 [MPLS: Label 23 Exp 0] 1528 msec 1360 msec 1392 msec
4 192.168.101.10 [MPLS: Label 16009 Exp 0] 1080 msec 1768 msec 1480 msec
5 192.168.102.1 [MPLS: Labels 16/21 Exp 0] 1536 msec 1316 msec 1188 msec
6 192.168.57.5 [MPLS: Label 21 Exp 0] 1076 msec 1136 msec 988 msec
7 192.168.57.7 1404 msec 1176 msec 1240 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
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

204
Gateway of last resort is not set

6.0.0.0/32 is subnetted, 1 subnets


R 6.6.6.6 [120/1] via 192.168.57.5, 00:00:26, FastEthernet1/0
R 192.168.46.0/24 [120/1] via 192.168.57.5, 00:00:26, FastEthernet1/0

R7#ping 6.6.6.6 source lo0


Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 6.6.6.6, timeout is 2 seconds:
Packet sent with a source address of 7.7.7.7
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1136/1263/1468 ms

R7#traceroute 6.6.6.6 source lo0 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.168.57.5 68 msec * 152 msec
2 192.168.15.1 [MPLS: Labels 17/16007 Exp 0] 1540 msec 1452 msec 1588 msec
3 192.168.102.10 [MPLS: Label 16007 Exp 0] 1456 msec 1504 msec 1280 msec
4 192.168.101.2 [MPLS: Label 20 Exp 0] 1612 msec 1396 msec 1408 msec
5 192.168.23.3 [MPLS: Labels 17/19 Exp 0] 1196 msec 1592 msec 1168 msec
6 192.168.46.4 [MPLS: Label 19 Exp 0] 972 msec 1140 msec 1248 msec
7 192.168.46.6 1520 msec 1520 msec 1268 msec

R4#sh bgp vpnv4 unicast all


BGP table version is 62, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 10:1 (default for vrf MSSK)
*> 6.6.6.6/32 192.168.46.6 1 32768 ?
*>i 7.7.7.7/32 2.2.2.2 0 100 0 10 ?
*> 192.168.46.0 0.0.0.0 0 32768 ?
*>i 192.168.57.0 2.2.2.2 0 100 0 10 ?

R2#sh bgp vpnv4 unicast all summary


BGP router identifier 2.2.2.2, local AS number 20
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
3/3 BGP path/bestpath attribute entries using 432 bytes of memory

205
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 1424 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down


State/PfxRcd
4.4.4.4 4 20 18 16 5 0 0 00:11:01 2
192.168.101.10 4 10 12 19 5 0 0 00:10:53 2

R2#sh bgp vpnv4 unicast all


BGP table version is 5, 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: 10:1
*>i 6.6.6.6/32 4.4.4.4 1 100 0?
*> 7.7.7.7/32 192.168.101.10 0 10 ?
*>i 192.168.46.0 4.4.4.4 0 100 0?
*> 192.168.57.0 192.168.101.10 0 10 ?

RP/0/0/CPU0:XR1# sh bgp vpnv4 unicast summary


Sun May 11 13:55:57.976 UTC
BGP router identifier 10.10.10.10, local AS number 10
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 318
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 318 318 318 318 318 318

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


5.5.5.5 0 10 258 114 318 0 0 01:45:38 2
192.168.101.2 0 20 47 36 318 0 0 00:05:29 2

RP/0/0/CPU0:XR1# sh bgp vpnv4 unicast


Sun May 11 13:55:58.196 UTC

206
BGP router identifier 10.10.10.10, local AS number 10
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 318
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 10:1
*> 6.6.6.6/32 192.168.101.2 0 20 ?
* i7.7.7.7/32 5.5.5.5 1 100 0?
*> 192.168.46.0/24 192.168.101.2 0 20 ?
* i192.168.57.0/24 5.5.5.5 0 100 0?

Processed 4 prefixes, 4 paths

R5#sh bgp vpnv4 unicast all


BGP table version is 20, 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 Next Hop Metric LocPrf Weight Path


Route Distinguisher: 10:1 (default for vrf MSSK)
*>i 6.6.6.6/32 10.10.10.10 100 0 20 ?
*> 7.7.7.7/32 192.168.57.7 1 32768 ?
*>i 192.168.46.0 10.10.10.10 100 0 20 ?
*> 192.168.57.0 0.0.0.0 0 32768 ?

207
Export Maps
Network Diagram
Lo0 2.2.2.2/32

R2
192.168.101.0/24 192.168.23.0/24

XR1
Lo0 10.10.10.10/32
OSPF A0
R3 Lo0 3.3.3.3/32

AS1
192.168.102.0/24 192.168.34.0/24

R1 Lo0 1.1.1.1/32 Lo0 4.4.4.4/32 R4


AS200 AS200

Initial Configurations

R1
interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto
no shutdown

interface Loopback0
ip address 1.1.1.1 255.255.255.255

R2
interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
duplex auto
speed auto
no shutdown

interface FastEthernet0/1

208
ip address 192.168.23.2 255.255.255.0
speed 100
full-duplex
no shutdown

interface Loopback0
ip address 2.2.2.2 255.255.255.255

R3
interface FastEthernet0/0
ip address 192.168.23.3 255.255.255.0
speed 100
full-duplex
no shutdown

interface FastEthernet0/1
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex
no shutdown

interface Loopback0
ip address 3.3.3.3 255.255.255.255

R4
interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex
no shutdown

interface Loopback0
ip address 4.4.4.4 255.255.255.255

RP/0/0/CPU0:XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2
cdp

209
ipv4 address 192.168.101.10 255.255.255.0

210
Configurations

R1
interface FastEthernet0/0
ip address 192.168.102.1 255.255.255.0
duplex auto
speed auto

interface Loopback0
ip address 1.1.1.1 255.255.255.255

router rip
version 2
network 1.0.0.0
network 192.168.102.0
no auto-summary

R2
interface FastEthernet0/0
ip address 192.168.101.2 255.255.255.0
ip ospf network point-to-point
duplex auto
speed auto
mpls ip

interface FastEthernet0/1
ip address 192.168.23.2 255.255.255.0
ip ospf network point-to-point
speed 100
full-duplex
mpls ip

interface Loopback0
ip address 2.2.2.2 255.255.255.255

router ospf 1
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 192.168.23.2 0.0.0.0 area 0
network 192.168.101.2 0.0.0.0 area 0

mpls label protocol ldp


mpls ldp router-id Loopback0 force

R3
interface FastEthernet0/0

211
ip address 192.168.23.3 255.255.255.0
ip ospf network point-to-point
speed 100
full-duplex
mpls ip

interface FastEthernet0/1
ip vrf forwarding MSSK
ip address 192.168.34.3 255.255.255.0
speed 100
full-duplex

interface Loopback0
ip address 3.3.3.3 255.255.255.255

router rip

address-family ipv4 vrf MSSK


redistribute bgp 1 metric 1
network 192.168.34.0
no auto-summary
version 2
exit-address-family

router ospf 1
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 192.168.23.3 0.0.0.0 area 0

router bgp 1
no bgp default ipv4-unicast
bgp log-neighbor-changes
neighbor 10.10.10.10 remote-as 1
neighbor 10.10.10.10 update-source Loopback0

address-family vpnv4
neighbor 10.10.10.10 activate
neighbor 10.10.10.10 send-community both
exit-address-family

address-family ipv4 vrf MSSK


redistribute rip
no synchronization
exit-address-family
mpls label protocol ldp
mpls ldp router-id Loopback0 force

212
ip vrf MSSK
rd 100:1
export map COMM
route-target import 10.10.10.10:1

ip prefix-list R4LOOP seq 5 permit 4.4.4.4/32

route-map COMM permit 10


match ip address prefix-list R4LOOP
set extcommunity rt 100:4

R4
interface FastEthernet0/0
ip address 192.168.34.4 255.255.255.0
speed 100
full-duplex

interface Loopback0
ip address 4.4.4.4 255.255.255.255

router rip
version 2
network 4.0.0.0
network 192.168.34.0
no auto-summary

RP/0/0/CPU0:XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:4

export route-policy COMM

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
vrf MSSK
ipv4 address 192.168.102.10 255.255.255.0
duplex full

interface GigabitEthernet0/0/0/2
cdp

213
ipv4 address 192.168.101.10 255.255.255.0

extcommunity-set rt EXTCOMM
10.10.10.10:1
end-set

prefix-set R1LOOP
1.1.1.1/32
end-set

route-policy COMM
if destination in R1LOOP then
set extcommunity rt EXTCOMM
endif
end-policy

route-policy PASS_CE
pass
end-policy

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2
network point-to-point

router bgp 1
address-family ipv4 unicast

address-family vpnv4 unicast

neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast

vrf MSSK
rd 100:1
address-family ipv4 unicast
redistribute rip

mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2

214
router rip
vrf MSSK
interface GigabitEthernet0/0/0/0

redistribute bgp 1

Verifications

R1#sh ip route rip


4.0.0.0/32 is subnetted, 1 subnets
R 4.4.4.4 [120/2] via 192.168.102.10, 00:00:21, FastEthernet0/0

R1#sh ip rip database


1.0.0.0/8 auto-summary
1.1.1.1/32 directly connected, Loopback0
4.0.0.0/8 auto-summary
4.4.4.4/32
[2] via 192.168.102.10, 00:00:27, FastEthernet0/0
192.168.102.0/24 auto-summary
192.168.102.0/24 directly connected, FastEthernet0/0

R1#ping 4.4.4.4 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2 seconds:
Packet sent with a source address of 1.1.1.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 188/208/256 ms

R1#traceroute 4.4.4.4 source lo0

Type escape sequence to abort.


Tracing the route to 4.4.4.4

1 192.168.102.10 0 msec 32 msec 32 msec


2 192.168.101.2 [MPLS: Labels 17/19 Exp 0] 220 msec 188 msec 192 msec
3 192.168.34.3 [MPLS: Label 19 Exp 0] 128 msec 128 msec 128 msec
4 192.168.34.4 228 msec 184 msec 168 msec

R4#sh ip route rip


1.0.0.0/32 is subnetted, 1 subnets
R 1.1.1.1 [120/1] via 192.168.34.3, 00:00:09, FastEthernet0/0

R4#sh ip rip database


1.0.0.0/8 auto-summary
1.1.1.1/32
[1] via 192.168.34.3, 00:00:12, FastEthernet0/0

215
4.0.0.0/8 auto-summary
4.4.4.4/32 directly connected, Loopback0
192.168.34.0/24 auto-summary
192.168.34.0/24 directly connected, FastEthernet0/0

R4#ping 1.1.1.1 source lo0

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:
Packet sent with a source address of 4.4.4.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 156/184/216 ms

R4#traceroute 1.1.1.1 source lo0

Type escape sequence to abort.


Tracing the route to 1.1.1.1

1 192.168.34.3 60 msec 64 msec 64 msec


2 192.168.23.2 [MPLS: Labels 16/16000 Exp 0] 188 msec 188 msec 188 msec
3 192.168.101.10 [MPLS: Label 16000 Exp 0] 192 msec 192 msec 192 msec
4 192.168.102.1 220 msec 192 msec 224 msec

R3#sh bgp vpnv4 unicast all summary


BGP router identifier 3.3.3.3, local AS number 1
BGP table version is 119, main routing table version 119
3 network entries using 420 bytes of memory
3 path entries using 204 bytes of memory
4/3 BGP path/bestpath attribute entries using 496 bytes of memory
2 BGP extended community entries using 48 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
Bitfield cache entries: current 1 (at peak 3) using 32 bytes of memory
BGP using 1200 total bytes of memory
BGP activity 20/17 prefixes, 47/44 paths, scan interval 15 secs

Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd


10.10.10.10 4 1 123 135 119 0 0 01:52:12 1
R3#sh bgp vpnv4 unicast all
BGP table version is 119, 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
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight Path


Route Distinguisher: 100:1 (default for vrf MSSK)
*>i1.1.1.1/32 10.10.10.10 1 100 0?

216
*> 4.4.4.4/32 192.168.34.4 1 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast a


advertised attribute-key
RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast summary
Mon Apr 28 11:04:35.969 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 17
BGP scan interval 60 secs

BGP is operating in STANDALONE mode.

Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer


Speaker 17 17 17 17 17 17

Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd


3.3.3.3 0 1 444 422 17 0 0 01:48:55 1

RP/0/0/CPU0:XR1#sh bgp vpnv4 unicast


Mon Apr 28 11:04:36.929 UTC
BGP router identifier 10.10.10.10, local AS number 1
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 17
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 100:1 (default for vrf MSSK)
*> 1.1.1.1/32 192.168.102.1 1 32768 ?
*>i4.4.4.4/32 3.3.3.3 1 100 0?
*> 192.168.102.0/24 0.0.0.0 0 32768 ?

Processed 3 prefixes, 3 paths

R3#sh bgp vpnv4 unicast all 1.1.1.1/32


BGP routing table entry for 100:1:1.1.1.1/32, version 119
Paths: (1 available, best #1, table MSSK)
Not advertised to any peer
Local

217
10.10.10.10 (metric 12) from 10.10.10.10 (10.10.10.10)
Origin incomplete, metric 1, localpref 100, valid, internal, best
Extended Community: RT:10.10.10.10:1
mpls labels in/out nolabel/16000
R3#sh bgp vpnv4 unicast all 4.4.4.4/32
BGP routing table entry for 100:1:4.4.4.4/32, version 117
Paths: (1 available, best #1, table MSSK)
Advertised to update-groups:
1
Local
192.168.34.4 from 0.0.0.0 (3.3.3.3)
Origin incomplete, metric 1, localpref 100, weight 32768, valid, sourced, best
Extended Community: RT:100:4
mpls labels in/out 19/nolabel

RP/0/0/CPU0:XR1#sh bgp vrf MSSK 1.1.1.1/32


Mon Apr 28 11:08:02.855 UTC
BGP routing table entry for 1.1.1.1/32, Route Distinguisher: 100:1
Versions:
Process bRIB/RIB SendTblVer
Speaker 17 17
Local Label: 16000
Last Modified: Apr 28 10:47:33.645 for 00:20:29
Paths: (1 available, best #1)
Advertised to PE peers (in unique update groups):
3.3.3.3
Path #1: Received by speaker 0
Advertised to PE peers (in unique update groups):
3.3.3.3
Local
192.168.102.1 from 0.0.0.0 (10.10.10.10)
Origin incomplete, metric 1, localpref 100, weight 32768, valid, redistributed, best,
group-best, import-candidate
Received Path ID 0, Local Path ID 1, version 17
Extended community: RT:10.10.10.10:1
RP/0/0/CPU0:XR1#sh bgp vrf MSSK 4.4.4.4/32
Mon Apr 28 11:08:09.004 UTC
BGP routing table entry for 4.4.4.4/32, Route Distinguisher: 100:1
Versions:
Process bRIB/RIB SendTblVer
Speaker 15 15
Last Modified: Apr 28 10:38:59.645 for 00:29:09
Paths: (1 available, best #1)
Not advertised to any peer
Path #1: Received by speaker 0
Not advertised to any peer
Local

218
3.3.3.3 (metric 3) from 3.3.3.3 (3.3.3.3)
Received Label 19
Origin incomplete, metric 1, localpref 100, valid, internal, best, group-best, import-
candidate, imported
Received Path ID 0, Local Path ID 1, version 15
Extended community: RT:100:4
Source VRF: MSSK, Source Route Distinguisher: 100:1

219
SNMP

SNMPv2c

RP/0/0/CPU0:XR1#sh run snmp


Mon Apr 28 16:49:26.702 UTC
snmp-server community secure RO SNMP_ACL

RP/0/0/CPU0:XR1#sh run ipv4 access-list


Mon Apr 28 16:49:32.181 UTC
ipv4 access-list SNMP_ACL
10 permit ipv4 host 192.168.2.2 any

220
SNMPv3

AUTHNOPRIV

snmp-server group MSSKGRP v3 auth


snmp-server user MSSKUSER MSSKGRP v3 auth md5 MSSKPASS SNMP_ACL

AUTHPRIV

snmp-server group MSSKGRP v3 priv


snmp-server user MSSKUSER MSSKGRP v3 auth md5 MSSPASS priv des256 MSSKPRIV
SNMP_ACL

RP/0/0/CPU0:XR1#sh snmp users


Mon Apr 28 17:21:30.870 UTC
User Name: MSSKUSER
EngineId: localSnmpID
storage-type: nonvolatile active

221
RP/0/0/CPU0:XR1#sh snmp group
Mon Apr 28 17:21:33.510 UTC
groupname: MSSKGRP security model:usm
readview : v1default writeview:
notifyview:
row status: active

222
223
VPLS
Network Diagram

Lo0 10.10.10.10/32 XR1 192.168.21.0/24


XR2 Lo0 20.20.20.20/32

R1 R2

Initial Configurations

XR1
hostname XR1
cdp

interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0

XR2
hostname XR2
cdp

interface Loopback0
ipv4 address 20.20.20.20 255.255.255.255

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0

224
Configurations

XR1
hostname XR1
cdp
interface Loopback0
ipv4 address 10.10.10.10 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp
duplex full

interface GigabitEthernet0/0/0/0.12 l2transport


dot1q vlan 12
interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.10 255.255.255.0

router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

l2vpn
pw-class CLASS
encapsulation mpls
transport-mode ethernet

bridge group GRP


bridge-domain 12
interface GigabitEthernet0/0/0/0.12

vfi 12
neighbor 20.20.20.20 pw-id 12
pw-class CLASS

XR2
hostname XR2
cdp

interface Loopback0
ipv4 address 20.20.20.20 255.255.255.255

interface GigabitEthernet0/0/0/0
cdp

225
interface GigabitEthernet0/0/0/0.12 l2transport
dot1q vlan 12

interface GigabitEthernet0/0/0/2
cdp
ipv4 address 192.168.21.20 255.255.255.0

router ospf 1
router-id 20.20.20.20
area 0
interface Loopback0

interface GigabitEthernet0/0/0/2

l2vpn
pw-class CLASS
encapsulation mpls
transport-mode ethernet

bridge group GRP


bridge-domain 12
interface GigabitEthernet0/0/0/0.12

vfi 12
neighbor 10.10.10.10 pw-id 12
pw-class CLASS

Verifications

RP/0/0/CPU0:XR1#sh l2vpn bridge-domain brief


Mon May 12 11:07:37.879 UTC
Legend: pp = Partially Programmed.
Bridge Group:Bridge-Domain Name ID State Num ACs/up Num PWs/up
-------------------------------- ----- -------------- ------------ -------------
GRP:12 0 up 1/1 1/0

RP/0/0/CPU0:XR1#sh l2vpn bridge-domain detail


Mon May 12 11:07:47.938 UTC
Legend: pp = Partially Programmed.
Bridge group: GRP, bridge-domain: 12, id: 0, state: up, ShgId: 0, MSTi: 0
Coupled state: disabled
MAC learning: enabled
MAC withdraw: enabled
MAC withdraw for Access PW: enabled
MAC withdraw sent on: bridge port up

226
MAC withdraw relaying (access to access): disabled
Flooding:
Broadcast & Multicast: enabled
Unknown unicast: enabled
MAC aging time: 300 s, Type: inactivity
MAC limit: 4000, Action: none, Notification: syslog
MAC limit reached: no
MAC port down flush: enabled
MAC Secure: disabled, Logging: disabled
Split Horizon Group: none
Dynamic ARP Inspection: disabled, Logging: disabled
IP Source Guard: disabled, Logging: disabled
DHCPv4 snooping: disabled
IGMP Snooping: enabled
IGMP Snooping profile: none
MLD Snooping profile: none
Storm Control: disabled
Bridge MTU: 1500
MIB cvplsConfigIndex: 1
Filter MAC addresses:
P2MP PW: disabled
Create time: 11/05/2014 17:09:21 (17:58:26 ago)
No status change since creation
ACs: 1 (1 up), VFIs: 1, PWs: 1 (0 up), PBBs: 0 (0 up)
List of ACs:
AC: GigabitEthernet0/0/0/0.12, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [12, 12]
MTU 1500; XC ID 0x1; interworking none
MAC learning: enabled
Flooding:
Broadcast & Multicast: enabled
Unknown unicast: enabled
MAC aging time: 300 s, Type: inactivity
MAC limit: 4000, Action: none, Notification: syslog
MAC limit reached: no
MAC port down flush: enabled
MAC Secure: disabled, Logging: disabled
Split Horizon Group: none
Dynamic ARP Inspection: disabled, Logging: disabled
IP Source Guard: disabled, Logging: disabled
DHCPv4 snooping: disabled
IGMP Snooping: enabled
IGMP Snooping profile: none
MLD Snooping profile: none
Storm Control: disabled
Static MAC addresses:

227
Statistics:
packets: received 0, sent 0
bytes: received 0, sent 0
Storm control drop counters:
packets: broadcast 0, multicast 0, unknown unicast 0
bytes: broadcast 0, multicast 0, unknown unicast 0
Dynamic ARP inspection drop counters:
packets: 0, bytes: 0
IP source guard drop counters:
packets: 0, bytes: 0
List of Access PWs:
List of VFIs:
VFI 12 (up)
PW: neighbor 20.20.20.20, PW ID 12, state is down ( provisioned ) (Transport LSP
Down)
PW class CLASS, XC ID 0xff000001
Encapsulation MPLS, protocol LDP
Source address 10.10.10.10
PW type Ethernet, control word disabled, interworking none
Sequencing not set

PW Status TLV in use


MPLS Local Remote
------------ ------------------------------ -------------------------
Label 16002 unknown
Group ID 0x0 0x0
Interface 12 unknown
MTU 1500 unknown
Control word disabled unknown
PW type Ethernet unknown
VCCV CV type 0x2 0x0
(none)
(LSP ping verification)
VCCV CC type 0x6 0x0
(none)
(router alert label)
(TTL expiry)
------------ ------------------------------ -------------------------
MIB cpwVcIndex: 4278190081
Create time: 11/05/2014 17:10:51 (17:56:56 ago)
Last time status changed: 11/05/2014 17:10:51 (17:56:56 ago)
MAC withdraw messages: sent 0, received 0
Static MAC addresses:
DHCPv4 snooping: disabled
IGMP Snooping profile: none
MLD Snooping profile: none
VFI Statistics:

228
drops: illegal VLAN 0, illegal length 0

RP/0/0/CPU0:XR2#sh l2vpn bridge-domain brief


Mon May 12 11:08:06.477 UTC
Legend: pp = Partially Programmed.
Bridge Group:Bridge-Domain Name ID State Num ACs/up Num PWs/up
-------------------------------- ----- -------------- ------------ -------------
GRP:12 0 up 1/1 1/0
RP/0/0/CPU0:XR2#sh l2vpn bridge-domain detail
Mon May 12 11:08:08.967 UTC
Legend: pp = Partially Programmed.
Bridge group: GRP, bridge-domain: 12, id: 0, state: up, ShgId: 0, MSTi: 0
Coupled state: disabled
MAC learning: enabled
MAC withdraw: enabled
MAC withdraw for Access PW: enabled
MAC withdraw sent on: bridge port up
MAC withdraw relaying (access to access): disabled
Flooding:
Broadcast & Multicast: enabled
Unknown unicast: enabled
MAC aging time: 300 s, Type: inactivity
MAC limit: 4000, Action: none, Notification: syslog
MAC limit reached: no
MAC port down flush: enabled
MAC Secure: disabled, Logging: disabled
Split Horizon Group: none
Dynamic ARP Inspection: disabled, Logging: disabled
IP Source Guard: disabled, Logging: disabled
DHCPv4 snooping: disabled
IGMP Snooping: enabled
IGMP Snooping profile: none
MLD Snooping profile: none
Storm Control: disabled
Bridge MTU: 1500
MIB cvplsConfigIndex: 1
Filter MAC addresses:
P2MP PW: disabled
Create time: 11/05/2014 17:09:36 (17:58:32 ago)
No status change since creation
ACs: 1 (1 up), VFIs: 1, PWs: 1 (0 up), PBBs: 0 (0 up)
List of ACs:
AC: GigabitEthernet0/0/0/0.12, state is up
Type VLAN; Num Ranges: 1
VLAN ranges: [12, 12]
MTU 1500; XC ID 0x1; interworking none

229
MAC learning: enabled
Flooding:
Broadcast & Multicast: enabled
Unknown unicast: enabled
MAC aging time: 300 s, Type: inactivity
MAC limit: 4000, Action: none, Notification: syslog
MAC limit reached: no
MAC port down flush: enabled
MAC Secure: disabled, Logging: disabled
Split Horizon Group: none
Dynamic ARP Inspection: disabled, Logging: disabled
IP Source Guard: disabled, Logging: disabled
DHCPv4 snooping: disabled
IGMP Snooping: enabled
IGMP Snooping profile: none
MLD Snooping profile: none
Storm Control: disabled
Static MAC addresses:
Statistics:
packets: received 0, sent 0
bytes: received 0, sent 0
Storm control drop counters:
packets: broadcast 0, multicast 0, unknown unicast 0
bytes: broadcast 0, multicast 0, unknown unicast 0
Dynamic ARP inspection drop counters:
packets: 0, bytes: 0
IP source guard drop counters:
packets: 0, bytes: 0
List of Access PWs:
List of VFIs:
VFI 12 (up)
PW: neighbor 10.10.10.10, PW ID 12, state is down ( provisioned ) (Transport LSP
Down)
PW class CLASS, XC ID 0xff000001
Encapsulation MPLS, protocol LDP
PW type Ethernet, control word disabled, interworking none
Sequencing not set

PW Status TLV in use


MPLS Local Remote
------------ ------------------------------ -------------------------
Label 16000 unknown
Group ID 0x0 0x0
Interface 12 unknown
MTU 1500 unknown
Control word disabled unknown
PW type Ethernet unknown

230
VCCV CV type 0x2 0x0
(none)
(LSP ping verification)
VCCV CC type 0x6 0x0
(none)
(router alert label)
(TTL expiry)
------------ ------------------------------ -------------------------
MIB cpwVcIndex: 4278190081
Create time: 11/05/2014 17:11:51 (17:56:17 ago)
Last time status changed: 11/05/2014 17:11:51 (17:56:17 ago)
MAC withdraw messages: sent 0, received 0
Static MAC addresses:
DHCPv4 snooping: disabled
IGMP Snooping profile: none
MLD Snooping profile: none
VFI Statistics:
drops: illegal VLAN 0, illegal length 0

231

You might also like