#!/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 ::213.121.24.85 \ && ifconfig sit0 inet6 add 2001:618:400::2663:2c6/128 \ && route -A inet6 add ::/0 gw fe80::d579:1855 dev sit0 \ && route -A inet6 add 2000::/3 gw fe80::d579:1855 dev sit0 \ && ifconfig eth0 up \ && ifconfig eth0 inet6 add 2001:618:400:30fd::/64 \ && echo 1 > /proc/sys/net/ipv6/conf/all/forwarding \ && echo 'interface eth0 { AdvSendAdvert on; prefix 2001:618:400:30fd::/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; }