From owner-freebsd-rc@FreeBSD.ORG Mon Jan 23 18:57:25 2006 Return-Path: X-Original-To: freebsd-rc@freebsd.org Delivered-To: freebsd-rc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57D2716A41F for ; Mon, 23 Jan 2006 18:57:25 +0000 (GMT) (envelope-from matthieu.michaud@epita.info) Received: from marge.cload.net (marge.cload.net [213.41.172.209]) by mx1.FreeBSD.org (Postfix) with SMTP id 6488843D58 for ; Mon, 23 Jan 2006 18:57:23 +0000 (GMT) (envelope-from matthieu.michaud@epita.info) Received: (qmail 49203 invoked by uid 100); 23 Jan 2006 20:02:11 +0100 Received: from homer.cload.net (HELO moe.lan) (213.41.241.56) by marge.cload.net with SMTP; 23 Jan 2006 20:02:11 +0100 From: Matthieu Michaud To: freebsd-rc@freebsd.org Content-Type: text/plain Organization: EPITA SRS 2007 Date: Mon, 23 Jan 2006 19:56:04 +0100 Message-Id: <1138042564.933.14.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: gif_up with ipv6 transport layer X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2006 18:57:25 -0000 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 EPITA SRS 2007