![]() |
|
|
|
|
|
Setting up PPP and KPPPD
By Vans Information <vcontent@vsnl.com>
PPP (Point to Point Protocol) is used to connect the Red hat Linux system to the ISP through the modem. PPP is faster and more efficient. It uses the TCP/IP network protocol. SLIP(Serial Line Interface Protocol) is also used as the replacement but it is not as successful as PPP. Most of the ISP's prefer PPP. Setting up PPP This IP address 127.0.0.1 is always reserved for all the local machines in
a network. After writing to the /etc/hosts file, the following commands has
to be given by logging in as root. The two components used by PPP on your system are: When the Red Hat Linux is installed, PPP usually comes along with it. In case of its absence, we have to collect them from the Linux web sites, or else they have to be installed directly from the CD using the "rpm" command. rpm -ivh /mnt/cdrom/Redhat/RMPS/ppp -2*rpm As we are connecting our machine to the internet, we have to create a separate
logging in order to prevent the hackers. By writing into the "/etc/passwd"
file, Then the chat handles the control over to pppd. It can be manually started
by
Kppp is the front end for pppd and is a dialer. The dialling process in the
ISP is automated by the kppp. It helps us to monitor the entire process. Kppp
allows network set-up and interactive script generation. It will provide a set
of statistics, which is useful to maintain all the activities in the modem.
A script generator and a built in terminal provides easiness on setting up the
connection. Kppp features elaborate phone cost accounting, which enables you
to easily track you online costs. There is no need to set up any additional
programs to set-up and monitor the system. Steps for Installation of KPPPD Run kppp (either by clicking the K button at the bottom left of your screen, or running "kppp&" from the command prompt. Click on the "Setup" Click on the "New" Type in a name for the connection (such as, "VSNL", "Satyam", etc.) Type in the phone number. You may use character such as "-" to make the number more legible. kppp will attempt to execute the command specified here once a ppp link has been set up. This will bring up the pppd arguments dialog. You may use this dialog to add any desired options that you want kppp to hand to pppd. Make sure that it always contains the -detach option. See the pppd man page for a list of available options. Unless you know exactly what you are doing you should restrain from tinkering with the pppd options. Select the authentication type ("Script-based" for VSNL dial-up, "PAP" for Satyam or VSNL ISDN). Enter any DNS data. Your present DNS setup on your Linux machine as configured. Specify the domain name for your machine. As with DNS Addresses it is restored to the original specified in „/etc/resolv.conf" when the connection goes down. If it is left blank no changes are made to the domain name specified in /etc/resolv.conf Add the Domain Name servers assigned to you by your ISP. You must specify at least a Domain Name server for your OS to be able to resolve human readable IP addresses such as ftp.kde.org. The DNS server addresses supplied must be in numeric form, e.g 128.231.231.233. The addresses will be added at runtime to „/etc/resolv.config". If you are using PAP authentication then that's all you need to configure for
the account. If your ISP just gave you a user id and a password for a PAP account
the odds are that you can skip this section and that you will get by just reading
the next one entitled 'PAP with kppp'. If you are using VSNL dialup (not ISDN) then you also have to define the login
script-click on the tab "Login Script", and enter the script as: Click on "Device" and set it up for your modem. The defaults should be good enough. (Remember that ttyS0 is COM1, and ttyS1 is COM2) Modem Device: /dev/ttyS0 Enable Lockfile and set the modem timeout to 30 or 60 seconds (30 is usually enough for tone dialing exchanges). Click on "Modem". Make sure that "Modem asserts CD line" is not enabled. Set "Busy Wait" to the number of seconds you want to wait between attempts (probably 0) One reason you might want to send the modem commands directly is if you have
a set of modem configurations you want to keep, and not have to specify for
every connection. A good way to do that is via modem profiles. Modems can have
several stored profiles numbered 0,1,... AT&V can be used to view them all.
The default profile is usually 0 (this can be changed via AT&Y.) The profile
currently in use is called the "active" profile. Click on Modem Commands, and set your favorite initialization string: In most cases "AT&FX1L3S10=200" should be enough. If you have to dial Pulse instead of Tone, change the Dial String from ATDT to ATDP. Click on OK. Now to see if your modem is talking to the serial port, click on Query modem, after a few seconds you should see some results, and should also see the send or receive lights on your modem flashing. If they don't (and if Data Terminal Ready-DTR dosen't come on) then you have selected the wrong modem port, correct that in the Device setting. If the lights flash but you still get an error message, your port speed in Device is probably too high, change it to 57600 or lower. When kppp opens the serial port, the DTR line is pulled low, on an external modem, you can see the DTR (or TR) light come on when this happens. When the TR light goes out (because kppp has closed the serial port, or something worse!), the modem will hang-up Finally, click on the PPP tab, and enable all settings except "Quit on Disconnect". Set pppd timeout to 30 seconds. Click on OK. Repeat this entire sequence for any other dialup accounts you want to define. Create the file /etc/ppp/ip-up.local, and put the following commands. #!/bin/sh /usr/bin/killall -9 named /usr/sbin/named/etc/named.conf.online grep -v pppconnection /etc/hosts > /tmp/hosts.tmp echo "$4 pppconnection" >> /tmp/hosts.tmp mv /tmp/hosts.tmp /etc/hosts ntpdate 128.175.1.3 &> /dev/null & wall "Internet connection established ($4)" echo 'date' CONNECT $4 >> /var/log/ppplog Save the file. Create the file /etc/ppp/ip-down.local, and out the following commands : #!/bin/sh Make both files executable: Copy the file "/etc/named.conf" to "/etc/named.conf.online". Then edit the file "/etc/named.conf" and remove the following 4 lines from it: Zone "." { Save the file. Set "Connect to" to the account you want to dial, enable "Show Log Window", and hit the Connect button. The System will now start dialing. You can watch the progress in the log window. Once you are connected, the Connection window will minimize in the right bottom corner. To disconnect, click on the modem icon and choose Disconnect. Fire up Netscape if you haven't used K>utilities>Menu Editor to add Netscape to the menu, just open a terminal window and type "Netscape &". There, this is the end. Now get ready for a practical ride on KPPPD in your own machine.
Other articles by Vans Information
Current Rating: [ 5.06 / 10 ]
Number of Times Rated: [ 18 ]
|
|
|
© 1998-2004 FreeOS Technologies (I) Pvt. Ltd. All rights reserved.
[Privacy Policy]
![]() |