Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

BGP conditional advertisement feature

While using the BGP conditional advertisement feature, if I have 2 entries on the BGP table will the condition work only for the best path or secondary path can be matched as well.

Network Next Hop Metric LocPrf Weight Path

*> 0.0.0.0 1.1.1.1 0 0 400 i

* i 2.2.2.2 0 100 0 200 i

can I use

route-map test permit 10

match ip address prefix-list Default-Route

match ip next-hop 2.2.2.2

-Sai.

1 REPLY
Hall of Fame Super Silver

Re: BGP conditional advertisement feature

Hello Sai,

only for the best path I think in this case the IP BGP next-hop is 1.1.1.1 for the best path.

you can also use a route-map made of two blocks:

route-map test permit 10

match ip address prefix-list Default-Route

match ip next-hop 1

route-map test permit 20

match ip address prefix-list Default-Route

match ip next-hop 2

access-list 1 permit host 1.1.1.1

access-list 2 permit host 2.2.2.2

note:

match ip next-hop

Redistributes any routes that have a next hop router address passed by one of the access lists specified.

or also

route-map test permit 10

match ip address prefix-list Default-Route

match ip next-hop 1 2

Hope to help

Giuseppe

206
Views
0
Helpful
1
Replies
CreatePlease to create content