100% found this document useful (1 vote)
528 views8 pages

MPLS L3VPN On IOS XR PDF

Uploaded by

Bruce Xya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
528 views8 pages

MPLS L3VPN On IOS XR PDF

Uploaded by

Bruce Xya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Download PNETLab Platform

PNETLAB Store
PNETLab.com

MPLS L3VPN ON IOS-XR

Lab Topology:
Please use the following topology to complete this lab exercise:

https://user.pnetlab.com/store/labs/detail?id=16093397238279
Lab Objective:
The objective of this lab exercise is for you to learn and understand how can you configure
MPLS L3VPN on IOS-XR.
Pay attention : This workbook just introduce about the configuration on IOS-XR device
(XRV1,XRV2). All of the other device, you could referrence to the other MPLS L3VPN lab other.

Task list:
Task 1: Configure the hostname and IP address for the interface for Routers XRV as topo.
Task 2: Config OSPF Routing on Routers XRV.
Task 3: Config MPLS LDP on Routers XRV.
Task 4: Config BGP in Routers XRV to building L3VPN Service on VRF.

1
Download PNETLab Platform
PNETLAB Store
PNETLab.com

SOLUTION:
Task 1: Configure the hostname and IP address for the interface for Routers as topo.
On XRV1
!
interface Loopback0
ipv4 address 1.1.1.1 255.255.255.255
!
interface GigabitEthernet0/0/0/0
vrf RED
ipv4 address 10.1.14.1 255.255.255.0
!
interface GigabitEthernet0/0/0/1
vrf BLUE
ipv4 address 10.1.15.1 255.255.255.0
!
interface GigabitEthernet0/0/0/2
ipv4 address 10.1.13.1 255.255.255.0
!
On XRV2
!
!
interface Loopback0
ipv4 address 2.2.2.2 255.255.255.255
!
interface GigabitEthernet0/0/0/0
ipv4 address 10.1.23.2 255.255.255.0
!
interface GigabitEthernet0/0/0/1
vrf RED
ipv4 address 10.1.26.2 255.255.255.0
!
interface GigabitEthernet0/0/0/2
vrf BLUE
ipv4 address 10.1.27.2 255.255.255.0
!

Task 2: Config OSPF Routing on Routers XRV.


On XRV1
!
router ospf 1
network point-to-point
area 0
interface Loopback0
!
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com

interface GigabitEthernet0/0/0/2
!
!
!
On XRV2
!
router ospf 1
network point-to-point
area 0
interface Loopback0
!
interface GigabitEthernet0/0/0/0
!
!
!
Task 3: Config MPLS LDP on Routers XRV.
On XRV1
!
mpls ldp
interface GigabitEthernet0/0/0/2
!
!
On XRV2
!
mpls ldp
interface GigabitEthernet0/0/0/0
!
!
Verification:
RP/0/0/CPU0:XRV1#show mpls ldp neighbor
Tue Dec 22 08:49:40.505 UTC

Peer LDP Identifier: 3.3.3.3:0


TCP connection: 3.3.3.3:47167 - 1.1.1.1:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 1189/1187; Downstream-Unsolicited
Up time: 17:11:43
LDP Discovery Sources:
IPv4: (1)
GigabitEthernet0/0/0/2
IPv6: (0)
Addresses bound to this peer:
IPv4: (4)
3.3.3.3 10.1.13.3 10.1.23.3 10.1.34.3

3
Download PNETLab Platform
PNETLAB Store
PNETLab.com

IPv6: (0)

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


Tue Dec 22 08:49:59.203 UTC
Local Outgoing Prefix Outgoing Next Hop
Bytes
Label Label or ID Interface
Switched
------ ----------- ------------------ ------------ --------------- ---
---------
24000 16 2.2.2.2/32 Gi0/0/0/2 10.1.13.3
110531
24001 Pop 3.3.3.3/32 Gi0/0/0/2 10.1.13.3
115797
24002 Pop 10.1.23.0/24 Gi0/0/0/2 10.1.13.3 0
24007 Pop 10.1.34.0/24 Gi0/0/0/2 10.1.13.3 0

Task 4: Config BGP in Routers XRV to building L3VPN Service on VRF.

