Border Gateway Protocol | 227Capturing PDUsCapture incoming and outgoing PDUs on a per-peer basis using the command capture bgp-pdu neighbordirection. Disable capturing using the no form of this command.The buffer size supports a maximum value between 40 MB (the default) and 100 MB. The capture buffersare cyclic and reaching the limit prompts the system to overwrite the oldest PDUs when new ones arereceived for a given neighbor or direction. Setting the buffer size to a value lower than the current max,might cause captured PDUs to be freed to set the new limit.Use the command capture bgp-pdu max-buffer-size (Figure 8-35) to change the maximum buffer size.View the captured PDUs using the command show capture bgp-pdu neighbor.Figure 8-35. Viewing Captured PDUsThe buffers storing the PDU free memory when:• BGP is disabled• A neighbor is unconfigured• clear ip bgp is issuedNote: Memory on RP1 is not pre-allocated, and is allocated only when a PDU needs to be captured.FTOS#show capture bgp-pdu neighbor 20.20.20.2Incoming packet capture enabled for BGP neighbor 20.20.20.2Available buffer size 40958758, 26 packet(s) captured using 680 bytesPDU[1] : len 101, captured 00:34:51 agoffffffff ffffffff ffffffff ffffffff 00650100 00000013 00000000 00000000 419ef06c 0000000000000000 00000000 00000000 00000000 0181a1e4 0181a25c 41af92c0 00000000 00000000 0000000000000000 00000001 0181a1e4 0181a25c 41af9400 00000000PDU[2] : len 19, captured 00:34:51 agoffffffff ffffffff ffffffff ffffffff 00130400PDU[3] : len 19, captured 00:34:51 agoffffffff ffffffff ffffffff ffffffff 00130400PDU[4] : len 19, captured 00:34:22 agoffffffff ffffffff ffffffff ffffffff 00130400[. . .]Outgoing packet capture enabled for BGP neighbor 20.20.20.2Available buffer size 40958758, 27 packet(s) captured using 562 bytesPDU[1] : len 41, captured 00:34:52 agoffffffff ffffffff ffffffff ffffffff 00290104 000100b4 14141401 0c020a01 04000100 0102008000000000PDU[2] : len 19, captured 00:34:51 agoffffffff ffffffff ffffffff ffffffff 00130400PDU[3] : len 19, captured 00:34:50 agoffffffff ffffffff ffffffff ffffffff 00130400PDU[4] : len 19, captured 00:34:20 agoffffffff ffffffff ffffffff ffffffff 00130400[. . .]