仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 945|回复: 9
打印 上一主题 下一主题

[CentOS(社区)] 带来一篇centos6.5宽带拨号上彀

[复制链接]
柔情似水 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:10:14 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!CentOS6今后要装置rp-pppoe这个软件,centos之前的版本是adsl-setup下令装置。
(1)检察是不是装置
#rpm-qa|greprp-pppoe
没有内容输入则没装置,若能够联网利用#yuminstallrp-pppoe
没法联网则:CentOS装置盘放进光驱

挂载光盘
#mount/dev/cdrom/media
找出文件路径
#find/media-namerp-pppoe*
这个文件没有依附项,能够间接装置
#rpm-ivh/media/CentOS_6.5_Final/Packages/rp-pppoe-3.10-8.el6.i686.rpm
(2)设置拨号#whereispppoe-setup
#/sbin/pppoe-setup
或#pppoe-setup

入手下手设置ADSL和DNS信息:

WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson
yoursystemtomakesurethePPPoEclientisinstalledproperly...

ThefollowingDSLconfigwasfoundonyoursystem:

Device:Name:
ppp0DSLppp0

PleaseenterthedeviceifyouwanttoconfigurethepresentDSLconfig
(defaultppp0)orenternifyouwanttocreateanewone:ppp0

LOGINNAME

EnteryourLoginName(defaultroot):中国电信大概网通给你的ADSL用户名,注重电信给的有ad打头

INTERFACE

EntertheEthernetinte***ceconnectedtothePPPoEmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,whereXisanumber.
(defaulteth0):eth0←指定收集接进装备,一块网卡的情形下,通常是默许eth0

Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinseconds
afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
stayuppermanently,enterno(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
Enterthedemandvalue(defaultno):←间接按回车,承受默许设置,扣问的是,adsl毗连今后,是不是延续坚持毗连。大概是主动的断开,在指定的工夫(以秒数盘算)内。多半情形下,我们但愿手动的翻开封闭毗连。以是这里选择默许的no。

DNS

PleaseentertheIPaddressofyourISPsprimaryDNSserver.
IfyourISPclaimsthattheserverwillprovidedynamicDNSaddresses,
enterserver(alllower-case)here.
Ifyoujustpressenter,Iwillassumeyouknowwhatyouare
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere:202.96.209.5第一个DNS倡议手动设置,否则大概连不上(或EntertheDNSinformationhere:server//PPPOE拨号的输出server便可,即静态取得DNS)
PleaseentertheIPaddressofyourISPssecondaryDNSserver.
Ifyoujustpressenter,IwillassumethereisonlyoneDNSserver.
EnterthesecondaryDNSserveraddresshere:202.96.209.133第二个DNS倡议手动设置,否则大概连不上

PASSWORD

PleaseenteryourPassword:输出ADSL的毗连暗码
Pleasere-enteryourPassword:←再次确认输出ADSL的毗连暗码

USERCTRL

Pleaseenteryes(threeletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):yes←填进no,不同意一样平常用户把持PPPoE的毗连

FIREWALLING

Pleasechoosethefirewallrulestouse.Notethattheserulesare
verybasic.Youarestronglyencouragedtouseamoresophisticated
firewallsetup;however,thesewillprovidebasicsecurity.Ifyou
arerunninganyserversonyourmachine,youmustchooseNONEand
setupfirewallingyourself.Otherwise,thefirewallruleswilldeny
accesstoallstandardserverslikeWeb,e-mail,ftp,etc.Ifyou
areusingSSH,theruleswillblockoutgoingSSHconnectionswhich
allocateaprivilegedsourceport.

Thefirewallchoicesare:
0-NONE:Thisscriptwillnotsetanyfirewallrules.Youareresponsible
forensuringthesecurityofyourmachine.YouareSTRONGLY
recommendedtousesomekindoffirewallrules.
1-STANDALONE:Appropriateforabasicstand-aloneweb-surfingworkstation
2-MASQUERADE:AppropriateforamachineactingasanInternetgateway
foraLAN
Chooseatypeoffirewall(0-2):0←输出0,不在这里利用防火墙

Startthisconnectionatboottime

Doyouwanttostartthisconnectionatboottime?
Pleaseenternooryes(defaultno):yes←填进yes,在体系启动时主动毗连ADSL

Acceptthesesettingsandadjustconfigurationfiles(y/n)?y←设置信息确认无误后,键进y批准设置
**Summaryofwhatyouentered**

EthernetInte***ce:eth0
Username:



[root@localhost~]#pppoe-start←启动ADSLpppoe毗连(或#ifupppp0//启动ppp0接口)
[root@localhost~]#pppoe-status设置完成后我们看看adsl形态


如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!
只想知道 该用户已被删除
沙发
发表于 2015-1-14 22:34:29 | 只看该作者

带来一篇centos6.5宽带拨号上彀

边撸边过
透明 该用户已被删除
板凳
发表于 2015-1-17 23:45:52 | 只看该作者
Linux简单,占内存少,特别是对于程序开发人员来说很方便,如果说windows的成功在于其方便用户的窗口管理界面。
海妖 该用户已被删除
地板
发表于 2015-1-27 05:05:17 | 只看该作者
Linux最大的特点就是其开源性,这一点是十分难得的,这也是它能够存在到现在的原因之一。
飘灵儿 该用户已被删除
5#
发表于 2015-2-5 09:37:08 | 只看该作者
我是学习嵌入式方向的,这学期就选修了这门专业任选课。
简单生活 该用户已被删除
6#
发表于 2015-2-11 10:44:58 | 只看该作者
永中office 2004增强版安装只需要默认安装即可使用并操作大多与win系统雷同,打印机的配置和管理,记录光盘等。
莫相离 该用户已被删除
7#
发表于 2015-3-2 11:21:14 | 只看该作者
我想即使Linux高手也很难快速准确精练的回答你。
小女巫 该用户已被删除
8#
发表于 2015-3-11 06:18:33 | 只看该作者
Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。
愤怒的大鸟 该用户已被删除
9#
发表于 2015-3-18 02:19:01 | 只看该作者
随着Linux技术的更加成熟、完善,其应用领域和市场份额继续快速增大。目前,其主要应用领域是服务器系统和嵌入式系统。然而,它的足迹已遍布各个行业,几乎无处不在。
活着的死人 该用户已被删除
10#
发表于 2015-3-25 14:24:19 | 只看该作者
为了更好的学习这门课程,我不仅课上认真听讲,课下也努力学习,为此还在自己的电脑上安装了Ubuntu系统。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-30 16:52

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表