Advertised prefixes in bgp


#1

[color=#ffffff]I have a question about advertised routes in bgp, i have a /21 prefix and need advertise the 8 /24. I set le 24 in prefix-list but still announcing the entire /21. Someone might help ?[/color]

prefix-list MY-PREFIX { rule 1 { action permit le 24 prefix XXX.XXX.XXX.0/21 } } route-map OUT { rule 1 { action permit match { ip { address { prefix-list MY-PREFIX } } } } rule 500 { action deny } } } protocols { bgp MYASN { neighbor XXX.XXX.XXX.XXX { remote-as XXXX route-map { export OUT } update-source eth1 } network XXX.XXX.XXX.0/21 { }


#2

To advertise 8 separate /24 routes…these 8 routes must exist in your routing table to begin with.

afaik, it’s good practice to summarize routes, like turning 8 /24 routes into a single /21.
Why are you trying to do the opposite ?


#3

Thanks for reply, i needed separate becase different policies in each prefix. To solve, i create one static route for each prefix and included in network parameter.

Thank you.


#4

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.