From owner-freebsd-hackers Tue Jun 11 16:29:30 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from smurf.jnielsen.net (12-254-136-47.client.attbi.com [12.254.136.47]) by hub.freebsd.org (Postfix) with ESMTP id 2F4E637B41A for ; Tue, 11 Jun 2002 16:29:01 -0700 (PDT) Received: from max (max.local [192.168.0.9]) by smurf.jnielsen.net (8.12.3/8.12.3) with SMTP id g5BNSxYf000497; Tue, 11 Jun 2002 17:28:59 -0600 (MDT) (envelope-from hackers@jnielsen.net) Message-ID: <01c601c2119f$e3e9ae50$0900a8c0@max> From: "John Nielsen" To: "Lars Eggert" Cc: References: <015301c2117d$0db539c0$0900a8c0@max> <3D06761F.7000904@isi.edu> Subject: Re: gif(4) tunnel through MSN DSL modem Date: Tue, 11 Jun 2002 17:29:53 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Lars Eggert" To: "John Nielsen" Cc: Sent: Tuesday, June 11, 2002 4:13 PM Subject: Re: gif(4) tunnel through MSN DSL modem > John Nielsen wrote: > > [excerpts from rc.conf on far (DSL) end] > > # Private interface > > ifconfig_xl0="inet 192.168.6.1 netmask 255.255.255.0" > > # "Public" interface -- 192.168.1.2 netmask 255.255.255.252" > > ifconfig_ed0="DHCP" > > gif_interfaces="gif0" > > gifconfig_gif0="DSL.public.ip myend.public.ip" > > ifconfig_gif0="192.168.6.1 192.168.0.1" > > static_routes="john" > > route_john="-net 192.168.0 -interface gif0" > > The problem (one part, at least) is that you use the same IP address > (192.168.6.1) on your xl0 and gif0 interfaces (on both ends). You'll > want the tunnel addresses to be in a different subnet. I have another tunnel set up this way and it works fine. Why should the tunnel addresses be on a different subnet? > Also, the netmask in the infconfig_xl0 line doesn't match the comment, > which one is wrong? The public interface (ed0) always gets the same address from the DSL modem, even though it's using DHCP. I think you associated the comment with the wrong ifconfig line (I've added a break between them to clarify). I'm starting to think that it would be easier to use ppp/tun and ssh rather than gif in this instance, even though I'm less familiar with that arrangement. JN To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message