Tag network
Capturing whole packet with tcpdump for analysis with wireshark
Capturing the hole packet on your NIC for later analysis with wireshark $tcpdump -nnvvXSs 1514 -i em0 -w /tmp/em0.dumptcp Will capture 1514 bytes of all packets on interface “em0” and dump it to the file “/tmp/em0.dumptcp”. You can then import the file into wireshark for analysis. Explanation of Parameters Text below is copied from tcpdump man page -nn Don’t convert protocol and port numbers etc. to names either. -vv Even more verbose output.
FreeBSD watch network interface usage
If you want to know the current network bandwith usage on a FreeBSD host, this will help you. systat -ifstat 1 $systat -ifstat 1 /0 /1 /2 /3 /4 /5 /6 /7 /8 /9 /10 Load Average |||||| Interface Traffic Peak Total lo0 in 0.000 KB/s 0.000 KB/s 308.224 MB out 0.000 KB/s 0.000 KB/s 308.224 MB bce1 in 2.850 MB/s 2.850 MB/s 157.746 GB out 234.496 KB/s 234.496 KB/s 19.