*BSD News Article 34830


Return to BSD News archive

Xref: sserve comp.os.linux.help:49451 comp.os.386bsd.misc:3377
Path: sserve!newshost.anu.edu.au!munnari.oz.au!sgiblab!uhog.mit.edu!news.kei.com!sol.ctr.columbia.edu!ucsnews!ucssun1!srau
From: srau@ucssun1.sdsu.edu (Stafford A. Rau)
Newsgroups: comp.os.linux.help,comp.os.386bsd.misc
Subject: Re: DIP-Script for annex available?
Followup-To: comp.os.linux.help,comp.os.386bsd.misc
Date: 19 Aug 1994 17:07:19 GMT
Organization: San Diego State University Computing Services
Lines: 54
Message-ID: <332os7$752@gondor.sdsu.edu>
References: <327jih$12o@virusdd.GUN.de> <LLH0qc1w165w@oasys.pc.my>
NNTP-Posting-Host: 130.191.1.100
X-Newsreader: TIN [version 1.2 PL0]

Othman Ahmad (othman@oasys.pc.my) wrote:
: cyrus@virusdd.GUN.de (Ulrich Cyrus) writes:

: > Since my university has an annex terminalserver I am in need
: > of an appropriate DIP-script to login there and start SLIP.
: > The problem is, that when calling to the annex it will 
: > not give me every time the same IP-Number. Though I need
: > a script to read the "myip" from the modem-line.
: > 
: I believe you have the same problem as I'm. Your system probably uses
: BOOTP to give you an IP-Number, just like mine.

: > Does anyone know where to find such a beast?
: I believe the solution is to know how to handle bootp management system.
: Even the lowly NCSA DOS TCP/IP software can handle bootp.

I'm using dip to connect to my university's annex server using
dynamic ip assignment without any trouble.  I'm not at my linux
machine right now, but the appropriate commands go something like
this:

After you log in to the annex server and tell it to switch to slip, it
returns something like this:

Annex ip address is 111.222.333.444.  Your ip address is 111.222.333.445.

Right after this point the commands in your dip script should look like
this:

get $remote remote
get $local remote
.
.
.
mode SLIP

The ...'s are where you might want some print statements to display
the ip's on your console.

the get $remote remote means to look for the first message from the
remote machine that looks like an ip address and assign it to the
$remote variable.  Likewise, the get $local remote tells it to get 
the next ip-looking thing and assign it to $local.  When the script
ends, dip will (hopefully) do all the necessary ifconfig and route
stuff for you.

Feel free to email me if you want some more help, and I'll look at
my actual scripts.

--

Stafford A. Rau                       Senior Data Control Technician
srau@ucssun1.sdsu.edu                 Admissions and Records
srau%anr@sdsu.edu                     San Diego State University