Date: Sat, 16 Aug 2003 22:52:41 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Charles Howse <chowse@charter.net> Cc: freebsd-questions@freebsd.org Subject: Re: Definition of interfaces in ifconfig Message-ID: <20030816215240.GA16878@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <003f01c36439$1e758e80$04fea8c0@moe> References: <003f01c36439$1e758e80$04fea8c0@moe>
next in thread | previous in thread | raw e-mail | index | archive | help
--zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 16, 2003 at 03:58:17PM -0500, Charles Howse wrote: > Hi, >=20 > When I do: > # ifconfig >=20 > I see the following interfaces listed: >=20 > tx0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 > inet 192.168.254.3 netmask 0xffffff00 broadcast 192.168.254.255 > inet6 fe80::2e0:29ff:fe11:ff8a%tx0 prefixlen 64 scopeid 0x1=20 > ether 00:e0:29:11:ff:8a > media: Ethernet autoselect (100baseTX <full-duplex>) > status: active > lp0: flags=3D8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500 > sl0: flags=3Dc010<POINTOPOINT,LINK2,MULTICAST> mtu 552 > faith0: flags=3D8002<BROADCAST,MULTICAST> mtu 1500 > lo0: flags=3D8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 > inet6 ::1 prefixlen 128=20 > inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5=20 > inet 127.0.0.1 netmask 0xff000000=20 > ppp0: flags=3D8010<POINTOPOINT,MULTICAST> mtu 1500 >=20 > I entered sysinstall/configure/network/network devices and found out > what they all are. > The faith0 device was listed as unknown. >=20 > I know tx0 is my one and only nic, we can keep it. > lp0 is the parallel port, don't need it, don't plan to do any printing > from this machine. > lo0 is the loopback interface, that's cool. > I know I don't need a PPP or SLIP interface, I have a LAN connection to > the Internet, no modem. >=20 > I was able to do: > # ifconfig faith0 destroy > And eliminate the faith0 <unknown> device. >=20 > When I try that with sl0 and ppp0 I get an error: ifconfig: > SIOCIFDESTROY: Invalid Argument. >=20 > I realize that tx0 and lo0 are the only ones that are UP...are the > others occupying space in memory? > Can I get rid of some of these guys? How? You can get rid of the superfluous interfaces by building yourself a custom kernel with the drivers for those devices commented out. Be sure and check the man pages (eg sl(4), ppp(4), faith(4)) and in LINT (4.x) or NOTES (5.x) to verify you aren't chopping out something useful. Nb. the ppp0 interface can only be generated by the kernel pppd(8). The userland ppp(8) which is completely independent of the kernel mode ppp uses tun0... interfaces that are dynamically generated as required -- this daemon is what most people use for dial-up purposes. See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.= html Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/PqeodtESqEQa7a0RAkkkAKCSMVnEYTWm94bxxdA8/FCivJf8FwCdFlQG sb1Y3SqjX4Gq7YxmRlpQmcY= =4Bfv -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030816215240.GA16878>