Solved

PPP

Posted on 1998-04-24
2
392 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
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Changing passwords in Linux Systems 3 41
Linux as a middle box 7 64
networking details on centos 6.6 4 52
How to make a Bash alias that takes parameters 5 32
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…

895 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