Beruflich Dokumente
Kultur Dokumente
PNETLAB Store
PNETLab.com
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
!
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
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
IPv6: (0)
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 :