robgom
asked on
Ethrnet in Linux
How can I indentify data flow in Ethernet using Linux?
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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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,
For just Ethernet sniffing... I'm not sure.
-- Brian