
Cisco IOS XR Training Page 90
© 2012 Jeffrey Fry FryGuy.Net
C 10.1.13.0/24 is directly connected, FastEthernet0/0
C 10.3.3.3/32 is directly connected, Loopback0
CE1#
We only see our local routes, nothing from CE2 yet. This is because we have
not built the VPNv4 session between PE1 and PE2 yet. We need to configure
BGP VPNv4 in order to get the two PE routers to pass the tagged routes to
each other. So, onto BGP we go!
For this we will peer with PE2 loopback (150.2.2.2) using AS 1.
PE1 first:
RP/0/RSP0/CPU0:R1#conf t
Fri Apr 20 02:21:32.174 UTC
First we define our BGP process and AS number
RP/0/RSP0/CPU0:R1(config)#router /jointfilesconvert/356165/bgp 1
Enable vpv4 address family
RP/0/RSP0/CPU0:R1(config)#address-family vpnv4 unicast
Now we can configure our neighbor and all the info.
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-af)# neighbor 150.2.2.2
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)# remote-as 1
Remember to specify the loopback as the update-source
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)# update-source Loopback0
Now we can enable VPNv4 address family with that neighbor
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr)# address-family vpnv4 unicast
Now we can configure the VRF parameters that BGP needs to know
First define our VRF
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-nbr-af)# vrf R3R4
Assign our Route Distinguisher (RD)
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-vrf)# rd 100:100
Enable IPv4 Unicse for this VRF
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-vrf)# address-family ipv4 unicast
And finally redistribute our OSPF learned routes into BGP VRF R3R4
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-vrf-af)# redistribute ospf R3R4 match internal
external
RP/0/RSP0/CPU0:R1(config-/jointfilesconvert/356165/bgp-vrf-af)# ^Z
Uncommitted changes found, commit them before exiting(yes/no/cancel)?
[cancel]:yes
RP/0/RSP0/CPU0:R1#
Commenti su questo manuale