From owner-freebsd-questions Wed Jun 4 07:50:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id HAA01807 for questions-outgoing; Wed, 4 Jun 1997 07:50:18 -0700 (PDT) Received: from server.netplus.com.br ([200.247.23.97]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id HAA01802 for ; Wed, 4 Jun 1997 07:50:13 -0700 (PDT) Received: from sergio.lenzi (root@dial03.netplus.com.br [200.247.23.102]) by server.netplus.com.br (8.7.6/8.7.3) with ESMTP id LAA01308 for ; Wed, 4 Jun 1997 11:42:54 GMT Received: (from lenzi@localhost) by sergio.lenzi (8.8.5/8.8.3) id KAA00651; Tue, 3 Jun 1997 10:18:07 GMT Date: Tue, 3 Jun 1997 10:18:06 +0000 () From: "Lenzi, Sergio" X-Sender: lenzi@sergio To: Almondale@aol.com cc: freebsd-questions@freebsd.org Subject: Re: IP Masquerading In-Reply-To: <970602233548_-1229312139@emout12.mail.aol.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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.