[ale] PPP Problems

Eric Z. Ayers eric.ayers at mindspring.com
Sun Jun 20 11:04:29 EDT 1999


Here is an ip-up script we use at work.  I'm not sure if
this is what you mean, but these scripts are executed when the link
comes up or goes down.  I put them in /etc/ppp and the deamon executes 
them automatically

All I use it for is to add a route to another network when the link
comes up, and remove the route when I take the link down.  


#!/bin/sh
# /etc/ppp/ip-up <interface-name> <tty-device> <speed> <local-ip> <remote-ip>
#

ifname=$1
ttydevice=$2
speed=$3
localip=$4
remoteip=$5

# If the link from computer generation comes up, add a route to
# computer generation
case $remoteip in
        10.10.4.5)
                route add -net 10.15.0.0 gw 10.10.4.5
        ;;
esac                                              




Michael B Golden writes:
 > 	Okay, I had setup PPP on Slackware with the pppsetup and find the
 > netconf tool does not create scripts, and thus doesn't suit my purpose.
 > Therefore I have a few problems. I copied the scripts over to RedHat and
 > tried to use them. It actually starts dialing when I tell it to instead
 > of a 3 minute delay, but it doesn't work. It gets in but has a problem I
 > cannot interpret. Today it did something else, which I feel is a problem
 > on the server end and should change, but I'm not sure.
 > 
 > Here is the first error I got:
 > Jun  3 18:11:03 localhost pppd[402]: Connect: ppp0 <--> /dev/cua3
 > Jun  3 18:11:10 localhost pppd[402]: Unsupported protocol (0x8029)
 > received
 > Jun  3 18:11:11 localhost pppd[402]: Received bad configure-nak/rej:  02
 > 06 00 2d 0f 00 03 06 d1 c3 2c d5
 > Jun  3 18:11:14 localhost pppd[402]: local  IP address 209.195.44.213
 > Jun  3 18:11:14 localhost pppd[402]: remote IP address 209.195.44.215
 > 
 > The errors I got today is:
 > Jun 19 12:57:01 darkstar pppd[356]: Connect: ppp0 <--> /dev/cua3
 > Jun 19 12:57:31 darkstar pppd[356]: LCP: timeout sending Config-Requests
 > 
 > And it just hangs there.
 > 
 > Does anyone know what these mean, and how I can fix them? 
 > Also, if anyone could tell me the basics of writing my own ppp-on and
 > ppp-off scripts, I would appreciate it and the ones Slackware set up are
 > bloated. I'm not sure if it is PAP, CHAP, or MS-CHAP. I just tried each
 > in pppsetup in Slackware and one of them worked, but I'm not sure which.
 > It is connecting through a Macintosh computer, but I'm not sure if that
 > helps or not.
 > 
 > Thanks in advance.
 > 
 > ---------------------------------------------------------------------------------------------------------------------
 > Michael Golden
 > Naugrim at Juno.com (Normal, no attachments)
 > MGolden at Airapps.com (Only for messages with attachments.)
 > RedHat 5.2 (2.0.36) Linux user -- Linux Advocate
 > ---------------------------------------------------------------------------------------------------------------------
 > Michael Golden
 > Naugrim at Juno.com (Normal, no attachments)
 > MGolden at Airapps.com (Only for messages with attachments.)
 > RedHat 5.2 (2.0.36) Linux user -- Linux Advocate
 > 
 > ___________________________________________________________________
 > Get the Internet just the way you want it.
 > Free software, free e-mail, and free Internet access for a month!
 > Try Juno Web: http://dl.www.juno.com/dynoget/tagj.






More information about the Ale mailing list