LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2010, 04:41 PM   #1
sagarkha
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Rep: Reputation: 0
How to capture packets from multiple host through tcpdump


What is the syntax to capture packets from multiple host through tcpdump

tcpdump ip host host1|host2|host3|host3.

The above command is not working for me.
 
Old 04-27-2010, 05:01 PM   #2
gavbam
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
It depends on where you want to capture the packets too? are you running a pearl script to run it as a process so everything coming off the wire gets captured? you need a file location to get the packets to collect and then you need a script to organise them in a way so you get the date stamp on each packet.
 
Old 04-28-2010, 05:01 PM   #3
sagarkha
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Original Poster
Rep: Reputation: 0
No i am just running it as a command on Redhat box, there is an option to redirect the output to a file by -w, but i want to see the output on console itself.
 
Old 04-29-2010, 04:04 AM   #4
gavbam
LQ Newbie
 
Registered: Apr 2010
Posts: 4

Rep: Reputation: 0
try the command:

tcpdump -i fp1 not sure if it will give you what you need but its worth a try. unfortunanltey I am stuck in Windows today so I can try it out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to capture the network packets including 'push' flag with Tcpdump program. windbadboy Linux - Networking 12 07-02-2009 07:09 AM
capture 100 packets tcpdump Fond_of_Opensource Linux - Networking 3 06-14-2007 02:52 AM
tcpdump does not capture all packets logicalfuzz Linux - Networking 1 03-19-2007 12:47 PM
How to modify tcpdump packets? chinmays Linux - Security 3 09-24-2006 01:31 PM
Using Tcpdump and Tethereal to capture packets shanu_technical Linux - Networking 3 06-14-2006 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration