Date: Mon, 15 Jul 1996 07:57:51 +0930 (CST) From: Dave Edwards <davo@katy.apana.org.au> To: snar@lucky.net (Alexander Snarskii) Cc: freebsd-isp@freebsd.org Subject: Re: "Dynamic" sliplogin ? Message-ID: <199607142227.HAA10079@katy.apana.org.au> In-Reply-To: <199607141654.TAA04621@burka.carrier.kiev.ua> from Alexander Snarskii at "Jul 14, 96 07:54:20 pm"
index | next in thread | previous in thread | raw e-mail
'Alexander Snarskii scribbled..'
> From owner-freebsd-isp@freefall.freebsd.org Mon Jul 15 03:48:44 1996
> From: Alexander Snarskii <snar@lucky.net>
> Message-Id: <199607141654.TAA04621@burka.carrier.kiev.ua>
> Subject: "Dynamic" sliplogin ?
> To: freebsd-isp@freebsd.org
> Date: Sun, 14 Jul 1996 19:54:20 +0300 (UKR)
> Content-type: text/plain; charset=koi8-r
> X-Mailer: ELM [version 2.4 PL23]
> Content-Type: text
> Sender: owner-isp@freebsd.org
> X-Loop: FreeBSD.org
> Precedence: bulk
>
> Hi!
>
> Did anybody know about the tool, which works like 'sliplogin',
> but allows to dynamic ( and more than, dynamic and cached )
> assigning of remote slip addresses ?
We use sliplogin here with dynamic addressing with no problems.
Modify your /etc/sliphome/slip.login file to read..
--------
#/bin/sh -
Port=`tty`
TTY=`basename $Port`
SRC_IP=203.14.158.4
echo "Running slip.login" > $Port
sleep 5
echo "Checking for tty" > $Port
case "$TTY"
in
cuaa0)
DEST_IP=203.14.158.20;;
cuaa1)
DEST_IP=203.14.158.21;;
cuaa2)
DEST_IP=203.14.158.22;;
cuaa3)
DEST_IP=203.14.158.23;;
cuaa4)
DEST_IP=203.14.158.24;;
cuaa5)
DEST_IP=203.14.158.25;;
*)
esac
if [ x$IP = xNone ]; then
echo No IP for this port
exit 1
fi
echo >&-
/sbin/ifconfig sl$1 inet $SRC_IP $DEST_IP mtu 1006 netmask
255.255.255.255
/usr/sbin/arp -s $DEST_IP 0:40:33:33:c9:37 temp publish
echo "Your address is DEST_IP" > $Port
echo "You can start slip now.." > $Port
stty crtscts
exit 0
---------
The users will need to look for and use the IP assigned to them.
ciao
dave
--
Dave Edwards
davo@katy.apana.org.au || davo@sa.apana.org.au
Adelaide, South Australia
----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607142227.HAA10079>
