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