Step 2: 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:
[edit]user@host#edit protocol bgp traceoptions- Configure the flag to display sent, received, or both sent and received packet information:
[edit protocols bgp traceoptions]user@host#set flag update send[edit protocols bgp traceoptions]user@host#set flag update receive[edit protocols bgp traceoptions]user@host#set flag update[edit protocols bgp traceoptions]user@host#showfile bgplog size 10k files 10;flag update send;[edit protocols bgp traceoptions]user@host#showfile bgplog size 10k files 10;flag update receive;[edit protocols bgp traceoptions]user@host#showfile bgplog size 10k files 10;flag update send receive;
- Commit the configuration:
user@host#commit- View the contents of the file containing the detailed messages:
user@host#run show logfilename[edit protocols bgp traceoptions]user@host#run show log bgplogSep 13 12:58:23 trace_on: Tracing to "/var/log/bgplog" startedSep 13 12:58:23 BGP RECV flags 0x40 code ASPath(2): <null>Sep 13 12:58:23 BGP RECV flags 0x40 code LocalPref(5): 100Sep 13 12:58:23 BGP RECV flags 0xc0 code Extended Communities(16): 2:10458:3[...Output truncated...]