| PPP Setup Guide |
Janou's Red Hat Linux PPP setup HOWTO
For this document to work on your system you need to have PPP support
in your kernel and have your modem installed on a serial port with a symbolic
link from the serial port to /dev/modem. If you are unsure of the above
information,
The basic networking information files you need to edit are located in your /etc directory. * /etc/hosts
Modify your /etc/hosts file so that it resembles the following: 127.0.0.1 localhost.localdomain localhost
Your IP address is dynamic, so you must set it to 0.0.0.0. For the mnemonic address, replace UserID in the example above with your User ID. Setting the name here will not make your machine known to the world as "UserID".your.ISP.com, but it doesn't hurt to use it. Modify your /etc/host.conf (if necessary) to the following: order hosts,bind
Modify /etc/resolv.conf to include your ISP's DNS servers: search domain.com
Replace domain with your ISP's as per your account and the IP addresses with your ISPs address(es) Add the following line to your /etc/hosts.deny file: ALL: ALL Add the following line to your /etc/hosts.allow file: ALL: 127.0.0.1 Add the following to your /etc/ppp/options file (if it doesn't exist, then create one): #----/etc/ppp/options----
You will need to make a few changes to this file. The first one being the DTE speed, which is currently set to 57600. DTE is the speed between your computer and modem. The following should be followed : 14.4 Modem : 19200
The next variable you will need to take a look at is the init string. The init string in this case is ATS11=40, which is a basic init string. Use the init string recommended by your modem manufacturer. The telephone number you dial to access your ISP is the next thing we need to take a look at. Directly after the 'ATDT', replace phoneno with your access number. (Example: ATDT7177703500 or ATDT*70,7177703500 to disable call waiting) Now you are ready to enter your login and password. After 'ogin',
enter your User ID. Your password will go after 'word'.
connect "/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' ' '
That's all of the file modifications. Now, we need to set up your modem. as root in a console, type: ln -s /dev/cuaX /dev/modem The "X" is the com port # that the modem will be assigned to. Be advised that cuaX is used in kernels 2.0.36-x and 2.1.x. For 2.2.x kernels, you should make a symbolic link to /dev/modem using "ttySx" where the "x" is the com port #. After the symlink is made, you need to set the serial port parameters: setserial /dev/modem auto_irq skip_test autoconfig The above line sets up your modem through "probing" for the irq and
other settings.
Now, you need to setup ppp0. as root, open linuxconf (type --> linuxconf at the console). Goto Newtork --> PPP/SLIP/PLIP and click the "add" button. This will add ppp0 meaning the first dialup connection. Now, choose "hardware and as the modem port, choose /dev/modem. Then go to the communications tab and enter the modem init string-- it should have ATZ in there, but I use ATS11=40 because it dials much faster and it is a factory standard. make sure that "debug connection" is enabled and enter the dialup number. Now, it's time to enter the "send/Expect parameters. >From the first Expect variable, type: Expect: ogin:
When done, click "OK" then accept all the changes. You have now set up PPP to dial out. The last thing you need now is a script to dial if you do not wish to use the ppp0 activation and deactivation feature in netcfg. Download ppp-up and read Joey's guide on setting it up. Once you set up the script, use it and if all goes well, you should be able to dial and connect to the Internet through your ISP. If you need to debug your connection, type: tail -f /var/log/messages then run the ppp script. You should see something similar to the lines below: ------BOF------
SirPlaya
Having trouble? Got questions? Require further assistance? If so please feel free to visit our Help Forums and ask the experts! |
|
Copyright © 1997 - 2010 Private World Domination Inc. All rights reserved. |
|