Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jun 2002 17:29:53 -0600
From:      "John Nielsen" <hackers@jnielsen.net>
To:        "Lars Eggert" <larse@ISI.EDU>
Cc:        <hackers@FreeBSD.ORG>
Subject:   Re: gif(4) tunnel through MSN DSL modem
Message-ID:  <01c601c2119f$e3e9ae50$0900a8c0@max>
References:  <015301c2117d$0db539c0$0900a8c0@max> <3D06761F.7000904@isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "Lars Eggert" <larse@ISI.EDU>
To: "John Nielsen" <hackers@jnielsen.net>
Cc: <hackers@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01c601c2119f$e3e9ae50$0900a8c0>