[OLUG] yet more ppp

Mark Lichtenberg markl at radiks.net
Tue Mar 7 23:39:30 UTC 2000


I you're dialing into radiks (which I think you are from your email
address), you can download scripts from radiks' site
(http://www.radiks.net/support/linuxrad.html). 

I had to change the dialing script to give some mru settings to pppd,
also the port speed to 115200. Here is the gist -->
	 
/usr/sbin/pppd /dev/ttyS2 115200 modem mru 2200 crtscts defaultroute
connect "/usr/sbin/chat -v -t 120 -f /etc/radiks.scp"

I've found that if you've got your modem dialing, the problem is in your
scripts. Try the radiks scripts. Hope this helps.

Mark Lichtenberg


mesc wrote:
> 
> Ok heres what I did,I set my modem's jumpers to com 1/irq 5 (no irq
> conflicts).On linux bootup it detected ttyS01/irq3 and ttyS02/irq 4 but
> the weird part is the only way I can get't my modem to dial out unless I
> 
> link
> it to ttyS02 and use minicom ....it won't dial out with kppp in X (I get
> 
> a modem not responding message) nor will it dial out from  the command
> line with ifup ppp0 the commamd I used to use for it.(it just hangs till
> I
> ^C it then I ge tthis message>Failed to activate ppp0 with error 8)
>   I then did cat /proc/interrupts and could see irq 4 for a serial
> port but no irq 5 for the modem,I'm not sure if thats  right shouldn't I
> 
> have seen the irq for my modem?
>  I had to disable com 1 in my bios becauses because windows could
> not detect my modem under com 1 only com 3 so I disabled it to avoid a
> irq
> conflict.
>  Seeing that it would only dial out if linked to ttyS2 I switched
> my jumpers to com 3/irq 5 but that made no  difference,it would still
> only
> dial out in minicom.
>  I then checked /var/log/messages and got the following output:
> Mar  7 14:42:06 jimbo ifup-ppp: pppd started for ppp0 on /dev/modem at
> 115200
> Mar  7 14:42:06 jimbo modprobe: can't locate module char-major-108
> Mar  7 14:42:06 jimbo pppd[1584]: pppd 2.3.10 started by root, uid 0
> Mar  7 14:42:13 jimbo pppd[1584]: Terminating on signal 15.
> Mar  7 14:42:13 jimbo chat[1594]: SIGTERM
> Mar  7 14:42:13 jimbo pppd[1584]: Connect script failed
> Mar  7 14:42:18 jimbo pppd[1584]: Exit.
> 
>  According to the pppd man page Terminating on signal 15=The link
> was terminated because the peer is not responding to echo requests.
> (scratching head)
> 
>  I've pasted the following files I configured to use with ppp.I've
> tried editing the /etc/ppp/options file like you said Mike and I've had
> no
> luck yet :(
> 
> /etc/ppp/chat
> 
> ABORT "NO CARRIER"
> ABORT "NO DIALTONE"
> ABORT "BUSY"
> "" "at"
> OK "at&d0&c1"
> OK " ATDT8275000"
> "name:" "xxxx"
> "word:" "xxxxxxx"
> TIMEOUT 60
> CONNECT
> 
> /etc/ppp/ppp-on
> 
> #!/bin/sh
> #
> # Script to initiate a ppp connection. This is the first part of the
> # pair of scripts. This is not a secure pair of scripts as the codes
> # are visible with the 'ps' command.  However, it is simple.
> #
> # These are the parameters. Change as needed.
> TELEPHONE=8275000 # The telephone number for the connection
> ACCOUNT=xxxx # The account name for logon (as in 'George Burns')
> PASSWORD=xxxxxxx # The password for this account (and 'Gracie Allen')
> LOCAL_IP=0.0.0.0 # Local IP address if known. Dynamic = 0.0.0.0
> REMOTE_IP=0.0.0.0 # Remote IP address if desired. Normally 0.0.0.0
> NETMASK=255.255.255.0 # The proper netmask if needed
> #
> # Export them so that they will be available at 'ppp-on-dialer' time.
> export TELEPHONE ACCOUNT PASSWORD
> #
> # This is the location of the script which dials the phone and logs
> # in.  Please use the absolute file name as the $PATH variable is not
> # used on the connect option.  (To do so on a 'root' account would be
> # a security hole so don't ask.)
> #
> DIALER_SCRIPT=/etc/ppp/ppp-on-dialer
> #
> # Initiate the connection
> #
> # I put most of the common options on this command. Please, don't
> # forget the 'lock' option or some programs such as mgetty will not
> # work. The asyncmap and escape will permit the PPP link to work with
> # a telnet or rlogin connection. You are welcome to make any changes
> # as desired. Don't use the 'defaultroute' option if you currently
> # have a default route to an ethernet gateway.
> #
> exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS2 57600 \
>  asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
>  noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT
> 
> /etc/ppp/ppp-on-dialer
> 
> #!/bin/sh
> #
> # This is part 2 of the ppp-on script. It will perform the connection
> # protocol for the desired connection.
> #
> exec chat -v /usr/sbin/chat     \
>  TIMEOUT  3    \
>  ABORT  '\nBUSY\r'   \
>  ABORT  '\nNO ANSWER\r'   \
>  ABORT  '\nRINGING\r\n\r\nRINGING\r' \
>  ''  \rAT    \
>  'OK-+++\c-OK' ATH0    \
>  TIMEOUT  30    \
>  OK  ATDT$TELEPHONE   \
>  CONNECT  ''    \
>  ogin:--ogin: $ACCOUNT   \
>  assword: $PASSWORD
> 
> /etc/ppp/ppp-off (I did not edit this one at all of course)
> 
> #!/bin/sh
> ######################################################################
> #
> # Determine the device to be terminated.
> #
> if [ "$1" = "" ]; then
>  DEVICE=ppp0
> else
>  DEVICE=$1
> fi
> 
> ######################################################################
> #
> # If the ppp0 pid file is present then the program is running. Stop it.
> if [ -r /var/run/$DEVICE.pid ]; then
>         kill -INT `cat /var/run/$DEVICE.pid`
> #
> # If the kill did not work then there is no process running for this
> # pid. It may also mean that the lock file will be left. You may wish
> # to delete the lock file at the same time.
>         if [ ! "$?" = "0" ]; then
>                 rm -f /var/run/$DEVICE.pid
>                 echo "ERROR: Removed stale pid file"
>                 exit 1
>         fi
> #
> # Success. Let pppd clean up its own junk.
>         echo "PPP link to $DEVICE terminated."
>         exit 0
> fi
> #
> # The ppp process is not running for ppp0
> echo "ERROR: PPP link is not active on $DEVICE"
> exit 1
> 
> I also used Lothar to detect my modem,it did not detect it.
> 
>                                   Thank you all,Gary Martin
> 
> -------------------------------------------------------------------------
> Sent by OLUG Mailing list Manager, run by ezmlm.  http://olug.bstc.net/
> To unsubscribe: `echo unsubsribe | mail olug-unsubscribe at bstc.net`

-------------------------------------------------------------------------
Sent by OLUG Mailing list Manager, run by ezmlm.  http://olug.bstc.net/ 
To unsubscribe: `echo unsubsribe | mail olug-unsubscribe at bstc.net` 



More information about the OLUG mailing list