This init script initialises an IPv6-IPv4 tunnel with an IPv6 Broker. Reproducible: Always Steps to Reproduce:
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
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
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
baselayout-1.11.8 has basic tunnelling support which seems to cover everything here Also, see Bug #50765 for other tunnelling stuff