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