Subject: Re: ipv6 tunnel
To: Juan RP <juan@xtraeme.dyndns.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-help
Date: 01/27/2003 21:36:42
On Mon, Jan 27, 2003 at 11:46:38AM +0100, Juan RP wrote:
> 
> Hello, i'm doing a setup to configure my ipv6, this is the out for ifconfig
> interfaces ( freenet6 ): 
> 
> gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1280
>         tunnel inet 80.32.6.91 --> 206.123.31.114
>         inet6 3ffe:b80:3:3905::2 -> 3ffe:b80:3:3905::1 prefixlen 128
>         inet6 fe80::204:76ff:fed4:87f7%gif0 ->  prefixlen 64 scopeid 0x5
> 
> ex0:
> flags=8b63<UP,BROADCAST,NOTRAILERS,RUNNING,PROMISC,ALLMULTI,SIMPLEX,MULTICAST>
> mtu 1500        capabilities=7<IP4CSUM,TCP4CSUM,UDP4CSUM>
>         enabled=0
>         address: 00:04:76:d4:87:f7
>         media: Ethernet 10baseT
>         status: active
>         inet 192.168.0.2 netmask 0xffffff00 broadcast 192.168.0.255
>         inet6 fe80::204:76ff:fed4:87f7%ex0 prefixlen 64 scopeid 0x1
>         inet6 3ffe:b80:1a1f:1::1 prefixlen 64

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

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