|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!1.下载rp-pppoe-3.8.tar.gz
http://down1.chinaunix.net/distfiles/rp-pppoe-3.8.tar.gz
2.装置rp-pppoe(对文件地点文件夹右键在终端翻开)
解压rp-pppoe-3.8.tar.gz:
#tar-zxfrp-pppoe-3.8.tar.gz
进进天生的目次:
#cdrp-pppoe-3.8
在地点目次内运转剧本go:
#./go
将主动举行编译和装置
3、收集设置(白色为输出,蓝色为正文)
[root@Chengliaojch3]#pppoe-setup(输出pppoe-setup)
WelcometotheRoaringPenguinPPPoEclientsetup.
First,IwillrunsomechecksonyoursystemtomakesurethePPPoEclientisinstalledproperly...
Looksgood!
Now,pleaseentersomeinformation:
USERNAME
>>>EnteryourPPPoEusername(defaultcz743720):cz743720(输出上彀账号)
INTERFACE
>>>EntertheEthernetinte***ceconnectedtotheDSLmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethn,wherenisanumber.
(defaulteth0):eth0(选择你的网卡,默许为eth0)
Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinsecondsafterwhichthelinkshouldbedropped.
Ifyouwantthelinktostayuppermanently,enterno(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
>>>Enterthedemandvalue(defaultno):no(这里填no或间接回车)
DNS
PleaseentertheIPaddressofyourISPsprimaryDNSserver.
IfyourISPclaimsthattheserverwillprovideDNSaddresses,enterserver(alllower-case)here.
Ifyoujustpressenter,IwillassumeyouknowwhatyouaredoingandnotmodifyyourDNSsetup.>>>EntertheDNSinformationhere:202.96.128.86(输出首选DNS地点,这个很主要,我一入手下手看网上是填sever暗示主动猎取DNS,但没有乐成,
厥后我查了本人地点乡村DNS地点,这里是广东“其他区域”的首选DNS,倡议百度本人的DNS地点)
PleaseentertheIPaddressofyourISPssecondaryDNSserver.
Ifyoujustpressenter,IwillassumethereisonlyoneDNSserver.
>>>EnterthesecondaryDNSserveraddresshere:202.96.128.143(备用DNS地点,一样查一下)
PASSWORD
>>>PleaseenteryourPPPoEpassword:(输出暗码)
>>>Pleasere-enteryourPPPoEpassword:(再次输出暗码)
FIREWALLING
Pleasechoosethefirewallrulestouse.
Notethattheserulesareverybasic.
Youarestronglyencouragedtouseamoresophisticatedfirewallsetup;however,thesewillprovidebasicsecurity.
Ifyouarerunninganyserversonyourmachine,youmustchooseNONEandsetupfirewallingyourself.
Otherwise,thefirewallruleswilldenyaccesstoallstandardserverslikeWeb,e-mail,ftp,etc.
IfyouareusingSSH,theruleswillblockoutgoingSSHconnectionswhichallocateaprivilegedsourceport.
Thefirewallchoicesare:
0-NONE:Thisscriptwillnotsetanyfirewallrules.Youareresponsibleforensuringthesecurityofyourmachine.
YouareSTRONGLYrecommendedtousesomekindoffirewallrules.
1-STANDALONE:Appropriateforabasicstand-aloneweb-surfingworkstation
2-MASQUERADE:AppropriateforamachineactingasanInternetgateway
foraLAN
>>>Chooseatypeoffirewall(0-2):0(选择防火墙,0暗示不开启防火墙)
**Summaryofwhatyouentered**
Ethernet
Inte***ce:eth0
Username:cz743720
Activate-on-demand:No
PrimaryDNS:202.96.128.86
SecondaryDNS:202.96.128.143
Firewalling:NONE
>>>Acceptthesesettingsandadjustconfigurationfiles(y/n)?y(填y确认)
Adjusting/etc/ppp/pppoe.conf
Adjusting/etc/resolv.conf(Butfirstbackingitupto/etc/resolv.conf-bak)
Adjusting/etc/ppp/pap-secretsand/etc/ppp/chap-secrets(Butfirstbackingitupto/etc/ppp/pap-secrets-bak)(Butfirstbackingitupto/etc/ppp/chap-secrets-bak)
Congratulations,itshouldbeallsetup!
Typepppoe-starttobringupyourPPPoElinkandpppoe-stoptobring
itdown.Typepppoe-statustoseethelinkstatus.
[root@Chengliaojch3]#pppoe-start(用pppoe-start举行毗连)
.Connected!(毗连乐成,你能够用pingwww.baiud.com举行测试一下)
4、上彀下令(用root权限)
拨号上彀pppoe-start
断开上彀pppoe-stop
检察形态pppoe-status
欢迎大家来到仓酷云论坛! |
|