On XR1,XRV2
!
vrf RED
address-family ipv4 unicast
import route-target
1:1
!
export route-target
1:1
!
!
!
vrf BLUE
address-family ipv4 unicast
import route-target
2:2
!
export route-target
2:2
!
!
!
On XR1
router static
vrf RED
address-family ipv4 unicast

4
Download PNETLab Platform
PNETLAB Store
PNETLab.com

4.4.4.4/32 10.1.14.4
!
!
vrf BLUE
address-family ipv4 unicast
5.5.5.5/32 10.1.15.5
!
!
!
router bgp 100
bgp router-id 1.1.1.1
address-family vpnv4 unicast
!
session-group IBGP
remote-as 100
update-source Loopback0
!
neighbor-group IGBP
use session-group IBGP
address-family vpnv4 unicast
next-hop-self
soft-reconfiguration inbound always
!
!
neighbor 2.2.2.2
use neighbor-group IGBP
!
vrf RED
rd 1:1
address-family ipv4 unicast
redistribute connected
redistribute static
!
!
vrf BLUE
rd 2:2
address-family ipv4 unicast
redistribute connected
redistribute static
!
!
!

On XRV2
!
router static
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com

vrf RED
address-family ipv4 unicast
6.6.6.6/32 10.1.26.6
!
!
vrf BLUE
address-family ipv4 unicast
7.7.7.7/32 10.1.27.7
!
!
router bgp 100
bgp router-id 2.2.2.2
address-family ipv4 unicast
!
address-family vpnv4 unicast
!
session-group IBGP
remote-as 100
update-source Loopback0
!
neighbor-group IGBP
use session-group IBGP
address-family vpnv4 unicast
!
!
neighbor 1.1.1.1
use neighbor-group IGBP
!
vrf RED
rd 1:1
address-family ipv4 unicast
redistribute connected
redistribute static
!
!
vrf BLUE
rd 2:2
address-family ipv4 unicast
redistribute static
!
!

//The BGP configuration in IOS-XR has a little different if you compare to IOS/IOS-XE. We need to
use the neighbor-group first. After that, you could specify the using which neighbor-group for

6
Download PNETLab Platform
PNETLAB Store
PNETLab.com

each neighbor. To build neighbor group, you could use session-group… The logic is not change,
but the way to configure is different.

Verification :

RP/0/0/CPU0:XRV1#show bgp vpnv4 unicast


Tue Dec 22 09:01:59.524 UTC
BGP router identifier 1.1.1.1, local AS number 100
BGP generic scan interval 60 secs
Non-stop routing is enabled
BGP table state: Active
Table ID: 0x0 RD version: 0
BGP main routing table version 19
BGP NSR Initial initsync version 9 (Reached)
BGP NSR/ISSU Sync-Group versions 0/0
BGP scan interval 60 secs

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


i - internal, r RIB-failure, S stale, N Nexthop-discard
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
Route Distinguisher: 1:1 (default for vrf RED)
*> 4.4.4.4/32 10.1.14.4 0 32768 ?
*>i6.6.6.6/32 2.2.2.2 0 100 0 ?
*> 10.1.14.0/24 0.0.0.0 0 32768 ?
*>i10.1.26.0/24 2.2.2.2 0 100 0 ?
Route Distinguisher: 2:2 (default for vrf BLUE)
*> 5.5.5.5/32 10.1.15.5 0 32768 ?
*> 10.1.15.0/24 0.0.0.0 0 32768 ?

Processed 6 prefixes, 6 paths

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


Tue Dec 22 09:05:48.868 UTC
Local Outgoing Prefix Outgoing Next Hop
Bytes
Label Label or ID Interface
Switched
------ ----------- ------------------ ------------ --------------- ---
---------
24000 16 2.2.2.2/32 Gi0/0/0/2 10.1.13.3
112180
24001 Pop 3.3.3.3/32 Gi0/0/0/2 10.1.13.3
117561
7
Download PNETLab Platform
PNETLAB Store
PNETLab.com

24002 Pop 10.1.23.0/24 Gi0/0/0/2 10.1.13.3 0


0
24004 Aggregate RED: Per-VRF Aggr[V] \
RED 0
24006 Aggregate BLUE: Per-VRF Aggr[V] \
BLUE 0
24007 Pop 10.1.34.0/24 Gi0/0/0/2 10.1.13.3 0

You might also like