Configure pppoe server in Linux

Source: Internet
Author: User
In Linux, configure the pppoe server-Linux Enterprise Application-Linux server application information. For more information, see. System Environment:
Fedora 4 2.6.11 i386
Rp-pppoe-3.5-27

Configuration implementation:

1. Check whether the PPPOE server is installed.
Rpm-q rp-pppoe
If not, you can download it at www.roaringpenguin.com/pppoe/.

2. Configure the system to support IP Forwarding
Modify the/etc/sysctl. conf file: net. ipv4.ip _ forward = 1

3. Modify the PPPOE authentication method
Modify/etc/ppp/pppoe-server-options. The content is as follows:
Require-chap # Use the chap authentication protocol. If the pap authentication protocol is used, this behavior is require-pap.
Login
Lcp-echo-interval 10
Lcp-echo-failure 2
Ms-dns 202.96.134.133 # The DNS assigned to the client
Ms-dns 202.96.128.68

4. Add an authentication account
Modify/etc/ppp/chap-secrets and add an account # If pap verification is used, modify/etc/ppp/pap-secrets
Username * password *

5. Start the pppoe Server
Pppoe-server-I eth0-L 192.168.0.1-R 192.168.0.5-N 10
-I eth0: Specify the NIC interface on which the pppoe server listens for connection requests.
-L 192.168.0.1: Specify the IP address of the pppoe server. (Note: This IP address is not the IP address of the NIC, but the virtual IP address of the PPPOE server)
-R 192.168.0.5: the IP address assigned to the client by the pppoe server, starting from 192.168.0.5, increments
-N 10: Maximum number of clients that can connect to the pppoe Server

6. Disable the PPPOE Server
Killall pppoe-server

Note:
1. If the pap verification method is used, pppoe dialing provided by Windows XP or above cannot be used. The possible cause is that pap uses the plaintext password for verification, while the password stored in windows is encrypted and cannot be restored. Therefore, windows cannot provide the plaintext password.

2. configuration in/etc/ppp/pppoe-server-options and/etc/ppp/options can be used in any file.

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.