LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 01-21-2003, 10:06 PM   #1
ezra_kim
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Rep: Reputation: 0
re: some tcpdump/netstat/ethereal questions


i know someone should be a wiz at this kind of stuff, and should only take like 3 minutes. i have to answer these questions for my lab. any help would be great!

1. Write the syntax for an ifconfig command that sets the IP address of the interface
eth0 to 128.143.2.3/16 with broadcast address 128.143.255.255.

2. Write the syntax of a tcpdump command that captures packets containing IP
datagrams with source or destination IP address equal to 10.0.1.12.

3. Write the syntax of a tcpdump command that captures packets containing ICMP
messages with source or destination IP address equal to 10.0.1.12.

4. Write the syntax of a tcpdump command that captures packets containing IP
datagrams between two hosts with IP addresses 10.0.1.11 and 10.0.1.12, both on
interface eth1.

5. Write a tcpdump filter expression that captures packets containing TCP segments
with source or destination IP address equal to 10.0.1.12.

6. Write a tcpdump filter expression that, in addition to the constraints in Question 5,
only captures packets using port number 23.

7. Write the syntax for an ethereal command with capture filter so that all IP
datagrams with source or destination IP address equal to 10.0.1.12 are recorded.

8. Write the syntax for an ethereal display filter that shows IP datagrams with
destination IP address equal to 10.0.1.50 and frame sizes greater than 400 bytes.

9. Write the syntax for an ethereal display filter that shows packets containing ICMP
messages with source or destination IP address equal to 10.0.1.12 and frame
numbers between 15 and 30.

10. Write the syntax for an ethereal display filter that shows packets containing TCP
segments with source or destination IP address equal to 10.0.1.12 and using port
number 23.

11. Write an ethereal capture filter expression for Question 10.
 
Old 01-21-2003, 11:04 PM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Sounds like school homework, do we get the good grades sent to us if we answer right, or do those go to you?

Do your homework instead, try man ifconfig, etc or look up howtos over at http://tldp.org
 
Old 01-21-2003, 11:08 PM   #3
ezra_kim
LQ Newbie
 
Registered: Jan 2003
Posts: 2

Original Poster
Rep: Reputation: 0
sure is homework, i figured someone out there wouldn't mind.
 
Old 01-22-2003, 12:56 AM   #4
fo-krite
LQ Newbie
 
Registered: Jan 2003
Location: Scotland
Distribution: redhat 8, suse 8.0, slackware 8.1
Posts: 4

Rep: Reputation: 0
Lightbulb /sbin/ifconfig

check out this command in *nix


/sbin/ifconfig

eth0 Link encap:Ethernet HWaddr 00:40:95:30:43:FC
inet addr:192.168.0..1 Bcast:255.255.255.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:2
RX packets:46216 errors:0 dropped:0 overruns:0 frame:0
TX packets:9436 errors:0 dropped:0 overruns:0 carrier:0
collisions:344 txqueuelen:100
RX bytes:8634289 (8.8 Mb) TX bytes:1618131 (1.5 Mb)
Interrupt:18 Base address:0x8000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3788 errors:0 dropped:0 overruns:0 frame:0
TX packets:3788 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:151721 (148.1 Kb) TX bytes:151721 (148.1 Kb)

hope this is of some help
 
Old 01-22-2003, 02:04 AM   #5
Grim Reaper
Member
 
Registered: Apr 2002
Distribution: Gentoo 2006.0 AMD64
Posts: 399

Rep: Reputation: 30
what course is that?
 
Old 01-22-2003, 06:38 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,361
Blog Entries: 55

Rep: Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547Reputation: 3547
Quote:
Originally posted by ezra_kim
sure is homework, i figured someone out there wouldn't mind.
I'm stepping in. If you where smart you would've spread your questions around and rephrased them so it wouldn't look like homework. But no, you didn't care and just try to leech from others w/o doing things yourself your sposed to do yourself (that's what the fsckin homework is about).

I object to that and since you've shown this kind of attitude as well I'm gonna close this thread.

You do your homework yourself!

*If you got a problem with this, take it up with me, OK.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ethereal/TCPdump/Kismet, wireless sniffing scott4957 Linux - Software 1 10-18-2005 12:22 AM
Wireless sniffing with Ethereal/tcpdump/kismet scott4957 Linux - Wireless Networking 2 10-07-2005 02:13 PM
tcpdump / ethereal question jeffk42 Linux - Networking 2 09-22-2005 07:30 AM
viewing tcpdump files in ethereal abirami Linux - Networking 2 09-28-2004 10:03 AM
tcpdump / ethereal on dialup disconnect TheVillageIdiot Linux - Software 1 09-20-2003 09:01 AM

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

All times are GMT -5. The time now is 03:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration