Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Feb 2000 16:12:19 -0800
From:      bmah@CA.Sandia.GOV (Bruce A. Mah)
To:        Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
Cc:        bmah@california.sandia.gov, bauer@cc.univie.ac.at, current@FreeBSD.ORG
Subject:   Re: IPv6 
Message-ID:  <200002190012.QAA11354@nimitz.ca.sandia.gov>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--==_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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200002190012.QAA11354>