Menu

IPv6 auto 6to4

Help
buergi
2012-01-04
2013-05-29
  • buergi

    buergi - 2012-01-04

    Hey,
    I'm just trying to get the auto 6to4 tunnel working.
    Enabling IPv6 and the auto tunnel feature in the router and rebooting router and computer got me a working IPv6 LAN.
    i.e. pinging local ipv6 works and i can access the router interface via http:///

    Accessing IPv6 servers in the internet also works great for the router: Both 'ping6 www.six.heise.de' and wget yield the expected results on the router.

    But all other computers in the network i just cannot get any connection to such servers. Do I have to configure special routes? I thought the router advertises the routes and the get configured automatically on the other computers.

     
  • amd-65

    amd-65 - 2012-01-05

    ipv6.sh has two major bugs. The first one is in add_6to4_auto_tunnel(). The line

    prefix=sprintf("2002:%X%X:%X%X:", ip[1], ip[2], ip[3], ip[4]);
    

    must be replace by

    prefix=sprintf("2002:%X%02X:%X%02X:", ip[1], ip[2], ip[3], ip[4]);
    

    to generate the correct prefix.

    The second one is the update procedure if the WAN ip does change. haprad.conf is generated newly. Radvd reads the config file during the modification. The config file is temporary inconsistent. radvd will exit.

    Please look at this issue. If you try to use the modified script, you need a newer version of radvd.

     
  • buergi

    buergi - 2012-01-05

    Thanks for the answer, i replaced the line in the ipv6 script but it still doesn't work, neither from my archlinux pc nor from another Win7 computer.
    At the moment i cannot download the ipv6 script from the bugtracker, i guess it's a problem of sourceforge.
    But anyway, how do i get a new version of radvd, do i have to build it myself using a mipsel toolchain?

    What would i have to do to add the routes manually in linux? In IPv4 it was so easy but in v6 i got so many different IPs that i'm totally confused.
    ip -6 route on the router gives me among all those unicast and multicast routes 4 routes in the 6to4 range (2002::)
    2002💯0:1::/64 dev br0  metric 1024
    2002:549b:38ca::/48 dev br0  metric 1024
    2002:549b:xxxx:1::/64 dev br0  metric 1024
    2002:549b:xxxx::/48 dev tun6to4_auto  metric 256

    Could you tell me the meaning of those addresses? I know, that the 549b:xxxx part is my current WAN IP but what are the IPs in the first two lines?

     
  • buergi

    buergi - 2012-01-05

    Thanks for the answer, i replaced the line in the ipv6 script but it still doesn't work, neither from my archlinux pc nor from another Win7 computer.
    At the moment i cannot download the ipv6 script from the bugtracker, i guess it's a problem of sourceforge.
    But anyway, how do i get a new version of radvd, do i have to build it myself using a mipsel toolchain?

    What would i have to do to add the routes manually in linux? In IPv4 it was so easy but in v6 i got so many different IPs that i'm totally confused.
    ip -6 route on the router gives me among all those unicast and multicast routes 4 routes in the 6to4 range (2002::)
    2002💯0:1::/64 dev br0  metric 1024
    2002:549b:38ca::/48 dev br0  metric 1024
    2002:549b:xxxx:1::/64 dev br0  metric 1024
    2002:549b:xxxx::/48 dev tun6to4_auto  metric 256

    Could you tell me the meaning of those addresses? I know, that the 549b:xxxx part is my current WAN IP but what are the IPs in the first two lines?

     
  • amd-65

    amd-65 - 2012-01-05

    Usually you need two 2002:: routes only:

    2002:1122:3344:55aa::/64 dev br0  metric 256
    2002:1122:3344::/48 dev tun6to4_auto  metric 256

    The script isn't able to remove all ipv6 routes and addresses, if the WAN ip changes.

    Please look to my other ipv6 related posts (http://sourceforge.net/projects/bitswitcher/forums/forum/799260/topic/3872655?message=8666548) also.

     
  • buergi

    buergi - 2012-01-08

    OK now i got it working. I added the following default route on my computer

    ip -6 route add default via fe80::2xx:xxff:feyy:yyyy

    where 00:xx:xx:yy:yy:yy is my router's mac address.
    The IP address is the router's internal ipv6 address ( -> ifconfig br0 | grep addr.*Link )

    I guess sometimes the route gets created automatically, but on my Android smartphone i had to add it manually.

     

Log in to post a comment.

MongoDB Logo MongoDB