display bgp [ instance instance-name ] peer { ipv4-address | group-name } log-info
display bgp vpnv4 vpn-instance vpn-instance-name peer ipv4-address log-info
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name peer ipv4-address log-info
display bgp all peer log-info
display bgp peer ipv6-address log-info
display bgp vpnv4 vpn-instance vpn-instance-name peer-group group-name log-info
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name peer-group group-name log-info
Parameter | Description | Value |
---|---|---|
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. |
peer ipv4-address |
Specifies the IPv4 address of a peer to be displayed. |
The value is in dotted decimal notation. |
group-name |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
log-info |
Displays log information of the specified peer. |
- |
vpnv4 |
Displays information about peers in a VPNv4 instance. |
- |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string. |
all |
Displays information about peers in all VPNv4 instances. |
- |
ipv6-address |
Specify an IPv6 peer address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
peer-group |
Specifies a peer group. |
- |
Usage Scenario
The display bgp peer log-info 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 peer 1.1.1.2 log-info
Peer : 1.1.1.2
Date/Time : 2011/13/06 11:53:21
State : Up
Date/Time : 2011/13/06 11:53:09
State : Down
Error Code : 6(CEASE)
Error Subcode : 4(Administrative Reset)
Notification : Receive Notification
Date/Time : 2011/13/06 10:34:05
State : Up
Item | Description |
---|---|
Peer | IP address of the peer. |
Date/Time | Date and time. |
State | Status. |
Error Code | Error code. For the meanings and possible causes of error codes, see BGP Fundamentals - BGP Notification Messages. These messages are used to process various errors in the BGP process. |
Error Subcode | Error subcode. For details about error subcodes and possible causes, see BGP Fundamentals - BGP Notification Messages. These messages are used to process various errors in the BGP process. |
Notification | Notification message sent or received by a peer. |