Configure PPPoE on CentOS7

Source: Internet
Author: User

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

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.