bsddip
bsddip
is a port of the Linux 'Dial-up IP' program to BSD. It
acts like a combination of pppd
and chat
, only that it
then starts connections with the SLIP protocol. Also, the language to do
the send/expect-chat is different then the one from chat
.
You can get bsddip
source from
ftp://ftp.uni-regensburg.de/pub/NetBSD-Amiga/source/bsddip-1.02-src.tar.gz.
Please see the included documentation there for further details on
setting up the dial-in process for your provider.
Here are the necessary steps:
bsddip
-script does about the same as the
chat
-script above: dial, log into a provider's modem-server, then
start SLIP after getting the parameters (IP-numbers, netmask, ...) of
the connection from the provider:
port /dev/tty00 speed 38400 reset init ATX1M0 # Insert your provider's number here dial T09419431320 # Login wait 15 username> if $errlvl != 1 goto error send MYUSERNAME\r # Passwort wait 10 assword> if $errlvl != 1 goto error send MYPASSWORD\r # Choose SLIP (#21) wait 10 or\suser\sarrow\skeys: if $errlvl != 1 goto error send 21\r # Read & digest parameters wait 10 YOURIP if $errlvl != 1 goto error get $locip remote 10 wait 10 DESTIP if $errlvl != 1 goto error get $rmtip remote 10 wait 10 NETMASK if $errlvl != 1 goto error get $netmask remote 10 get $mtu 296 default print Local IP ... $locip print Remote IP .. $rmtip print Netmask .... $netmask print MTU ........ $mtu # Start SLIP mode SLIP goto end error: print Error goto end end: print Exiting. reset
bsddip
:
If you have your dial-in information in the file `dip-script', then
you just have to give bsddip
a unique identifier, with which to
identify the connection when closing it down (e.g. dipcon
) via
the -f
-switch. Here is an example:
bsddip -f dipcon dip-script
bsddip
.
bsddip
with the
-k
-switch and the unique identifier that you gave it when
starting up the connection (with the -f
-switch):
bsddip -k -f dipcon