Date: Mon, 23 Jan 2006 19:56:04 +0100 From: Matthieu Michaud <matthieu.michaud@epita.info> To: freebsd-rc@freebsd.org Subject: gif_up with ipv6 transport layer Message-ID: <1138042564.933.14.camel@localhost>
next in thread | raw e-mail | index | archive | help
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@epita.info> EPITA SRS 2007
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1138042564.933.14.camel>