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

Shutdown or drop a BGP session on an interface by object-tracking a second interface?

How to shutdown an interface or drop a BGP session on that same interface if a second interface goes down or loses IP routing?

Looking at the attached jpeg the problem is if interface Te1/1 goes down or loses ip routing then shutdown interface Te1/2 or drop the BGP session between Te1/2 ip address 10.0.0.1 and the BGP neighbor 10.0.0.2.

I suspect this is something that might be done by:

a) object-tracking line protocol on the second interface

b) object-tracking ip routing on the second interface

 

Order of preference would be:

1) dropping BGP session

2) shutting down interface

 

Comments
Cisco Employee

Hi,

 

Instead of shutting down the BGP session, you can do conditional advertisement on that BGP session using advertise-map and exist-map

 

http://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/16137-cond-adv.html

 

Regards,

Akash

955
Views
0
Helpful
1
Comments