LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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
 
Thread Tools
Old 10-15-2008, 05:13 AM   #1
jagdishpsp
LQ Newbie
 
Registered: Oct 2008
Posts: 12
Thanked: 0
how to use tcpdump command


[Log in to get rid of this advertisement]
Hello all,

Can anybody please tell how to use tcpcommand?

Regards,
Jagdishwar
jagdishpsp is offline     Reply With Quote
Old 10-15-2008, 05:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 33,243
Thanked: 171
well we aren't her4e to recite standard documentation for you, that's what a manpage is for, but it depends what you want to achieve as to how you use it. by default just run tcpdump with no options and it will show you all traffic on your first external network adapter. you can then use other options to modify it's behaviour and add an expression to filter the traffic e.g. "tcpdump -vn -i eth1 host 192.168.23.45 and port 25" will connect to eth1 and show verbose (v) output without name resolution (n) of all traffic involving ip address 192.168.23.45 and port 25.
acid_kewpie is offline     Reply With Quote
Old 10-15-2008, 06:50 AM   #3
mabin
LQ Newbie
 
Registered: Oct 2008
Posts: 15
Thanked: 0
Hello

MAN pages will help you a lot here. If you have any particular requirements let me knoe, I will help you out.
mabin is offline     Reply With Quote
Old 10-15-2008, 07:38 AM   #4
arungoodboy
Member
 
Registered: Feb 2006
Distribution: Slackware, Fedora (XO), struggling mightily with LFS
Posts: 327
Blog Entries: 2
Thanked: 8
This is a decent guide: http://www.alexandersandler.net/tcpdump-for-dummies
arungoodboy is offline     Reply With Quote
Old 10-16-2008, 12:19 AM   #5
jagdishpsp
LQ Newbie
 
Registered: Oct 2008
Posts: 12
Thanked: 0

Original Poster
Thanks!!

Jagdish
jagdishpsp is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
After adding default gw, the tcpdump & route command work strange. meir_katz Linux - Newbie 2 01-01-2008 06:27 AM
TCPDUMP or what ? czezz Linux - Networking 5 02-05-2006 11:39 AM
10.1 and tcpdump pr0nd3xtr Slackware - Installation 0 03-09-2005 04:37 PM
How to use tcpdump command to post a special type? jerrytw Linux - Networking 1 11-08-2004 09:56 AM
tcpdump -w command doesn't write to file andykerouac Linux - Networking 2 03-03-2004 08:10 AM


All times are GMT -5. The time now is 08:52 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration