Configure PPPoE on CentOS7
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的更多相关文章
- Configure LDAP Server(centos7 openldap)
1.安装openldap -server: [root@dlp ~]# yum -y install openldap-servers openldap-clients [root@dlp ~]# c ...
- VMWare安装
1. VMware 的下载和安装 VMware Workstation 15 Pro for Windows(64 位)的下载地址如下: 官方试用版地址:http://www.vmware.com/c ...
- 国产深度学习框架mindspore-1.3.0 gpu版本无法进行源码编译
官网地址: https://www.mindspore.cn/install 所有依赖环境 进行sudo make install 安装,最终报错: 错误记录信息: cat /tmp/mind ...
- (OK) Installing Quagga—zebra—configure—make—CentOS7
-------------------Installing Quagga # tar xzf quagga-0.99.21mr2.2.tar.gz # cd quagga-0.99.21mr2.2 / ...
- 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 ...
- 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编译器 ...
- centos7安装nginx 报./configure: error: C compiler cc is not found
CentOS 7 下 安装 nginx 执行配置命令 ./configure 时提示以下错误: 解决: 执行以下命令: yum -y install gcc gcc-c++ autoconf auto ...
- centos7 php7 动态编译mysqlnd: configure: error: Cannot find OpenSSL's <evp.h> 错误解决
开始以为是没有安装openssl, openssl-devel,安装后发现还是提示这个错误,搜索了一下evp.h,这个文件也存在.GOOGLE 了一下,在stackoverflow,找到了答案,原来是 ...
- PPTP&L2TP&PPPOE client and server configure
一. PPPOE 1. server(参考http://laibulai.iteye.com/blog/1171898) (1)安装rp-pppoe:yum install rp-pppoe (2)配 ...
随机推荐
- linux /boot 清理
随着升级 /boot分区会越来越满 导致后续无法升级 原因是因为每次升级有可能升级内核 但是旧的内核没有删除 所以导致/boot一直增大 解决办法就是删除不需要的内核,一下步骤: 查看所有安装的 ...
- SpringMVC接收Post的实体/JSon数据
接口代码: @ResponseBody @RequestMapping(value = "/test",method = RequestMethod.POST)/*只允许POST方 ...
- LayaAir引擎——(八)
var a = new Array(); var b = new Array(); var ksjmCursor = 0; function ksjminit() { ksjminitName(); ...
- js 小技巧
如果想让js每次加载时,都要执行, 那么在 <script type="text/javascript" >中加一个属性reload="1", &l ...
- Xcode6中如何使用自定义的类模板
说到IOS类的模板,有些人感觉很陌生,但是只要有开发过IOS程序的人,其实都用过类的模板,只不过是用的系统自带的类的模板. 例如创建一个ClassTemplateVC继承于UIViewControll ...
- OpenGL阴影,Shadow Mapping(附源程序)
实验平台:Win7,VS2010 先上结果截图(文章最后下载程序,解压后直接运行BIN文件夹下的EXE程序): 本文描述图形学的两个最常用的阴影技术之一,Shadow Mapping方法(另一种是Sh ...
- Java中的List操作
1. 数组转List String[] arr={"1","2","3"}; List<String> list = Array ...
- C# 之泛型详解
转自牛人博客:http://www.blogjava.net/Jack2007/archive/2008/05/05/198566.html 鄙人才疏学浅,经常遇到泛型,一知半解,用的时候也是模糊不清 ...
- 关于as3调用js报“null为空或不是对象”错误
主要原因是:flash插件的object对象无ID属性. 顺便说下as3调用js的方法. as3引用: import flash.external.ExternalInterface; as3中调用 ...
- odoo-10.0 create database 失败
在初始化数据库的界面点击[create database] create database 失败 报错如下 2017-01-05 20:15:18,529 4652 INFO ? werkzeug: ...