Subject: Re: netstat -i in /etc/daily
To: None <itojun@iijlab.net>
From: Matt Thomas <matt@3am-software.com>
List: tech-userlevel
Date: 01/17/2000 09:35:05
At 06:18 AM 1/17/00 , itojun@iijlab.net wrote:

> >>      the latter is easy: netstat -ivn -f inet6.  we don't have "all
> >>      families except x" option so the former is harder (we don't want
> >>      to iterate families available to us...)
> >would some 'grep -v inet6' be possible? (I don't have an ipv6 output here
> >right now...)
>
>         there's no clear indication about which line belongs which af.
>
>itojun
>
>
>Name  Mtu   Network       Address              Ipkts Ierrs    Opkts Oerrs Colls
>sm1   1500  <Link>        00:00:86:05:80:fa     2358     0     2581     0    38
>sm1   1500  fe80:1::200:86ff:fe05:80fa/64 fe80:1::200:86ff:fe05:80fa     2358     0     2581     0    38
               ^^^^^^^^
That line should be fe80:1::/64 (it's the network, not the host part).

>sm1   1500  202.232.15.96 202.232.15.108        2358     0     2581     0    38
>sm1   1500  3ffe:507:0:1:200:86ff:fe05:80fa/64 3ffe:507:0:1:200:86ff:fe05:80fa     2358     0     2581     0    38

This should be 3ffe:507:0:1::/64 (ditto).

>lo0   32976 <Link>                                96     0       96     0     0
>lo0   32976 fe80:2::1/64  fe80:2::1               96     0       96     0     0

This should be fe80:2::/64 (though I would excluse loopback interfaces from having
link local addresses since it has the loopback address).

>lo0   32976 ::1/128       ::1                     96     0       96     0     0
>lo0   32976 127           127.0.0.1               96     0       96     0     0
>lo1*  32976 <Link>                                 0     0        0     0     0

Printing out the networks properly for IPv6 would help in cleaning this display up.
-- 
Matt Thomas               Internet:   matt@3am-software.com
3am Software Foundry      WWW URL:    http://www.3am-software.com/bio/matt/
Cupertino, CA             Disclaimer: I avow all knowledge of this message