rendered paste body#!/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 sit1 inet6 add 2001:618:400::4a45:90b3/128 \
&& ifconfig sit1 inet6 add 2001:618:400:2b7e::1/128 \
&& ifconfig sit1 inet6 add 2001:618:400:2b7e::2/128 \
&& ifconfig sit1 inet6 add 2001:618:400:2b7e::3/128 \
&& ifconfig sit1 inet6 add 2001:618:400:2b7e::4/128 \
&& ifconfig sit1 inet6 add 2001:618:400:2b7e::5/128 \
&& route -A inet6 add ::/0 gw fe80::d579:1855 dev sit1 \
&& route -A inet6 add 2000::/3 gw fe80::d579:1855 dev sit1 \
&& echo "IPv6 configuration completed" || \
{ echo "IPv6 configuration failed!" 1>&2; exit 1; }