The debugging bgp packet command enables debugging of BGP packets.
The undo debugging bgp packet command disables debugging of BGP packets.
By default, debugging of BGP packets is disabled.
debugging bgp packet { keepalive | open | route-refresh | all } [ receive | send ]
debugging bgp packet { keepalive | open | route-refresh | all } peer peerIpv6Addr [ receive | send ]
debugging bgp packet { keepalive | open | route-refresh | all } vpn-instance vrf-name [ peer { peerIpv4Addr | peerIpv6Addr } ] [ receive | send ]
debugging bgp packet { keepalive | open | route-refresh | all } peer peerIpv4Addr [ receive | send ]
debugging bgp instance bgpName packet { keepalive | open | route-refresh | all } [ receive | send ]
debugging bgp instance bgpName packet { keepalive | open | route-refresh | all } [ vpn-instance vrf-name ] peer peerIpv4Addr [ receive | send ]
undo debugging bgp packet { keepalive | open | route-refresh | all } [ receive | send ]
undo debugging bgp packet { keepalive | open | route-refresh | all } peer peerIpv6Addr [ receive | send ]
undo debugging bgp packet { keepalive | open | route-refresh | all } vpn-instance vrf-name [ peer { peerIpv4Addr | peerIpv6Addr } ] [ receive | send ]
undo debugging bgp packet { keepalive | open | route-refresh | all } peer peerIpv4Addr [ receive | send ]
undo debugging bgp instance bgpName packet { keepalive | open | route-refresh | all } [ receive | send ]
undo debugging bgp instance bgpName packet { keepalive | open | route-refresh | all } [ vpn-instance vrf-name ] peer peerIpv4Addr [ receive | send ]
Parameter | Description | Value |
---|---|---|
keepalive |
Outputs debugging information about Keepalive packets. |
- |
open |
Outputs debugging information about open packets. |
- |
route-refresh |
Outputs debugging information about route-refresh packets. |
- |
all |
Outputs debugging information about all packets. |
- |
receive |
Outputs debugging information about the specified packet receiving direction. |
- |
send |
Outputs debugging information about the specified packet sending direction. |
- |
peer peerIpv4Addr |
Specifies the IP address of an IPv4 peer. |
The value is in dotted decimal notation. |
peerIpv6Addr |
Specifies the IP address of an IPv6 peer. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
vpn-instance vrf-name |
Specify a VPN-Instance (VRF) name. |
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. |
instance bgpName |
Specifies the name of 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. |
Usage Scenario
The debugging bgp packet command enables debugging of BGP packets so that you can view the information during BGP packet receiving and sending.
When much information is output, you can filter the output information by VPN instance, peer, and address family.Follow-up Procedure
Run the undo debugging bgp packet command to disable debugging.
Precautions
Debugging information is output on the screen. Do not output too much information for other purposes than debugging so that the performance is not affected.
<HUAWEI> debugging bgp packet all
2011-02-23 01:57:28 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Received NOTIFICATION from 10.3.3.3, Length: 21
2011-02-23 01:57:28 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
Err/SubErr: 6/4 (CEASE/Administrative Reset)
Error data: .
2011-02-23 01:57:39 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Sent OPEN to 10.3.3.3, Length: 45
Version: 4, Remote AS: 100, HoldTime: 180, Router ID: 10.1.1.9
TotOptLen: 16
OPT TYPE: 2 (Capability) , OPT LEN: 14
CAP TYPE: 1 (Multiprotocol) , CAP LEN: 4
MP-ext cap for IPv4-unicast
CAP TYPE: 2 (RouteRefresh) , CAP LEN: 0
CAP TYPE: 65 (4-byte-as) , CAP LEN: 4
AS NUMBER: 100
2011-02-23 01:57:39 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Received OPEN from 10.3.3.3, Length: 45
Version: 4, Remote AS: 100, HoldTime: 180, Router ID: 10.3.3.3
TotOptLen: 16
OPT TYPE: 2 (Capability) , OPT LEN: 14
CAP TYPE: 1 (Multiprotocol) , CAP LEN: 4
MP-ext cap for IPv4-unicast
CAP TYPE: 2 (RouteRefresh) , CAP LEN: 0
CAP TYPE: 65 (4-byte-as) , CAP LEN: 4
AS NUMBER: 100
2011-02-23 01:57:39 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Sent KEEPALIVE to 10.3.3.3, Length: 19
2011-02-23 01:57:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Received KEEPALIVE from 10.3.3.3, Length: 19
2011-02-23 01:57:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2148738916;
BGP.NM(VPN 0): Received UPDATE from 10.3.3.3, Length: 56
2011-02-23 01:57:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2150246245;
BGP.RM(VPN 0): Received UPDATE from 10.3.3.3, Length: 56,
Address family: IPv4-unicast
2011-02-23 01:57:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2150246245;
Origin : Incomplete
As path : NIL
Next hop : 10.3.3.3
Med : 88
Local pref: 100
2011-02-23 01:57:40 RTA %%01bgpcomm/3/DEBUG_INFO(d):CID=2150246245;
NLRI Length: 5
10.33.1.1/32,
Item | Description |
---|---|
NOTIFICATION | When a BGP device detects an error state, it sends a notification message to its peer. Then, the BGP connection between this BGP device and its peer will be closed. |
OPEN | Open message is the first message that is sent after a TCP connection is set up, and is used to set up BGP peer relationships. |
KEEPALIVE | Keepalive messages are sent to the peer to ensure the connection validity. |
UPDATE | Update messages are used to exchange routes between BGP peers. |