PPP Problems

PPP Problems

Post by James McCart » Thu, 25 Mar 1999 04:00:00



i can't get a connection with my ISP, Netcom. I am following the procedures
outlined on their web support page, that is:

Subject: Your WebTech Support Query

Connecting to Netcom with Linux

  SETTING UP DNS

  Put the following in /etc/resolv.conf:

        domain netcom.ca
        nameserver 207.181.101.4
        nameserver 207.181.101.5

  THE CHAT SCRIPT

   Put the following in /etc/ppp/chatscript:

ABORT 'NO CARRIER'
        ABORT BUSY
        "" ATZ
        OK ATDT3418903
        CONNECT ""
        ogin: ""
        ogin: ca,ppp,(username)
        ssword: (password)

  THE PPPD CONFIGURATION FILE

Put the following in /etc/ppp/options:
asyncmap 0
        crtscts

  THE PPP-ON SCRIPT

   This is the shell script you run to bring your connection up. Put the
   following in /usr/sbin/ppp-on:
#!/bin/sh
        #
        #  ppp-on - Set up a PPP link
        #

        CFG_DIR=/etc/ppp
        LOCKDIR=/var/lock

        # Change this to suit
        # cua0 = COM1, cua1 = COM2, cua2 = COM3, cua3 = COM4
        DEVICE=cua0
        # use this dummy IP address for dynamic IP
        MYIP=0.0.0.0

        if [ -f $LOCKDIR/LCK..$DEVICE ]; then
        echo "PPP device is locked"
        exit 1
        fi

        /usr/sbin/pppd -d /dev/$DEVICE 115200 connect "/usr/sbin/chat -v -f
$CF
G_DIR/chatscript" defaultroute $MYIP: && exit 0

        echo "PPP call failed"
        exit 1

  THE PPP-OFF SCRIPT

   This is the shell script you run to take your connection down. Put the
   following in /usr/sbin/ppp-off:
#!/bin/sh
        #
        #  ppp-off - Take down a PPP link
        #

        if [ "$1" = "" ]; then
        DEVICE=ppp0
        else
        DEVICE=$1
        fi

        if [ -r /var/run/$DEVICE.pid ]
        then
        kill -INT `cat /var/run/$DEVICE.pid`
        if [ ! "$?" = "0" ]; then
        rm -f /var/run/$DEVICE.pid
        echo "ERROR: Removed stale pid file"
        exit 1
        fi
        echo "PPP link to $DEVICE terminated."
        exit 0
        fi

        echo "ERROR: PPP link is not active on $DEVICE"
        exit 1

   you try to connect, you should watch this file for possible problems.
   To do this, type:
tail -f /var/log/messages

   Press Ctrl-C when you're done. If all goes well, you'll see something
   similar to the following:
  (TODO: Sample connection log)

   To check the status of the PPP interface, type:
ifconfig ppp0

  The output should be similar to the following. If the command
   generated no output, the link is not up.
ppp0  Link encap:Point-Point Protocol
        inet addr:194.42.230.24  P-t-P:194.42.225.138  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:5513 errors:0 dropped:0 overruns:0
          TX packets:6351 errors:0 dropped:0 overruns:0

When i run the previous command, all of the addresses have a 0 in each
octet.

I have also tried using a script-based connection using KPPP, and the script
sends the login name and password, and then the modem hangs up, and I get
the following message in the log window:

pppd timed out

Does anyone have any idea what's wrong?

 
 
 

PPP Problems

Post by Steven Brook » Fri, 26 Mar 1999 04:00:00



>    This is the shell script you run to bring your connection up. Put the
>    following in /usr/sbin/ppp-on:
> #!/bin/sh
>         #
>         #  ppp-on - Set up a PPP link
>         #

>         CFG_DIR=/etc/ppp
>         LOCKDIR=/var/lock

>         # Change this to suit
>         # cua0 = COM1, cua1 = COM2, cua2 = COM3, cua3 = COM4
>         DEVICE=cua0
>         # use this dummy IP address for dynamic IP
>         MYIP=0.0.0.0

>         if [ -f $LOCKDIR/LCK..$DEVICE ]; then
>         echo "PPP device is locked"
>         exit 1
>         fi

>         /usr/sbin/pppd -d /dev/$DEVICE 115200 connect "/usr/sbin/chat -v -f
> $CF
> G_DIR/chatscript" defaultroute $MYIP: && exit 0

Try taking out the $MYIP and using:
    /usr/sbin/pppd /dev/$DEVICE 115200 connect "/usr/sbin/chat -v -f $CF
G_DIR/chatscript" defaultroute modem lock crtscts

(modem tells it you're using a modem, lock tells it lock the modem and
crtscts tells it to use hardware flow control)

Steven