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 22.214.171.124 will act as primary and rd 126.96.36.199 as secundary. 188.8.131.52 and 184.108.40.206 is handleing the same routes. 220.127.116.11 is located in one AS and 18.104.22.168 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
Hi Sorry for the delay, i am multitasking different projects.
It looks like the route-policy handles every row before execute. So.. if (match something) then set local-pref 120 if or elseif (match something) then set local-pref 20 if, elseif och endif set local-pref 80
Everythiing will be local-pref 80
This looks like it is working
community-set EXT-PRIMARY *:1030 end-set ! community-set EXT-TERTIARY *:1010 end-set ! community-set EXT-SECONDARY *:1020 end-set ! route-policy EXT_SERVICES if community matches-any EXT-PRIMARY then set local-preference 1030 endif if community matches-any EXT-SECONDARY then set local-preference 1020 endif if community matches-any EXT-TERTIARY then set local-preference 1010 endif end-policy ! route-policy eBGP_WAN-1GB set local-preference 80 apply EXT_SERVICES end-policy ! Every route will have local-pref 80 but not whats in route-policy EXT_SERVICES But dont forget to allox communitys to exchange between eBGP neighbors.
If you watch the if statement, you're challenging that if the RD is something, or else, else... but, maybe, it doesn't work if you don't have an RD.
Based on the Mohit's answer I think that maybe, that's the reason.
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 <<< So if not "EXT_SERVICES_PRIMARY" and not "EXT_SERVICES_SECUNDARY", but stills in "if rd.." set local-preference 80 endif
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 endif set local-preference 80 >>>> Outside the if statement! end-policy.
Let us know if the Mohit's answer worked! Just to learn something new :)
IntroductionPre-requisite: Caveat :When IPXE Boot could be done : IPXE Boot :Ipxe boot using DHCP Server :
iPXE boot in ASR9K
Migration recommendation document for Cxr to Exr.
This document applies to NCS5500 and ASR9000 routers and has been verified as such.
traditional ECMP or equal cost multipath loadbalances traffic over a number of available paths towards a destination. When one path fails, the traffic gets r...
Hi community,I just wanted to share my findings about accesing to ACL counters by SNMP on ASR9000/XR.
Searching on Internet I found the section ACL Counters Using SNMP in the IP Addresses and Services Configuration Guide but I didn't found any inf...