9.3. Setup of point-to-point tunnelThere are 3 possibilities to add or remove point-to-point tunnels. A good additional information about tunnel setup using "ip" is Configuring tunnels with iproute2 (article) (Mirror). 9.3.1. Add point-to-point tunnels9.3.1.1. Using "ip"Common method at the moment for a small amount of tunnels. Usage for creating a tunnel device (but it's not up afterward, also a TTL must be specified because the default value is 0).
Usage (generic example for three tunnels):
9.3.1.2. Using "ifconfig" and "route" (deprecated)This not very recommended way to add a tunnel because it's a little bit strange. No problem if adding only one, but if you setup more than one, you cannot easy shutdown the first ones and leave the others running. Usage (generic example for three tunnels):
Important: DON'T USE THIS, because this setup implicit enable "automatic tunneling" from anywhere in the Internet, this is a risk, and it should not be advocated. 9.3.1.3. Using "route" onlyIt's also possible to setup tunnels in Non Broadcast Multiple Access (NBMA) style, it's a easy way to add many tunnels at once. But none of the tunnel can be numbered (which is a not required feature). Usage (generic example for three tunnels):
Important: DON'T USE THIS, because this setup implicit enable "automatic tunneling" from anywhere in the Internet, this is a risk, and it should not be advocated. 9.3.2. Removing point-to-point tunnelsManually not so often needed, but used by scripts for clean shutdown or restart of IPv6 configuration. 9.3.2.1. Using "ip"Usage for removing a tunnel device:
Usage (generic example for three tunnels):
9.3.2.2. Using "ifconfig" and "route" (deprecated because not very funny)Not only the creation is strange, the shutdown also...you have to remove the tunnels in backorder, means the latest created must be removed first. Usage (generic example for three tunnels):
9.3.2.3. Using "route"This is like removing normal IPv6 routes. Usage (generic example for three tunnels):
9.3.3. Numbered point-to-point tunnelsSometimes it's needed to configure a point-to-point tunnel with IPv6 addresses like in IPv4 today. This is only possible with the first (ifconfig+route - deprecated) and third (ip+route) tunnel setup. In such cases, you can add the IPv6 address to the tunnel interface like shown on interface configuration. 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 |