江苏省吴江市双板桥路3号兴源网络

0512-63028342

ly@wjxy.net.cn

CentOS 7拨号上网(ADSL & PPPoE)

步骤概述:

1、搜寻PPPoE相关软件,本人使用的是rp-pppoe

yum search pppoe

2、使用yum安装rp-pppoe

yum install rp-pppoe -y

3、开始配置PPPoE连接

pppoe-setup

4、输入ISP提供的账户

Enter your Login Name (default root): 0512632

5、输入以太网卡代号,默认是eth0(注:CentOS 7已不是默认eth0,自行使用ifconfig命令即可找到)

(default eth0):

6、配置:若长时间连线,连线会被自动中断(我不干,选no)

Enter the demand value (default no):

7、配置主DNS服务器

Enter the DNS information here: 223.6.6.6

8、配置次DNS服务器

Enter the secondary DNS server address here: 8.8.8.8

9、两次输入PPOE账户密码以确认

Please enter your Password:
Please re-enter your Password:

10、配置普通账户是否有网络连接权限

normal user to start or stop DSL connection (default yes):

11、配置防火墙(没有特殊需求选0就OK)

Choose a type of firewall (0-2): 0

12、配置是否开机自动拨号连接

Do you want to start this connection at boot time?
Please enter no or yes (default no):yes

13、确认刚填写的配置信息

Accept these settings and adjust configuration files (y/n)? y

14、连接网络尽情享受吧!

相关命令@ 连接网络:/sbin/ifup ppp0,断开连接:/sbin/ifdown ppp0,查看网络状态:/sbin/pppoe-status

发表回复