Subject: Re: netstat -i in /etc/daily
To: None <hubert.feyrer@informatik.fh-regensburg.de>
From: None <itojun@iijlab.net>
List: tech-net
Date: 01/17/2000 10:44:55
>On Mon, 17 Jan 2000 itojun@iijlab.net wrote:
>> Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
>> ne2   1500  <Link>        00:e0:98:00:30:9f     9786     0     2707     0    10
>> ne2   1500  210.160.95.96 210.160.95.98         9786     0     2707     0    10
>> ne2   1500  fe80:1::2e0:98ff:fe00:309f/64 fe80:1::2e0:98ff:fe00:309f     9786     0     2707     0    10
>This is not too readable.

	I have to agree...

	bsdi4 changed the "netstat -i" format to accomodate IPv6 better.
	do you think this is the way to go?

itojun


-- netstat -in from bsdi4
Name Index   MTU Speed Mtrc Address                   Network
ne0*     1  1500    10M   0 00:00:00:00:00:00
de0      2  1500    10M   0 00:40:05:a7:f0:92
de0      2                0 210.160.95.102            210.160.95.96/28
de0      2                0 fe80:2::240:5ff:fea7:f092 fe80:2::/64 
de0      2                0 2001:218:420:0:240:5ff:fea7:f092 2001:218:420::/64 
de0      2                0 3ffe:8020:10ff:1:240:5ff:fea7:f092 3ffe:8020:10ff:1::/64 
de0      2                0 3ffe:507:1:1:240:5ff:fea7:f092 3ffe:507:1:1::/64 
de0      2                0 3ffe:501:410:0:240:5ff:fea7:f092 3ffe:501:410::/64 
ef0*     3  1500    10M   0 00:00:00:00:00:00
cce0*    4  1500    10M   0 00:00:00:00:00:00
mz0*     5  1500    10M   0 00:00:00:00:00:00
cnw0*    6  3000     1M   0 00:00:00:00:00:00
lo0      7  4352          0  
lo0      7                0 fe80:7::1                 fe80:7::/64 
lo0      7                0 ::1                       ::1/128 
lo0      7                0 127.0.0.1                 127
sl0*     8   308          0  
ppp0*    9  1500          0  
ppp1*   10  1500          0  
pif0*   11 66560          0  
gif0*   12  1280          0  
gif1*   13  1280          0  
gif2*   14  1280          0  
gif3*   15  1280          0  

--- netstat -is
Name Index Address                       Ipkts Ierrs     Opkts Oerrs  Coll Drop
ne0*     1 00:00:00:00:00:00                 0     0         0     0     0    0
de0      2 00:40:05:a7:f0:92              7654     0       380     0     3    0
de0      2 papaya                         3663             217            
de0      2 fe80:2::240:5ff:fea7:f092         0               0            
de0      2 2001:218:420:0:240:5ff:fe         0               0            
de0      2 3ffe:8020:10ff:1:240:5ff:         0               0            
de0      2 3ffe:507:1:1:240:5ff:fea7         0               0            
de0      2 papaya.itojun.org                 0               0            
ef0*     3 00:00:00:00:00:00                 0     0         0     0     0    0
cce0*    4 00:00:00:00:00:00                 0     0         0     0     0    0
mz0*     5 00:00:00:00:00:00                 0     0         0     0     0    0
cnw0*    6 00:00:00:00:00:00                 0     0         0     0     0    0
lo0      7                                  30     0        30     0     0    0
lo0      7 fe80:7::1                         0               0            
lo0      7 localhost                         0               0            
lo0      7 localhost                         4               2            
sl0*     8                                   0     0         0     0     0    0
ppp0*    9                                   0     0         0     0     0    0
ppp1*   10                                   0     0         0     0     0    0
pif0*   11                                   0     0         0     0     0    0
gif0*   12                                   0     0         0     0     0    0
gif1*   13                                   0     0         0     0     0    0
gif2*   14                                   0     0         0     0     0    0
gif3*   15                                   0     0         0     0     0    0

--- netstat -ig
Name Index Address                   Group                   State Timer Refs
ef0*     3 00:00:00:00:00:00         33:33:ff:a7:f0:92
ef0*     3 00:00:00:00:00:00         33:33:00:00:00:01
ef0*     3 00:00:00:00:00:00         01:00:5e:00:00:01