ifconfig options?

Krassimir Slavchev krassi at bulinfo.net
Mon Dec 24 01:24:44 PST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Arends wrote:
> On Mon, Dec 24, 2007 at 11:01:53AM +0200, Krassimir Slavchev wrote:
> 
>> I need this functionality to get all ethernet interfaces. Is there other
>> way to do this?
> 
> netstat -i -f link 
> 
> Maybe?
> 

No, this lists all interfaces:
Name    Mtu Network       Address              Ipkts Ierrs    Opkts
Oerrs  Coll
fxp0   1500 <Link#1>      00:90:27:7c:b8:68  8088136     0  6987967
0     0
plip0  1500 <Link#2>                               0     0        0
0     0
lo0   16384 <Link#3>                          138029     0   138029
0     0
pfsyn  2020 <Link#4>                               0     0        0
0     0
pflog 33208 <Link#5>                               0     0        0
0     0

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)

iD8DBQFHb3rWxJBWvpalMpkRAtlNAJ4yXhYcLlF7MyHg0XzKTtjWSqpBcgCfRMUp
fOwhWgxe+Uv+y25Rfb1DWD0=
=zopa
-----END PGP SIGNATURE-----


More information about the freebsd-stable mailing list