gif_up with ipv6 transport layer
Matthieu Michaud
matthieu.michaud at epita.info
Mon Jan 23 10:57:25 PST 2006
hello,
i have this kind of configuration :
192.168.1.0/24 -- A (2001:7a8:6cd1::caca)
|
INTERNET
|
192.168.2.0/24 -- B (2001:7a8:b138::caca)
i want to make my ipv4 in ipv6 tunnel configured at boot time. i added :
rc.conf(A)
gifconfig_gif0="2001:7a8:6cd1::caca 2001:7a8:b138::caca"
ifconfig_gif0="inet 192.168.1.1 192.168.2.253 netmask 0xffffffff"
static_routes="vpn0"
route_vpn0="192.168.2.0 192.168.2.253"
rc.conf(B)
gif_interfaces="gif0"
gifconfig_gif0="inet6 tunnel 2001:7a8:b138::caca 2001:7a8:6cd1::caca"
ifconfig_gif0="inet 192.168.2.253 192.168.1.1 netmask 0xfffffff"
static_routes="vpn0"
route_vpn0="192.168.1.0 192.168.1.1"
it's working well, congratulations to dev ! but, here is my problem
(/etc/network.subr) :
gif_up() {
case ${gif_interfaces} in
[Nn][Oo] | '')
;;
*)
for i in ${gif_interfaces}; do
eval peers=\$gifconfig_$i
case ${peers} in
'')
continue
;;
*)
ifconfig $i create >/dev/null 2>&1
ifconfig $i tunnel ${peers}
ifconfig $i up
;;
esac
done
;;
esac
}
it wont create a tunnel with ipv6 as transport layer. it should be able
to exec a "ifconfig $i inet6 tunnel ${peers}". is it an unhandled case ?
did i miss something ?
thanks for your answer.
--
Matthieu Michaud <matthieu.michaud at epita.info>
EPITA SRS 2007
More information about the freebsd-rc
mailing list