Setting up IPv6 network via TM Unifi on CentOS 5

Well, at the time of this writing .. TM Unifi has not yet provide ready-made IPv6 for us.
(probably hidden under some test-bed environment only i.e MYREN network)

Anyway, if you are eager to get hook onto IPv6 now, the choice are either getting a tunnel
IPv6-over-IPv4 .. which is provided by quite a number of provider :
namely :

1. (
3. Hurricane Electric (

well, each of them got their own tunnel provided and step.
Tried Gogoc on CentOS, work like charm.. except sometime ..
I had ..
“Failed to TSP.. bla bla”

For , the registration took longer than the others..
so, I just jump to next one..

After registered, login, create regular tunnel.. wait few moment..
It assigned a ::0/64 for me. . and the script provided for linux too.

copy & paste that script into the router box .. and it just work !

I choose the “Linux-net tools”

ifconfig sit0 up
ifconfig sit0 inet6 tunnel ::
ifconfig sit1 up
ifconfig sit1 inet6 add 2001:470:3x:1xx::2/64
route -A inet6 add ::/0 dev sit1

well.. then it also routed /64 and /48 such as the following :

Routed IPv6 Prefixes and rDNS Delegations
	Routed /48: 	2001:470:xx43::/48
	Routed /64: 	2001:470:3y:1xx::/64

then, to route the IPv6 to the whole network behind me ..

I just .. adding the routed network (/64) into my internal LAN interface.

ip addr add 2001:470:3y:1xx::1 dev eth0

Ok, now time to get the Forwarding to works.

echo "1" > /proc/sys/net/ipv6/conf/all/forwarding

or made it permanently .. by adding the following line into /etc/sysctl.conf

# IPv6

then install the radvad .. (some said it is kind of DHCP server for IPv6 )

yum install radvd -y

then configure the radvd to advertise the IPv6 internally..

something like the following :

interface eth0 { 
        AdvSendAdvert on;
        MinRtrAdvInterval 3; 
        MaxRtrAdvInterval 10;
        prefix 2001:470:3y:1xx::/64 { 
                AdvOnLink on; 
                AdvAutonomous on; 
                AdvRouterAddr on; 

        route 2001:470:xx43::/48
                AdvRoutePreference high;
                AdvRouteLifetime 3600;

chmod a-w /etc/radvd.conf
service radvd start

then try monitoring it for few moment..


it should had something like the following..

verifying using the following command :

ip -6 route show

then clients .. such as nexus one, htc wildfire will pickup the IPv6 automatically..
as this box also had DHCP server running for IPv4.

and it would just worked !

so.. now .. is alive.. (only reachable via IPv6 infra as it set to listening to ipv6 interface only) yay !

Credit goes to .sha..

and following reference :


Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *