From owner-freebsd-current Fri Feb 18 16:12:52 2000 Delivered-To: freebsd-current@freebsd.org Received: from nimitz.ca.sandia.gov (nimitz.ca.sandia.gov [146.246.243.56]) by hub.freebsd.org (Postfix) with ESMTP id 9684537BAF2 for ; Fri, 18 Feb 2000 16:12:44 -0800 (PST) (envelope-from bmah@nimitz.ca.sandia.gov) Received: (from bmah@localhost) by nimitz.ca.sandia.gov (8.9.3/8.9.3) id QAA11354; Fri, 18 Feb 2000 16:12:19 -0800 (PST) Message-Id: <200002190012.QAA11354@nimitz.ca.sandia.gov> X-Mailer: exmh version 2.1.1-cvs 10/15/1999 To: Yoshinobu Inoue Cc: bmah@california.sandia.gov, bauer@cc.univie.ac.at, current@FreeBSD.ORG Subject: Re: IPv6 In-Reply-To: <20000218215940K.shin@nd.net.fujitsu.co.jp> References: <20000215041550J.shin@nd.net.fujitsu.co.jp> <200002142150.NAA15862@nimitz.ca.sandia.gov> <20000216034713O.shin@nd.net.fujitsu.co.jp> <20000218215940K.shin@nd.net.fujitsu.co.jp> Comments: In-reply-to Yoshinobu Inoue message dated "Fri, 18 Feb 2000 21:59:40 +0900." From: bmah@CA.Sandia.GOV (Bruce A. Mah) Reply-To: bmah@CA.Sandia.GOV X-Face: g~c`.{#4q0"(V*b#g[i~rXgm*w;:nMfz%_RZLma)UgGN&=j`5vXoU^@n5v4:OO)c["!w)nD/!!~e4Sj7LiT'6*wZ83454H""lb{CC%T37O!!'S$S&D}sem7I[A 2V%N&+ X-Url: http://www.ca.sandia.gov/~bmah/ Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==_Exmh_1638373650P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit Date: Fri, 18 Feb 2000 16:12:19 -0800 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --==_Exmh_1638373650P Content-Type: text/plain; charset=us-ascii If memory serves me right, Yoshinobu Inoue wrote: > I still made more several fixes to IPv6 configuration scripts. > > -changed the file rc.net6 to rc.network6 > -changed the func net6_pass1 to network6_pass1 > -changed several var name more unlikely to confilict > -changed if several sentenses in rc.network6 to case sentence > like in rc.network > -wrapped many var names by {} > -and other fixes I ran across a few problems after I remade world. The new scoped address syntax breaks /etc/rc.network6. In particular, some lines that look like: > + # disallow unicast packets without outgoing scope identifiers. > + # if you instead want to route such packets to a "default" interface, > + # comment out the 1st two lines, and enable the lines after them. > + case ${ipv6_default_interface} in > + '') > + route add -inet6 fe80:: -prefixlen 10 ::1 -reject > + ;; > + *) > + laddr=`ifconfig ${ipv6_default_interface} inet6 \ > + | grep 'inet6 fe80:' | head -1 | awk '{print $2}'` > + route add -inet6 fe80:: ${laddr} -prefixlen 10 -interface \ > + -cloning > + route add -inet6 ff02:: ${laddr} -prefixlen 16 -interface \ > + -cloning > + ;; > + esac The definition of $laddr is not compatible with the scoped addressing syntax. Instead, it needs something like: laddr=`ifconfig ${ipv6_default_interface} inet6 \ | grep "inet6 ${ipv6_default_interface}%fe80:" \ | head -1 | awk '{print $2}' | sed -e 's/.*%//'` There's another, similar snippit of code in the router-specific part of the script. Another problem occurred when I modified /etc/rc.network6 as above: route: writing to routing socket: Network is unreachable add net fe80::: gateway fe80::1: Network is unreachable route: writing to routing socket: Network is unreachable add net ff02::: gateway fe80::1: Network is unreachable add net ::ffff:0.0.0.0 gateway ::1 add net ::0.0.0.0 gateway ::1 net.inet.ip6.forwarding: 0 -> 0 net.inet.ip6.accept_rtadv: 0 -> 1 These actions all happened between the start and the end of DAD for my (one) Ethernet interface (I have a single-homed host). Finally, could you say whether or not lo0 should really be the default value for ipv6_default_interface in /etc/defaults/rc.conf? I have this vague feeling it's wrong but I don't know enough to say why: > +ipv6_default_interface="lo0" # Default output interface for scoped addrs. Thanks! Bruce. --==_Exmh_1638373650P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use MessageID: jIRKDXZehribnjnLkm/rMUCU4egd4mc4 iQA/AwUBOK3f49jKMXFboFLDEQJP3QCeI3CSu3eXfUN1GHPg0qncXMZnX5UAn2Ed 6MSW+r4FuQe4gliKgCmKMqXW =MKPN -----END PGP SIGNATURE----- --==_Exmh_1638373650P-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message