9.4. Setup of 6to4 tunnelsPay attention that the support of 6to4 tunnels currently lacks on vanilla kernel series 2.2.x (see systemcheck/kernel for more information). Also note that that the prefix length for a 6to4 address is 16 because of from network point of view, all other 6to4 enabled hosts are on the same layer 2. 9.4.1. Add a 6to4 tunnelFirst, you have to calculate your 6to4 prefix using your local assigned global routable IPv4 address (if your host has no global routable IPv4 address, in special cases NAT on border gateways is possible): Assuming your IPv4 address is
the generated 6to4 prefix will be
Local 6to4 gateways should always assigned the suffix "::1", therefore your local 6to4 address will be
Use e.g. following for automatic generation:
There are two ways possible to setup 6to4 tunneling now. 9.4.1.1. Using "ip" and a dedicated tunnel deviceThis is now the recommended way (a TTL must be specified because the default value is 0). Create a new tunnel device
Bring interface up
Add local 6to4 address to interface (note: prefix length 16 is important!)
Add (default) route to the global IPv6 network using the all-6to4-routers IPv4 anycast address
9.4.1.2. Using "ifconfig" and "route" and generic tunnel device "sit0" (deprecated)This is now deprecated because using the generic tunnel device sit0 doesn't let specify filtering per device. Bring generic tunnel interface sit0 up
Add local 6to4 address to interface
Add (default) route to the global IPv6 network using the all-6to4-relays IPv4 anycast address
9.4.2. Remove a 6to4 tunnel9.4.2.1. Using "ip" and a dedicated tunnel deviceRemove all routes through this dedicated tunnel device
Shut down interface
Remove created tunnel device
9.4.2.2. Using "ifconfig" and "route" and generic tunnel device "sit0" (deprecated)Remove (default) route through the 6to4 tunnel interface
Remove local 6to4 address to interface
Shut down generic tunnel device (take care about this, perhaps it's still in use...)
Linux HOWTO full list |
|
This document, LDP HOWTO-INDEX, is copyrighted (c) 1995 - 2002 by Tim Bynum, Guylhem Aznar, Joshua Drake and Greg Ferguson. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is available at http://www.gnu.org/copyleft/fdl.html. If you have questions, please contact the LDP.
Web Design Copyright © 1999-2003. Chrisranjana Software Solutions Pvt Ltd. syndicate rss feed |