A PPP account from Erienet, as well as the following:
In order to make a PPP link with Erienet, you will need to make sure your
kernel has PPP support built into it. You also need to install the appropriate
networking packages, espcecially the TCP/IP package.
Once your kernel has PPP support built in and you have the TCP/IP programs on your system, you can set up the files you will need in order to dial in and establish a PPP link. There are four files involved, and their contents are listed below.
This example has /root/bin in the path, but as long as the ppp and unppp files are in your path, you can put them anywhere you want in your file system. All four files are owned by root, and you must be root in order to dial, since root is the only user id that's allowed to modify the routing table.
This is the script that starts up the PPP daemon, or pppd. The pppd reads the file /etc/ppp/options (listed below) to determine how to establish the link.
#!/bin/sh /usr/sbin/pppd /dev/modem 38400
This script kills the pppd process. When pppd receives the signal to terminate, it drops DTR on the modem in order to make it hang up. In order for this to work, make sure you have &D2 in your modem initialization string in the chat script (/etc/ppp/erienet.chat listed below.)
#!/bin/sh /bin/kill `/bin/cat /var/run/ppp0.pid`
This file tells pppd how to go about setting up the connection, and what type of connection to set up. It also controls how the modem is locked (to prevent other processes from interfering with it) and how the routing table should be set up for the link. The options here assume that the PPP link it's setting up will be the primary link from your computer to the internet.
connect "/usr/sbin/chat -v -f /etc/ppp/erienet.chat" crtscts defaultroute lock mru 296 mtu 296
This is a dialing script used by the /usr/sbin/chat program. It dials the telephone and handles logging into Erienet's system.
You will need to substitute your own user id and password here, as well as providing an initialization string to match your modem.. A modem string should start with &F (to restore the modem to the factory default conditions) and should contain the &D2 command so that the pppd can force the modem to hang up by dropping the DTR line. Also, note that if your initialization string contains a backslash (as mine does,) you will need to type it twice, since the chat program uses the backslash as an indicator for other special characters and/or actions.
ABORT BUSY ABORT 'NO CARRIER' ABORT ERROR '' ATZ OK-\d\d+++\d\d-OK ATZ OK AT&F&C1&D2\\N2%C0S11=50 OK ATDT18773278596 NECT \c ogin: userid (replace with your user id) Example: howard@erienet.net word: \qpassword (replace with your password) ning.... \c
This file controls the operation of your resolver, the piece of software that turns an internet host name (such as erienet.net) into an address (like 206.154.97.26). It also sets your domain search order- with this file, you can enter just aurora as a host name, and after trying to find the word aurora as a valid host (and failing) it will try aurora.erienet.net (and working) before giving up.
nameserver 206.154.97.26 nameserver 206.154.97.28 domain erienet.net
PLEASE NOTE: All accounts are subject to Erienet's Usage Policy.
A copy of Erienet's Usage Policy is located at http://erienet.net/agreement.html