• Welcome to Hurricane Electric's IPv6 Tunnel Broker Forums.

Configuring a tunnel under *BSD - persistent state

Started by astralbluenet, February 13, 2008, 03:37:09 PM

Previous topic - Next topic

astralbluenet

For FreeBSD 6.x/7.x, here are the relevant rc.conf variables; gifX is the gif interface to use for the tunnel, e.g. gif0, and $ipv4a, $ipv4b, $ipv6b have the same meaning as in broquea's post:

gifconfig_gifX="$ipv4b $ipv4a"
ipv6_ifconfig_gifX="$ipv6b/64"
ipv6_defaultrouter="-interface gifX"


Also, make sure that the variables $gif_interfaces and $ipv6_network_interfaces contain gifX (see below).

Example:
- gif1 is the tunnel interface to use (you can pick any unused number instead of 1 though).
- Our IPv4 address is 23.145.17.4.
- The tunnel broker is at 72.52.104.74.
- We have been allocated 2001:470:1f04:143::2 as the IPv6 endpoint address.

gif_interfaces="gif1"
gifconfig_gif1="23.145.17.4 72.52.104.74"
ipv6_network_interfaces="lo0 gif1"
ipv6_ifconfig_gif1="2001:470:1f04:143::2/64"
ipv6_defaultrouter="-interface gif1"