cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
335
Views
5
Helpful
2
Replies

Install /24 out of /16 learnet via EBGP

ahmad82pkn
Level 3
Level 3

Hi,

I know is weird question,but i am learning a /16 from EBGP peer, but I only want to install a /24 in my routing table from that /16. How can I accomplish that? my EBGP peer is other customer and he is not willing to break his advertisement towards me, so i am learning 10.10.0.0/16 , where I only want to install a /24 that is 10.10.10.0/24 in my routing table, how can i achieve that, if possible :)

2 Replies 2

Philip D'Ath
VIP Alumni
VIP Alumni

I'm sure there will be a really complicated way of doing this.

I would be tempted to filter out the 10.10.0.0/16 advertisement all together, and add a static route via the BGP router ID (which is hopefully not the next hop).  This will cause a recursive route lookup, and the static route will only appear in the routing table while the BGP peer ID is also in the routing table.

I found another way to achieve that, and it works as i required.

http://www.cisco.com/c/en/us/td/docs/ios/12_2s/feature/guide/fsbgpri.html