03-16-2016 03:59 AM - edited 03-05-2019 03:34 AM
Hi Everybody,
i'm working on a big scenario about MPLS VPN and this is a piece of it:
R2 config:
--- bgp section---
router bgp 100
no synchronization
bgp log-neighbor-changes
redistribute static
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 1.1.1.1 activate
neighbor 1.1.1.1 send-community both
neighbor 1.1.1.1 next-hop-self
exit-address-family
!
address-family ipv4 vrf INTERNET
neighbor 10.0.255.254 remote-as 600
neighbor 10.0.255.254 update-source FastEthernet0/0
neighbor 10.0.255.254 activate
no synchronization
network 11.11.11.0 mask 255.255.255.0
exit-address-family
!
address-family ipv4 vrf A
redistribute connected
no synchronization
exit-address-family
-- vrf section --
ip vrf A
rd 100:1
route-target export 100:1
route-target import 100:1
route-target import 100:3
ip vrf INTERNET
rd 100:3
route-target export 100:3
ip vrf forwarding INTERNET
ip vrf forwarding A
R3:
router bgp 600
no synchronization
bgp log-neighbor-changes
network 0.0.0.0
neighbor 10.0.0.1 remote-as 100
no auto-summary
R1
-- bgp section --
router bgp 100
no synchronization
bgp log-neighbor-changes
neighbor 2.2.2.2 remote-as 100
neighbor 2.2.2.2 update-source Loopback0
no auto-summary
!
address-family vpnv4
neighbor 2.2.2.2 activate
neighbor 2.2.2.2 send-community both
exit-address-family
!
address-family ipv4 vrf A
redistribute connected
no synchronization
exit-address-family
-- vrf section --
ip vrf A
rd 100:1
route-target export 100:1
route-target import 100:1
ip vrf B
rd 100:2
route-target export 100:2
route-target import 100:2
ip vrf forwarding A
ip vrf forwarding B
address-family ipv4 vrf B
redistribute connected
no synchronization
address-family ipv4 vrf A
redistribute connected
no synchronization
any ideas? :) Thanks Paolo
Solved! Go to Solution.
03-17-2016 01:52 AM
Hi Paolo,
On PE1 I see route-target import is 100:1 but on ISP1 I don't see route-target 100:1 attached to default route. This is the reason you are not seeing this route on PE1.
You can try applying command "route-target import 100:3" under vrf A on PE1 and check the results.
HTH
-Amit
03-17-2016 04:26 AM
Hi Paolo,
I just reproduced this in my local LAB. Basically you are leaking default route from vrf INTERNET to vrf A on ISP device. This is not an originated route from vrf A and that's why community 100:1 is not getting attached to it. vrf A on ISP is just consuming default route coming from INTERNET but will not further advertise it.
So, you will have to import community 100:3 as well in vrf A on PE1.
HTH
-Amit
03-16-2016 05:47 AM
Hi Paolo,
Please take the output of below command and check if the default route is available in vrf INTERNET on R2.
show ip bgp VPNv4 vrf INTERNET 0.0.0.0
show ip bgp VPNv4 vrf A 0.0.0.0
above output will tell, what are the route-target has been attached to default route.
Try adding atl east one interface (can be any loopback with an ip address) in vrf A on R1
On top of it check if all BGP sessions up and learning routes.
HTH
-Amit
03-16-2016 06:29 AM
Hi, in my scenario R2 is ISP1 and R1 is PE1
03-17-2016 01:52 AM
Hi Paolo,
On PE1 I see route-target import is 100:1 but on ISP1 I don't see route-target 100:1 attached to default route. This is the reason you are not seeing this route on PE1.
You can try applying command "route-target import 100:3" under vrf A on PE1 and check the results.
HTH
-Amit
03-17-2016 02:42 AM
Thanks a lot!
This however make me little confused:
i was thinking that when you export the routes from a vrf table i.e A the routes take the RD of that vrf A table and also the RT community configured for vrf A, instead the community of origin (i.e rt of table INTERNET)......this it seems logical becouse if i import a tons of routes from different vrf table i should configure rt import 100:3, 100:4: 101:5 ecc ecc instead only 100:1
i need to review the theory :)
thanks
03-17-2016 03:50 AM
Hi Paolo,
Yes, your understanding is correct. But for some reason route in vrf A has not community 100:1 attached to it. I might need to test this in my LAB and get you the answer :)
HTH
-Amit
03-17-2016 04:26 AM
Hi Paolo,
I just reproduced this in my local LAB. Basically you are leaking default route from vrf INTERNET to vrf A on ISP device. This is not an originated route from vrf A and that's why community 100:1 is not getting attached to it. vrf A on ISP is just consuming default route coming from INTERNET but will not further advertise it.
So, you will have to import community 100:3 as well in vrf A on PE1.
HTH
-Amit
03-17-2016 06:05 AM
Thanks a lot now i understand :)
One solution is to modify the RT parameter of the default-route with a route-map and set it to 100:1
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide