592
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
100.1.1.0/24 10.1.1.68 0 0 300
10.1.1.64 0 0 100
Total number of prefixes 1
14.8.5.1.9 show ip bgp neighbors
Command:show ip bgp [<ADDRESS-FAMILY>] neighbors [IP-ADDRESS]
[advertised-routes|received {prefix-filter|routes}|routes]
Function:
For displaying the BGP neighbor related messages
Parameter: <ADDRESS-FAMILY>
: Address-family, such as “ipv4 unicast”
<ip-address>
: Neighbor IP address
Default:
None
Command Mode:
All mode
Usage Guide:
Display detailed messages of all neighbors by this command without
parameters. Specifying IP address will show the detailed information of the neighbors
with specified IP address. The advertised-routes
、
received prefix-filter
、
received routes
、
routes parameters will respectively displays the routes broadcast on local side, the
received prefix filter, received routes (soft reconfiguration enabled) and the routing
message from specific neighbor
Example:
Switch#sh ip bgp neighbor
BGP neighbor is 10.1.1.66, remote AS 200, local AS 100, external link
BGP version 4, remote router ID 11.1.1.100
BGP state = Established, up for 00:13:43
Last read 00:13:43, hold time is 240, keep alive interval is 60 seconds
Neighbor capabilities:
Route refresh: advertised and received (old and new)
Address family IPv4 Unicast: advertised and received
Received 17 messages, 0 notifications, 0 in queue
Sent 17 messages, 0 notifications, 0 in queue
Route refresh request: received 0, sent 0
Minimum time between advertisement runs is 30 seconds
For address family: IPv4 Unicast
BGP table version 2, neighbor version 2
Index 1, Offset 0, Mask 0x2
Community attribute sent to this neighbor (both)
0 accepted prefixes
1 announced prefixes