Differences between version 58 and predecessor to the previous major change of 6to4.
Other diffs: Previous Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 58 | Last edited on Friday, April 4, 2008 7:24:59 am | by MattBrown | Revert |
Older page: | version 57 | Last edited on Wednesday, March 7, 2007 12:42:49 am | by NickClifford | Revert |
@@ -1,6 +1,6 @@
!!!What is 6to4
-6to4 addressing is a type of ipv6
address created by your IPv4 address. It allows you to set up tunnels over the [IPv4] Internet automatically.
+6to4 addressing is a type of [IPv6]
address created by your IPv4 address. It allows you to set up tunnels over the [IPv4] Internet automatically.
The range for this is 2002:<first two bytes of an ipv4 address>:<second two bytes of an ipv4 address>::/16.
This gives you a /48 to play around with, great if you have to put up with [NAT], now all the boxes behind your firewall will have realworld [IPv6] addresses at no extra cost!
@@ -27,9 +27,9 @@
To figure out your 6to4 address based on your IPv4 address:
<pre>
printf "2002:%02x%02x:%02x%02x::1\n" `echo $IPV4ADDR | tr . ' '`
</pre>
-Where $IPV4ADDR is your IPv4 address. Eg, if your IPv4 address is 192..2.3
, then:
+Where $IPV4ADDR is your IPv4 address. Eg, if your IPv4 address is 192..2.23
, then:
<pre>
printf "2002:%02x%02x:%02x%02x::1\n" `echo 192.0.2.23 | tr . ' '`
2002:c000:0217::1
</pre>
@@ -50,9 +50,9 @@
ip -6 addr add __''your-6to4-address''__/16 dev tun6to4
</pre>
So for our example IP above:
<pre>
- ip tunnel add tun6to4 mode sit remote any local 192..2.3
+ ip tunnel add tun6to4 mode sit remote any local 192..2.23
ip link set dev tun6to4 mtu 1472 up
ip -6 addr add 2002:c000:0217::1/16 dev tun6to4
</pre>
If you don't have the 6bone configured, run the following two commands:
@@ -139,15 +139,15 @@
!!Testing
Use the __ping6__ program. (On Debian, you need to install the iputils-ping package to get the ipv6 version of ping).
-If this webserver (Hoiho)
has its
6to4 set up correctly
, you should be able to do:
+The WLUG server
has 6to4 set up, so
you should be able to do:
<pre>
- $ ping6 2002:cb61
:a32
::1
- PING 2002:cb61
:a32
::1(2002:cb61
:a32
::1) from ::1 :
56 data bytes
- 64 bytes from 2002:cb61
:a32
::1: icmp_seq=1 ttl=64
time=.203 ms
- 64 bytes from 2002:cb61
:a32
::1: icmp_seq=2 ttl=64
time=.077 ms
- 64 bytes from 2002:cb61
:a32
::1: icmp_seq=3 ttl=64
time=.080 ms
+ $ ping6 2002:3cea
:4272
::1
+ PING 2002:3cea
:4272
::1(2002:3cea
:4272
::1) 56 data bytes
+ 64 bytes from 2002:3cea
:4272
::1: icmp_seq=1 ttl=53
time=.203 ms
+ 64 bytes from 2002:3cea
:4272
::1: icmp_seq=2 ttl=53
time=.077 ms
+ 64 bytes from 2002:3cea
:4272
::1: icmp_seq=3 ttl=53
time=.080 ms
</pre>
!!Using 6to4 addresses on your internal network