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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

bgp active path

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
VIP Super Bronze

Re: bgp active path

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

138
Views
0
Helpful
1
Replies