From owner-freebsd-questions Sun Mar 24 13:17:13 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA24795 for questions-outgoing; Sun, 24 Mar 1996 13:17:13 -0800 (PST) Received: from rocky.sri.MT.net (rocky.sri.MT.net [204.182.243.10]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA24787 for ; Sun, 24 Mar 1996 13:17:06 -0800 (PST) Received: (from nate@localhost) by rocky.sri.MT.net (8.6.12/8.6.12) id OAA23447; Sun, 24 Mar 1996 14:00:51 -0700 Date: Sun, 24 Mar 1996 14:00:51 -0700 From: Nate Williams Message-Id: <199603242100.OAA23447@rocky.sri.MT.net> To: John Hay Cc: freebsd-questions@FreeBSD.ORG (FreeBSD-questions) Subject: Re: Multiple PPP dialins In-Reply-To: <199603241942.VAA28952@zibbi.mikom.csir.co.za> References: <199603241942.VAA28952@zibbi.mikom.csir.co.za> Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > What I want to do is to set up a machine with 2 or 3 modems to allow PPP > dialins. My problem isn't to get a single PPP dialin connection going, but > how to get multiple connections going with dynamic addresses. I don't want > to give everyone their own ip address. This is pretty easy to do. Basically, in your login script, you have it call tty to determine which tty is being used and then assign the IP address based on the particular line. #!/bin/sh # # Dynamic PPP login account # PATH=:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin export PATH mesg n stty -tostop case `tty` in '*ttyd1') exec pppd `hostname`:machine-A debug ;; '*ttyd2') exec pppd `hostname`:machineB debug ;; esac exit 0 I just whipped this up, so it probably won't work but it should give you an idea on how one could set it up. This also assumes you are using kernel-PPP, but the ideas should be relevant for iijppp as well. Nate