display bgp all summary

Function

The display bgp all summary command displays information about peers in all BGP address family views, including the peer status and route statistics.

Format

display bgp all summary

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

To check information about peers in all BGP address family views, including the peer status and route statistics, run the display bgp all summary command. The command output helps with troubleshooting. The address families supported include BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPNv4 address family view, BGP-VPNv6 address family view, and BGP-MVPN address family view.

Precautions

If no peers exist in an address family view, information about the address family is not displayed in the command output.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about peers in all BGP address family views.
<HUAWEI> display bgp all summary
 
 BGP local router ID : 10.1.1.1
 Local AS number : 100

 Address Family:Ipv4 Unicast
 --------------------------------------------------------------------------------------------
 Total number of peers : 3                 Peers in established state : 2

  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.1.1.2                200     1842     1844     0 0026h40m Established        2        3
  10.2.1.1                100        0        0     0 0026h40m     Connect        0        0
  10.3.1.2                200     1837     1840     0 0026h40m Established        2        3
 Address Family:Ipv6 Unicast
 --------------------------------------------------------------------------------------------
 Total number of peers : 1                 Peers in established state : 0

  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  2001:DB8:1::1           200        0        0     0 0026h40m        Idle        0        0
 Address Family:Vpnv4 All
 --------------------------------------------------------------------------------------------
 Total number of peers : 4                 Peers in established state : 1

  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.2.1.1                100        0        0     0 0026h40m     Connect        0        0
   
  Peer of IPv4-family for vpn instance :
  VPN-Instance kkk, Router ID 10.1.1.1:
  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.4.1.2                200     1840     1830     0 0026h34m Established        3        0
  VPN-Instance vrf1, Router ID 10.1.1.1:
  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.2.3.4                100        0        0     0 0026h40m      Active        0        0
  VPN-Instance vrf2, Router ID 10.1.1.1:
  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.6.6.6                200        0        0     0 0026h40m        Idle        0        0
 Address Family:Vpnv6 All
 --------------------------------------------------------------------------------------------
 Total number of peers : 2                 Peers in established state : 0

  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.2.1.1                100        0        0     0 0026h40m     Connect        0        0
                
  Peer of IPv6-family for vpn instance :
  VPN-Instance vrf1, Router ID 10.1.1.1:
  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  2001:DB8:4::5           300        0        0     0 0026h40m        Idle        0        0
 Address Family:Ipv4 Mvpn
 --------------------------------------------------------------------------------------------
 Total number of peers : 1                 Peers in established state : 0

  Peer                     AS  MsgRcvd  MsgSent  OutQ  Up/Down       State    RtRcv    RtAdv
  10.2.1.1                100        0        0     0 0026h40m     Connect        0        0
Table 1 Description of the display bgp all summary command output
Item Description
BGP local router ID

ID of the local BGP device, in the same format as an IPv4 address.

Local AS number

Local AS number.

AS

AS number of the BGP peer.

Address Family

Address family in the view for BMP to monitor a specific peer.

  • Ipv4 Unicast: BGP-IPv4 unicast address family.
  • Ipv6 Unicast: BGP-IPv6 unicast address family.
  • vpnv4 All: BGP-VPNv4 address family.
  • vpnv6 All: BGP-VPNv6 address family.
  • Ipv4 Mvpn: BGP-MVPN address family.
Total number of peers

Number of BGP peers.

Peers in established state

Number of BGP peers in the Established state.

Peer

IP address of the BGP peer.

Peer of IPv4-family for vpn instance

Peers in the BGP-VPN instance IPv4 address family.

Peer of IPv6-family for vpn instance

Peers in the BGP-VPN instance IPv6 address family.

MsgRcvd

Number of received messages.

MsgSent

Number of sent messages.

OutQ

Number of messages waiting to be sent to a specified peer.

Up/Down

Duration in which the BGP session remains in the current state.

State

Current BGP status:

  • Idle: BGP denies any connection request. This is the initial status of BGP.

After receiving a Start event, BGP initiates a TCP connection to the remote BGP peer, starts the ConnectRetry Timer with the initial value, listens for a TCP connection initiated by the remote BGP peer, and changes its state to Connect.

  • Connect: BGP is waiting for the TCP connection to be established before performing further actions.
  1. If the TCP connection is successfully established, BGP stops the ConnectRetry Timer, sends an Open message to the peer, and changes its state to Opensent.
  2. If the TCP connection fails to be established, BGP restarts the ConnectRetry Timer with the initial value, continues to listen for a TCP connection initiated by the remote peer, and changes its state to Active.
  3. If the ConnectRetry timer expires, BGP restarts the ConnectRetry timer and attempts to establish a TCP connection with the peer again. At this time, BGP remains in the Connect state.
  • Active: BGP attempts to establish a TCP connection. This is the intermediate state of BGP.
  1. If the TCP connection is successfully established, BGP EVPN resets the ConnectRetry timer and sends an Open message to the peer. BGP EVPN then enters the Opensent state.
  2. If the ConnectRetry timer expires, BGP restarts the ConnectRetry timer and enters the Connect state.
  3. If BGP attempts to establish a TCP connection with an unknown IP address, the TCP connection fails, the ConnectRetry Timer is reset, and BGP remains in the Active state.
  • OpenSent: BGP has sent an Open message to the peer and is now waiting for an Open message from the peer.
  1. If BGP receives a correct Open message, BGP enters the OpenConfirm state.
  2. If the Open message received by BGP is incorrect, BGP sends a Notification message to the peer and changes its state to Idle.
  3. If BGP receives a TCP connection teardown message, BGP resets the ConnectRetry timer and listens to the TCP connection initiated by the peer. BGP then enters the Active state.
  • OpenConfirm: BGP is waiting for a Notification or Keepalive message.
  1. If BGP receives a Notification message or a TCP connection teardown message, BGP enters the Idle state.
  2. If BGP receives a Keepalive message, BGP enters the Established state.
  • Established: BGP peers can exchange Update, Notification, and Keepalive messages.
  1. If BGP receives an Update or Keepalive message, BGP remains in the Established state.
  2. If BGP receives a Notification message, BGP enters the Idle state.
  • No neg: address family is not enabled on the BGP peer. In this state, other successfully negotiated address families can exchange Update messages normally. If the address family is enabled on the remote BGP peer, the local BGP peer receives a Notification message, disconnects from the remote BGP peer, changes to the Idle state, and re-establishes a connection with the remote BGP peer.
RtRcv

Number of route prefixes received by the local device from the peer.

RtAdv

Number of route prefixes advertised by a peer.

VPN-Instance kkk

VPN instance name.

Router ID

Router ID of the device.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >