Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 1997 10:18:06 +0000 ()
From:      "Lenzi, Sergio" <lenzi@bsi.com.br>
To:        Almondale@aol.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: IP Masquerading
Message-ID:  <Pine.BSF.3.91.970603101431.533D-100000@sergio>
In-Reply-To: <970602233548_-1229312139@emout12.mail.aol.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Mon, 2 Jun 1997 Almondale@aol.com wrote:

> Sergio:
> 
> I have gotten the ppp -alias to work. My question is: can it go on the same
> line with -auto. I seem to get an error:
> 
> %> ppp -alias -auto myisp
> 
> %> destadr must be specified with -auto
> 
> I have an ISP who gives me one IP#. I don't ever know the ISP host IP#
> though. So I have 
> 
> set ifaddr 0 xxx.xxx.xxx.xxx 255.255.255.0
> add 0 0 HISADDR
> 
> in the ppp.conf. It seems to work ok but I don't know if I can put both -auto
> and -alias on the same command line.

Ok you must have a ppp that accepts -auto see man ppp.

and in the myip entry in the ppp.conf file.....
myisp:
 set ifaddr 0 1.1.1/0
 add 0 0 1.1.1.1

this tells the ppp to accept any ip that the isp delivers..
and to add a default route to that ip.

the number 1.1.1.1 I choose at random could be 2.2.2.7 for example.

I use 1.1.1.1 because it does not exists... (I guess).

In this manner......
ppp -auto alias myisp
will do the trick.

Sergio Lenzi.

Unix consult.




Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970603101431.533D-100000>