RedHat6.2 server configuration scheme (8) PPP

Source: Internet
Author: User
Article Title: RedHat6.2 server configuration solution (8) PPP. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Author: Tang haijing
  
Chapter 7 PPP
  
7.1 Introduction
  
First of all, I would like to emphasize that the PPP we are talking about here is not to configure our server as a server that provides the dial-in service, but to allow users to dial up the Internet through the server. In short, the server can automatically dial the internet according to the customer's needs, that is, the so-called On-Demand dialing.
  
Why should we introduce this configuration to you? Although many enterprises now use DDN to access the Internet, Modem still plays a role in a large extent, so we will introduce how to implement PPP automatic dial-up Internet access.
  
7.2 Required System Resources
  
7.2.1 configuration file:
File Source
/Etc/ppp/options ppp-2.3.11-4.i386.rpm
/Etc/ppp/dial administrator Creation
/Etc/rc. d/rc. local initscripts-5.00-1
  
7.2.2 related tools:
File Source
/Usr/sbin/chat ppp-2.3.11-4.i386.rpm
/Usr/sbin/pppstats ppp-2.3.11-4.i386.rpm
/Usr/sbin/pppd ppp-2.3.11-4.i386.rpm
  
7.3 configuration Scheme
  
1./etc/rc. d/rc. local
Purpose: this file is a STARTUP script. It is a project started after the service process is started. To enable automatic dialing, you should first start a PPP daemon process, the implementation method is to add a sentence in this script to enable the daemon process.
Instance:
  
  
Pppd/dev/modem 115200 connect 'chat-f-v-V/etc/ppp/dial'
#115200 indicates the connection speed and dial indicates the dialing script.
  
2./etc/ppp/options
Purpose: all options for PPP dialing are listed here.
Instance:
  
  
Demand
# On-Demand dialing
Idle 300
# If no request is sent from the server within 300 seconds, the Modem is automatically disconnected
Crtscts
Modem
Noauth
# Verification not required
Defaultroute
Asyncmap 0
Lock
Noipdefault
Name 169
# Corresponds to pap-secrets
Usepeerdns
# Capture DNS to local
  
3./etc/ppp/dial
Purpose: This is a dialing script, which uses the Modem command to implement dialing.
Instance:
  
  
"" ATZ
# Initialize Modem
OK ATDT169
# Dial-up. After the external line is 0, add ","
CONNECT ""
# Connection
Name: 169
# Username
Word: 169
# Password
  
3./etc/ppp/pap-secrets
Purpose: pap Verification
Instance:
  
  
169*169
# Note that a space must be added between 169 and *.
7.4 Test and management methods
1. You can run ps auxw | grep pppd to check whether the pppd daemon process exists.
2. If the pppd process is abnormal, run killall pppd to kill the daemon.
3. To start the daemon again, run/etc/rc. d/rc. local restart.
4. Run tail-f/var/log/message to observe the dialing process.
5. Run pppstats to check the working status of the Modem.
  
7.5 Section
  
In fact, all of this is very simple. As described above, it is not difficult to find that the implementation of the so-called On-Demand dialing should be divided into two steps: first, first, configure the server itself so that it can access the Internet by dialing. Second, write an automatic dialing configuration file to enable the Linux server to automatically dial. In fact, the principle of automatic dialing on the slave client is the same as that on the slave server. As long as there are external requests, the dialing process should be started automatically, and requests from the client should be, in the end, it will be sent to the Internet through sendmail, squid, and other slave servers. Therefore, you only need to configure automatic dialing on the server to enable automatic dialing on the client.
  
  
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.