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

24 Responses

  1. ahstod says:

    … how long did you manage to get away without installing this one? 😎

  2. namran says:

    approximately within 48hours.. hahaha.. (very slow-pace mode) as the file exist since..

    Mon Mar 9 15:28:31 2009 UTC (32 hours, 49 minutes ago) by ..

    quite weird when most of the item are just disappeared..
    .. at first thought some config problem.. removing the whole project directory and re-checkout.. still the same..
    then only figured one by one.. lol..

  3. Andre says:

    Worked for me. Many thanks!

    • HawkEYE says:

      @Andre : you’re welcome.. hopefully it help those in need.

  4. Spyder461 says:

    I’m still having this problem. If done the yum install php-xml, but I still get the error about missing DomDocument class. I have read some posts that talk about executing a enable lib-xml extension command, but when I do this command, I get a error that lib-xml and extension is not a builtin command. Any suggestions would be appreciated.

  5. danyal says:

    really very helpful it works

  6. sachin says:

    Good, It worked

  7. nszumowski says:

    Awesome! Everywhere else I was looking referenced libxml2 which I had already installed. This fixed my issue!

  8. nico says:

    Awesome! thanks so much.

  9. battisti says:

    Thx, after a lot of hours spend in the source the problem was in the server! 🙁

  10. dungkal says:

    Updating the php-xml (note: it had already been installed long before the problem cropped up) on my CentOS server did the trick.

    Thanks for the help.

  11. wika says:

    Thanks, it worked !!

  12. rc says:

    Just a note, if you’re on centos and you had to do a custom install of php 5.3, yum install php53-xml will do the trick

  13. elliot says:

    @rc – thank you!

  14. Andrea says:

    Woooow, thank you!
    U save my ass…

  15. littleguy says:

    This worked great, thanks!

  16. mark says:

    Thank you , was baffled with this error, your post saved the day

  17. Smoker says:

    It worked for me like a charm. Thank you verry much.

  18. Thanga says:


  19. axlotl says:

    Thank you, sir.

  20. dduane says:

    I also had to add the line:
    to my php.ini file and restart apache. I’m using Fedora 16.

  21. vb says:

    Thanks. saved a lot of time. Had that issue with owncloud

  22. khyox says:

    Thank you very much indeed! It solved my issue viewing the internal wiki syntax page with dokuwiki running over lighttpd in Scientific Linux.

  23. Andre says:

    Muito obrigado valeu muito o bizu de instalar esta yum install php-xml, excelente ajuda, estava precisando muito


Leave a Reply

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