Hello guys,
I'm trying to understand and get better at route-policies. Mostly because of a new connection to another company. But some things just keeps me in the dark. Even tested in a GNS3 lab, which just made it even more confusing.
Lets says i have 2 routers directly connected, I'm gonna setup an EBGP peering. On R1 i have an import policy looking like this:
route-policy IMPORT-ASXXXXXX if source in EBGP-INBOUND-NO then drop elseif source in IPV4-ASXXXXXX then set local-preference 400 done endif end-policy
Why would it be source and not destination?
Today this is running on an ASR9K with source instead of destination, whenever i test in GNS3 with 2x ASR9K i have to do destination for it to work...
Another thing, about the ASR policies is this:
route-policy RP-TRANSIT-IN if source in EBGP-INBOUND-NO then drop elseif source in TRANSIT-INBOUND then set local-preference 300 done endif end-policy prefix-set TRANSIT-INBOUND 0.0.0.0/0 ge 26
How da F*** can i ever get routes below /26 into my route from above policy??
No comments:
Post a Comment