How to use Linux as a PPPOE server (1)

Source: Internet
Author: User
Tags routeros

In many environments, we all need to use Linux as PPPOE servers. In contrast to Windows, Linux emphasizes the use of command lines. Therefore, we will use the structure of the network topology to analyze the usage of the command code involved in Linux PPPOE server.

Network Topology 1

We can see that there is no difference in the network topology between using Linux as a PPPOE server and using routeros as a PPPOE server, we use the Eth1 Nic to connect to the Internet and set the IP address, subnet mask, and Gateway: 10.70.10.15/255.255.0.0 10.70.0.1). For the sake of security, the Eth0 Nic does not set the IP address or other information ).

Linux network settings

For PPPOE servers in Linux, although you can also set IP addresses for NICs in the graphic interface, but to ensure the accuracy and reliability of nic ip addresses and other information, you must set the IP addresses in the corresponding files, we need to set two NICs this time. The edited files are as follows:

 
 
  1. [root@localhost network-scripts]# pwd  
  2. /etc/sysconfig/network-scripts  
  3. [root@localhost network-scripts]# more ifcfg-eth0  
  4. TYPE="Ethernet" 
  5. BOOTPROTO="static" 
  6. IPADDR="0.0.0.0" 
  7. DEVICE="lan" 
  8. HWADDR="00:0C:29:33:69:86" 
  9. ONBOOT="yes" 
  10. NETMASK="0.0.0.0" 
  11. [root@localhost network-scripts]# more ifcfg-eth1  
  12. TYPE="Ethernet" 
  13. BOOTPROTO="static" 
  14. IPADDR="10.70.10.11" 
  15. DEVICE="wan" 
  16. HWADDR="00:0C:29:33:69:90" 
  17. ONBOOT="yes" 
  18. NETMASK="255.255.0.0" 
  19. GATEWAY="10.70.0.1" 

Linux PPPOE server settings process, we focus on look at the ifcfg-eth1 configuration files, which ONBOOT = "yes" is a must, can ensure that the system starts the network card automatically connected to the network, the gateway information is manually added to ensure that there is a gateway can access the external network, as long as the ifcfg-eth0 file to ensure that the ONBOOT = "yes" can be, of course, like in routeros, we define the Internet port name as wan and the Intranet port name as lan.


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.