The display bgp peer command displays information about BGP peers.
The display bgp slow-peer command displays information about slow BGP peers.
Usage Scenario
The display bgp peer command displays BGP peer information. You can implement the following operations based on the command output:
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp peer
BGP local router ID : 1.2.3.4
Local AS number : 10
Total number of peers : 2
Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
1.1.1.1 4 100 0 0 0 00:00:07 Idle 0
2.2.2.2 4 200 32 35 0 00:17:49 Established 0
Item | Description |
---|---|
BGP local router ID | Router ID of the BGP local device. 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. |
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.
|
State | Status of the peer:
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.
|
PrefRcv | Number of route prefixes sent from the peer. |