Usage Scenario
The display bgp vpn-target peer 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.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp vpn-target peer
BGP local router ID : 1.1.1.1
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv
2.2.2.2 4 200 12 14 0 00:01:15 Established 0
Item | Description |
---|---|
BGP local router ID | Router ID of the local device. |
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 BGP peer. |
V | BGP version used by the BGP peer. |
MsgRcvd | Number of received messages. |
MsgSent | Number of sent messages. |
OutQ | Number of messages to be sent to a specified peer. |
Up/Down | Duration during which a BGP session stays in the current state. |
State | Status of the BGP peer:
|
PrefRcv | Number of route prefixes received from a peer. |