Display Sent or Received BGP Packets
Action
To configure the tracing for sent or received BGP protocol packets, follow these steps:
- In configuration mode, go to the following hierarchy level:
- Configure the flag to display sent, received, or both
sent and received packet information:
or
or
- Verify the configuration:
For example:
or
- [edit protocols bgp traceoptions]
- user@host# show
- file bgplog size 10k files 10;
- flag update receive;
or
- Commit the configuration:
- View the contents of the file containing the detailed
messages:
For example:
- [edit protocols bgp traceoptions]
- user@host# run show log bgplog
- Sep 13 12:58:23 trace_on: Tracing to "/var/log/bgplog" started
- Sep 13 12:58:23 BGP RECV flags 0x40 code ASPath(2): <null>
- Sep 13 12:58:23 BGP RECV flags 0x40 code LocalPref(5): 100
- Sep 13 12:58:23 BGP RECV flags 0xc0 code Extended Communities(16): 2:10458:3
- [...Output truncated...]

