show ip bgp neighbors
Displays information about a peer and the number of routes received/advertised to/from that peer.
Syntax: show ip bgp neighbors [ip-address] {advertised routes | dampened routes | flap-statistics | routes | paths | received-routes | accepted-routes}
ip-address
IP address of the neighbor to be displayed.
advertised routes
Show routes the router has advertised to the specified neighbor or all neighbors.
dampened routes
Show dampened routes to the specified neighbor or all neighbors.
flap-statistics
Show flap-statistics for the specified neighbor or all neighbors.
routes
Show routes received from specified neighbor.
paths
Show paths received from specified neighbor.
received-routes
Show all routes sent by neighbor.
accepted-routes
Show the policy-unmodified version of routes sent by the neighbor that were accepted by policy.
Description: Use the show ip bgp neighbors command to display information about a peer and all the routes received from that peer.
Use the optional ip-address argument to display information about the specified neighbor. Use no ip-address argument to display information about all neighbors.
Use the advertised routes keyword to display information about routes the router has advertised to the specified neighbor or all neighbors.
Use the dampened routes keyword to display information about dampened routes to the neighbor specified or all neighbors.
Use the flap-statistics keyword to display information about flap-statistics of the neighbor specified or all neighbors.
Use the routes keyword to display information about routes received from the specified neighbor or from all neighbors.
NOTE When soft reconfiguration is enabled, the show ip bgp neighbor n.n.n.n routes command displays all routes received by a neighbor not just the routes that were installed in the BGP table.
Use the paths keyword to display information about paths received from the specified neighbor or from all neighbors.
Factory Default: None.
Command Mode: Executive and privileged.
Example 1: The following is sample output from the show ip bgp neighbors command:
router#show ip bgp neighbors
BGP neighbor 1.1.1.1 using remote AS 100
router ID: 1.1.1.1 version: 4
state: Active time: 23:37:29
def orignat: False ebgp multihop: False
n hop self: False route ref client: False
send comm: False soft reconfig: False
update src: loopback 0
hold time: 0 sec keepalive time: 0 sec
configured hold time/keepalive time: 180/60 sec
advertisement interval: 5 sec
# notf rcvd: 0 # msg rcvd: 0 # updates rcvd: 0
# notf sent: 1 # msg sent: 0 # updates sent: 0
number of prefixes received: 0
Address Family IPv4 Unicast: activated advertised
Route refresh capability: advertised received (new)
Route Refresh for address family IPv4 unicast: #msg rcvd: 0 #msg sent 0
Routes Dropped : 0
Time Since First Dropped : 0:00:00
Reason for dropping first Route : No Routes Dropped
Last Reset 23:37:29 , due to BGP Hold Timer Expired Error sent to peer
BGP neighbor 3.3.3.3 using remote AS 100
router ID: 3.3.3.3 version: 4
state: Active time: 23:37:27
.
.
.
BGP neighbor 6.6.6.6 using remote AS 100
router ID: 6.6.6.6 version: 4
state: Estab time: 611:57:24
def orignat: False ebgp multihop: False
n hop self: False route ref client: False
send comm: False soft reconfig: False
update src: loopback 0
hold time: 180 sec keepalive time: 60 sec
configured hold time/keepalive time: 180/60 sec
advertisement interval: 5 sec
# notf rcvd: 1 # msg rcvd: 36716 # updates rcvd: 0
# notf sent: 1 # msg sent: 36715 # updates sent: 0
number of prefixes received: 0
Address Family IPv4 Unicast: activated advertised received in-use
Routes Dropped : 0
Time Since First Dropped : 0:00:00
Reason for dropping first Route : No Routes Dropped
Last Reset 611:57:24 , due to BGP Cease sent to peer
router#
The following table describes the fields in the display:
Example 2: The following sample output of the show ip bgp neighbors n.n.n.n paths command displays information about paths received from the specified neighbor. See show ip bgp paths for a description of the fields.
router#show ip bgp neighbors 3.3.3.3 paths
Hash Refcount Path
231675 2 7737 7734 7735 2386 7018 80 i
231686 104 7737 7734 7735 2386 7018 3356 i
231689 20 7737 7734 7735 7046 701 11853 6496 6496 6496 6496 i
231696 2 7737 7734 7735 7046 701 6389 8063 19198 i
231698 4 7737 7734 7735 7046 701 3561 6128 30576 i
.
.
.
The following is sample output from the show ip bgp neighbors n.n.n.n paths with an identifier to specify a single autonomous system path. See show ip bgp paths for a description of the fields.
router#show ip bgp neighbors 3.3.3.3 paths _46_
Hash Refcount Path
|245765 12 7737 7734 7735 2386 7018 1239 46 i
router#
Example 3: The following is sample output from the show ip bgp neighbors command using the routes keyword:
router#show ip bgp neighbors 10.200.91.58 routes
Status codes: * - valid Origin codes: i - IGP
d - damped e - EGP
h - history ? - incomplete
s - suppressed > - best
a - aggregate
i - internal
Network Next Hop Metric LocPrf Weight Path
*> 10.2.21.72/32 10.200.0.1 100 0 8 200 ?
*> 10.10.11.0/24 10.200.0.1 100 0 8 200 ?
*> 10.10.12.0/24 10.200.0.1 100 0 8 200 ?
*> 10.10.13.0/24 10.200.0.1 100 0 8 200 ?
*> 14.1.1.0/24 10.200.0.1 100 0 8 200 ?
*> 22.22.22.0/24 10.200.0.1 100 0 8 200 ?
*> 33.33.33.0/24 10.200.0.1 100 0 8 200 ?
*> 100.0.0.0/8 10.200.0.1 100 0 8 200 ?
router#
Example 4: The following is sample output from the show ip bgp neighbors command using the advertised-routes keyword:
router#show ip bgp neighbors 18.1.1.1 advertised-routes
Status codes: * - valid Origin codes: i - IGP
d - damped e - EGP
h - history ? - incomplete
s - suppressed > - best
a - aggregate
i - internal
Total Number of Prefixes : 3
Network Next Hop Metric LocPrf Weight Path
*> 6.6.6.6/32 6.6.6.6 0 0 0 ?
*> 18.1.1.0/24 18.1.1.1 0 0 0 ?
*> 19.1.1.0/24 19.1.1.1 0 0 0 ?
router#
Example 5: The following is sample output from the show ip bgp neighbors command using the accepted-routes keyword:
router#show ip bgp neighbors 10.200.91.58 accepted-routes
Status codes: * - valid Origin codes: i - IGP
d - damped e - EGP
h - history ? - incomplete
s - suppressed > - best
a - aggregate
i - internal
Network Next Hop Metric LocPrf Weight Path
*> 10.2.21.72/32 10.200.0.1 100 0 8 200 ?
*> 10.10.11.0/24 10.200.0.1 100 0 8 200 ?
*> 14.1.1.0/24 10.200.0.1 100 0 8 200 ?
*> 33.33.33.0/24 10.200.0.1 100 0 8 200 ?
*> 100.0.0.0/8 10.200.0.1 100 0 8 200 ?
router#
Example 6: The following is sample output from the show ip bgp neighbors command using the received-routes keyword:
router#show ip bgp neighbors 10.200.91.58 received-routes
Status codes: * - valid Origin codes: i - IGP
d - damped e - EGP
h - history ? - incomplete
s - suppressed > - best
a - aggregate
i - internal
Network Next Hop Metric LocPrf Weight Path
*> 10.2.21.72/32 10.200.0.1 100 0 8 200 ?
*> 10.10.11.0/24 10.200.0.1 100 0 8 200 ?
10.10.12.0/24 10.200.0.1 100 0 8 200 ?
10.10.13.0/24 10.200.0.1 100 0 8 200 ?
*> 14.1.1.0/24 10.200.0.1 100 0 8 200 ?
22.22.22.0/24 10.200.0.1 100 0 8 200 ?
*> 33.33.33.0/24 10.200.0.1 100 0 8 200 ?
*> 100.0.0.0/8 10.200.0.1 100 0 8 200 ?
111.0.0.0/8 10.200.91.58 100 0 8 10 ?
router#
The following table describes the fields in the display:
Related Commands: show ip bgp
show ip bgp peer-group
show ip bgp routes-dropped-sessions
show ip bgp summary
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: BGP_Nd.fm
HTML File Name: BGP_Nd55.html
Last Updated: 05/10/04 at 16:36:55