From owner-freebsd-questions Mon Aug 5 1:20:58 2002 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 84CFE37B400 for ; Mon, 5 Aug 2002 01:20:55 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E8F243E84 for ; Mon, 5 Aug 2002 01:20:54 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g757lVxg015901; Mon, 5 Aug 2002 08:47:31 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g757lOKX015900; Mon, 5 Aug 2002 08:47:24 +0100 (BST) Date: Mon, 5 Aug 2002 08:47:24 +0100 From: Matthew Seaman To: Chad Hanamaikai Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipv6_ipv4mapping Message-ID: <20020805074724.GA15513@happy-idiot-talk.infracaninophi> References: <003301c23c1c$c38465e0$0301a8c0@chad.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <003301c23c1c$c38465e0$0301a8c0@chad.ath.cx> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Aug 04, 2002 at 06:09:34PM -0700, Chad Hanamaikai wrote: > how do i get stuff like fe80::220:afff:fe76:2ca5%tun0 out of my tun0 > interface so a script that runs on ppp linkup can grab the correct item from > ifconfig. i tryed ipv6_ipv4mapping="" and ipv6_ipv4mapping="NO" in rc.conf > and neither are working for me The "blunt force" method of doing that would be to compile a kernel without IPv6 support. Follow the instructions at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html and in your kernel config file, comment out the line that says: options INET6 #IPv6 communications protocols If that sounds a little excessive, a more directed approach might be more suitable. You don't say exactly what information you are trying to pull out of the ifconfig output, but most of the configurable items are supplied to the ppp.link{up,down} scripts by substituting certain keywords. Look man ppp(8), particularly the section on '[!]bg command'. As an example, try this in a ppp.linkup script which will write the IP number of the interface into a temporary file: papchap: !bg echo MYADDR > /tmp/myipaddress Or you can grep out the 'inet' line from ifconfig's output without the 'inet6' line by matching word bounduaries. Compare: happy-idiot-talk:~:% ifconfig de0 | grep 'inet' inet 81.2.69.218 netmask 0xfffffff8 broadcast 81.2.69.223 inet6 fe80::240:5ff:fea5:8db7%de0 prefixlen 64 scopeid 0x1 happy-idiot-talk:~:% ifconfig de0 | grep '\' inet 81.2.69.218 netmask 0xfffffff8 broadcast 81.2.69.223 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message