cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
3996
Views
5
Helpful
1
Replies
tmikelson
Beginner

How to track BGP session instead of "ip routing"?

How to track BGP session instead of "ip routing"?

As documented below when the "ip routing" goes down on interface Vlan20 the vrrp #1 decrements by 80 due to object tracking #3.  Now a problem has occurred where the BGP session for interface Vlan20 has gone down but "ip routing" staid up.  Any suggestions on how to track the BGP session instead of "ip routing" on interface Vlan20?

**************************************************************************************************

track 3 interface Vlan420 ip routing

interface TenGigabitEthernet1/2
 description REMOTE_CONNECTIONS
 switchport trunk allowed vlan 20,21,22
 switchport mode trunk
!
interface TenGigabitEthernet1/8
 description LOCAL_CONNECTION
 switchport access vlan 13
 switchport mode access
 

interface Vlan13
 description LOCAL_CONNECTION
 ip address 10.13.1.2 255.255.255.0
 vrrp 1 ip 10.13.1.1
 vrrp 1 priority 120
 vrrp 1 track 3 decrement 80
!
interface Vlan20
 description COMMODITY
 ip address 10.20.1.3 255.255.255.252
!
interface Vlan21
 description INTERNET2
 ip address 10.21.1.3 255.255.255.252
!
interface Vlan22
 description PRIVATE_CONNECTION
 ip address 10.22.1.3 255.255.255.252
!
router bgp *****
 neighbor 10.20.1.2 description COMMODITY
 neighbor 10.21.1.2 description INTERNET2
 neighbor 10.22.1.2 description PRIVATE_CONNECTION

 

 

1 REPLY 1
Vinit Jain
Cisco Employee

Hello

I dont really think you can do the tracking for BGP session directly using track object like you can do for ip routing but you can definitely configure a IP SLA probe to check reachability for the BGP peering IP and then integrate with track object.

Here is one good example of IP SLA with tracking object:

http://blog.codergenie.com/blog/post/2015/02/04/ip-sla-with-tracking.aspx

You can also configure an EEM script to perform certain actions when a BGP down notification is received, This way you may come to know if BGP session has gone down or stayed up.

Hope this helps

Vinit

Thanks
--Vinit