Date: Mon, 24 Dec 2007 11:24:38 +0200 From: Krassimir Slavchev <krassi@bulinfo.net> To: Richard Arends <richard@unixguru.nl> Cc: FreeBSD <freebsd-stable@freebsd.org> Subject: Re: ifconfig options? Message-ID: <476F7AD6.40802@bulinfo.net> In-Reply-To: <20071224091127.GV36624@shell.unixguru.nl> References: <476F7581.8080100@bulinfo.net> <20071224091127.GV36624@shell.unixguru.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?476F7AD6.40802>