Solved

PPP

Posted on 1998-04-24
2
412 Views
Last Modified: 2010-04-22
I'm trying to configure Linux to connect to the Internet, but
it just won't seem to do it. Any suggestions? Are there specific scripts
that I can use? What files need to be chmoded? Is there an easier way to
do it in X Windows? thanks.

0
Comment
Question by:jbwilson
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
kmrussell earned 100 total points
ID: 1634303
1. Make Sure that you have the two programs 'pppd' and 'chat' by doing a 'whereis <file name>' command on both of these.
2. Then run the program that is called 'netconfig'. This program will ask such questions such as hostname, ip address
(input 0.0.0.0 for dynamic), your subnet mask, and the nameserver (only asks for one, but you can put in other ones later).
3. After you run netconfig you must create an options file and a connection script. Both of these files go in the /etc/ppp
directory. The first file is called options, here is an example:

/etc/ppp/options
#!/bin/sh /dev/cua1 (cua1 = COM2 in DOS, cua0 = COM1 in DOS and so on....)
38400 (put the speed here)
connect /etc/ppp/isp-connect (the name of the Linux connection script)
crtscts (hardware flow control)
defaultroute (routing option)
if you have a static ip address then put it here followed by a ':'
ex: 206.43.137.206:

Save this file as options in the /etc/ppp/ directory. The next file is called 'isp-connect' and should be placed
within the /etc/ppp directory and saved as /etc/ppp/isp-connect. Here is an example:

/etc/ppp/isp-connect
#!/bin/sh
/usr/sbin/chat -v ABORT BUSY ABORT 'NO CARRIER' "" ATZ OK
ATDT<telephone number> CONNECT \r ogin: <username> ssword:
<password>

Save this file as /etc/ppp/isp-connect and set the file permission of this 'isp-connect' file to 755 'chmod
755'.

4. After the creation of these two file you might want to create a little program that will alert you when you are
connected and disconnected in X Windows. (This is optional). If you create two files ('ip-up' & 'ip-down') in /etc/ppp and
set the file permissions of those to 755, they will give you a little warning messages in X Windows.

ip-up
xmessage -center "Connection Established."
ip-down
xmessage -center "Connection down."

5. Alter the resolv.conf file in /etc to say:
domain isp.net (the domain of your service provider)
nameserver 206.85.92.2
nameserver 206.85.92.60
nameserver 206.85.92.79

This will enhance your Linux viewing performance.

6. Finally, to connect to ISP, you need to type 'pppd' and wait for it to dial and then periodically check the
'ifconfig' function to see if ppp0 shows up as a network protocol. Another way to see what happens is to type 'less
/var/adm/messages' and go to the end and see if it gives you the message of local IP and remote IP, this is when you're
connected.
0
 
LVL 2

Expert Comment

by:kmrussell
ID: 1634304
How did it go?
0

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
In this post we will learn different types of Android Layout and some basics of an Android App.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question