Mailinglist Archive: opensuse (5130 mails)

< Previous Next >
Re: [SLE] connection test for network card
  • From: "C. Brouerius van Nidek" <cbroueriusvannidek@xxxxxxxxx>
  • Date: Sat, 20 May 2006 16:49:55 +0700
  • Message-id: <200605201649.55724.cbroueriusvannidek@xxxxxxxxx>
On Saturday 20 May 2006 09:08, kai wrote:
> On Friday 19 May 2006 06:16 pm, James D. Parra wrote:
> > Hello,
> >
> > Is there a way from a CLI to tell if the computer is connected to the
> > network at a 100tx or 1000?
>
> Use the tcpdump utility. It isn't just for teh l33t h4xx0rs. :)
>
> Run as root: tcpdump -c xx -i eth(n)
>
> xx is the number of packets you want to capture - this can be really small.
>
> (n) is the ethernet port you're running. Here's an example from my machine
> showing I'm running 10MB/S
>
>
>
> yoda:/home/kai # tcpdump -c 10 -i eth1
> tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
> listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
>
>
> --
Dear kai,
Found this an interesting command line and tried it at once out on my system.
I do not get one line but following lines which make me wonder what they tell
me. Could you shine some light in this flux of information?

# tcpdump -c 10 -i eth0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
16:44:31.907646 IP 10.0.0.11.8065 > pop-qmail.indo.net.id.imap: P
1575050632:1575050663(31) ack 3606448495 win 3712 <nop,nop,timestamp 62522277
321703998>
16:44:31.910074 IP 10.0.0.11.caicci > 10.0.0.2.domain: 14976+ PTR?
71.32.159.202.in-addr.arpa. (44)
16:44:31.989031 IP 10.0.0.2.domain > 10.0.0.11.caicci: 14976 1/6/8 (385)
16:44:31.994199 IP 10.0.0.11.caicci > 10.0.0.2.domain: 5735+ PTR?
11.0.0.10.in-addr.arpa. (40)
16:44:32.105105 IP 10.0.0.2.domain > 10.0.0.11.caicci: 5735 NXDomain 0/1/0
(117)
16:44:32.108504 IP 10.0.0.11.caicci > 10.0.0.2.domain: 19170+ PTR?
2.0.0.10.in-addr.arpa. (39)
16:44:32.173957 IP 10.0.0.2.domain > 10.0.0.11.caicci: 19170 NXDomain 0/1/0
(116)
16:44:36.907517 arp who-has 10.0.0.2 tell 10.0.0.11
16:44:36.908352 arp reply 10.0.0.2 is-at 00:30:0a:27:00:fa
16:45:01.770463 IP 217-162-172-235.dclient.hispeed.ch.mini-sql >
10.0.0.11.5287: P 1703037157:1703037329(172) ack 502365020 win 64356
<nop,nop,timestamp 4560316 62515126>
10 packets captured
11 packets received by filter
0 packets dropped by kernel

< Previous Next >
Follow Ups
References