仓酷云

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

[CentOS(社区)] 带来一篇CentOS下设置ADSL 拨号上彀

[复制链接]
深爱那片海 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-1-14 20:37:45 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

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

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

x
欢迎大家来到仓酷云论坛!上面次要先容一下,在CentOS下令行情况下怎样设置ADSL联网:

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

[root@localhostsimon]#/sbin/ifconfigeth0

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

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

[root@localhostsimon]#rpm-qa|grepppp0e

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

以下图所示举行装置:



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教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2024-5-16 09:32

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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