From owner-freebsd-questions Thu Nov 22 2:59: 1 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id CD3CD37B405; Thu, 22 Nov 2001 02:58:52 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fAMAwH653539; Thu, 22 Nov 2001 12:58:17 +0200 (EET) (envelope-from ru) Date: Thu, 22 Nov 2001 12:58:17 +0200 From: Ruslan Ermilov To: Ruben de Groot Cc: freebsd-questions@FreeBSD.ORG, brooks@FreeBSD.ORG Subject: Re: gifconfig: interface gif0 does not exist Message-ID: <20011122125817.C48048@sunbay.com> References: <20011122112401.A20438@ei.bzerk.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011122112401.A20438@ei.bzerk.org> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Nov 22, 2001 at 11:24:01AM +0100, Ruben de Groot wrote: > > Hi, > > I'm trying to set up a VPN between two routers on a private network. > Both routers are FreeBSD 4.4-stable and have "pseudo-device gif" in > their kernel-config. > > When I issue the command: > > router1# gifconfig gif0 inet 192.168.179.40 192.168.179.120 > > I get the errormessage: > > gifconfig: interface gif0 does not exist > > I read the manpages gif(4), gifconfig(8) and LINT, but didn't find any clues. > Am I forgetting something? For example, is "options INET6" mandatory? I'm > not using IPv6, so I commented that out of the kernel config file. > You need to "ifconfig create" it first. Have a look at /etc/defaults/rc.conf on how to do it automatically. Hint: search for "gif_interfaces". Then put the necessary lines into your /etc/rc.conf. Brooks, could you please document these knobs in the rc.conf(5) manpage? Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message