[Contents] [Prev] [Next] [Index] [Report an Error]


Step 2: 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:
  2. [edit]
    
    user@host# edit protocol bgp traceoptions
    
    
    
  3. Configure the flag to display sent, received, or both sent and received packet information:
  4. [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

  1. Verify the configuration:
  2. 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;

  1. Commit the configuration:
  2. user@host# commit
    
    
    
  3. View the contents of the file containing the detailed messages:
  4. 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" 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...]

[Contents] [Prev] [Next] [Index] [Report an Error]