cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
772
Views
0
Helpful
1
Replies

bgp active path

suthomas1
Level 6
Level 6

Hi,

Setup is as below:

2 routers at branch site connected to headend, with headend also having a pair of routers. These are running bgp.

At any time, only one of these would be active on bgp. How is it possible to find which router is running active bgp session.

any commands or outputs to identify?

Thanks in Advance.

1 Reply 1

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

You can use "sh ip bgp" it will show you the active and best route to a prefix.

Example:

Router# show ip bgp

BGP table version is 5, local router ID is 10.0.33.34

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal

Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path

*> 10.1.0.0          0.0.0.0                  0         32768 ?

*  10.2.0.0          10.0.33.35              10             0 35 ?

*>                   0.0.0.0                  0         32768 ?

*  10.0.0.0         10.0.33.35               10             0 35 ?

*>                   0.0.0.0                  0         32768 ?

*> 192.168.0.0/16   10.0.33.35               10             0 35 ? 


the route with *> in front of it is the best active route.

http://www.cisco.com/en/US/docs/ios/12_3/iproute/command/reference/ip2_s2g.html#wp1039007

HTH

Reza

Review Cisco Networking products for a $25 gift card