热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

CentOS6.4电信ADSL拨号连接的配置

1.下载rp-pppoe-3.8.tar.gzhttp://down1.chinaunix.net/distfiles/rp-pppoe-3.8.tar.gz2.安装rp-pppoe(对文件所在文件夹右键在终端打开)解压rp-pppoe-3.8.tar.gz:#tar-zxfrp-pppoe-3.8.tar.gz

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

http://down1.chinaunix.net/distfiles/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]# pppoe-setup             (输入 pppoe-setup )



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
>>> Enter your PPPoE user name (default cz743720): cz743720              (输入上网账号)

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.
(default eth0): eth0                 (选择你的网卡,默认为 eth0)


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.

>>> Enter the demand value (default no): no                  (这里填 no 或 直接回车)


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

>>> Choose a type of firewall (0-2): 0                     (选择防火墙,0表示不开启防火墙)


** 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

>>> Accept these settings and adjust configuration files (y/n)? y              (填 y 确认)




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.


[root@Cheng liaojch3]# pppoe-start              ( 用 pppoe-start 进行连接)

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

 

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

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


推荐阅读
  • 一次上线事故,30岁+的程序员踩坑经验之谈
    本文主要介绍了一位30岁+的程序员在一次上线事故中踩坑的经验之谈。文章提到了在双十一活动期间,作为一个在线医疗项目,他们进行了优惠折扣活动的升级改造。然而,在上线前的最后一天,由于大量数据请求,导致部分接口出现问题。作者通过部署两台opentsdb来解决问题,但读数据的opentsdb仍然经常假死。作者只能查询最近24小时的数据。这次事故给他带来了很多教训和经验。 ... [详细]
  • 本文介绍了iOS开发中检测和解决内存泄漏的方法,包括静态分析、使用instruments检查内存泄漏以及代码测试等。同时还介绍了最能挣钱的行业,包括互联网行业、娱乐行业、教育行业、智能行业和老年服务行业,并提供了选行业的技巧。 ... [详细]
  • Python脚本编写创建输出数据库并添加模型和场数据的方法
    本文介绍了使用Python脚本编写创建输出数据库并添加模型数据和场数据的方法。首先导入相应模块,然后创建输出数据库并添加材料属性、截面、部件实例、分析步和帧、节点和单元等对象。接着向输出数据库中添加场数据和历程数据,本例中只添加了节点位移。最后保存数据库文件并关闭文件。文章还提供了部分代码和Abaqus操作步骤。另外,作者还建立了关于Abaqus的学习交流群,欢迎加入并提问。 ... [详细]
  • DockerDataCenter系列(四)-离线安装UCP和DTR,Go语言社区,Golang程序员人脉社 ... [详细]
  • Centos7.6安装Gitlab教程及注意事项
    本文介绍了在Centos7.6系统下安装Gitlab的详细教程,并提供了一些注意事项。教程包括查看系统版本、安装必要的软件包、配置防火墙等步骤。同时,还强调了使用阿里云服务器时的特殊配置需求,以及建议至少4GB的可用RAM来运行GitLab。 ... [详细]
  • 计算机存储系统的层次结构及其优势
    本文介绍了计算机存储系统的层次结构,包括高速缓存、主存储器和辅助存储器三个层次。通过分层存储数据可以提高程序的执行效率。计算机存储系统的层次结构将各种不同存储容量、存取速度和价格的存储器有机组合成整体,形成可寻址存储空间比主存储器空间大得多的存储整体。由于辅助存储器容量大、价格低,使得整体存储系统的平均价格降低。同时,高速缓存的存取速度可以和CPU的工作速度相匹配,进一步提高程序执行效率。 ... [详细]
  • 本文介绍了在CentOS上安装Python2.7.2的详细步骤,包括下载、解压、编译和安装等操作。同时提供了一些注意事项,以及测试安装是否成功的方法。 ... [详细]
  • iOS Swift中如何实现自动登录?
    本文介绍了在iOS Swift中如何实现自动登录的方法,包括使用故事板、SWRevealViewController等技术,以及解决用户注销后重新登录自动跳转到主页的问题。 ... [详细]
  • 本文介绍了使用SSH免密登录的步骤,包括生成公私钥、传递公钥给被登录机、修改文件权限的操作。同时提醒用户注意私钥的传递方式,建议使用U盘等离线方式传递。 ... [详细]
  • 腾讯安全平台部招聘安全工程师和数据分析工程师
    腾讯安全平台部正在招聘安全工程师和数据分析工程师。安全工程师负责安全问题和安全事件的跟踪和分析,提供安全测试技术支持;数据分析工程师负责安全产品相关系统数据统计和分析挖掘,通过用户行为数据建模为业务决策提供参考。招聘要求包括熟悉渗透测试和常见安全工具原理,精通Web漏洞,熟练使用多门编程语言等。有相关工作经验和在安全站点发表作品的候选人优先考虑。 ... [详细]
  • Sleuth+zipkin链路追踪SpringCloud微服务的解决方案
    在庞大的微服务群中,随着业务扩展,微服务个数增多,系统调用链路复杂化。Sleuth+zipkin是解决SpringCloud微服务定位和追踪的方案。通过TraceId将不同服务调用的日志串联起来,实现请求链路跟踪。通过Feign调用和Request传递TraceId,将整个调用链路的服务日志归组合并,提供定位和追踪的功能。 ... [详细]
  • PHP组合工具以及开发所需的工具
    本文介绍了PHP开发中常用的组合工具和开发所需的工具。对于数据分析软件,包括Excel、hihidata、SPSS、SAS、MARLAB、Eview以及各种BI与报表工具等。同时还介绍了PHP开发所需的PHP MySQL Apache集成环境,包括推荐的AppServ等版本。 ... [详细]
  • 如何使用PLEX播放组播、抓取信号源以及设置路由器
    本文介绍了如何使用PLEX播放组播、抓取信号源以及设置路由器。通过使用xTeve软件和M3U源,用户可以在PLEX上实现直播功能,并且可以自动匹配EPG信息和定时录制节目。同时,本文还提供了从华为itv盒子提取组播地址的方法以及如何在ASUS固件路由器上设置IPTV。在使用PLEX之前,建议先使用VLC测试是否可以正常播放UDPXY转发的iptv流。最后,本文还介绍了docker版xTeve的设置方法。 ... [详细]
  • 读手语图像识别论文笔记2
    文章目录一、前言二、笔记1.名词解释2.流程分析上一篇快速门:读手语图像识别论文笔记1(手语识别背景和方法)一、前言一句:“做完了&#x ... [详细]
  • Introduction(简介)Forbeingapowerfulobject-orientedprogramminglanguage,Cisuseda ... [详细]
author-avatar
紫云轻梦lyq
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有