Metro - Core Inter As
Metro - Core Inter As
Metro - Core Inter As
PNETLAB Store
PNETLab.com
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
• We need to create an end-to-end LSP spanning across the boundary between ASes. BGP
ipv4 + Label (RFC 3107) needs to be used between ASBR and MTC. ASBR and MTC
advertise BGP IPv4 towards their iBGP neighbor, needed to set next-hop-self on them.
3.1. CSG
1. Enable MPLS
mpls ip
inter e0/0
mpls ip
2. Configure VRF
ip vrf SIGNALING
rd 1:1
2
Download PNETLab Platform
PNETLAB Store
PNETLab.com
exit
inter e0/2
3. BGP
bgp log-neighbor-changes
address-family ipv4
exit-address-family
address-family vpnv4
exit-address-family
redistribute connected
exit-address-family
3.2. AGG
1. Enable MPLS
mpls ldp
router-id 10.2.1.1
interface GigabitEthernet0/0/0/0
interface GigabitEthernet0/0/0/2
2. BGP
network 10.2.1.1/32
allocate-label all
neighbor-group MTC
remote-as 65101
update-source Loopback0
4
Download PNETLab Platform
PNETLAB Store
PNETLab.com
next-hop-self
next-hop-self
neighbor-group CSG
remote-as 65101
update-source Loopback0
route-reflector-client
next-hop-self
neighbor 10.2.0.1
neighbor 10.2.3.1
3.3. MTC
1. MPLS
mpls ldp
5
Download PNETLab Platform
PNETLAB Store
PNETLab.com
router-id 10.2.0.1
interface GigabitEthernet0/0/0/0
2. BGP
network 10.2.0.1/32
allocate-label all
neighbor-group AGG
remote-as 65101
update-source Loopback0
route-reflector-client
next-hop-self
route-reflector-client
neighbor-group ASBR
6
Download PNETLab Platform
PNETLAB Store
PNETLab.com
remote-as 65001
send-community-ebgp
route-policy DEFAULT in
next-hop-self
!!!!DEFAULT policy is preconfigured to pass all routes. In IOS XR with eBGP neighbor, if there is
no route-policy configured, the router will not accept incoming routes nor sends out routes to
the neighbor.!!!!!
neighbor-group RR_CORE
remote-as 65001
ebgp-multihop 20
update-source Loopback0
route-policy DEFAULT in
next-hop-unchanged
neighbor 10.2.1.1
neighbor 172.16.12.2
neighbor 192.168.2.1
3. Static route
!!!!!!For IOS-XR over Inter-As link there is a different logic as compared to that of IOS. It is
required to configure a static /32 route to ASBR1's interface, so that mpls label is bound for a
/32 prefix. If this is not done then control plane will come up but the traffic will not be
forwarded.!!!!
!!!
router static
address-family ipv4 unicast
172.16.12.2/32 GigabitEthernet0/0/0/0
commit
3.4. ASBR
1. enable MPLS
mpls ldp
router-id 10.0.2.1
address-family ipv4
interface GigabitEthernet0/0/0/0
8
Download PNETLab Platform
PNETLAB Store
PNETLab.com
2. BGP
allocate-label all
neighbor-group MTC
remote-as 65101
route-policy DEFAULT in
next-hop-self
neighbor-group RR
remote-as 65001
update-source Loopback0
next-hop-self
neighbor 172.16.12.1
9
Download PNETLab Platform
PNETLAB Store
PNETLab.com
neighbor 192.168.2.1
use neighbor-group RR
3. Static route
!!!!!!For IOS-XR over Inter-As link there is a different logic as compared to that of IOS. It is
required to configure a static /32 route to ASBR1's interface, so that mpls label is bound for a
/32 prefix. If this is not done then control plane will come up but the traffic will not be
forwarded.!!!!
!!
router static
address-family ipv4 unicast
172.16.12.1/32 GigabitEthernet0/0/0/2
Commit
3.5. RR
Because eBGP neighbor relationship between RR and MTC is established by using their
loopback. So RR and MTC have to reach their partner loopback each other. Otherwise, there
will be no neighbor. There are several way to make them reachable:
- Advertised loopback addresses into BGP, then at MTC and ASBR, redistribute these IPv4 into
OSPF so that intermediate routers like P1 will know how to forward the prefix.
10
Download PNETLab Platform
PNETLAB Store
PNETLab.com
- Advertise loopback into BGP and enable MPLS on RR interface towards P router.
Then, connectivity from RR to MTC can be reached by MPLS.
1. Enable MPLS
mpls ldp
router-id 192.168.2.1
address-family ipv4
interface GigabitEthernet0/0/0/0
2. BGP
network 192.168.2.1/32
allocate-label all
neighbor-group MTC
remote-as 65101
ebgp-multihop 20
update-source Loopback0
11
Download PNETLab Platform
PNETLAB Store
PNETLab.com
route-policy DEFAULT in
next-hop-unchanged
neighbor-group ASBR
remote-as 65001
update-source Loopback0
route-reflector-client
neighbor-group PE-CORE
remote-as 65001
update-source Loopback0
route-reflector-client
route-reflector-client
neighbor 10.0.1.1
neighbor 10.0.2.1
neighbor 10.2.0.1
3.6. PE
1. enable MPLS
mpls ldp
router-id 10.0.1.1
address-family ipv4
interface GigabitEthernet0/0/0/0
2. VRF
vrf SIGNALING
import route-target
65001:1
65101:1
export route-target
65001:1
!
13
Download PNETLab Platform
PNETLAB Store
PNETLab.com
exit
interface GigabitEthernet0/0/0/1
vrf SIGNALING
commit
3. BGP
network 10.0.1.1/32
allocate-label all
neighbor-group RR
remote-as 65001
update-source Loopback0
neighbor 192.168.2.1
use neighbor-group RR
14
Download PNETLab Platform
PNETLAB Store
PNETLab.com
vrf SIGNALING
rd 10.0.1.1:1
redistribute connected
4. verification
3.8 AGG2-01:
3.9 MTC
15
Download PNETLab Platform
PNETLAB Store
PNETLab.com
3.10 RR
3.11 PE-01
16
Download PNETLab Platform
PNETLAB Store
PNETLab.com
3.12 CSG
10.0.1.1/32 10.2.1.1 nolabel/24006 → Go to PE1’s loopback, Nexthop is AGG2-1 and VPN Label is 2006
!!!!AGG!!!!
17