Routing

last person joined: 3 days ago 

Ask questions and share experiences about ACX Series, CTP Series, MX Series, PTX Series, SSR Series, JRR Series, and all things routing, including portfolios and protocols.
  • 1.  PING -----| save ragav.pcap not working

    Posted 07-17-2013 03:15

    lab@---# run ping 10.141.227.100 | save ragav.pcap
    PING -.-.-.p- (-.-.-.-😞 56 data bytes
    64 bytes from -.-.-.-: icmp_seq=0 ttl=255 time=1.553 ms
    64 bytes from -.-.-.-: icmp_seq=1 ttl=255 time=2.242 ms
    64 bytes from -.-.-.-: icmp_seq=2 ttl=255 time=2.303 ms
    64 bytes from -.-.-.-: icmp_seq=3 ttl=255 time=5.166 ms
    64 bytes from -.-.-.- icmp_seq=4 ttl=255 time=1.420 ms
    64 bytes from -.-.-.-: icmp_seq=5 ttl=255 time=1.112 ms
    ^C
    --- -.-.-.- ping statistics ---
    6 packets transmitted, 6 packets received, 0% packet loss
    round-trip min/avg/max/stddev = 1.112/2.299/5.166/1.352 ms
    Wrote 0 lines of output to 'ragav.pcap'

     

    * Intentionally made the IP to -.-.-.-

     

    I cant able to save this file. Please help me.



  • 2.  RE: PING -----| save ragav.pcap not working
    Best Answer

    Posted 07-27-2013 23:12

    From my limited understanding, pcap is a packet capture file. running the ping test is not capturing the packets, it is only testing L3 connectivity. You would need to to capture the packets using tcpdump or mirror the packets to an interface/vlan that has a packet capture device connected.

    >monitor traffic write-file pk.pcap interface ge-0/0/x
    >monitor traffic read-file pk.pcap

     

    these commands are hidden for a purpose so that users who do not understand the impact don't just accidentally leave them to fill up the disk space on th eJuniper device; so the commands have to be completely typed out.

    The you run the ping test, from another connection to the box or if pinging from a remote device.

     

    Or you could drop to the shell and run the tcpdump directly. How you proceed with this one is beyond the scope of what help I can offer. I would leave that to those who are knowledgeable about unix shell and know what they are doing and I would not happen to fall into that category of users.