[an error occurred while processing this directive][an error occurred while processing this directive]

Display Sent or Received BGP Packets

Action

To configure the tracing for sent or received BGP protocol packets, follow these steps:

  1. In configuration mode, go to the following hierarchy level:
    [edit]user@host# edit protocol bgp traceoptions
  2. Configure the flag to display sent, received, or both sent and received packet information:
    [edit protocols bgp traceoptions] user@host# set flag update send

    or

    [edit protocols bgp traceoptions]user@host# set flag update receive

    or

    [edit protocols bgp traceoptions]user@host# set flag update
  3. Verify the configuration:
    user@host# show

    For example:

    [edit protocols bgp traceoptions]user@host# show file bgplog size 10k files 10;flag update send;

    or

    [edit protocols bgp traceoptions]user@host# show file bgplog size 10k files 10;flag update receive;

    or

    [edit protocols bgp traceoptions]user@host# show file bgplog size 10k files 10;flag update send receive;
  4. Commit the configuration:
    user@host# commit
  5. View the contents of the file containing the detailed messages:
    user@host# run show log filename

    For example:

    [edit protocols bgp traceoptions]user@host# run show log bgplog Sep 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...]

Published: 2010-01-25

[an error occurred while processing this directive]