DGS-6604
m
show ip bgp neighbors
CLI Reference Guide
619
show ip bgp neighbors
Use this command to display information about the TCP and Border Gateway
Protocol (BGP) connections to neighbors.
show ip bgp [ipv4 {unicast }] neighbors
[
IP-ADDRESS
[advertised-routes | routes]]
Default
None
Command Mode
User EXEC or any configuration mode
Usage Guideline
Use the
show ip bgp neighbors
command to display BGP and TCP connection
information for neighbor sessions. For BGP, this includes detailed neighbor
attributes, capability, path, and prefix information. For TCP, this includes statistics
related to BGP neighbor session establishment and maintenance.
When BGP neighbors use multiple levels of peer templates, it can be difficult to
determine which policies are applied to the neighbor.
The output of this command displays all address family information if the
keyword
ipv4
is not specified. Specify the IP address of a neighbor to display
information about the specific neighbor.
Syntax Description
ipv4
(Optional) Specifies the address family. The type of address family determines
the routing table that is displayed.
unicast
Specifies a IPv4 unicast address family. This is the default option.
IP-ADDRESS
(Optional) IP address of a neighbor. If this argument is omitted, all neighbors are
displayed.
advertised-routes
(Optional) Displays the routes advertised to a BGP neighbor.
routes
(Optional) Displays all accepted routes learned from neighbors.