display bgp l2vpn-ad peer (or slow-peer)

Function

The display bgp l2vpn-ad peer command displays information about BGP peers in the L2VPN AD address family.

The display bgp l2vpn-ad slow-peer command displays information about slow BGP peers in the L2VPN AD address family.

Format

display bgp l2vpn-ad peer

display bgp l2vpn-ad slow-peer

Parameters

None

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

The display bgp l2vpn-ad peer command displays BGP peer information in the L2VPN AD address family. You can implement the following operations based on the command output:

  • To check the status of BGP connections
  • To check information about a BGP peer
  • To check whether a BGP peer is configured using the peer as-number command
  • To check whether a BGP peer is deleted using the undo peer as-number command

    To check information about slow BGP peers in the L2VPN AD address family, run the display bgp l2vpn-ad slow-peer command. The information includes the time when a peer began to be identified as a slow peer, the time when a peer last exited from the slow peer state, the number of times a peer has been identified as a slow peer, and the remaining time for a peer to exit from the slow peer state.

Example

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

# Display information about peers in the L2VPN AD address family.
<HUAWEI> display bgp l2vpn-ad peer
 BGP local router ID : 10.2.2.2
 Local AS number : 100
 Total number of peers : 2                 Peers in established state : 2

  Peer            V          AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv
  10.3.3.3        4         100      482      484     0 07:58:05 Established       1
  10.4.4.4        4         100      439      439     0 07:13:16 Established       3
# Display information about slow BGP peers in the L2VPN AD address family.
<HUAWEI> display bgp l2vpn-ad slow-peer
Total number of peers : 2                 
 Switchback detection timer: Remaining 3581 Second(s)
 Peer            LastSlowEndTime              SlowStartTime                SlowCount 
 10.1.1.1        2016-04-10 20:41:33+00:00    2016-04-12 00:02:33+00:00    3 
 10.2.2.1        2016-04-11 23:02:40+00:00    2016-04-12 00:02:40+00:00    5
Table 1 Description of the display bgp l2vpn-ad peer (or slow-peer) command output
Item Description
BGP local router ID

ID of the BGP local router.

If two ends have the same BGP local router ID, no BGP peer relationship can be established between them. In this situation, run the router id command in the BGP view on either end to change the BGP local router ID. Changing it to the IP address of a loopback interface is recommended.

Local AS number

Local AS number.

AS

AS number.

Total number of peers

Total number of BGP peers.

Peers in established state

Number of BGP peers in Established state.

Peer

IP address of the peer.

Peer

IP address of a slow peer.

V

BGP version used on the peer.

MsgRcvd

Number of received messages.

MsgSent

Number of sent messages.

OutQ

Message to be sent to the specified peer.

Up/Down

Period during which a BGP session keeps the current state.

  • When the duration is shorter than 24 hours, the value is displayed as xx:xx:xx, indicating xx hours xx minutes and xx seconds.
  • When the duration is longer than 24 hours, xxxxhxxm is displayed, indicating xxxx hours and xx minutes.
State

Status of the peer:

  • Idle: indicates that BGP denies any request of entering. This is the initiatory status of BGP.

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

  • Connect: indicates that BGP is waiting for the TCP connection to be set up before it determines whether to perform other operations.
    1. If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.
    2. If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to listen for a TCP connection request initiated by the remote peer, and changes its state to Active.
    3. If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value, initiates a TCP connection request to the remote BGP peer, and stays in the Connect state.
  • Active: indicates that BGP tries to set up a TCP connection. This is the intermediate status of BGP.
    1. If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.
    2. If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value and changes its state to Connect.
    3. If BGP initiates a TCP connection request with an unknown IP address, the TCP connection fails. When this occurs, BGP restarts the ConnectRetry Timer with the initial value and stays in the Active state.
  • OpenSent: indicates that BGP has sent one Open message to its peer and is waiting for the other Open message from the peer.
    1. If there are no errors in the Open message received, BGP changes its state to OpenConfirm.
    2. If there are errors in the Open message received, BGP sends a Notification message to the remote peer and changes its state to Idle.
    3. If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to listen for a TCP connection request initiated by the remote peer, and changes its state to Active.
  • OpenConfirm: indicates that BGP is waiting for a Notification or Keepalive message.
    1. If BGP receives a Notification message, or the TCP connection fails, BGP changes its state to Idle.
    2. If BGP receives a Keepalive message, BGP changes its state to Established.
  • Established: indicates that BGP peers can exchange Update, Notification, and Keepalive messages.
    1. If BGP receives an Update or a Keepalive message, its state stays in Established.
    2. If BGP receives a Notification message, BGP changes its state to Idle.
  • No neg: The address family is not enabled for the BGP peer. In this state, Update messages can be exchanged in other address families whose capabilities have been successfully negotiated. If the address family is enabled for the BGP peer, the local BGP peer receives a Notification message, and the peer relationship is disconnected. Then, the BGP peer changes to the Idle state and re-establishes the peer relationship.
PrefRcv

Number of route prefixes sent from the peer.

Switchback detection timer

Remaining time for a peer to exit from the slow peer state.

LastSlowEndTime

Time when a peer last exited from the slow peer state.

SlowStartTime

Time when a peer began to be identified as a slow peer.

SlowCount

Number of times a peer has been identified as a slow peer.

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