Subject: Re: ipv6 tunnel
To: Juan RP <juan@xtraeme.dyndns.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 01/29/2003 00:22:46
On Mon, Jan 27, 2003 at 11:32:10PM +0100, Juan RP wrote:
> El Mon, 27 Jan 2003 21:36:42 +0100
> Manuel Bouyer <bouyer@antioche.eu.org> escribió:
> 
> > The v4 address in gif0 and ex0 should be the same.
> > I guess you box is behind a NAT router, so you'll have to configure your
> > tunnel as:
> > tunnel inet 192.168.0.2 206.123.31.114
> > 
> > and then you have to teach your router to forward all packets protocol
> > 41 (IPv6) to 192.168.0.2
> 
> Wow, i have running my host with a ipv6 tunnel now, thank you, but i need a last
> thing ... i want to save my changes for boot ipv6-ready ... i put this on my
> ifconfig.if: 
> 
> ifconfig.if
> ----
> up
> inet 192.168.0.2 netmask 255.255.255.0 media 10baseT
> inet6  2001:618:4:2000::eb0 prefixlen 64 alias
> ---
> 
> Well, where i would put the lines for the default route ( ipv6 ) in rc.conf,
> perhaps? And also would put the configuration of the tunnels on ifconfig.gif0
> right ? 

Yes, in ifconfig.gif0. As it's a cloning device, add 'create' at the first
line.
You can add the default route command in ifconfig.gif0 as well, with
a '!' before it.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 24 ans d'experience feront toujours la difference
--