show bgp neighbor

Syntax

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

show bgp l2vpn evpn neighbors <IP-ADDRESS>

Description

This command shows information about BGP and TCP connection of a specific neighbor. 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.

<IP-ADDRESS>

Shows the information for a neighbor IP address.

[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. This parameter is available on switches that support VSX.

l2vpn evpn

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

Authority

Operators or Administrators or local user group members with execution rights for this command. Operators can execute this command from the operator context (>) only.

Examples

Showing information about BGP and TCP connection of neighbor 10.1.1.2:

switch# show bgp ipv4 unicast neighbors 10.1.1.2
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        :

Showing information about BGP and TCP connection of L2VPN EVPN neighbor 10.1.1.2:

switch# show bgp l2vpn evpn neighbors 10.1.1.2
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    : 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                         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                     Yes             Yes
    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        :