🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.networking
Article #573

Re: Using DIP

#573
From: Graham Irvine
Date: Sun, 14 Jul 1996 00:00
125 lines
3536 bytes
In article <19960713.190839.98@swmiller.demon.co.uk>,
	simon@swmiller.demon.co.uk (Simon Miller) writes:
> I've been using the DIP utility as supplied with Slackware Linux.
> My modem is a USR Sportster 14,400.  If anybody has used DIP with Demon
> and/or a USR Sportster, I'd be very grateful for any help you could offer.
> 
> Somebody did suggest that I might try PPP instead - any suggestions along
> that line?
> 
> Many thanks!
> 
> 
> This is the script file that I've been using:
>
Try this one .. I have added 3 or 4 #notes of things eeithere missing from
your script or troublesome. 

 
# /etc/slip.dip

  chatkey       NO\sDIALTONE    5
 
main:
  print Initializing networking parameters ...
  get $local 158.152.168.77    # use IP address
  get $remote 158.152.1.122    # use this as gateway
  netmask 255.255.255.0        # set a netmask 

  print Initializing serial port and modem ...
  print
  get $retries 0
  port cua1                    
  if $errlvl != 0 goto bad_tty
  speed 57600
  reset     # this might be a possible reason for your problems
  init      # add your init string here , but you shouldn't need to IMO.

redial:
# Set max. retries
  if $retries == 10 goto busy_end
  inc $retries
  print [ $retries ] Dialing to $remote [ $rmtip ]

  dial 3389667
  if $errlvl == 3 goto busy
  if $errlvl == 4 goto no_carrier
  if $errlvl == 5 goto no_dialtone
  if $errlvl != 1 goto error

login:
  wait ogin: 10
  if $errlvl != 0 goto login_err
  send grasper\r         # note \r you were using \n that does not work
  wait ord: 5
  if $errlvl != 0 goto passwd_err
  send PASSWD_HERE\r
  wait otocol: 5
  send slip,mru=576\r   # NOTE mru=576 (default for Dip is 296 iirc)

 get $mtu 576
 default     # you need this to set up routing 
 
  print CONNECTED to $remote with address $local
  mode SLIP
  goto exit
 

busy:
  print [ $retries ] Dialing failed (BUSY), repeating after delay (15 sec)...
  print
  sleep 15
  goto redial
 
busy_end:
  print The SLIP line is still busy. Try again later ...
  goto exit_warn

bad_tty:
  print Can't open TTY line ...
  goto exit_error

login_err:
  print Error sending login name
  goto exit_error

passwd_err:
  print Error sending password
  goto exit_error

no_carrier:
  print Dialing failed (NO CARRIER)
  goto exit_error

no_ip_address:
  print Can't get (local) IP address from $remote
  goto exit_error

no_slip:
  print Protocol not supported on remote host?
  goto exit_error

no_dialtone:
  print Dialing failed (NO DIALTONE)
  goto exit_warn

error:
  print SLIP to $remote [ $rmtip ] failed

exit_error:
  exit 10

exit_warn:
  exit 5

exit:


hope that helps ...


-- 
--------- Falcon030/32  Linux68K --------        
Graham Irvine  graham@grasper.demon.co.uk
-----------------------------------------
Technical Details
Message-ID: <837386439.23779.0@grasper.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <19960713.190839.98@swmiller.demon.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10669a,8673e93701d03d66
X-Google-Attributes: gid10669a,public
X-Google-Thread: 108f6a,8673e93701d03d66
X-Google-Attributes: gid108f6a,public
From: graham@grasper.demon.co.uk (Graham Irvine)
Subject: Re: Using DIP
Date: 1996/07/14
Message-ID: <837386439.23779.0@grasper.demon.co.uk>
X-Deja-AN: 168743569
x-nntp-posting-host: grasper.demon.co.uk
references: <19960713.190839.98@swmiller.demon.co.uk>
content-type: text/plain; charset=us-ascii
mime-version: 1.0
newsgroups: comp.os.linux.networking,demon.ip.support.unix
originator: graham@grasper.demon.co.uk