没有路由器的情况下,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. python3.8.5是python3吗_Python 升级到3.8.5
  2. JavaScript原型链以及Object,Function之间的关系
  3. 公共资源情报(OSINT)工具Automater
  4. ext2.2打造全新功能grid系列--仅仅动态生成GridPanel
  5. Oracle索引失效问题
  6. Xamarin效果第十六篇之GIS添加Mark
  7. PHP RSS/Feed 生成类库(支持RSS 1.0/2.0和ATOM)
  8. 画出计算机网络的一般组成,计算机网络习题(有答案).pdf
  9. 22.创建DockWidget
  10. linux终端python自动提示
  11. ffmpeg -视频旋转和高清转码示例
  12. Go专栏“改善Go语言编程质量的50个有效实践”上线了
  13. 常用z反变换公式表_常用excel快捷键
  14. android nat64,dpvs学习笔记: 18 nat64 的实现
  15. Logitech Flow无法识别另一台电脑,显示“请启用其他计算机上的Logitech Flow”的问题
  16. 模拟信号数字化传输系统的设计与仿真分析说明书
  17. 白开水最耐喝,最解内心的渴
  18. PDF Expert for Mac 2.5.5 中文版 — PDF编辑工具
  19. 使用videojs播放m3u8视频
  20. 领导者都具备的四大思维能力

热门文章

  1. 南山驿站机器人_波士顿动力机器人即将商用,可自动避障且会跳舞
  2. 无法使用命令 /usr/bin/xdpyinfo 自动检查显示器颜色。
  3. Windows11 开发者版尝鲜安装教程
  4. 数据库三种备份方式(转)
  5. 点云迭代最近邻点配准法_一种激光扫描数据与数码照片的配准方法
  6. 最新新农村别墅自建房CAD设计施工图纸+2000套
  7. 免堆期由谁申请_什么是免箱期 什么是免堆期
  8. Apple ipad mini5 插卡版开启WIFI热点的问题
  9. Gtalent薪酬测试题之宽带薪酬(薪级、薪档、中间值等)
  10. 高云Combat 18K----图像融合