[luau] IPV6 behind a linksys

xxd xxd at sym.zapto.org
Wed Nov 12 12:46:00 PST 2003


Greetings all,
	
	I have had some recent success with getting IPV6 to work from behind horrible, crappy, outdated, and yes even linksys routers.  What follows is a _very_ brief post, ( I really wouldn't call it a howto,) on How I got it done.  I wrote this because I was successfully able to get IPV6 working when my Linux box was the gateway for my network, but couldn't make it work when the venerable linksys was at the helm.  After a couple of weeks of fruitless labor, I hit pay dirt.

	Hopefully this is useful to some and we can get more IPV6 users here in Hawaii.  Well, lets get to it.

First of all:
	      
	You need to set up your system for IPV6.  The 		      following link is what I used.  It is all there, you just might have to read it a few times and don't give up!  Remember, that's why we run Linux. 
	
	http://www.ibiblio.org/pub/Linux/docs/HOWTO/other-formats/html_single/Linux+IPv6-HOWTO.html

You also need to add some entries to the /etc/hosts file:
	::1		ip6-localhost		ip6-loopback
	fe00::0		ip6-localnet
	ff00::0 	ip6-mcastprefix
	ff02::1  	ip6-allnodes
	ff02::2		ip6-allroutes
	ff02::3		ip6-allhosts

from ( http://clc.berlios.de/projects/ipv6/ <-- another very handy link in getting your system IPV6 operable. )

			*** Note ***
	
	It is very important you install the iproute2 package, as I am not sure this will work if you are using the outdated ifconfig package.

	Also pay special attention to _all_ of section 9.
			     ***
 
All right, let's get to it:


	The first major obstacle was to try to figure out how to create a valid IPV6 in IPV4 tunnel endpoint on your box inside the network (ie: 192.168.x.x,) and have it translate out through the router to connect with the IPV6 in IPV4 tunnel multi-cast address. (see link.)
	Well, if you installed the iproute2 package, your job just got a hell of a lot easier.  First of all, you need to find out your globally assigned IP address. (ie: for RR, mine is currently 24.94.65.60 )  For the remainder I will just use my address, substitute your address where appropriate.  You need to add that address to your net interface. ( mine is eth0.)

Note: all commands in ` ' should be taken as literal.
	
		`ip addr add 24.94.65.60 dev eth0'

This gives you and endpoint for your tunnel.  Let me jump with excitement, we added another IP address to our interface!  Doesn't help us out too much right now, but it will in a second. ;)

	The next thing we have to do is to get our tunnel up and firing.
So, we add a tunnel.  ( I called mine simply v6. you can call it anything you want)

`ip tunnel add v6 mode sit ttl 255 remote any local 24.94.65.60`


Next we get the link up:

	`ip link set dev v6 up'


	Here comes the fun part.  Now we have to figure out what our IPV6 in IPV4 prefix is. First you take your IP address, ie: 24.94.65.60 and plug it into this handy formula at any Bash prompt:

`ipv4="24.94.65.60"; printf "2002:%02x%02x:%02x%02x:%04x::1" `echo $ipv4 | tr "." " "`'
	
I believe Peter Bieringer came up with this formula in his handy Linix IPv6 HOWTO (see link.)

	  
	It generated 2002:185e:413c:0000::1 for my address.  Now that we have that established, we can add this address to our v6 tunnel.

	`ip -6 addr add 2002:185e:413c:0000::1/16 dev v6'

	And finally we are in the home stretch.  All that we have left to do is add the route through our tunnel.

	`ip -6 route add 2000::/3 via ::192.88.99.1 dev v6 metric 1'

Note: 
	192.88.99.1 is the IPV6 in IPV4 multicast address.  And remember to substitute your address in the appropriate spots.

	Now we should be up and running with IPV6 behind our venerable 
 { linksys/ insert crappy here } router.  ping6 -c 3 www.6bone.net and enjoy!  It is easy to implement in your init scripts too!  Well, this turned out a lot longer then I originally intended, but hope it helps get IPV6 on the map in Hawaii.
						xxd   

	 
	
-- 
##############################################################
#   ________  ___ ________   #                               #
#     )_   ( '-,) )   _(     #  Email: xxd at sym.zapto.org     #  
#       )_  \_//_/  _(       #                               # 
#         )___  ___(         #  Lo Tek Sym Designs           #
#             ))             #                               #
#            ((	             #  Scott Scheurman              #
#             ``-            #                               #
##############################################################
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.freesoftwarehawaii.org/pipermail/luau-freesoftwarehawaii.org/attachments/20031112/e4cf41ea/attachment-0001.pgp>


More information about the LUAU mailing list