?
Solved

PPP

Posted on 1998-04-24
2
Medium Priority
?
419 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 200 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

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

770 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