Solved

PPP

Posted on 1998-04-24
2
381 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
  • 2
2 Comments
 
LVL 2

Accepted Solution

by:
kmrussell earned 100 total points
Comment Utility
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
Comment Utility
How did it go?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now