Subject: How to use properly ipv6 autoconf over a router interface?
To: None <tech-net@NetBSD.org>
From: Konstantin KABASSANOV <Konstantin.Kabassanov@lip6.fr>
List: tech-net
Date: 04/30/2006 20:10:25
This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C66C92.1E59E270
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

To enable ipv6 auto-configuration I put the following into /etc/rc.conf:

ip6mode=autohost

After that in /etc/rc.local I set:

sysctl -w net.inet6.ip6.forwarding=1

This way, my router obtains a valid ipv6 address on one of its network
interfaces and is able to forward ipv6 traffic between the interfaces.

But occasionally (probably due to some network losses), it deletes its
default route (previously obtained by auto-conf). If I try to start a new
router solicitation, I get the following error. 

# rtsol ath1
rtsol: kernel is configured as a router, not a host

So my question is if auto-configuration is incompatible with ip6.forwarding
or if there is a better way to set up this...
 
_________________________________
 
Konstantin K. KABASSANOV
 
LIP6/CNRS
8, rue du Capitaine Scott
75015 Paris, France
 
Phone: +33 (0) 1 44 27 71 26
Fax:   +33 (0) 1 44 27 74 95
 
E-mail: konstantin@kabassanov.com
Web: http://www.kabassanov.com
_________________________________
 
IMPORTANT! If you have tried to reply to this mail and you received a
stupid message, announcing that the mail had been rejected as spam,
please, resend your reply to the address above. 
 
The certificate used to sign this e-mail can be verified at:
http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
 
Mediocrity is the worst kind of failure... 
 


------=_NextPart_000_0026_01C66C92.1E59E270
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILoDCCA2Qw
ggJMoAMCAQICAQAwDQYJKoZIhvcNAQEEBQAwKzELMAkGA1UEBhMCRlIxDTALBgNVBAoTBENOUlMx
DTALBgNVBAMTBENOUlMwHhcNMDEwNDI3MDU0NDM2WhcNMjEwNDIyMDU0N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