安全放心的免费绿色软件下载网站!

详解CentOS6设置ADSL上网的方法

时间:2023-08-15 17:02:17

关于CentOS6怎么样设置ADSL上网这个问题, 下面小编就为大家演示下:首先我们要先安装好CentOS6以后要安装rp-pppoe这个软件,centos之前的版本所adsl-setup这个命令安装,到centos6改了。

需要光驱内放好CentOS安装盘

挂载光盘

#mount /dev/cdrom /media

找出文件路径

# find /media -name 'rp-pppoe*'

这个文件没有依赖项,可以直接安装

#rpm -ivh /media/CentOS_6.0_Final/Packages/rp-pppoe-3.10-8.el6.i686.rpm

安装好以后可以开始设置ADSL和DNS信息

#pppoe-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...

The following DSL config was found on your system:

Device: Name:
ppp0 DSLppp0

Please enter the device if you want to configure the present DSL config
(default ppp0) or enter 'n' if you want to create a new one: ppp0

LOGIN NAME

Enter your Login Name (default root): 中国电信或者网通给你的ADSL用户名,注意电信给的有ad打头

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): eth0← 指定网络接入设备,一块网卡的情况下,一般为默认eth0

Do you want the 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 should be dropped. If you want the to
stay up permanently, enter 'no' (two letters, lower-case.)
NOTE: Demand-activated s do not interact well with dynamic IP
addresses. You may have some problems with demand-activated s.
Enter the demand value (default no): ← 直接按回车,接受默认设置,询问的是,adsl连接以后,是否持续保持连接。或者是自动的断开,在指定的时间(以秒数计算)内。多数情况下,我们希望手动的打开关闭连接。所以这里选择默认的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: 202.96.209.5 第一个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.209.133 第二个DNS建议手动设置,不然可能连不上

PASSWORD

Please enter your Password: 输入ADSL的连接密码
Please re-enter your Password: ← 再次确认输入ADSL的连接密码

USERCTRL

Please enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop DSL connection (default yes): yes← 填入no,不允许一般用户控制PPPoE的连接

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 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):yes← 填入yes,在系统启动时自动连接ADSL

Accept these settings and adjust configuration files (y/n)? y← 配置信息确认无误后,键入y同意设置
** Summary of what you entered **

Ethernet Interface:eth0

User name:

 

 

详解CentOS6设置ADSL上网的方法

 

 

[root@localhost ~]# pppoe-start← 启动ADSL pppoe连接

[root@localhost ~]# pppoe-status 设置完成后我们看看adsl状态

 

相关文章
win8双系统
win8双系统

小编知道较多用户一键重装系统之后,还想再装多一个系统,也就是我们说的双系统,那么双系统到底怎么安装呢?

小鸡庄园最新的答案4.29是什么 小鸡庄园最新答题答案2023年4月29日
小鸡庄园最新的答案4.29是什么 小鸡庄园最新答题答案2023年4月29日

支付宝的蚂蚁庄园每一天都将更新最新的问答题,4月29日更新的问题以及对应的答案是什么呢?小鸡庄园4月29日更新的问题是以下哪句诗描写的是古人的劳作生活和出游小贴士高铁座椅上方

庄园小课堂今日答案最新6.9 庄园小课堂今日答案2022年6月9日
庄园小课堂今日答案最新6.9 庄园小课堂今日答案2022年6月9日

我们每天打开支付宝即可参与庄园小课堂的答题,2022年6月9日庄园小课堂的题目就是猜一猜手机贴的防偷窥膜原理类似于、为什么下雨天时蚊子不会被雨滴砸死,回答正确的用户就能领到更

抖音个性化推荐设置什么意思?抖音个性化推荐设置简介
抖音个性化推荐设置什么意思?抖音个性化推荐设置简介

很多的用户都在使用抖音APP,不过你们知道抖音个性化推荐设置什么意思吗?现在小编为大家带来了抖音个性化推荐设置简介,希望大家喜欢。

支付宝顶呱刮彩票怎么兑换 顶呱刮彩票扫码兑奖方法
支付宝顶呱刮彩票怎么兑换 顶呱刮彩票扫码兑奖方法

支付宝顶呱刮彩票最近支持兑换啦,扫码即可兑换奖金,是不是超级方便呢?下面,我们来看看具体操作详情。

王者荣耀天元赛在哪 王者模拟战天元赛怎么玩
王者荣耀天元赛在哪 王者模拟战天元赛怎么玩

王者荣耀天元赛是s18赛季王者模拟战里面的赛事玩法,开放天元赛后在王者模拟战主界面上就会有天元赛图标,点击后可直接进入。

相关软件
PDF Extrav8.0.1245
PDF Extrav8.0.1245
大小:60.4M 时间:2022-01-11
下载

pdf extra安卓下载-pdfextra安卓版是一款专业的PDF编辑工具,pdfextraapp可对PDF文件内容进行添加、修改、绘图标注等操作,pdfextraapp解决了PDF文档无法编辑的难题,实现PDF文件的编辑与阅读处理。,您可以免费下载安卓手机PDF Extra。

荒世的传说百抽版v1.15.0
荒世的传说百抽版v1.15.0
大小: 时间:2020-11-02
下载

荒世的传说百抽版是一款多人在线战斗手游。荒世的传说百抽版手游融合许多神话传说故事到副本,更设有百变造型的人物角色可选,玩法多样,乐趣多多。 游戏介绍 荒世的传说百抽版是

5G测试WiFi加速v3.7.0226
5G测试WiFi加速v3.7.0226
大小:27.8M 时间:2023-02-20
下载

WIFI加速5G测网速是一款功能强大的专业的网络测试、wifi加速、Wifi管理、信号测试等多功能与一体的测试工具软件。一键解决手机流量3G,4G,5G或者WIFI网络测速问题。 软件介绍 【网络测试,

百科答人极速版v1.0.0
百科答人极速版v1.0.0
大小: 时间:2022-12-06
下载

百科答人极速版app是一款好玩的答题赚钱软件,百科答人拥有许多有趣的题目种类,用户如果够丰富就可以答题赚钱,累计答对的题目越多红包就越大。 软件介绍 百科答人是一款可以赚钱

宜州论坛手机版v2.6.5
宜州论坛手机版v2.6.5
大小:46.4MB 时间:2023-10-10
下载

宜州论坛手机安卓版 是一款地区特性的社交活动综合服务平台,为本地的群众们带来各种各样方便的生活服务类功能,如缴电费,手机话费充值,宽带网络在线办理,网上购物消費主题活

淘物优选v24
淘物优选v24
大小:23.6M 时间:2022-05-05
下载

淘物优选app下载-淘物优选app是一款十分实用的优惠券软件,淘物优选app为用户提供了超多的购物优惠券,购物之前先领券,淘物优选app让用户购物更省钱,软件还汇集了全网知名电商。,您可以免费下载安卓手机淘物优选。