Skip site navigation (1)Skip section navigation (2)
Date:      6 Aug 2014 23:17:38 -0000
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Cc:        benfell@parts-unknown.org
Subject:   Re: he.net IPv6 tunnel
Message-ID:  <20140806231738.13354.qmail@joyce.lan>
In-Reply-To: <20140804105020.GD94656@home.parts-unknown.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This works for me, routing a /64 from HE through a tunnel onto my LAN.
The IPv6 addresses are all from what HE gave me.  Note that the /64
prefix on the tunnel addresses on gif0 are different from the one for
the addresses on my LAN.

----------------------------------------
# ipv6
V6NETNUM="2001:470:1f07:1126"
ipv6_enable="YES"

# v6 tunnel
gif_interfaces="gif0"
gifconfig_gif0="64.57.183.18 209.51.161.14"
ipv6_ifconfig_gif0="2001:470:1f06:1126::2 2001:470:1f06:1126::1 prefixlen 128"
ipv6_defaultrouter="2001:470:1f06:1126::1"

# route on my LAN
ipv6_gateway_enable="YES"
rtadvd_enable="YES"
rtadvd_interfaces="bce0"		# Interfaces rtadvd sends RA packets.

# all the other addresses
ifconfig_bce0_ipv6="inet6 $V6NETNUM::2 prefixlen 64"
------------------------------------------------------

I also have a bunch of aliases on bce0 for local v6 web sites and such, e.g.:

ifconfig_bce0_aliases="$ifconfig_bce0_aliases inet6 $V6NETNUM:0:0:4945:4343 prefixlen 64" # an alias



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