Hi,
I've jumped into a SP network in a new role and I'm trying to lab out a part of their network, especially the part where the VRF and BGP routing is being done. Currently, I have the following topology.
What I have configured so far:
-> PPPoE client on R1 and R8, which is working, both get their PPP session and an IP address on the Dialer interface.
-> On R2 I've created 2 VRF, respectively VRF 1 and VRF2. The virtual-template interface belongs to the customer based VRF and both the VT IP address and the IP address the CE get show up as connected in the VRF routing table:
R2#sh ip route vrf 1 connected
172.31.0.0/30 is subnetted, 1 subnets
C 172.31.255.0 is directly connected, Virtual-Access1.1
10.0.0.0/32 is subnetted, 1 subnets
C 10.30.0.254 is directly connected, Virtual-Access1.1
What I'm trying to do is get these routes into the core of the network (R3 & R3) via BGP while maintaining the VRF structure (and thus isolation) between the customers, or is this not how it is normally done? In taking a working configuration I noticed some special configuration in the BGP setup.
[B] address-family vpnv4[/B]
In doing some research, I came across the fact that MP-BGP is able to carry VRF information in the BGP updates. I've configured the VRF's like this:
ip vrf 1
rd 65535:1
route-target export 65535:1
route-target import 65535:1
!
ip vrf 2
rd 50522:2
route-target export 65535:2
route-target import 65535:2
In configuring it like this, I believe I have made the following changes:
RD - For VRF 1 all routes have a community set to 65535:1 to uniquely identify that route in case of overlapping subnets.
RT Export - Export routes with a community set to 65535:1
(export into where?!)
RT Import - Import routes into this VRF with a community set to 65535:1
The BGP config on R2 looks like this:
router bgp 65535
bgp log-neighbor-changes
neighbor INTERNAL-PEER peer-group
neighbor INTERNAL-PEER remote-as 65535
neighbor 10.255.23.3 peer-group INTERNAL-PEER
neighbor 10.255.24.4 peer-group INTERNAL-PEER
!
address-family ipv4
neighbor INTERNAL-PEER send-community
neighbor 10.255.23.3 activate
neighbor 10.255.24.4 activate
no auto-summary
no synchronization
exit-address-family
!
address-family vpnv4
neighbor INTERNAL-PEER send-community extended
neighbor 10.255.23.3 activate
neighbor 10.255.24.4 activate
exit-address-family
!
address-family ipv4 vrf 1
redistribute connected metric 20
redistribute static metric 20
no synchronization
exit-address-family
And like this on R3:
no synchronization
bgp log-neighbor-changes
neighbor INTERNAL-PEER peer-group
neighbor INTERNAL-PEER remote-as 65535
neighbor 10.255.23.2 peer-group INTERNAL-PEER
neighbor 10.255.34.4 peer-group INTERNAL-PEER
neighbor 10.255.35.2 peer-group INTERNAL-PEER
Obviously, I don't entirely know what I'm doing here but I'm learning as we go. Basically, I have the following questions:
1) When the route-target export command is used, where do the routes go? Into BGP?
2) How can I get the customer routes into the core? Is this best practice for a SP network or does it work another way? A push in the right direction is better than a complete solution.
3) Are there books available that further outline this material? I'm hoping to fully join in preparing for the CCIE via this site one day.
Thanks! There is so much more I need to learn!