Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Packet Analysis with Wireshark

You're reading from   Packet Analysis with Wireshark Leverage the power of Wireshark to troubleshoot your networking issues by using effective packet analysis techniques and performing improved protocol analysis

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785887819
Length 172 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
ANISH NATH ANISH NATH
Author Profile Icon ANISH NATH
ANISH NATH
Arrow right icon
View More author details
Toc

Tcpdump and snoop

In production environments, packet-capturing tools such as Wireshark are usually not installed. In such scenarios, a default-capturing tool can be used such as tcpdump for (Linux systems) and snoop (the Solaris default); later the captured file can be used in Wireshark for analysis:

  • snoop: This tool captures and inspects network packets and runs on Sun Microsystems CLI
  • tcpdump: This tool dumps traffic on a network and runs on Windows, OS X, and Linux

For example, the following table shows how to check packets from interfaces:

Description

Solaris

Linux

How to check packets from all interfaces

bash# snoop

bash#tcpdump –nS

How to capture with hostname

bash# snoop hostname

bash# tcpdump host hostname

How to write the captured information to a file

snoop -o filename

bash# tcpdump -w filename

How to capture packets between host1 and host2 and save them to a file

snoop -o capture_file.pcap host1 host2

tcpdump -w capture_file.pcap src host1...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image