Hurricane Electric's IPv6 Tunnel Broker Forums
May 24, 2013, 12:42:39 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: Solved - how to configure ipv6 with FreeBSD-9.0-R  (Read 2115 times)
growveg
Newbie
*
Posts: 1


View Profile
« on: April 01, 2012, 12:37:58 am »

I went round in circles for a few hrs trying to get this working. The problem was that the advice I could find was either incomplete or pertained to FreeBSD 8.x or below. It seems methods have changed a bit for ipv6 under FreeBSD 9.x

Here's what I did after creating the tunnel at HE:

edit rc.conf with the following. Substitute your nic for re0.

ipv6_network_interfaces="re0"
ifconfig_re0_ipv6="inet6 accept_rtadv"
ip6addrctl_policy="ipv6_prefer"

...then reboot, then as root run the usual commands you'd use to get gif0 up.


Logged
nickbeee
tunneld
Jr. Member
**
Posts: 70


I do this just for fun.


View Profile
« Reply #1 on: April 01, 2012, 04:22:04 am »

The man pages are most helpful. www.freebsd.org has man pages for lots of versions so you can see the differences.

All the defaults are set in /etc/defaults/rc.conf - Anything you specify in /etc/rc.conf will override these. See man 5 rc.conf
Logged

Nick B.

Tunnelling with [Open|Net|Free]BSD and IOS.
IPv6 courtesy of   HE and   Sixxs.
piczok
Newbie
*
Posts: 1


View Profile
« Reply #2 on: August 21, 2012, 12:25:05 pm »

Sorry for digging this up, but here's my working rc.conf for /64:

Code:
ipv6_activate_all_interfaces="YES"
gif_interfaces="gif0"
gifconfig_gif0="X.X.X.X Y.Y.Y.Y"
ifconfig_gif0_ipv6="inet6 2001:XXX:XXXX:63::2 2001:XXX:XXXX:63::1 prefixlen 128"
ipv6_defaultrouter="2001:XXX:XXXX:63::2"

Where:

X.X.X.X => Client IPv4 Address (note: if you have NAT this should be your NAT IP i.e. 192.168.0.100)
Y.Y.Y.Y => Server IPv4 Address
2001:XXX:XXXX:63::2 => Client IPv6 Address
2001:XXX:XXXX:63::1 => Server IPv6 Address

Works like a charm even after rebooting Smiley
Logged
cholzhauer
Hero Member
*****
Posts: 2082


View Profile
« Reply #3 on: August 21, 2012, 12:27:51 pm »

looks like the same setup as you'd use for 8
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!