How to build up IPv6 tunnel for FreeBSD
Environment:
* FreeBSD Box’s IPv4 address: 59.124.1.1
* Endpoint IPv4 address: 210.1.1.100
* Endpoint IPv6 address: 2001:b50c:004:20::1/64
* FreeBSD box’s IPv6 address: 2001:b50c:004:20::2/64
* The routed subnet: 2001:350:aaa5:acd::/64
It's a easy way to enable IPV6 environment as below:
#vi /etc/rc.conf
hostname="ipv6.domain.com"
defaultrouter="59.124.1.254"
ifconfig_fxp0="inet 59.124.1.1 netmask 255.255.255.0"
ipv6_firewall_enable="YES"
ipv6_firewall_type="OPEN"
ipv6_firewall_script="/etc/rc.firewall"
ipv6_enable="YES"
network_interfaces="lo0 gif0 fxp0 fxp1"
ipv6_network_interfaces="lo0 gif0 fxp0 fxp1"
gif_interfaces="gif0"
gifconfig_gif0="59.124.1.1 210.1.1.100"
ipv6_ifconfig_gif0="2001:b50c:004:20::2 2001:b50c:004:20::1 prefixlen 128"
ipv6_defaultrouter="2001:b50c:004:20::1"
ipv6_gateway_enable="YES"
ipv6_ifconfig_fxp1="2001:b50c:004:20::254 prefixlen 64"
ipv6_router_enable="YES"
ipv6_router="/usr/sbin/route6d"
ipv6_router_flags="-l"
ipv6_static_routes="default"
ipv6_route_default="default -interface gif0"
rtadvd_enable="YES"
rtadvd_interfaces="fxp1"
dummynet_enable="YES"
keymap="us.iso"
moused_enable="YES"
sshd_enable="YES"
fsck_y_enable="YES"
fsck_y_flags="-y"



