Why?
I prefer using Ethernet to Wi-Fi to access Internet. But, I ' m afraid, sometimes I has to use Wifi. So, I am going to configure my CentOS7 to being able to access Internet through both Wifi and Ethernet.
Preparation
The Ethernet Interface/card name is not eth0 on my CentOS7 and so I has to find it out.
The 1:
-ls/etc/sysconfig/network-scripts/ifcfg-*
/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-ENP0S89 (<---this is my Ethernet name)
/etc/sysconfig/network-scripts/ifcfg-lo (<---I don ' t know what it's, whatever, never mind.)
/ETC/SYSCONFIG/NETWORK-SCRIPTS/IFCFG-TENDA_BJ (<---this is my Wifi router name)
Way2:
-Or, follow the GUI "Settings--and Network--Wired",
Click the Settings button on Wired panel and then swith to "indentity-to-Name".
The value of Name is ENP0S89
So ' enp0s89 ' are what I am looking for. This Ethernet name is used in PPPoE configuration later.
Install and Setup PPPoE
1. #yum Install Rp-pppoe
2. You don ' t has to remove NetworkManager as mentioned in [1]. In fact, if you remove the NetworkManager, you can ' t use Wifi anymore.
3. #pppoe-setup
Enter your Login Name (default User0): <input your XDSL account name>
INTERFACE
(default eth0): <input your Ethernet card name, it May is not eth0!>
Dns
Enter The DNS information here: <>
Enter the secondary DNS server address here: <>
PASSWORD
Please enter your Password: <input your XDSL account password>
Re-enter your Password: <input your XDSL account Password again>
Userctrl
Please enter "Yes" (three letters, lower-case.) If you want to allow normal user to start or stop DSL connection (default YES):
Firewalling
Choose a type of firewall (0-2): 1
4. Connect your network:/sbin/ifup ppp0
5. Disconnect your network:/sbin/ifdown ppp0
Reference
[1] Let CentOS dial-up internet for PPPoE, can be used in the ADSL network environment!
Configure PPPoE on CentOS7