Hurricane Electric's IPv6 Tunnel Broker Forums
May 21, 2013, 02:54:12 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Hurricane Electric's Tunnelbroker.net forums!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Configuring a tunnel under *BSD & MacOS X  (Read 19144 times)
broquea
Senior Network Engineer, SEVEN Networks (AS19733)
Hero Member
*****
Posts: 1373



View Profile WWW
« on: February 08, 2008, 01:55:38 pm »

Users will always be able to view the example configurations provided in the tunnelbroker.net interface, however we also wanted to make them available on the forums. I'll cover the ifconfig commands used on the various BSD platforms. I won't be using valid IPv4/IPv6 information in the examples, but the example configurations in the broker's interface will provide the full commands with your relevant account information.

Legend of variables:
$ipv4a = tunnel server's IPv4 IP
$ipv4b = user's IPv4 IP
$ipv6a = tunnel server's side of point-to-point /64 allocation
$ipv6b = user's side of point-to-point /64 allocation

FreeBSD
ifconfig gif0 create
ifconfig gif0 tunnel $ipv4b $ipv4a
ifconfig gif0 inet6 $ipv6b $ipv6a prefixlen 128
route -n add -inet6 default $ipv6a
ifconfig gif0 up
  
OpenBSD
ifconfig gif0 tunnel $ipv4b $ipv4a
ifconfig gif0 inet6 alias $ipv6b $ipv6a prefixlen 128
route -n add -inet6 default $ipv6a

NetBSD & MacOS X
ifconfig gif0 tunnel $ipv4b $ipv4a
ifconfig gif0 inet6 $ipv6b $ipv6a prefixlen /128
route -n add -inet6 default $ipv6a

*NOTE* When behind a firewall appliance that passes protocol41, instead of using the IPv4 endpoint you provided to our broker, use the IPv4 address you get from your appliance's DHCP service.
« Last Edit: August 05, 2010, 08:43:34 am by broquea » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!