Centos系统下载大全 | Redhat系统下载大全 | Windows2012系统下载大全 | Windows2008系统下载大全| CMS教程 | 网站地图 51运维网-专注Linux/Unix系统安全运维!
当前位置:51运维网 > 入门 > Linux入门 > 正文

CentOS 6.4 电信ADSL 拨号连接的配置

时间:2016-07-04 23:55 来源:网络整理 作者:linux系统 阅读:

 

CentOS 电信ADSL 拨号连接配置


1.下载 rp-pppoe-3.8.tar.gz  

 

2.安装 rp-pppoe(对文件所在文件夹右键在终端打开)

解压 rp-pppoe-3.8.tar.gz :


#tar -zxf rp-pppoe-3.8.tar.gz


进入生成的目录:


#cd rp-pppoe-3.8


在所在目录内运行脚本 go:


#./go


将自动进行编译和安装

 

3、网络配置 (红色为输入,蓝色为注释)

 

[root@Cheng liaojch3]# 



Welcome to the Roaring Penguin PPPoE client setup.  
First, I will run some checks on your system to make sure the PPPoE client is installed properly...


Looks good!  


Now, please enter some information:


USER NAME


INTERFACE
>>> Enter the Ethernet interface connected to the DSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.



Do you want the link to come up on demand, or stay up continuously?
If you want it to come up on demand, enter the idle time in seconds after which the link should be dropped.  
If you want the link to stay up permanently, enter 'no' (two letters, lower-case.)

NOTE: Demand-activated links do not interact well with dynamic IP
addresses.  You may have some problems with demand-activated links.




DNS

Please enter the IP address of your ISP's primary DNS server.
If your ISP claims that 'the server will provide DNS addresses', enter 'server' (all lower-case) here.
If you just press enter, I will assume you know what you are doing and not modify your DNS setup.

>>> Enter the DNS information here: 202.96.128.86              (输入首选 DNS 地址,这个很重要,我一开始看网上是填 sever 表示自动获取DNS,但没有成功,

                                                                                                              后来我查了自己所在城市DNS地址,这里是广东“其他地区”的首选DNS,建议百度自己的DNS地址)



Please enter the IP address of your ISP's secondary DNS server.

If you just press enter, I will assume there is only one DNS server.

>>> Enter the secondary DNS server address here: 202.96.128.143                    (备用 DNS 地址,同样查一下)



PASSWORD


>>> Please enter your PPPoE password:                     (输入密码)


>>> Please re-enter your PPPoE password:                (再次输入密码)



FIREWALLING


Please choose the firewall rules to use.  
Note that these rules are very basic.  
You are strongly encouraged to use a more sophisticated firewall setup; however, these will provide basic security.  
If you are running any servers on your machine, you must choose 'NONE' and set up firewalling yourself.  
Otherwise, the firewall rules will deny access to all standard servers like Web, e-mail, ftp, etc.  
If you are using SSH, the rules will block outgoing SSH connections which allocate a privileged source port.

The firewall choices are:
0 - NONE: This script will not set any firewall rules.  You are responsible for ensuring the security of your machine.  
You are STRONGLY  recommended to use some kind of firewall rules.

1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation

2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway
  for a LAN




** Summary of what you entered **
Ethernet 
Interface: eth0

User name: cz743720

Activate-on-demand: No

Primary DNS:202.96.128.86

Secondary DNS:202.96.128.143

Firewalling:NONE






Adjusting /etc/ppp/pppoe.conf
Adjusting /etc/resolv.conf  (But first backing it up to /etc/resolv.conf-bak)
Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets  (But first backing it up to /etc/ppp/pap-secrets-bak)  (But first backing it up to /etc/ppp/chap-secrets-bak)


Congratulations, it should be all set up!


Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring
it down.  Type 'pppoe-status' to see the link status.




. Connected!                     (连接成功,你可以用 ping 进行测试一下)

 

4、上网命令(用 root 权限)

拨号上网     pppoe-start
断开上网     pppoe-stop
查看状态     pppoe-status

 

 


 

感谢您对【51运维网 http://www.51ou.com/】的支持,我们为您免费提供《CentOS 6.4 电信ADSL 拨号连接的配置》技术文章,《CentOS 6.4 电信ADSL 拨号连接的配置》详细使用和说明,有时《CentOS 6.4 电信ADSL 拨号连接的配置》可能不完善、敬请谅解!如果《CentOS 6.4 电信ADSL 拨号连接的配置》有错误请给我们留言,我们将尽快修复文章错误,如果您觉得本站不错,请分享给周围的朋友!谢谢!

顶一下
(0)
0%
踩一下
(0)
0%
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
验证码:点击我更换图片