仓酷云

标题: 带来一篇CentOS下设置ADSL 拨号上彀 [打印本页]

作者: 深爱那片海    时间: 2015-1-14 20:37
标题: 带来一篇CentOS下设置ADSL 拨号上彀
欢迎大家来到仓酷云论坛!上面次要先容一下,在CentOS下令行情况下怎样设置ADSL联网:

1、确保装置了网卡并能一般运转,利用下令检察一下网卡形态:

[root@localhostsimon]#/sbin/ifconfigeth0

2、在体系中不要设置默许路由(网关),让ADSL拨号后主动取得。

3、检察是不是装置了pppoe软件包。

[root@localhostsimon]#rpm-qa|grepppp0e

没有显现,申明没有装置,体系光盘里会有这个装置包,或往下载一个rpm包,装置一下就OK了。

以下图所示举行装置:

带来一篇CentOS下设置ADSL 拨号上彀
登录/注册后可看大图


4、装置好软件包后,便可入手下手设置ppp0e客户端软件了,我们不用手工往修改设置文件,可使用adsl-setup这个工具举行设置:

[root@localhostsimon]#adsl-setup

WelcometotheADSLclientsetup.First,Iwillrunsomecheckson
yoursystemtomakesurethePPPoEclientisinstalledproperly...


LOGINNAME

EnteryourLoginName(defaultroot):*****//(输出ADSL帐号的用户名,这里是你往打点宽带时请求的用户名)

INTERFACE

EntertheEthernetinte***ceconnectedtotheADSLmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,whereXisanumber.
(defaulteth0)://(选择收集装备,敲回车,体系就会默许选择)

Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinseconds
afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
stayuppermanently,enterno(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
Enterthedemandvalue(defaultno):no//(问你是不是按需拨号,仍是延续毗连收集,我选择no)

DNS

PleaseentertheIPaddressofyourISPsprimaryDNSserver.
IfyourISPclaimsthattheserverwillprovidedynamicDNSaddresses,
enterserver(alllower-case)here.
Ifyoujustpressenter,Iwillassumeyouknowwhatyouare
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere:server//(选择DNS,这暗示利用ADSL拨号会主动取得的DNS办事器IP地点,主动猎取就输出server吧)

PASSWORD

PleaseenteryourPassword://(输出请求ADSL帐号时设置的暗码)
Pleasere-enteryourPassword:
Sorry,thepasswordsdonotmatch.Tryagain?(y/n)y//(我暗码输出不婚配,就提醒从头输出)

PASSWORD

PleaseenteryourPassword://(输出请求ADSL帐号时设置的暗码,必定要输出准确哟)
Pleasere-enteryourPassword:

USERCTRL

Pleaseenteryes(threeletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):no//(是不是同意一般用户启动、封闭)

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//(选择firewall的划定规矩,我选择0,不利用防火墙)

Startthisconnectionatboottime

Doyouwanttostartthisconnectionatboottime?
Pleaseenternooryes(defaultno):yes//(问你是不是选择随机启动)

**Summaryofwhatyouentered**

EthernetInte***ce:eth0
Username:adsladmin
Activate-on-demand:No
DNSaddresses:SuppliedbyISPsserver
Firewalling:NONE
UserControl:no
Acceptthesesettingsandadjustconfigurationfiles(y/n)?y//(确认一下是不是承受设置,假如输出的信息准确,固然选y了)

Adjusting/etc/sysconfig/network-scripts/ifcfg-ppp0
Adjusting/etc/ppp/chap-secretsand/etc/ppp/pap-secrets
(Butfirstbackingitupto/etc/ppp/chap-secrets.bak)
(Butfirstbackingitupto/etc/ppp/pap-secrets.bak)


Congratulations,itshouldbeallsetup!

Type/sbin/ifupppp0tobringupyourxDSLlinkand/sbin/ifdownppp0
tobringitdown.
Type/sbin/adsl-status/etc/sysconfig/network-scripts/ifcfg-ppp0
toseethelinkstatus.

[root@localhostsimon]#adsl-start//这里就不必注释了吧

半途而废,入手下手上彀喽 如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!
作者: 谁可相欹    时间: 2015-1-16 21:08
标题: 带来一篇CentOS下设置ADSL 拨号上彀
安装一个新的软件时先看README,再看INSTALL然后看FAQ,最后才动手安装,这样遇到问题就知道为什么。如果Linux说明文档不看,结果出了问题再去论坛来找答案反而浪费时间。
作者: 若天明    时间: 2015-1-19 11:10
我们这一代90后,从小接触的是windows98,家里条件好的自己有电脑装的是2000,后来又有了XP,上大学时又有了win7。
作者: 精灵巫婆    时间: 2015-1-28 06:45
选择交流平台,如QQ群,网站论坛等。
作者: 飘灵儿    时间: 2015-2-5 20:30
要增加自己Linux的技能,只有通过实践来实现了。所以,赶快找一部计算机,赶快安装一个Linux发行版本,然后进入精彩的Linux世界,相信对于你自己的Linux能力必然大有斩获。
作者: 老尸    时间: 2015-2-13 13:17
了解Linux的网络安全,系统的安全,用户的安全等。安全对于每位用户,管理员来说是非常重要的。
作者: 海妖    时间: 2015-3-3 22:04
我学习Linux的心得体会 ,希望对大家的学习有所帮助,由于水平有限,本文难免有所欠缺,望请指正。
作者: 爱飞    时间: 2015-3-11 14:29
然我们对Linux的学习首先是通过对它的产生,发展,到今天仍然在不断完善开始的。
作者: 金色的骷髅    时间: 2015-3-19 01:33
了解Linux的网络安全,系统的安全,用户的安全等。安全对于每位用户,管理员来说是非常重要的。
作者: 蒙在股里    时间: 2015-3-27 03:09
可以说自己收获很大,基本上完成了老师布置的任务,对于拔高的题目没有去做,因为我了解我的水平,没有时间和精力去做。?




欢迎光临 仓酷云 (http://www.ckuyun.com/) Powered by Discuz! X3.2