|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的小伙伴们!注:这里是物理机上彀教程,不是假造机,假造机没这么贫苦~
本文是吐槽和教程的夹杂体,以是列位看官耐烦看~
CentOS上彀真是个贫苦的事变,它不像Ubuntu一样在装置时就可以设置好收集,它会呈现各类成绩。
起首我的电脑间接插网线后,ifconfig显现找不到eth0。厥后细心一看网线接口基本不亮!厥后找了半天终究把驱动找到了,装完驱动拔出内核模块后,网线接口亮了,ifconfig也能显现eth0了,申明硬件弄定。【该步调概况参考这里http://mirage1993.blog.51cto.com/2709744/1586814】
上面是重点,我折腾了半天仍是上不往网,厥后发明了一些教程说装置一个叫rp-pppoe的拨号软件,因而我装置了,了局仍是不可,NetworkManager和network办事重启了有数次仍是不可,setup内里改了又改仍是不可,我觉得要用DHCP办事,还专程装置了DHCP,了局设置不了,对照庞大,究竟我课程还没到收集道理~因而在拨号失利,DHCP又不会设置时我溃散了,保持了一段工夫。今晚再次想起来了,心想必定要弄逝世它!百度个渣渣搜不到材料,那就来Google。搜了一篇文章,内里说rp-pppoe不必要NetworkManager,能够卸载NetworkManager,我心想,我念书少你可别骗我,NetworkManager卸载后连个收集图标都没了,还连个毛毛网。
看完后不敢轻信,但又想尝尝,因而分离另外一篇教程,入手下手了最终实行。我专程筹办了四个DNS地点,我下决计不必DHCP了,由于从百度百科上看DHCP用于设置局域网,我归正又不必路由器。
四个DNS分离为:
百度大众DNS:180.76.76.76
阿里云大众DNS:223.5.5.5、223.6.6.6
四川省成都会教导网DNS(博主在成都上学):202.115.64.34
然后开终端,设置rp-pppoe,运转下令
[size=1em][size=1em]pppoe-setup
以下为详细历程(#前面的中文是我写的正文):
<divstyle="padding:0px;margin:0px;color:rgb(80,80,80);font-family:宋体,ArialNarrow,arial,serif;font-size:14px;line-height:28px;"><divclass="syntaxhighlighterbash"id="highlighter_329209"style="width:720px;padding:0px!important;margin:0.3em0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow-y:visible!important;overflow-x:auto!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;box-sizing:content-box!important;font-family:Consolas,BitstreamVeraSansMono,CourierNew,Courier,monospace!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;"><divclass="container"style="padding:0px!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:relative!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background:none!important;">[size=1em][root@KDsrc]#pppoe-setup
[size=1em]WelcometotheRoaringPenguinPPPoEclientsetup.First,Iwillrun
[size=1em]somechecksonyoursystemtomakesurethePPPoEclientisinstalled
[size=1em]properly...
[size=1em]
[size=1em]Looksgood!Now,pleaseentersomeinformation:
[size=1em]
[size=1em]USERNAME
[size=1em]
[size=1em]>>>EnteryourPPPoEusername(default*********@cer):#帐号填你的帐号(教导网、网通、电信都可)
[size=1em]
[size=1em]INTERFACE
[size=1em]
[size=1em]>>>EntertheEthernetinte***ceconnectedtotheDSLmodem
[size=1em]ForSolaris,thisislikelytobesomethinglike/dev/hme0.
[size=1em]ForLinux,itwillbeethn,wherenisanumber.
[size=1em](defaulteth0):#默许为eth0,能够间接回车默许,大概画蛇添足手写eth0
[size=1em]
[size=1em]Doyouwantthelinktocomeupondemand,orstayupcontinuously?
[size=1em]Ifyouwantittocomeupondemand,entertheidletimeinseconds
[size=1em]afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
[size=1em]stayuppermanently,enterno(twoletters,lower-case.)
[size=1em]NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
[size=1em]addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
[size=1em]>>>Enterthedemandvalue(defaultno):#不论这步,间接回车
[size=1em]
[size=1em]DNS
[size=1em]
[size=1em]PleaseentertheIPaddressofyourISPsprimaryDNSserver.
<divclass="linenumber30index29alt1"style="white-space:nowrap;padding:0px1em!important;margin:0px!important;border-radius:0px!important;border:0px!important;bottom:auto!important;float:none!important;left:auto!important;line-height:1.1em!important;outline:0px!important;overflow:visible!important;position:static!important;right:auto!important;top:auto!important;vertical-align:baseline!important;width:auto!important;box-sizing:content-box!important;font-size:1em!important;min-height:inherit!important;background-image:none!important;background-attachment:initial!important;background-size:initial!important;background-origin:initial!important;background-clip:initial!important;background-position:initial!important;background-repeat:initial!important;">IfyourISPclaimsthat |
|