带来一篇CentOS 6.4 电信ADSL 拨号毗连的设置
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!1.下载rp-pppoe-3.8.tar.gzhttp://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、收集设置(白色为输出,蓝色为正文)
#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.
#pppoe-start(用pppoe-start举行毗连)
.Connected!(毗连乐成,你能够用pingwww.baiud.com举行测试一下)
4、上彀下令(用root权限)
拨号上彀pppoe-start
断开上彀pppoe-stop
检察形态pppoe-status
欢迎大家来到仓酷云论坛!
带来一篇CentOS 6.4 电信ADSL 拨号毗连的设置
顶顶更健康 请问谁有Linux的学习心得的吗?简单的说说? 随着Linux技术的更加成熟、完善,其应用领域和市场份额继续快速增大。目前,其主要应用领域是服务器系统和嵌入式系统。然而,它的足迹已遍布各个行业,几乎无处不在。 老实说,第一个程序是在C中编译好的,调试好了才在Linux下运行,感觉用vi比较麻烦,因为有错了不能调试,只是提示错误。 Linux?最大的优点在于其作为服务器的强大功能,同时支持多种应用程序及开发工具,所以Linux操作系统有着广泛的应用空间。 然我们对Linux的学习首先是通过对它的产生,发展,到今天仍然在不断完善开始的。 在学习的过程中,我们用的是VM虚拟机,开始时真的不真的该怎么去做,特别是我的是命令窗口界面,别人的是图形界面,我都不知道怎么调过来。 选择一些适于初学者的Linux社区。
页:
[1]