Hi
To reduce configuraton i would like to use the same route-policy for ipv4 and vpnv4 routes from the same neighbors on ASR 9000.
I know that a "pass all" route-policy will work just fine, also a route-policy like this works fine:
route-policy eBGP_NEIGHBORS
set local-preference 50
endif
end-policy
!
!
!
But why doesn´t this route-policy work?
rd-set EXT_SERVICES_PRIMARY
1.1.1.1:*
end-set
!
rd-set EXT_SERVICES_SECUNDARY
2.2.2.2:*
end-set
!
route-policy eBGP_NEIGHBORS
if rd in EXT_SERVICES_PRIMARY then
set local-preference 120
elseif rd in EXT_SERVICES_SECUNDARY then
set local-preference 20
else
set local-preference 80
endif
end-policy
!
The effect of this is that vpnv4 routes looks just fine but ipv4 routes is missing in bgp table. I have tryed all kind of configs but it just will not work, what am i missing?
The idea of this route-policy is that routes advertised by rd 1.1.1.1 will act as primary and rd 2.2.2.2 as secundary.
1.1.1.1 and 2.2.2.2 is handleing the same routes.
1.1.1.1 is located in one AS and 2.2.2.2 in an other AS
my ASR that i am working on is in a third AS
And alla other routes will have a default local-pref of 80