Professional Documents
Culture Documents
IOS XR Workbook PDF
IOS XR Workbook PDF
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
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
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
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
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
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
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
R1#ping 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
R4#ping 1.1.1.1
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
9
Tue Jun 24 02:12:37.292 UTC
10
Processed 2 prefixes, 2 paths
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
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
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
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
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
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
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
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?
19
Table ID: 0x0 RD version: 0
BGP main routing table version 25
BGP scan interval 60 secs
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
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
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
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 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
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
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
27
Type-5 AS External Link States
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
R3#sh ip vrf
Name Default RD Interfaces
MSSK 100:1 Fa0/1
29
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 10 10 10 10 10 10
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
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
We can see now that R1 prefers the backdoor link to reach R4 loopback 0 network
34
192.168.34.3 192.168.34.3 613 0x80000003 0x008E65 1
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 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
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
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
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
39
R1#sh ip ospf neighbor
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
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
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
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
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
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
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
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
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 ?
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
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
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
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
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
As can be seen that there are no routes received from XR1 (PE)
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.
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
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
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
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
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
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
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
R1#ping 4.4.4.4
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
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
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
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
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
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
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
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
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
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
address-family ipv4
route-target export 200:1
route-target import 200:1
exit-address-family
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
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
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 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
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
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
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
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
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
81
*> 5.5.5.5/32 192.168.15.5 2 32768 ?
*> 192.168.15.0 0.0.0.0 0 32768 ?
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
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
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 ?
84
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
108
5.5.5.5 1643 0x80000003 0 0x2001 0
5.5.5.5 1643 0x80000001 3072 0x2002 3
109
Net Link States (Area 0)
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
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
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
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
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
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
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
RP/0/0/CPU0:XR1
hostname XR1
cdp
vrf MSSK
address-family ipv4 unicast
import route-target
100:1
export 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
router ospf 1
router-id 10.10.10.10
area 0
interface Loopback0
interface GigabitEthernet0/0/0/2
network point-to-point
interface GigabitEthernet0/0/0/2
network point-to-point
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 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
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
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
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
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
122
2.2.2.2 0 FULL/ - 00:00:31 192.168.23.2 FastEthernet1/0
123
BGP using 888 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
124
BGP scan interval 60 secs
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
126
RP/0/0/CPU0:XR1#sh route vrf MSSK ipv4 static
Tue Apr 29 14:15:33.779 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
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
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
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
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
router ospfv3 14
router-id 3.3.3.3
132
address-family ipv6 unicast vrf MSSK
redistribute bgp 1
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
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
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
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
neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 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#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#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
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
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#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#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
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
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
141
BGP is operating in STANDALONE mode.
142
R3#sh ospfv3 vrf MSSK neighbor
143
*>i 192.168.102.0 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
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
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
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
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
149
mpls ldp router-id Loopback0 force
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
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
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
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
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
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
152
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 14
mpls ldp
router-id 10.10.10.10
interface GigabitEthernet0/0/0/2
address-family ipv6
default-metric 1000 1000 255 1 1500
autonomous-system 14
redistribute bgp 1
interface GigabitEthernet0/0/0/0
Verifications
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
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#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
154
FE80::A00:27FF:FE35:643D
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#traceroute 2001::4
Type escape sequence to abort.
Tracing the route to 2001::4
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
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#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
156
0 Link-local address: Fa1/0 12 03:57:43 75 450 0 4
FE80::C803:3FF:FEF8:1D
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#traceroute 2001::1
Type escape sequence to abort.
Tracing the route to 2001::1
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
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
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?
D 2001::1/128
[90/10880] via fe80::c800:bff:fee4:1c, 00:16:45, GigabitEthernet0/0/0/0
160
Process RcvTblVer bRIB/RIB LabelVer ImportVer SendTblVer StandbyVer
Speaker 13 13 13 13 13 13
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
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
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
router ospfv3 1
router-id 2.2.2.2
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
167
mpls ldp router-id Loopback0 force
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
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
168
neighbor 192.168.34.4 activate
neighbor 192.168.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
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
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
neighbor 3.3.3.3
remote-as 1
update-source Loopback0
address-family vpnv4 unicast
vrf MSSK
rd 100:1
address-family ipv4 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
171
BGP using 744 total bytes of memory
BGP activity 4/0 prefixes, 4/0 paths, scan interval 60 secs
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
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
173
Total number of prefixes 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
interface GigabitEthernet0/0/0/2
Verifications
189
Gateway of last resort is not set
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
191
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 295
BGP scan interval 60 secs
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
193
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
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
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
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
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
200
redistribute rip
exit-address-family
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
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
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
204
Gateway of last resort is not set
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
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
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
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
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
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
212
ip vrf MSSK
rd 100:1
export map COMM
route-target import 10.10.10.10:1
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
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
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
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
216
*> 4.4.4.4/32 192.168.34.4 1 32768 ?
*> 192.168.34.0 0.0.0.0 0 32768 ?
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
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
220
SNMPv3
AUTHNOPRIV
AUTHPRIV
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
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
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
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
vfi 12
neighbor 10.10.10.10 pw-id 12
pw-class CLASS
Verifications
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
228
drops: illegal VLAN 0, illegal length 0
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
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