Use this command to enable BGP packet debug trace. Debug messages are sent to the system log at the DEBUG severity level. To print the debug messages to the console, enable console logging at the DEBUG level using the command logging console debug. The debug options enabled for a specific peer are the union of the options enabled globally and the options enabled specifically for the peer. Enabling one of the packet type options enables packet tracing in both the inbound and outbound directions.
| Default | Disabled |
| Format | debug ip bgp [vrf vrf-name] {ipv4-address|ipv6-address} [ events | in | interface {unit/ slot/port | vlan 1-4093} | keepalives | notification | open | out | refresh | updates ] |
| Mode | Privileged EXEC |
| Parameter | Description |
|---|---|
| peer-address | (Optional) The IPv4 address of a BGP peer. Debug traces are enabled for a specific peer when this option is specified. The command can be issued multiple times to enable simultaneous tracing for multiple peers. |
| events | (Optional) Trace adjacency state events. |
| keepalives | (Optional) Trace transmit and receive of KEEPALIVE packets. |
| notification | (Optional) Trace transmit and receive of NOTIFICATION packets. |
| open | (Optional) Trace transmit and receive of OPEN packets. |
| refresh | (Optional) Traces transmit and receive of ROUTE REFRESH packets. |
| updates | (Optional) Traces transmit and receive of UPDATE packets. |