Date: Mon, 5 Aug 2002 08:47:24 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: Chad Hanamaikai <C8ha6d@pacbell.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ipv6_ipv4mapping Message-ID: <20020805074724.GA15513@happy-idiot-talk.infracaninophi> In-Reply-To: <003301c23c1c$c38465e0$0301a8c0@chad.ath.cx> References: <003301c23c1c$c38465e0$0301a8c0@chad.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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\>' 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020805074724.GA15513>