Brief Introduction to PPP kernel Compilation

Source: Internet
Author: User
Tags nameserver

The PPP protocol is widely used. Common settings include ADSL and other dial-up settings. Here we will focus on the kernel compilation of the PPP protocol. Let's take a look at how to set up PPP in the kernel.

Compile the kernel to support ppp

 
 
  1. make menuconfig   
  2. network device support   
  3. ppp support   
  4. ppp multilink support   
  5. ppp support for async serial ports   
  6. ppp support for sync tty ports   
  7. ppp deflate compression   
  8. ppp BSD_compress compression   
  9. ppp over Ethernet   
  10. SLIP(serial line )support   
  11. CSLIP compressed headers 

3: Compile the dial-up tool pppd chat. Select:

 
 
  1. network application   
  2. pppd   
  3. rp-pppoe   
  4. miscellanenous application   
  5. chat 

4. Create a device Node

 
 
  1. ppp,c,108,0  

5: Create the resolv. conf file and configure dns (you can set this parameter. Use usepeerdns in the/etc/ppp/options option)

 
 
  1. /etc/ppp/resolv.conf   
  2. nameserver 211.136.20.203   
  3. nameserver 211.136.17.107  

6: Create a dialing script (the script is successfully transplanted to the Development Board under redhat9)

 
 
  1. /bin : ppp-on   
  2. ppp-off   
  3. /etc/ppp:   
  4. pap-secrets   
  5. chap-secrets   
  6. options  

If you want to view debugging information on the Development Board, compile syslogd into the kernel. After entering uclinux, you can view debugging information in/var/log/messages.

In addition, the following are some error-prone LOG information I have summarized.

"Lcp: timeout sending config-requests"

In this case, the server is not connected, so there are many kinds of errors, such as incorrect dialing number, serial port, and baud rate.

"Authentication-related"

In rh9, the default value is "auth". Therefore, the authentication username and password cannot be blank.

It seems that cdma adopts the chap authentication method, while gprs adopts the pap authentication method)

"Lcp terminated by peer"

Generally, this is caused by an authentication failure. Check options, pap-secrets, chap-secrets, and other files.

"Connect scripts failed"

This error is generally caused by the connect option. Check whether your script path, serial port, and baud rate are correct.

Another error occurs in chat sessions, such

 
 
  1. sending( )   
  2. expected ()  
  3. alarm 

Check the chat session in this case.

Last case: "Serial line is looped back."

If you encounter this situation, it proves that you are lucky --! To solve this problem, check the serial port driver and serial port connection. In addition, add "~ ", Maybe it's your solution.

-Mn no magic

Or change the baud rate. Some moden have special limitations on the baud rate.

In short, you must understand the implementation principles of ppp before dialing. Therefore, the ppp-howto FAQ must be read. I think, if you really understand howto and FAQ, dialing is a simple task.

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.