LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-15-2009, 09:38 AM   #1
gbwien
Member
 
Registered: Jul 2008
Posts: 33

Rep: Reputation: 0
tcpdump - catpure trace in both directions


Hi,

I am trying to use tcpdump to capture trace from both directions

local host ----> destination host (request)
destination host ---> local host (response)

I am using redhat bonding and have identified my active interface as eth2. I am using the following command. I am using Redhat AS 4

tcpdump -s -vni eth2 -w /tmp/<outputfile>

I am then using wireshark to look at the trace. However I never see responses from destination host to localhost and I'm not sure if my tcpdump command is correct.

Thanks in Advance
Graham.
 
Old 04-15-2009, 05:50 PM   #2
gmendoza
LQ Newbie
 
Registered: Nov 2007
Distribution: Ubuntu, Debian, Slackware
Posts: 6

Rep: Reputation: 1
Quote:
Originally Posted by gbwien View Post
Hi,

I am using redhat bonding and have identified my active interface as eth2. I am using the following command. I am using Redhat AS 4

I am then using wireshark to look at the trace. However I never see responses from destination host to localhost and I'm not sure if my tcpdump command is correct.

Thanks in Advance
Graham.
Your syntax is fine. You should see traffic in both directions, but depending on your selected bonding type, you may not see all the traffic on the interface you're specifying.

You could use the "-i any" option of tcpdump to capture on all interfaces.

tcpdump -s 0 -vni any -w /tmp/<outputfile>

Also, you could try running two captures, each on different physical interfaces. This might help you see how your bonding is behaving.

tcpdump -s 0 -vni eth0 -w /tmp/<outputfile1>
tcpdump -s 0 -vni eth1 -w /tmp/<outputfile2>
 
  


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
How to trace and disable the HTTP TRACE method in Apache 1.3.33 with FreeBSD? SomnathG Linux - Security 1 11-11-2008 09:41 AM
"killed" Message - how to trace/back trace ebinjose Linux - Kernel 1 01-29-2008 06:12 AM
Directions.. Directions.. rizhun Linux - Certification 4 07-28-2005 04:55 PM
Partition directions Underworld Linux - Software 7 04-06-2004 09:35 PM
Seeking directions jk2silly Linux - Newbie 3 10-20-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:59 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