装了linux后,因为不知道怎么连小区宽带而很是头疼,打电话问电信的客服,但是却始终不能给我解决连网的问题,还说我用的不是正常的操作系统他们解决 不了,气得我差点吐血,真是无比的郁闷,好在我不是厌学的人,几经努力终于知道了PPPOE的配置方法,现在能上网了,就贴出来和大家分享一下,在 linux下的操作基本都一样。

我用的是red hat9举例
首先查看是否安装了pppoe的rpm包,如果没安装可以在red hat9的第二张光盘上找到,
包名称为rp-pppoe-3.5-2.i386.rpm
安装好后就可以设置了,下面是具体步奏

[root@localhost root]# cd /
[root@localhost /]# adsl-setup(输入命令启动配置程序)
Welcome to the ADSL client setup. First, I will run some checks on
your system to make sure the PPPoE client is installed properly...

LOGIN NAME

Enter your Login Name (default root): 这里输入你接入小区宽带的账号

INTERFACE

Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethX, where 'X' is a number.
(default 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 dynamic 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: (这里输入你的ISP商提供给你的DNS的IP地址,不知道的话就打电话问客服)
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:( 一般都会有两个DNS地址,这里填备用的那个)

PASSWORD

Please enter your Password: 输入登录密码(这个应该能看懂吧)
Please re-enter your Password: 再确认一遍密码

USERCTRL

Please enter 'yes' (two letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): (如果允许正常用户开始或停止DSL连接,就输入YES。输入Y就可以了)

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,不用设置)
Start this connection at boot time

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

** Summary of what you entered **
(下面显示的是你设置的一些内容)
Ethernet Interface: eth0
User name: 你的登录账号
Activate-on-demand: No
Primary DNS: 主DNS
Secondary DNS: 备用DNS
Firewalling: NONE
User Control: y
Accept these settings and adjust configuration files (y/n)? (是否接受设置,填y)

Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting /etc/resolv.conf
(But first backing it up to /etc/resolv.conf.bak)
Adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(But first backing it up to /etc/ppp/chap-secrets.bak)
(But first backing it up to /etc/ppp/pap-secrets.bak)

Congratulations, it should be all set up!

Type '/sbin/ifup ppp0' to bring up your xDSL link and '/sbin/ifdown ppp0'
to bring it down.
Type '/sbin/adsl-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.
这样就设置好了,以后需要连网的时候只要输入
[root@localhost /]# adsl-start
就连接上网了,如果要断开网络输入
[root@localhost /]# adsl-stop
就可以了~
这就是我打电话问电信两天,到最后都没有给我解决的问题,现在看来好像不是很难,但是不知道的话也确实挺麻烦的,现在我是知道了,就写出来和大家分享一下,也好让和我一样的朋友们能少走点弯路~

在linux下使用PPPOE程序拨号连接小区宽带xDSL的方法相关推荐

  1. linux下下载基因组程序,从 NCBI 批量下载基因组的方法

    先下载 assembly summary files The assembly_summary files report metadata for the genome assemblies on t ...

  2. linux系统如何拨号上网连接,教你在Linux下如何使用ADSL拨号上网

    教你在Linux下如何使用ADSL拨号上网 发布时间:2007-10-29 10:22:09来源:红联作者:demon 一.如果是新手刚开始使用Linxu的话,可用图形界面: 办法:直接在网络里建立新 ...

  3. Linux下安装PPPOE SERVER

    Linux下安装PPPOE SERVER 网关研发部:童小琴.王鑫宇 安装准备 下载pppoe软件包rp-pppoe-3.8.tar.gz(或rp-pppoe-3.10.tar.gz). 在虚拟机上安 ...

  4. linux下pppoe服务器,Linux下配置pppoe服务器

    Linux下配置pppoe服务器 发布时间:2007-04-28 00:51:28来源:红联作者:readywin 系统环境: fedora 4 2.6.11 i386 rp-pppoe-3.5-27 ...

  5. Linux下的示例程序

    linux下的示例程序 #if 0 /*  * 1. 遍历目录-1  */ #include <stdio.h> #include <dirent.h> #include &l ...

  6. 远程连接Linux,如何使程序断开连接后继续运行

    摘要:远程连接到Linux终端后,如果发生意外或者人为断开了远程连接,那么正在运行的程序或命令(例如备份数据库这种比较耗时的操作)就会中断.原因是因为断开连接后,终端会收到SIGHUP(hang-up ...

  7. Linux下C/C++程序编译链接加载过程中的常见问题及解决方法

    Linux下C/C++程序编译链接加载过程中的常见问题及解决方法 1 头文件包含的问题 报错信息 该错误通常发生在编译时,常见报错信息如下: run.cpp:2:10: fatal error: dl ...

  8. linux 查看进程变量,Linux下查看进程(程序)启动时的环境变量

    Linux下查看进程(程序)启动时的环境变量 Linux的pargs ==================================== 今天又遇到一个老问题: 同事遇到了sqlplus &qu ...

  9. Linux下使用VisualVm通过JMX连接远程机器

    Linux下使用VisualVm通过JMX连接远程机器 1. 修改远程机器JDK配置文件     a.进入JAVA_HOME\jre\lib\management\目录    b.拷贝jmxremot ...

最新文章

  1. Flex4 Application中与Module通信
  2. 《Two Dozen Short Lessons in Haskell》学习(十三)迭代及重复的常规模式
  3. 经济书籍:世界是平的
  4. [vue] 说说你对SPA单页面的理解,它的优缺点分别是什么?
  5. python操作sqlite3 导入csv文件_[转载]SQLite 3导入导出成txt或csv操作
  6. ORB(Oriented FAST and Rotated BRIEF)
  7. (第十二章)创建数据表索引
  8. 七款非常好用的电脑数据恢复软件推荐
  9. HAUT OJ 1475: cxk下棋
  10. 如何将视频网站的视频下载为mp4格式
  11. eclipse背景设置绿豆色
  12. 类似易企秀的h5页面如何制作,邀请函,贺卡
  13. stm32f407固件库移植ucosii_v2.92.07
  14. 【白嫖系列】教育邮箱申请最新专业绘图软件OriginPro(官方渠道)
  15. 百度网盘下载提速方法(更新于2020年6月)
  16. 聊聊Google Camera Go
  17. Depends: libcurl4 (= 7.58.0-2ubuntu3) but 7.58.0-2ubuntu3.13 is to be installed
  18. CMDB(运维自动化)
  19. java泡泡堂教程_JAVA面向对象编程课程设计——泡泡堂(个人博客)
  20. 物联网感知层之传感器的分类

热门文章

  1. IP探针系统 信息探针
  2. 一着惊海天教学课件PPT模板
  3. ServerBoss:国产免费的Linux连接工具,服务器管理工具
  4. 用友U8案例教程存货核算后台配置
  5. 计算机毕业设计Java健康生活运动咨询系统(源码+系统+mysql数据库+lw文档)
  6. 干货分享:软文发布前的4个小技巧!
  7. 计算机系考研讲座ppt,公益讲座丨北大软微计算机初试400+学长分享备考心得!...
  8. 【rzxt】笔者支招:使用iPad的SBSettings软件的操作技巧
  9. 趣头条自媒体怎么玩可以月入一万
  10. J2EE1.5+API(冷冬大雪)免费