netstat -ib Obytes empty for alias on main interface

Nicolas de Bari Embriz Garcia Rojas nbari at inbox.im
Thu Mar 21 16:07:17 UTC 2013


Here is the output with a better formatting:

http://pastebin.com/arrRsM78

What I would like to understand is why lo1 shows Obytes (incrementing)
while bce0 IP's don't

lo1 is a using NAT

also the sum of lo1 (not including the <Ling# main link) do not mach.

can some one please help me to better understand the output of netstat -ib .


regards.


On 03/21/2013 13:02, Nicolas de Bari Embriz Garcia Rojas wrote:
> Hi all, I want to know the total of bytes in and out of each IP address
> assigned as an alias to an bce0 interlace.
>
> if I run netstat -ib  I get something like this:
>> netstat -ib
> Name    Mtu Network       Address              Ipkts Ierrs Idrop    
> Ibytes    Opkts Oerrs     Obytes  Coll
> bce0   1500 <Link#1>      78:2b:cb:71:aa:7f  1733163     0     0       
> 199210984  1562794     0  339429658     0
> bce0   1500 174.142.192.0 hostserver            225655     -    
> -             33210469  1588858     -   317543703     -
> bce0   1500 fe80::7a2b:cb fe80::7a2b:cbff:f               0     -    
> -                             0                0     -              
>      0     -
> bce0   1500 174.142.193.5 jail1                            9930    
> -     -                  533577                0     -                
>    0     -
> bce0   1500 174.142.193.5 jail2                        130567     -    
> -            269049579                0    -                    0     -
> bce0   1500 174.142.193.5 jail3                              264    
> -     -                     14072                0     -         
>          0     -
> bce0   1500 174.142.193.5 jail4                       978747     -    
> -               94504639                0    -                    0     -
> bce0   1500 174.142.193.5 jail5                       329095     -    
> -             117322843                0    -                    0     -
> bce0   1500 174.142.193.5 jail6                              260    
> -     -                      13998                0    -    
>                0     -
> bce0   1500 72.55.175.68/ jail7                        141953     -    
> -               45070407                0    -                    0     -
> ...
> ...
> lo1   16384 <Link#11>                                      424903     
> 0     0           30341272     424880     0   30338825     0
> lo1   16384 172.16.13.0   172.16.13.1               30415     -     -  
>             2173077       30361     -      2172801     -
> lo1   16384 172.16.13.2/3 172.16.13.2           104842     -     -   
>            8848322       40993     -       3957589     -
> lo1   16384 172.16.13.3/3 172.16.13.3               8696     -    
> -                 351244          8668     -         349132     -
> lo1   16384 172.16.13.30/ 172.16.13.30        344856     -    
> -              23862253     344856     -   23862253     -
>
>
> I only have Input bytes per IP but not Obytes for the alias on bce0 but
> I do have the Ibytes and Obytes for the lo1 cloned interface, also any
> idea of how to avoid truncating the output, the network IP's display
> part of the IP not the full address, my idea is to use this output to
> create some stats.
>
> Any ideas ?
>
> thanks in advance.
>
> regards.
>
>
>
>



More information about the freebsd-net mailing list