How to watch network interface bandwidth usage on FreeBSD

by Benson Wong

Use this command:

systat -ifstat 1

It will show something like this:

Interface           Traffic               Peak                Total

      lo0  in      0.000 KB/s          0.000 KB/s            7.635 KB
           out     0.000 KB/s          0.000 KB/s            7.635 KB

     bge0  in      2.090 MB/s          3.439 MB/s            2.263 GB
           out    36.603 KB/s        173.008 KB/s          343.683 MB

     fxp0  in      2.503 KB/s          2.430 MB/s            1.137 GB
           out    99.174 KB/s        509.109 KB/s            2.078 GB

{ 5 comments… read them below or add one }

1 Milind July 27, 2010 at 3:05 pm

nice stats… :) searched a lot for this

Reply

2 Nate November 23, 2010 at 4:48 pm

This is exactly what I was looking for, thanks!!! One question, what is the total? Is it the total since the server was booted or more precisely since the interface has been up?

Reply

3 Farib December 9, 2010 at 12:23 am

Super cool … thanks man :)

Reply

4 Matthew August 15, 2011 at 6:05 pm

This helped me immensely when building my FreeBSD based NAS.

Thanks

Reply

5 MasterCATZ October 26, 2011 at 12:09 am

Thanks

not the one I was trying to remember but gave me what I needed

I thought what I was after was something like nettop …

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: