show bgp neighbors

Syntax

show bgp [{ipv4 unicast | ipv6 unicast| ipv4 unicast {vrf <VRF-NAME>} | all unicast} neighbors] [vsx-peer]

Description

Shows information about BGP and TCP connections to neighbors. Optionally you can specify displaying information by VRF.

Command context

Operator (>) or Manager (#)

Parameters

ipv4

Selects the IPv4 address family.

ipv6

Selects the IPv6 address family.

unicast

The subaddress family identifier.

vrf <VRF-NAME>

Select to display information by VRFs by specifying the VRF name.

all

Select to display the BGP summary information for all VRFs and address-families.

[vsx-peer]

Shows the output from the VSX peer switch. If the switches do not have the VSX configuration or the ISL is down, the output from the VSX peer switch is not displayed.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Examples

switch# show bgp all unicast neighbors
Codes: ^ Inherited from peer-group

VRF : default
For address family: IPv4 Unicast

BGP Neighbor 9.0.0.1 (External)
    Description         :
    Peer-group          : pg1

    Remote Router Id    : 0.0.0.0            Local Router Id    : 1.1.1.1
    Remote AS           : 100                Local AS           : 200
    Remote Port         : 0                  Local Port         : 0
    State               : Connect            Admin Status       : Up
    Conn. Established   : 0                  Conn. Dropped      : 0
    Passive             : No                 Update-Source      :
    Neg. Hold Time      : 0                  Neg. Keep Alive    : 0
    Up/Down Time        : 00h:00m:00s        Alt. Local-AS      : 0^
    Local-AS Prepend    : No
    Password            :
    Last Err Sent       : No Error
    Last SubErr Sent    : No Error
    Last Err Rcvd       : No Error
    Last SubErr Rcvd    : No Error

    Graceful-Restart    : Enabled            Rt. Reflect. Client: No
    Gr. Restart Time    : 120                Gr. Stalepath Time : 150
    Max. Prefix         : 1000^              Send Community     : standard
    Allow-AS in         : 5^                 Remove Private-AS  : Yes^
    Advt. Interval      : 60^                TTL                : 1
    Soft Reconfig In    : Yes^               Local Cluster-ID   :
    Nexthop-Self        : Yes^               Default-Originate  : Yes^
    Weight              : 0                  Fall-over          : No

    Routemap In         : r1^
    Routemap Out        : r2^

  Message statistics:
                      Sent     Rcvd
                      -----    ------
    Open                  0         0
    Notification          0         0
    Updates               0         0
    Keepalives            0         0
    Route Refresh         0         0
    Total                 0         0

    Capability         Advertised      Received
    ---------------------------------------------
    Route Refresh        No               No
    Graceful Restart     No               No
    Four Octet ASN       No               No
For address family: IPv6 Unicast

VRF : blue
For address family: IPv4 Unicast

For address family: IPv4 Unicast