All pastes #123355 Raw Edit

Something

public shellscript v1 · immutable
·published 2006-08-09 06:43 UTC
rendered paste body
[root@trace ~]# cat ipv6_subnet_up.sh#!/bin/shif ! [ -f /proc/net/if_inet6 ]then echo "IPv6 is not installed!" 1>&2; exit 1; fiifconfig sit0 up \&& ifconfig sit0 inet6 tunnel ::213.121.24.85 \&& ifconfig sit1 inet6 add 2001:618:400::461e:55a8/128 \&& route -A inet6 add ::/0 gw fe80::d579:1855 dev sit1 \&& route -A inet6 add 2000::/3 gw fe80::d579:1855 dev sit1 \&& ifconfig eth0 up \&& ifconfig eth0 inet6 add 2001:618:400:ca31::/64 \&& echo 1 > /proc/sys/net/ipv6/conf/all/forwarding \&& echo 'interface eth0{    AdvSendAdvert on;    prefix 2001:618:400:ca31::/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; }