Date: Tue, 06 Jan 1998 23:44:05 -0700 From: Robert Ricci <rricci@theonlynet.com> To: "Daniel O'Callaghan" <danny@panda.hilink.com.au> Cc: freebsd-isp@freeBSD.org Subject: Re: Giving users static IP adresses with pppd Message-ID: <34B32435.DD3B321@theonlynet.com> References: <Pine.BSF.3.91.980107143211.28150f-100000@panda.hilink.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Callaghan wrote: > > On Tue, 6 Jan 1998, Robert Ricci wrote: > > > We have a terminal server we've built that uses cyclades cards and pppd > > to handle incoming calls. Right now, people dialing in get an IP adress > > based on which modem they happen to connect to. Is there a way to set up > > pppd so that it will give certain users their own IP? For example, I > > would get the IP adress 206.29.203.20 , no matter which modem I connect > > Get ftp.hilink.com.au:/pub/FreeBSD/pppkit.tgz and look at ppplogin.sh for > scripted login style static IPs. > > For autoppp getty detection add entries like the following to > /etc/ppp/pap-secrets > > danny * "" 192.168.1.2 > * * "" > > Note that the * * "" entry needs to be last in the file. > > Danny Hmm... It doesn't seem to be working for me. After creating the pap-secrets file on our server with the following in it: rricci * "" 206.29.203.20 * * "" I can't connect correctly using ijppp. ppp dials, connects, gives me an IP address (not the one I had asked for), and disconnects without giving me time to do anything! Logging on under any other username still works correctly. Here's what shows up in the ppp log on my machine: Jan 6 23:05:08 deepthought ppp[16989]: Phase: Using interface: tun0 Jan 6 23:05:08 deepthought ppp[16989]: Phase: PPP Started. Jan 6 23:05:12 deepthought ppp[16989]: Phase: Connected! Jan 6 23:05:12 deepthought ppp[16989]: Phase: Phone: 93557788 Jan 6 23:05:37 deepthought ppp[16989]: Phase: NewPhase: Authenticate Jan 6 23:05:37 deepthought ppp[16989]: Phase: his = PAP, mine = none Jan 6 23:05:37 deepthought ppp[16989]: Phase: PAP: rricci Jan 6 23:05:37 deepthought ppp[16989]: Phase: PapInput: ACK Jan 6 23:05:37 deepthought ppp[16989]: Phase: Received PAP_ACK (Login ok) Jan 6 23:05:37 deepthought ppp[16989]: Phase: NewPhase: Network Jan 6 23:05:37 deepthought ppp[16989]: Link: myaddr = 206.29.203.196 hisaddr = 206.29.203.164 Jan 6 23:05:37 deepthought ppp[16989]: Link: OsLinkup: 206.29.203.164 Jan 6 23:05:40 deepthought ppp[16989]: Phase: NewPhase: Terminate Jan 6 23:05:40 deepthought ppp[16989]: Link: OsLinkdown: 206.29.203.164 Jan 6 23:05:40 deepthought ppp[16989]: Phase: NewPhase: Terminate Jan 6 23:05:41 deepthought ppp[16989]: Phase: Modem: Connect time: 29 secs: 344 octets in, 399 octets out Jan 6 23:05:41 deepthought ppp[16989]: Phase: total 25 bytes/sec Jan 6 23:05:41 deepthought ppp[16989]: Phase: NewPhase: Dead On the server, we have an options file for each modem. For example, options.ttyc00 contains the line 206.29.203.133:206.29.203.165 . Is this interfering with the IP address I put in pap-secrets? Can I stop it from doing so? (Putting a .ppprc file in each user's directory is not an option - I only want to give select users their own IP.) Any ideas? Thanks. Robert Ricci rricci@theonlynet.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?34B32435.DD3B321>