show ip bgp vrf neighbors

Displays configuration information and statistics for BGP4 neighbors of the device for a virtual routing and forwarding (VRF) instance.
Syntax
show ip bgp vrf vrf-name neighbors [ ip-addr ]
show ip bgp vrf vrf-name neighbors last-packet-with-error
show ip bgp vrf vrf-name neighbors routes-summary
show ip bgp vrf vrf-name neighbors ip-addr advertised-routes [ detail ] [ ip-address /mask ]
show ip bgp vrf vrf-name neighbors ip-addr flap-statistics
show ip bgp vrf vrf-name neighbors ip-addr last-packet-with-error [ decode ]
show ip bgp vrf vrf-name neighbors ip-addr received [ prefix-filter ]
show ip bgp vrf vrf-name neighbors ip-addr received-routes [ detail ]
show ip bgp vrf vrf-name neighbors ip-addr rib-out-routes [ detail ] [ ipv6-address /mask ]
show ip bgp vrf vrf-name neighbors ip-addr routes
show ip bgp vrf vrf-name neighbors ip-addr routes { best | not-installed-best | unreachable }
show ip bgp vrf vrf-name neighbors ip-addr routes detail { best | not-installed-best | unreachable }
show ip bgp vrf vrf-name neighbors ip-addr routes-summary
Parameters
vrf-name
Specifies the name of a VRF instance.
neighbors
Specifies a neighbor.
ip-addr
IPv4 address of a neighbor in dotted-decimal notation.
last-packet-with-error
Displays the last packet with an error.
routes-summary
Displays routes received, routes accepted, number of routes advertised by peer, and so on.
advertised-routes
Specifies the routes that the device has advertised to the neighbor during the current BGP4 session.
detail
Specifies detailed information.
ip address/mask
Specifies an IP address and mask.
flap-statistics
Specifies the route flap statistics for routes received from or sent to a BGP4 neighbor.
last-packet-with-error
Specifies the last packet with an error.
decode
Decodes the last packet that contained an error from any of a device's neighbors.
received
Specifies Outbound Route Filters (ORFs) received from BGP4 neighbors of the device.
prefix-filter
Displays the results for ORFs that are prefix-based.
received-routes
Specifies all route information received in route updates from BGP4 neighbors of the device since the soft-reconfiguration feature was enabled.
rib-out-routes
Displays information about the current BGP4 Routing Information Base (Adj-RIB-Out) for specific neighbors and specific destination networks.
routes
Displays a variety of route information received in UPDATE messages from BGP4 neighbors.
best
Displays routes received from the neighbor that are the best BGP4 routes to their destination.
not-installed-best
Displays routes received from the neighbor that are the best BGP4 routes to their destination but were not installed in the route table because the device received better routes from other sources.
unreachable
Displays routes that are unreachable because the device does not have a valid RIP, OSPF, or static route to the next hop.
routes-summary
Displays all route information received in UPDATE messages from BGP4 neighbors.
Modes

User EXEC mode

Privileged EXEC mode

Examples

The following example shows how to display configuration information and statistics for BGP4 neighbors of the device for a VRF instance.

device# show ip bgp vrf blue neighbors
    Total number of BGP Neighbors:1
