Why?

I prefer using ethernet to Wifi to access internet. But, I'm afraid, sometimes I have to use Wifi. So, I'm going to configure my CentOS7 to be able to access internet through both Wifi and Ethernet.

Preparation

The ethernet interface/card name is not eth0 on my CentOS7, so I have to find it out.

Way 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 is, whatever, never mind.)
/etc/sysconfig/network-scripts/ifcfg-Tenda_BJ (<--- this is my Wifi router name)

Way2:

- or, follow the GUI "Settings --> Network --> Wired",

Click the settings button on Wired panel, then swith  to "Indentity --> Name".

the value of Name is enp0s89

so 'enp0s89' is what I am looking for. This Ethernet name will be used in pppoe configuration later.

Install and setup PPPoE

1. #yum install rp-pppoe

2. You don't have to remove NetworkManager as mentioned in [1]. In fact, if you remove 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 not be eth0!>

DNS

Enter the DNS information here: <>
Enter the secondary DNS server address here: <>

PASSWORD
Please enter your Password: <input your xDSL account password>
Please 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] 让CentOS进行PPPoE拨号上网,可用于ADSL网络环境!

Configure PPPoE on CentOS7的更多相关文章

  1. Configure LDAP Server(centos7 openldap)

    1.安装openldap -server: [root@dlp ~]# yum -y install openldap-servers openldap-clients [root@dlp ~]# c ...

  2. VMWare安装

    1. VMware 的下载和安装 VMware Workstation 15 Pro for Windows(64 位)的下载地址如下: 官方试用版地址:http://www.vmware.com/c ...

  3. 国产深度学习框架mindspore-1.3.0 gpu版本无法进行源码编译

    官网地址: https://www.mindspore.cn/install 所有依赖环境 进行sudo make install 安装,最终报错: 错误记录信息: cat     /tmp/mind ...

  4. (OK) Installing Quagga—zebra—configure—make—CentOS7

    -------------------Installing Quagga # tar xzf quagga-0.99.21mr2.2.tar.gz # cd quagga-0.99.21mr2.2 / ...

  5. How to configure a static IP address on CentOS 7(CentOS7静态IP地址设置)

    Question: On CentOS 7, I want to switch from DHCP to static IP address configuration with one of my ...

  6. CentOS7.5安装Python3.7报错:configure: error: no acceptable C compiler found in $PATH --Python3

    1.问题解析 报错信息中有这样一条:configure: error: no acceptable C compiler found in $PATH即:配置错误,在$path中找不到可接受的C编译器 ...

  7. centos7安装nginx 报./configure: error: C compiler cc is not found

    CentOS 7 下 安装 nginx 执行配置命令 ./configure 时提示以下错误: 解决: 执行以下命令: yum -y install gcc gcc-c++ autoconf auto ...

  8. centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决

    开始以为是没有安装openssl, openssl-devel,安装后发现还是提示这个错误,搜索了一下evp.h,这个文件也存在.GOOGLE 了一下,在stackoverflow,找到了答案,原来是 ...

  9. PPTP&L2TP&PPPOE client and server configure

    一. PPPOE 1. server(参考http://laibulai.iteye.com/blog/1171898) (1)安装rp-pppoe:yum install rp-pppoe (2)配 ...

随机推荐

  1. 佛祖保佑,永无bug

    /* _ooOoo_ o8888888o 88" . "88 (| -_- |) O\ = /O ____/`---'\____ .' \\| |// `. / \\||| : | ...

  2. IBM Domino 9 出现 Domino Designer 您正在试图升级多用户安装。请获取正确的安装包以完成升级。 解决方案

    如果网上搜索的其他方法解决不了,那么我的这个方法可以试一下. 出现的场景: 先装好了Notes,后准备装Designer. 在装Designer解压包之后,出现下面的错误,不能安装: 您正在试图升级多 ...

  3. css添加样式的四种方式

    1. 导入样式:在 .css文件中使用@import url("...")来引入另一个css样式表 2. 外部样式:在html页面中的head中使用 link 标签引入,如< ...

  4. 黑马程序员:Java编程_7K面试题之银行业务调度系统

    =========== ASP.Net+Android+IOS开发..Net培训.期待与您交流!=========== 模拟实现银行业务调度系统逻辑,具体需求如下: 银行内有6个业务窗口,1 - 4号 ...

  5. 【转】Xcode概览:调试应用程序

    原文转自:http://www.cocoachina.com/ios/20141128/10358.html 本文由CocoaChina翻译组成员Creolophus(github主页)翻译自苹果官方 ...

  6. 【JavaScript忍者秘籍】

  7. sqlite3无法找到

    在DDMS窗口的File Explorer面板下展开system > xbin 看到sqlite3 ,点击右上角的软盘图标(pull a file from the device) 将其保存到其 ...

  8. python学习历程之split()方法获取cmd mysql 结果集

    if __name__=='__main__': FServerId = raw_input("Please input source id:") GetFileKey(FServ ...

  9. 关于C语言的问卷调查(补交)

    你对自己的未来有什么规划?做了哪些准备?(还是处于比较迷茫的状态:我做的准备是吧自己对计算机的兴趣提起来!) 你认为什么是学习?学习有什么用?现在学习动力如何?为什么?(学习就是学自己不会的东西:增加 ...

  10. HDU 1010 Tempter of the Bone(深度+剪枝)

    http://acm.hdu.edu.cn/showproblem.php?pid=1010 题意:就是给出了一个迷宫,小狗必须经过指定的步数到达出口,并且每个格子只能走一次. 首先先来介绍一下奇偶性 ...