Configure PPPoE on CentOS7
2016-03-11 17:19
543 查看
FROME:http://www.cnblogs.com/yaoyansi/p/4222554.html
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网络环境!
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网络环境!
相关文章推荐
- CentOS下Git服务器搭建
- 19幅图展现CentOS安装全过程
- 一张图让你读懂Linux内核运行原理
- Linux内核分析之三——使用gdb跟踪调试内核从start_kernel到init进程启动
- centos7下快速安装mysql
- linux c语言 select函数用法
- LINUX COMMAND NOTE
- Linux tail命令
- centos内网服务器搭建
- Linux端口详解
- Linux命令行下vim指令笔记
- Ubuntu linux系统下 su:出现: authentication failure的解决办法
- Linux下找不到so文件的解决办法
- phper的linux学习 -Lnmp搭建和svn的配置
- Linux防御小规模的DDoS攻击
- linux打开端口
- (十二)利用processing模拟现实生活中的力
- Centos 安装 PHP 5.4.3 报 configure error xml2-config
- 强悍的 Linux —— 强悍的 ls
- Centos7 HAPROXY SSL 透明代理