Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Newbie
Reload this Page tcpdump
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Newbie If you're new to the wonderful world of Linux, start here!

Reply
 
Thread Tools Display Modes
Old 05-25-2007   #1 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 2
tcpdump

i have been trying to use tcpdump but when i type a command this is all i get:

root@deptsbox:/home/depts2416# tcpdump
tcpdump: WARNING: eth0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

how do you change what you are listenng to like instead of eth0 it would be ppp0?
depts2416 is offline   Reply With Quote
Old 05-25-2007   #2 (permalink)
Linux User
 
cheesecake42's Avatar
 
Join Date: Jan 2007
Location: Panama City
Posts: 307
Send a message via AIM to cheesecake42
post the output from
Code:
ifconfig
cheesecake42 is offline   Reply With Quote
Old 05-25-2007   #3 (permalink)
Just Joined!
 
Join Date: May 2007
Posts: 2
here you go....
Code:
eth0      Link encap:Ethernet  HWaddr 00:02:A5:F8:F2:DB
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

lo        Link encap:Local Loopback
          inet addr:*.*.*.*  Mask:*.*.*.*
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:69 errors:0 dropped:0 overruns:0 frame:0
          TX packets:69 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:5312 (5.1 KiB)  TX bytes:5312 (5.1 KiB)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:*.*.*.*  P-t-P:*.*.*.*  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:553 errors:0 dropped:0 overruns:0 frame:0
          TX packets:637 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:312243 (304.9 KiB)  TX bytes:100358 (98.0 KiB)
depts2416 is offline   Reply With Quote
Old 05-28-2007   #4 (permalink)
Linux Enthusiast
 
rcgreen's Avatar
 
Join Date: May 2006
Location: the hills
Posts: 551
Send a message via Yahoo to rcgreen
tcpdump -D will list your interfaces. I think it numbers them,
so try tcpdump 3 for ppp0, which is the third in the list.
rcgreen is offline   Reply With Quote
Old 05-28-2007   #5 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,699
If you're going to supply the interface number (from tcpdump -D listing), you'll need to give it with the -i option.
e.g. # tcpdump -i 3 (if 3 is the correct interface number)

You can also use the interface name that the -D option reports.
anomie is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing tcpdump source code restc Linux Programming & Scripting 1 03-11-2007 05:16 PM
tcpdump of vlan tag value BostonDriver Linux Networking 0 08-22-2006 02:26 PM
how to filter output displayed by tcpdump gagan_goku Linux Programming & Scripting 4 07-13-2005 05:32 AM
tcpdump run by normal user??? apoorv_khurasia Redhat / Fedora Linux Help 3 03-02-2005 03:19 PM
tcpdump and ethereal ASSFAULT_RACIN Linux Applications 5 10-28-2003 12:44 PM

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 08:22 PM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0