display bgp vpnv4 all peer verbose

Function

The display bgp vpnv4 all peer verbose command displays detailed information about BGP peers.

Format

display bgp vpnv4 all peer [ ipv4-address ] verbose

display bgp vpnv4 all peer ipv6-address verbose

display bgp instance instance-name vpnv4 all peer [ ipv4-address ] verbose

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer to be displayed.

The value is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address of a peer to be displayed.

The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

instance instance-name

Specifies a BGP multi-instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

The display bgp vpnv4 all peer verbose command displays BGP peer information. 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

    The display bgp vpnv4 all peer verbose command can be used for troubleshooting, with details as follows: If BGP peers are disconnected, specify log-info in the command to check the log information of the specified peer. In the command output, Date/Time indicates the time when the peers were disconnected, and Error Code and Error Subcode indicate the cause of the disconnection.

Example

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

# displays detailed information about BGP peers.
<HUAWEI> display bgp vpnv4 all peer verbose
 BGP Peer is 2.2.2.2,  remote AS 100
 Type: IBGP link
 BGP version 4, Remote router ID 2.2.2.2
 Update-group ID: 3
 BGP current state: Established, Up for 01h12m50s
 BGP current event: RecvKeepalive
 BGP last state: OpenConfirm
 BGP Peer Up count: 1
 Received total routes: 0
 Received active routes total: 0
 Advertised total routes: 1
 Port: Local - 179        Remote - 58368
 Configured: Connect-retry Time: 32 sec
 Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
 Received  : Active Hold Time: 180 sec
 Negotiated: Active Hold Time: 180 sec   Keepalive Time:60 sec
 Peer optional capabilities:
  Peer supports bgp multi-protocol extension
  Peer supports bgp route refresh capability
  Peer supports bgp 4-byte-as capability
  Address family IPv4 Unicast: advertised and received
  Address family VPNv4 Unicast: advertised and received
 Received:
                  Total  messages                88
                  Update messages                2
                  Open messages                  1
                  KeepAlive messages             84
                  Notification messages          0
                  Refresh messages               1
 Sent    :
                  Total  messages                97
                  Update messages                11
                  Open messages                  1
                  KeepAlive messages             85
                  Notification messages          0
                  Refresh messages               0
 Authentication type configured: None
  Last keepalive received: 2015-01-07 09:48:41+00:00
  Last keepalive sent    : 2015-01-07 09:48:41+00:00
  Last update received   : 2015-01-07 08:36:31+00:00
  Last update sent       : 2015-01-07 09:34:22+00:00
  Last refresh received  : 2015-01-07 08:37:36+00:00
  No refresh sent since peer has been configured
 Minimum route advertisement interval is 0 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Connect-interface has been configured
 Send remote-nexthop has been configured
 Peer Preferred Value: 0
 Memory Priority: high
 Routing policy configured:
 No routing policy is configured
Table 1 Description of the display bgp vpnv4 all peer verbose command output
Item Description
BGP version

BGP version.

BGP current state

State of BGP:

  • 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 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.
  • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.
  • 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.
  • 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.
  • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.
  • 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.
  • 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.
  • If there are no errors in the Open message received, BGP changes its state to OpenConfirm.
  • If there are errors in the Open message received, BGP sends a Notification message to the remote peer and changes its state to Idle.
  • 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.
  • If BGP receives a Notification message, or the TCP connection fails, BGP changes its state to Idle.
  • If BGP receives a Keepalive message, BGP changes its state to Established.
  • Established: indicates that BGP peers can exchange Update, Notification, and Keepalive messages.
  • If BGP receives an Update or a Keepalive message, its state stays in Established.
  • 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.
BGP current event

Current BGP event.

BGP last state

Last BGP status, which may be Idle, Connect, Active, OpenSent, OpenConfirm, Established or No neg.

BGP Peer Up count

Flapping count of a BGP peer in a specified period of time.

BGP Peer

The address of the peer.

Peer Preferred Value

PrefVal of the peer.

Peer optional capabilities

The optional capabilities supported by the peer.

remote AS

The AS Number of the peer.

Update-group ID

ID of the update-group to which the peer belongs.

Received total routes

Number of received route prefixes.

Received active routes total

Number of received active route prefixes.

Received

Number of messages received from a peer.

  • Total: indicates the total number of messages received from a peer.
  • Update messages: indicates the number of Update messages received from a peer.
  • Open messages: indicates the number of Open messages received from a peer.
  • KeepAlive messages: indicates the number of Keepalive messages received from a peer.
  • Notification messages: indicates the number of Notification messages received from a peer.
  • Refresh messages: indicates the number of route-refresh messages received from a peer.
Received : Active Hold Time

Hold time agreed between the BGP peers after capability negotiation.

Advertised total routes

Number of sent route prefixes.

Keepalive Time

Indicates the interval at which Keepalive messages are sent to the peer.

Negotiated: Active Hold Time

Hold time on the peer.

Address family IPv4 Unicast

IPv4 unicast address family.

Address family VPNv4 Unicast

VPNv4 address family.

Sent

Number of messages sent to a peer.

  • Total: indicates the total number of messages sent to a peer.
  • Update messages: indicates the number of Update messages sent to a peer.
  • Open messages: indicates the number of Open messages sent to a peer.
  • KeepAlive messages: indicates the number of Keepalive messages sent to a peer.
  • Notification messages: indicates the number of Notification messages sent to a peer.
  • Refresh messages: indicates the number of route-refresh messages sent to a peer.
Authentication type configured

Authentication type.

Last keepalive received

Time when a Keepalive message was last received.

Last refresh received

Time when a Refresh message was last received.

Last update received

Time when an Update message was last received.

Last update sent

Time when an Update message was last sent.

Last keepalive sent

Time at which the last keepalive message is sent.

Optional capabilities

(Optional) Peer-supported capabilities.

Route refresh capability has been enabled

Route refreshing has been enabled.

Memory Priority

The priority for a BGP peer relationship to be disconnected if memory overload occurs.

Routing policy configured

Configured routing policy.

Type

BGP link type: IBGP or EBGP.

Port

Port type:

  • Local: indicates the local port number, which is always 179. BGP uses TCP at the transport layer.
  • Remote: indicates the port number used on the peer.
Configured

Locally configured timers.

  • Active Hold Time: indicates the hold time. If BGP does not receive any Keepalive message from the peer in the hold time, BGP considers that the peer is Down and then instructs other peers to remove the routes that are sent from the peer.
  • Keep Alive Time: indicates the interval at which Keepalive messages are sent to the peer. BGP peers exchange Keepalive messages periodically to maintain their relationships.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >