*BSD News Article 95106


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.sesqui.net!uuneo.neosoft.com!dolphin.neosoft.com!nobody
From: conrads@neosoft.com (Conrad Sabatier)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: user PPP problem
Date: Sat, 10 May 1997 19:04:02 -0500
Organization: NeoSoft, Inc.  
Lines: 33
Message-ID: <id23l5.86.ln@dolphin.neosoft.com>
References: <01bc5bd9$49fbc980$fde955c2@iaipc0.iai.rssi.ru>
Reply-To: conrads@neosoft.com (Conrad Sabatier)
NNTP-Posting-Host: 206.27.167.69
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:40702

In article <01bc5bd9$49fbc980$fde955c2@iaipc0.iai.rssi.ru>,
	"Alexander Smirnov" <as@iai.rssi.ru> writes:
> Dear All,
> 
> I am using the user PPP to provide people with access to LAN and to the
> Internet from home.
> 
> However as soon as I got several lines I noticed that PPP assigns the same
> IP to all clients connecting with "Server assigned IP address" - for
> instance if configured
> set ifaddr 192.168.0.1 192.168.0.250/26
> in the /etc/ppp/ppp.conf it assigns 192.168.0.250 to everyone.... :()
> (192.168.0.250/26
> is configured as IP in /etc/ppp/ppp.secret for each user).
> 
> Could anyone, please tell me if this configuration is wrong? Or what could
> I do to it? (Not everyone guesses to specify an allowed IP .... :)) )
> 
> Thank you in advance.
> Sincerely yours, Alex.

Looks like you have things backwards.  Assuming 192.168.0.1 is your LAN
gateway, then you'd want:

set ifaddr 192.168.0.250/24 192.168.0.1

Also, note that if you want to mask the final octet, it's /24, not /26.
Of course, this may have just been a typo.  :-)

-- 
Conrad Sabatier
http://www.neosoft.com/~conrads