Date: Wed, 09 Mar 2005 06:58:16 -0500 From: "Fafa Diliha Romanova" <fteg@london.com> To: questions@freebsd.org Subject: IPv6 setup script ... doesn't work!! Message-ID: <20050309115816.29B164BDAA@ws1-1.us4.outblaze.com>
next in thread | raw e-mail | index | archive | help
Hello!
I just registered with BTExact, and they sent me ipv6.sh:
#!/bin/sh
case "$1" in
start)
# ifconfig gif create
gifconfig gif0 inet 213.187.181.70 213.121.24.85
ifconfig gif0 inet6 2001:618:400::d5bb:b546 prefixlen 128
route add -inet6 default fe80::%gif0
ifconfig fxp0 inet6 2001:618:400:6ad9:: prefixlen 64
sysctl ?w net.inet6.ip6.forwarding=3D1
/usr/sbin/rtadvd fxp0
echo "IPv6 activation complete!" ||
{ echo "IPv6 activation failed!" 1>&2; exit 1; }
;;
stop)
killall -m rtadvd
sysctl -w net.inet6.ip6.forwarding=3D0
ifconfig fxp0 inet6 2001:618:400:6ad9:: prefixlen 64 delete
route delete -inet6 default fe80::%gif0
ifconfig gif0 inet6 2001:618:400::d5bb:b546 prefixlen 128 delete
gifconfig gif0 delete
echo "IPv6 deactivation complete!" ||
{ echo "IPv6 deactivation failed!" 1>&2; exit 1; }
;;
restart)
$0 stop
echo Pausing 5 seconds before restart ...
sleep 5
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
I get this when I run it:
gifconfig: not found
ifconfig: interface gif0 does not exist
fe80::%gif0: bad value
ifconfig: interface fxp0 does not exist
sysctl: unknown oid '?w'
IPv6 activation complete!
I have this configuration in /etc/rc.conf:
# *** IPv6 configuration
#
gif_interfaces=3D"gif0"
ipv6_enable=3D"YES"
ipv6_gateway_enable=3D"YES"
ipv6_defaultrouter=3D"-interface gif0"
ipv6_network_interfaces=3D"gif0 lnc0 ep0"
ipv6_firewall_enable=3D"YES"
ipv6_firewall_type=3D"open"
rtadvd_enable=3D"YES"
rtadvd_interfaces=3D"ep0"
Where did I go wrong?
Thanks! And all the best,
-- from Fafa!
--=20
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050309115816.29B164BDAA>
