#!/bin/sh if ! [ -f /proc/net/if_inet6 ] then echo "IPv6 is not installed!" 1>&2; exit 1; fi ifconfig sit0 up \ && ifconfig sit0 inet6 tunnel ::*.*.*.*\ && ifconfig sit1 inet6 add *:*:*::*:*/128 \ && route -A inet6 add ::/0 gw fe80::*:1855 dev sit1 \ && route -A inet6 add 2000::/3 gw fe80::*:1855 dev sit1 \ && ifconfig eth1 up \ && ifconfig eth1 inet6 add *:*:*:*::/64 \ && echo 1 > /proc/sys/net/ipv6/conf/all/forwarding \ && echo 'interface eth1 { AdvSendAdvert on; prefix *:*:*:*::/64 { AdvOnLink on; AdvAutonomous on; }; };' > /etc/radvd.conf \ && /etc/init.d/radvd start \ && echo "IPv6 configuration completed" || \ { echo "IPv6 configuration failed!" 1>&2; exit 1; }