没有路由器的情况下,linux也是需要拨号上网的。

从安装光盘Packages中取出下面三个包

libpcap-1.4.0-4.20130826git2dbcaa1.el6.x86_64.rpm

ppp-2.4.5-10.el6.x86_64.rpm

rp-pppoe-3.10-16.el6.x86_64.rpm

使用rpm -ivh 安装# rpm -ivh libpcap-1.4.0-4.20130826git2dbcaa1.el6.x86_64.rpm ppp-2.4.5-10.el6.x86_64.rpm  ppp-2.4.5-10.el6.x86_64.rpm

warning: package ppp = 2.4.5-10.el6 was already added, skipping ppp = 2.4.5-10.el6

Preparing...                ########################################### [100%]

1:libpcap                ########################################### [ 50%]

2:ppp                    ########################################### [100%]

进入/usr/sbin/ 执行 adsl-setup进行配置# /usr/sbin/adsl-setup

Welcome to the PPPoE 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 PPPoE 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):

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: server

PASSWORD

Please enter your Password:

[root@as home]# /usr/sbin/adsl-setup

Welcome to the PPPoE 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 PPPoE 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):

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:

PASSWORD

Please enter your Password:

Please re-enter your Password:

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow

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

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

Start this connection at boot time

Do you want to start this connection at boot time?

Please enter no or yes (default no):yes

** Summary of what you entered **

Ethernet Interface: eth0

User name:          此处为宽带帐号

Activate-on-demand: No

DNS:                Do not adjust

Firewalling:        NONE

User Control:       yes

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

Adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0

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/pppoe-status /etc/sysconfig/network-scripts/ifcfg-ppp0'

to see the link status.

启动adsl -start

停止adsl -stop

linux宽带账号连接,linux下配置adsl宽带连接相关推荐

  1. linux mysql远程链接_Linux下mysql实现远程连接

    首先明白一点并不是mysql禁止远程连接,而是MYSQL的账号禁止远程连接.可能觉得我有点咬文嚼字了,不过我感觉分清这点还是很重要的.默认情况下,所有账号都是禁止远程连接的.在安装MYSQL的时候,在 ...

  2. navicat 连接linux mysql_如何在windows下用Navicat Premium连接linux下的Mysql

    展开全部 当我们在Vmware中使用Linux下的MySQL ,界面不是很友好,所以我们使用Navicat Premium软件32313133353236313431303231363533e59b9 ...

  3. linux vnc服务重启,CentOS下配置VNCServer,重启服务仍然生效

    CentOS下配置VNC Server,重启服务,配置仍然生效的方法: 本文前提:系统已安装好gnome桌面,如果没有请执行下面的命令安装即可. yum groupinstall "Desk ...

  4. Linux用于账号文件,linux的文件及账号管理

    正如linux的准则描述的那样:Linux一切皆文件.当我们创建文件时,都会有一个默认属性,这与umask有关.我们知道可以可以使用使用数字来表示属性:r::4,w:2,x:1.而一般情况下用户建立的 ...

  5. liunx下mysql远程连接_Linux下mysql实现远程连接

    首先明白一点并不是mysql禁止远程连接,而是MYSQL的账号禁止远程连接.可能觉得我有点咬文嚼字了,不过我感觉分清这点还是很重要的.默认情况下,所有账号都是禁止远程连接的.在安装MYSQL的时候,在 ...

  6. linux tbb 安装_Linux环境下配置Google Test、TBB、OpenMP和OpenCV

    最近逐渐把开发环境从Windows转到Linux下,原因是Visual Studio提供的环境太庞大,总感觉看不到全貌,并且对于C++11的支持实在是太慢了.而在Linux下,有非常大的选择空间,编辑 ...

  7. 在Linux服务器上安装MySQL并配置,远程连接

    MySQL是用的很多的关系型数据库.今天来分享一下安装,配置及其连接教程.这里以Debian服务器安装MySQL 8为例. 1,下载MySQL并解压上传 去下载页面下载linux版的mysql安装包. ...

  8. linux 安装lnmp环境,centos下配置LNMP环境(源码安装)

    准备工作,安装依赖库//检查并安装组件 yum -y install gcc automake autoconf libtool make gcc-c++ glibc libxslt-devel li ...

  9. 红帽linux配置远程连接,CentOS服务器端配置SSH远程连接的教程

    安装好了CentOS 6.4,我想让它作为一个服务器,可以让我的Windows 7电脑远程登录. 安装OpenSSH Server首先,我们搜索一下CentOS的软件库里面有没有已经定义好的SSH服务 ...

最新文章

  1. python列表表示二叉树_python-产生二叉树的所有从根到叶的分支
  2. 为什么薄膜干涉的厚度要很小_薄膜干涉的薄膜为什么不能太厚?1.这里的厚是用什么来衡量的?2.假如一个厚为1mm的薄膜,是否薄?...
  3. 求取给定的二叉树的镜像_17---二叉树的镜像
  4. DirectShow系统初级指南
  5. 自定义view实现水波纹效果
  6. readfile函数使用方法_1分钟学会LOOKUP函数,有网友说使用这个方法,初学者秒变大神...
  7. Dell 12G服务器 手动安装RedHat 6.X
  8. 面试疑点:几道题答了一个小时,应该是等答案
  9. 从计算、建模到回测:因子挖掘的最佳实践
  10. 中国邮递员问题+代码实现(cpp)
  11. 学校计算机室计算机购买申请,学校办公用品购买申请报告
  12. 精致女生必备6款实用app 这几款你值得拥有
  13. survival | 生存分析(3):生存曲线(下)
  14. 小程序 配置域名 业务域名_使域名成为您的业务
  15. thinkphp3.1迁移php7,ThinkPHP3.1迁移到PHP7
  16. Eclipse j2ee开发环境的搭建
  17. M2VoC比赛论文——台湾大学
  18. Manifest merger failed with multiple errors, see logs 问题处理
  19. yylabel html富文本,YYLabel 自动布局 富文本文字点击事件
  20. stm32f103电源管理

热门文章

  1. Ubuntu安装攻略
  2. crsd.bin Fail With Error CRS-1019 When ohasd Restarted (文档 ID 2291799.1)
  3. 金蝶K3 APi学习资料
  4. 互联网时代的盈利模式
  5. js实现商品sku组合
  6. Android图形显示之硬件抽象层Gralloc
  7. 推荐阅读敏捷书籍清单
  8. 关于python浮点数类型错误的是_关于Python语言的浮点数类型,以下选项中描述错误的是...
  9. MySQL8.0数据库审计
  10. python:使用xlrd、pandas、numpy做MK趋势分析