From owner-freebsd-questions@FreeBSD.ORG Sat Aug 16 14:52:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A675837B401 for ; Sat, 16 Aug 2003 14:52:56 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28CB443F75 for ; Sat, 16 Aug 2003 14:52:55 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) h7GLqfC7017167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Aug 2003 22:52:43 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)h7GLqftX017162; Sat, 16 Aug 2003 22:52:41 +0100 (BST) (envelope-from matthew) Date: Sat, 16 Aug 2003 22:52:41 +0100 From: Matthew Seaman To: Charles Howse Message-ID: <20030816215240.GA16878@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Charles Howse , freebsd-questions@freebsd.org References: <003f01c36439$1e758e80$04fea8c0@moe> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zYM0uCDKw75PZbzx" Content-Disposition: inline In-Reply-To: <003f01c36439$1e758e80$04fea8c0@moe> User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-8.3 required=5.0 tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,REPLY_WITH_QUOTES, USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-questions@freebsd.org Subject: Re: Definition of interfaces in ifconfig X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2003 21:52:57 -0000 --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 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 ) > status: active > lp0: flags=3D8810 mtu 1500 > sl0: flags=3Dc010 mtu 552 > faith0: flags=3D8002 mtu 1500 > lo0: flags=3D8049 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 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 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--