Configuration of PPPOE dial-up Server Based on Linux

Source: Internet
Author: User
Tags routeros
Article Title: configuration of PPPOE dial-up server based on Linux System. 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.

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 (set IP address, subnet mask, Gateway: 10.70.10.15/255.255.0.0 10.70.0.1), and The Eth0 Nic to connect to the Intranet (for security reasons, do not set IP addresses or other information ).

  LINUX network settings

Although you can also set an IP address for the network card in the graphic interface, but the real implementation of the network card IP address and other information is accurate and reliable, you still need to set in the corresponding file, we need to set two network cards this time, the edited file is as follows:

[Root @ localhost network-scripts] # pwd

/Etc/sysconfig/network-scripts

[Root @ localhost network-scripts] # ifcfg-eth0 more

TYPE = "Ethernet"

BOOTPROTO = "static"

IPADDR = "0.0.0.0"

DEVICE = "lan"

HWADDR = "00: 0C: 29: 33: 69: 86"

ONBOOT = "yes"

NETMASK = "0.0.0.0"

[Root @ localhost network-scripts] # ifcfg-eth1 more

TYPE = "Ethernet"

BOOTPROTO = "static"

IPADDR = "10.70.10.11"

DEVICE = "wan"

HWADDR = "00: 0C: 29: 33: 69: 90"

ONBOOT = "yes"

NETMASK = "255.255.0.0"

GATEWAY = "10.70.0.1"

Let's take a look at the ifcfg-eth1 configuration file, where ONBOOT = "yes" is required, can ensure that the system starts the NIC automatically connected to the network, the gateway information is we manually add out, make sure that there is a gateway to access the external network, as long as the ifcfg-eth0 file to ensure that ONBOOT = "yes" can be, of course, as in routeros, we define the Internet port name as wan and the Intranet port name as lan.

  PPPOE service settings

(1) check whether the PPPOE service is installed on the local machine.

[Root @ localhost network-scripts] # rpm-q rp-pppoe

Rp-pppoe-3.5-35

The preceding information indicates that

[1] [2] Next page

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.