|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
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教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们! |
|