LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   re: some tcpdump/netstat/ethereal questions (https://www.linuxquestions.org/questions/linux-networking-3/re-some-tcpdump-netstat-ethereal-questions-42356/)

ezra_kim 01-21-2003 09:06 PM

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.

Darin 01-21-2003 10:04 PM

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

ezra_kim 01-21-2003 10:08 PM

sure is homework, i figured someone out there wouldn't mind.

fo-krite 01-21-2003 11:56 PM

/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

Grim Reaper 01-22-2003 01:04 AM

what course is that?

unSpawn 01-22-2003 05:38 AM

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.


All times are GMT -5. The time now is 05:47 AM.