show bgp neighbors

Syntax

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

show bgp l2vpn evpn neighbors

Description

This command shows information about BGP and TCP connections to neighbors. If neighbors are member of a peer-group, the command shows the configured values inherited from the peer-group. The configured values are postfixed with a caret (^) for inherited values.

Command context

Operator (>) or Manager (#)

Parameters

vrf <VRF-NAME>

Shows the information for a specified VRF.

ipv4 unicast

Shows the information for an IPv4 unicast address family.

ipv6 unicast

Shows the information for an IPv6 unicast address family.

all

Shows the information for all address families and subaddress 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.

l2vpn evpn

Shows the information for L2VPN EVPN address family. This parameter applies only to 8325 series switches.

Authority

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

Examples

Showing all information about BGP and TCP connections to neighbors:

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

BGP Neighbor 10.1.1.2 (Internal)
    Description         :
    Peer-group          :

    Remote Router Id    : 10.1.1.2           Local Router Id    : 1.0.0.1
    Remote AS           : 1                  Local AS           : 1
    Remote Port         : 0                  Local Port         : 0
    State               : Idle               Admin Status       : Up
    Conn. Established   : 0                  Conn. Dropped      : 0
    Passive             : No                 Update-Source      :
    Cfg. Hold Time      : 180                Cfg. Keep Alive    : 60
    Neg. Hold Time      : 0                  Neg. Keep Alive    : 0
    Up/Down Time        : 00h:00m:00s        Alt. Local-AS      : 0
    Local-AS Prepend    : No
    BFD                 : Disabled
    Password            :
    Last Err Sent       : No Error
    Last SubErr Sent    : No Error
    Last Err Rcvd       : No Error
    Last SubErr Rcvd    : No Error

    Graceful-Restart    : Enabled            Gr. Restart Time   : 120
    Gr. Stalepath Time  : 150                Remove Private-AS  : No
    TTL                 : 255                Local Cluster-ID   :
    Weight              : 0                  Fall-over          : No

    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                        Yes             No
    Graceful Restart                     Yes             No
    Four Octet ASN                       Yes             No
    Address family IPv4 Unicast          Yes             No
    Address family IPv6 Unicast          No              No
    Address family L2VPN EVPN            No              No

    Address Family : IPv4 Unicast
    -----------------------------

    Rt. Reflect. Client : No                  Send Community    :
    Allow-AS in         : 0                   Advt. Interval    : 30
    Max. Prefix         : 64000               Soft Reconfig In  :
    Nexthop-Self        :                     Default-Originate :

    Routemap In         :
    Routemap Out        :
    Address Family : IPv6 Unicast
    -----------------------------

    Address Family : L2VPN EVPN
    -----------------------------
Showing information about L2VPN EVPN connections to neighbors:
switch# show bgp l2vpn evpn neighbors
Codes: ^ Inherited from peer-group

VRF : default

BGP Neighbor 10.1.1.2 (Internal)
    Description         :
    Peer-group          :

    Remote Router Id    : 10.1.1.2           Local Router Id    : 10.1.1.1
    Remote AS           : 1                  Local AS           : 1
    Remote Port         : 179                Local Port         : 56008
    State               : Established        Admin Status       : Up
    Conn. Established   : 1                  Conn. Dropped      : 0
    Passive             : No                 Update-Source      :
    Cfg. Hold Time      : 180                Cfg. Keep Alive    : 60
    Neg. Hold Time      : 180                Neg. Keep Alive    : 60
    Up/Down Time        : 00m:01w:03d        Alt. Local-AS      : 0
    Local-AS Prepend    : No
    BFD                 : Disabled
    Password            :
    Last Err Sent       : No Error
    Last SubErr Sent    : No Error
    Last Err Rcvd       : No Error
    Last SubErr Rcvd    : No Error

    Graceful-Restart    : Disabled           Gr. Restart Time   :
    Gr. Stalepath Time  : 150                Remove Private-AS  : No
    TTL                 : 255                Local Cluster-ID   :
    Weight              : 0                  Fall-over          : No

    Message statistics       Sent     Rcvd
    -------------------      -----    -----
    Open                         1        1
    Notification                 0        0
    Updates                      3        2
    Keepalives               17995    18009
    Route Refresh                0        0
    Total                    17999    18012

    Capability                           Advertised      Received
    -----------                          -----------     ----------
    Route Refresh                        Yes             Yes
    Graceful Restart                     No              No
    Four Octet ASN                       Yes             Yes
    Address family IPv4 Unicast          Yes             Yes
    Address family IPv6 Unicast          Yes             Yes
    Address family L2VPN EVPN            Yes             Yes

    Address Family : L2VPN EVPN
    -----------------------------

    Rt. Reflect. Client : No                  Send Community    : extended
    Allow-AS in         : 0                   Advt. Interval    : 30
    Max. Prefix         : 32768               Soft Reconfig In  :
    Nexthop-Self        :                     Default-Originate :

    Routemap In         :
    Routemap Out        :