Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30780 - IPv6 Tunnel init script
Summary: IPv6 Tunnel init script
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: The ipv6 Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66472
  Show dependency tree
 
Reported: 2003-10-09 13:20 UTC by Robert Nagtegaal
Modified: 2005-01-25 07:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
IPv6-tunnel init and config files (IPv6_Tunnel.tbz2,1.39 KB, application/octet-stream)
2003-10-09 13:22 UTC, Robert Nagtegaal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Nagtegaal 2003-10-09 13:20:16 UTC
This init script initialises an IPv6-IPv4 tunnel with an IPv6 Broker.

Reproducible: Always
Steps to Reproduce:
Comment 1 Robert Nagtegaal 2003-10-09 13:22:52 UTC
Created attachment 19034 [details]
IPv6-tunnel init and config files

This file contains the /etc/init.d/IPv6_Tunnel and /etc/conf.d/IPv6_Tunnel
files, to create a tunnel to an IPv6 broker.

more information about obtaining an IPv6 tunnel adress is available at
http://www.sixxs.nl
Comment 2 pasi.valminen 2004-02-25 15:13:55 UTC
Don't use ifconfig with tunnels. You run into irrational problems with it if you have more than one tunnel. Explained here:
http://tldp.org/HOWTO/Linux+IPv6-HOWTO/conf-ipv6-in-ipv4-point-to-point-tunnels.html
Comment 3 Forza 2004-07-19 13:41:40 UTC
This is a small bash script to setup a IPv6-on-IPv4 tunnel to 6bone through SICS:

#!/bin/bash
#   IPv6 config script: /etc/conf.d/ipv6
#   Version: 0.1

## IPv6-on-IPv4 tunnel to sixbone 6bone-gw.ipv6.sics.se

# Tunnel: Local IPs
ip4lo=217.215.177.XXX
ip6lo=3ffe:200:1:XXX::2

# Tunnel: Remote IPs
ip4re=193.10.66.219
ip6re=3ffe:200:1:XXX::1
# The tunnel prefix should be /64 on most systems.
tprefix="/64"

tunnel=sixbone
extdev=eth1
intdev=eth0

# Your assigned IPv6 prefix: (Note, SICS usually gives a /48 but I use only a /64 part of it.)
prefix=3ffe:200:XXX::/64

## Set up tunnel interface

/sbin/ip tunnel add $tunnel mode sit remote $ip4re local $ip4lo ttl 64 dev $extdev
/sbin/ip link set $tunnel mtu 1280
/sbin/ip link set $tunnel up

# Local IPv6 tunnel endpoint IP:
/sbin/ip addr add $ip6lo dev $tunnel

# If you want to assign your prefix to your LAN:
/sbin/ip addr add $prefix dev eth0

## Setup routes

/sbin/ip route add $ip6re$tprefix dev $tunnel
/sbin/ip route add ::/0 via $ip6re dev $tunnel

# Because the assigned prefix from SICS is a /48
# but local nets should only have a /64 we discard
# the rest. Feel free to do what you like with
# this :)

/sbin/ip route add unreachable $prefix/48
Comment 4 Roy Marples (RETIRED) gentoo-dev 2005-01-25 07:17:42 UTC
baselayout-1.11.8 has basic tunnelling support which seems to cover everything here

Also, see Bug #50765 for other tunnelling stuff