From owner-freebsd-questions Thu Nov 22 3:23: 3 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ei.bzerk.org (ei.xs4all.nl [213.84.67.5]) by hub.freebsd.org (Postfix) with ESMTP id DC44037B417; Thu, 22 Nov 2001 03:22:59 -0800 (PST) Received: (from ruben@localhost) by ei.bzerk.org (8.11.6/8.11.3) id fAMBMwg20682; Thu, 22 Nov 2001 12:22:58 +0100 (CET) (envelope-from ruben) Date: Thu, 22 Nov 2001 12:22:58 +0100 From: Ruben de Groot To: Ruslan Ermilov Cc: freebsd-questions@FreeBSD.ORG Subject: Re: gifconfig: interface gif0 does not exist Message-ID: <20011122122258.A20652@ei.bzerk.org> References: <20011122112401.A20438@ei.bzerk.org> <20011122125817.C48048@sunbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20011122125817.C48048@sunbay.com>; from ru@FreeBSD.ORG on Thu, Nov 22, 2001 at 12:58:17PM +0200 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 Thanks! The command: ifconfig gif0 create tunnel 192.168.179.40 192.168.179.120 Did the trick. My VPN seems to be working flawless now. On Thu, Nov 22, 2001 at 12:58:17PM +0200, Ruslan Ermilov wrote: > 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