1   IP Address: 15.1.1.1, AS: 1 (IBGP), RouterID: 3.3.3.3, VRF: blue
    State: ESTABLISHED, Time: 1d22h43m13s, KeepAliveTime: 10, HoldTime: 30
       KeepAliveTimer Expire in 2 seconds, HoldTimer Expire in 29 seconds
    Minimal Route Advertisement Interval: 0 seconds
       RefreshCapability: Received
       GracefulRestartCapability: Received
           Restart Time 120 sec, Restart bit 0
           afi/safi 1/1, Forwarding bit 0
       GracefulRestartCapability: Sent
           Restart Time 120 sec, Restart bit 0
           afi/safi 1/1, Forwarding bit 0
    Messages:    Open    Update  KeepAlive Notification Refresh-Req
       Sent    : 1       1       16729     0            0          
       Received: 1       1       18103     0            0          
    Last Update Time: NLRI       Withdraw          NLRI       Withdraw
                  Tx: ---        ---           Rx: ---        ---        
    Last Connection Reset Reason:Unknown
    Notification Sent:     Unspecified
    Notification Received: Unspecified
    Neighbor NLRI Negotiation:
      Peer Negotiated IPV4  unicast  capability
      Peer configured for IPV4 unicast  Routes
    Neighbor AS4 Capability Negotiation:
    Outbound Policy Group:
       ID: 4, Use Count: 2                                        
    AO Keychain name : 1
    TCP Connection state: ESTABLISHED
     TCP Keychain name      : 1
     TCP-AO Enabled         : YES
     TCP-AO in use          : YES
     Keychain valid         : YES
     No of segments dropped : 0
     Send-Active-Key
     ---------------
       Key-id               : 1
       Crypto Algorithm     : AES-128-CMAC
       Send-id              : 100
       Recv-id              : 100
       Include-tcp-options  : YES
       Accept-ao-mismatch   : YES
     Recv-Active-Key
     ---------------
       Key-id               : 1
       Crypto Algorithm     : AES-128-CMAC
       Send-id              : 100
       Recv-id              : 100
       Include-tcp-options  : YES
       Accept-ao-mismatch   : YES

     Maximum segment size: 1420                                   
    TTL check: value: 0
       Byte Sent:   317929, Received: 344035
       Local host:  15.1.1.2, Local  Port: 179
       Remote host: 15.1.1.1, Remote Port: 8220
       ISentSeq:   21517275  SendNext:   21835205  TotUnAck:          0
       TotSent:      317930  ReTrans:           0  UnAckSeq:   21835205
       IRcvSeq:   155554412  RcvNext:   155898448  SendWnd:       16384
       TotalRcv:     344036  DupliRcv:          0  RcvWnd:        16384
       SendQue:           0  RcvQue:            0  CngstWnd:       1420

The following example displays BGP neighbor information for a specific VRF (blue) and IP address (15.1.1.1).

device# show ip bgp vrf blue neighbors 15.1.1.1
1   IP Address: 15.1.1.1, AS: 1 (IBGP), RouterID: 3.3.3.3, VRF: blue
    State: ESTABLISHED, Time: 1d22h43m42s, KeepAliveTime: 10, HoldTime: 30
       KeepAliveTimer Expire in 3 seconds, HoldTimer Expire in 28 seconds
    Minimal Route Advertisement Interval: 0 seconds
       RefreshCapability: Received
       GracefulRestartCapability: Received
           Restart Time 120 sec, Restart bit 0
           afi/safi 1/1, Forwarding bit 0
       GracefulRestartCapability: Sent
           Restart Time 120 sec, Restart bit 0
           afi/safi 1/1, Forwarding bit 0
    Messages:    Open    Update  KeepAlive Notification Refresh-Req
       Sent    : 1       1       16732     0            0          
       Received: 1       1       18106     0            0          
    Last Update Time: NLRI       Withdraw          NLRI       Withdraw
                  Tx: ---        ---           Rx: ---        ---        
    Last Connection Reset Reason:Unknown
    Notification Sent:     Unspecified
    Notification Received: Unspecified
    Neighbor NLRI Negotiation:
      Peer Negotiated IPV4  unicast  capability
      Peer configured for IPV4 unicast  Routes
    Neighbor AS4 Capability Negotiation:
    Outbound Policy Group:
       ID: 4, Use Count: 2
    AO Keychain name : 1                                          
    TCP Connection state: ESTABLISHED
     TCP Keychain name      : 1
     TCP-AO Enabled         : YES
     TCP-AO in use          : YES
     Keychain valid         : YES
     No of segments dropped : 0
     Send-Active-Key
     ---------------
       Key-id               : 1
       Crypto Algorithm     : AES-128-CMAC
       Send-id              : 100
       Recv-id              : 100
       Include-tcp-options  : YES
       Accept-ao-mismatch   : YES
     Recv-Active-Key
     ---------------
       Key-id               : 1
       Crypto Algorithm     : AES-128-CMAC
       Send-id              : 100
       Recv-id              : 100
       Include-tcp-options  : YES
       Accept-ao-mismatch   : YES

     Maximum segment size: 1420
    TTL check: value: 0                                           
       Byte Sent:   317986, Received: 344092
       Local host:  15.1.1.2, Local  Port: 179
       Remote host: 15.1.1.1, Remote Port: 8220
       ISentSeq:   21517275  SendNext:   21835262  TotUnAck:          0
       TotSent:      317987  ReTrans:           0  UnAckSeq:   21835262
       IRcvSeq:   155554412  RcvNext:   155898505  SendWnd:       16384
       TotalRcv:     344093  DupliRcv:          0  RcvWnd:        16384
       SendQue:           0  RcvQue:            0  CngstWnd:       1420
History
Release version Command history
09.0.10 This command was modified to add TCP keychain authentication option (AO) information to the output.