From owner-freebsd-questions@FreeBSD.ORG Sun Mar 23 17:19:36 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 659BD106564A for ; Sun, 23 Mar 2008 17:19:36 +0000 (UTC) (envelope-from redchin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id DEB848FC19 for ; Sun, 23 Mar 2008 17:19:35 +0000 (UTC) (envelope-from redchin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2157622fgg.35 for ; Sun, 23 Mar 2008 10:19:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=zpxEbia4CERwDxzPOPkkk0SVOP7Rde0RczH8VjtW3vA=; b=Aj8wchz9wTI97mjdhRa4kLCmbr9fWxkJ1QIepHyKjXT20nOkde4RKTetRMK0TBV0yfZjm4EThmS3TkZa7kQ+RpL/duhxNSL6d5e/wCLoMxKhDyclEqFP5zgaxj/DVFI/YqTK72OEgurWXoqOAyuw/N7gZoJgRt+Kuo/dlIncETM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lzRyk4W9liIQkNJ2gEui/T9w2+q51Kxzkfn9OUpZWVd0xHVUzUZHF/eG0jJD29ym49fTaBGx13ekLbk14sth/2nkfSqOOtay1vQTr/QhMpZJX5WF5Y84Fgc00IMrn1AUFvflxGvssM6R1wENkYoNbBox9aTA3exxOB9alc5Pz2k= Received: by 10.82.191.3 with SMTP id o3mr14623748buf.17.1206292774581; Sun, 23 Mar 2008 10:19:34 -0700 (PDT) Received: by 10.82.160.9 with HTTP; Sun, 23 Mar 2008 10:19:34 -0700 (PDT) Message-ID: <1d3ed48c0803231019k17c63e69t5852b32b4a2ef264@mail.gmail.com> Date: Sun, 23 Mar 2008 10:19:34 -0700 From: "Kevin Downey" To: "Malcolm Clarke" In-Reply-To: <47E64E9F.4060509@brunel.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4731E220.3050006@brunel.ac.uk> <200711081214.16533.nvass@teledomenet.gr> <47E51E19.5020502@brunel.ac.uk> <47E5392D.3010104@cran.org.uk> <47E53F41.90504@brunel.ac.uk> <47E64E9F.4060509@brunel.ac.uk> Cc: freebsd-questions@freebsd.org Subject: Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2008 17:19:36 -0000 On Sun, Mar 23, 2008 at 5:35 AM, Malcolm Clarke wrote: > Hi > > Does anyone know the IPv6 vesion of the command that would be of the form > > gifconfig_gif0="fec0::1 fec0::2" > > that would set up the two physical ends of a tunnel? > > Sadly the above does not works as it does not recognise the IPv6 address > as there is no > > ipv6_gifconfig_gif0="fec0::1 fec0::2" > > to correspond to the command > > ifconfig gif0 inet6 tunnel src-addr dst_addr > > Regards > > Malcolm > sorry for the duplicate mail Malcolm, forgot to reply to the list as well. the attached patch should let use the inet6 keyword. example: gifconfig_gif0="inet6 fec0::1 fec0::2" --- /etc/network.subr 2008-03-23 09:50:35.000000000 -0700 +++ /tmp/network.subr 2008-03-23 10:06:51.000000000 -0700 @@ -470,7 +470,6 @@ fi done } - gif_up() { # The following must be removed once RELENG_7 is branched. case ${gif_interfaces} in @@ -486,6 +485,11 @@ '') continue ;; + *inet6*) + ifconfig $i create >/dev/null 2>&1 + ifconfig $i inet6 tunnel `echo ${peers} | cut -d \ -f 2-` + ifconfig $i up + ;; *) ifconfig $i create >/dev/null 2>&1 ifconfig $i tunnel ${peers}