Link to home
Start Free TrialLog in
Avatar of robgom
robgom

asked on

Ethrnet in Linux

How can I indentify data flow in Ethernet using Linux?
Avatar of bcwhite
bcwhite

Ethernet or IP?  For IP, there is "iptraf", "sniffit", "tcpdump", and (I believe) "scotty".  Some of these will recognize other network layers, too.

For just Ethernet sniffing...  I'm not sure.

-- Brian


If you just need to know the quantity of traffic, the
ifconfig command (/sbin/ifconfig on RedHat and probably most distributions) lists the number of packets received, transmited and the number of errors on each interface.  

You can put it in a loop by entering:

$while $1
>do
>/sbin/ifconfig
>sleep 1
>echo " "
>done
 
(The echo line is to pad space, so the numbers end up in the same spot on the screen.  Delete or add more depending on your screen size. Or if your running it on an xterm window, adjust the size of the window.) Do this in ne xterm, and do your 'stuff' in another and monitor the number of packets . . .

Hope this helps.
ASKER CERTIFIED SOLUTION
Avatar of PRamsey
PRamsey

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of robgom

ASKER

If you cant tell me  more about these send an email to robgom@yahoo.com. I want to know about the overhead over the differents layers in the network,