Linux教程之centos 树立ADSL衔接
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!root@sample~]#adsl-setup ←树立ADSL衔接WelcometotheADSLclientsetup.First,Iwillrunsomecheckson
yoursystemtomakesurethePPPoEclientisinstalledproperly...
LOGINNAME
EnteryourLoginName(defaultroot): ←填入ADSL衔接的用户名
INTERFACE
EntertheEthernetinterfaceconnectedtotheADSLmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,whereXisanumber.
(defaulteth0): ←指定收集接入装备,一块网卡的情形下,通常是默许eth0
Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinseconds
afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
stayuppermanently,enterno(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
Enterthedemandvalue(defaultno): ←直接按回车,接收默许设置
DNS
PleaseentertheIPaddressofyourISPsprimaryDNSserver.
IfyourISPclaimsthattheserverwillprovidedynamicDNSaddresses,
enterserver(alllower-case)here.
Ifyoujustpressenter,Iwillassumeyouknowwhatyouare
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere: ←假如晓得DNS办事器的信息在此填入。不晓得的情形按回车跳过
PASSWORD
PleaseenteryourPassword: ←输出ADSL的衔接暗码
Pleasere-enteryourPassword: ←再次确认输出ADSL的衔接暗码
USERCTRL
Pleaseenteryes(twoletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):no ←填入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
**Summaryofwhatyouentered**
EthernetInterface:eth0
Username:
Activate-on-demand:No
DNS:Donotadjust
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.
然后,启动ADSL衔接。
#adsl-start ←启动ADSL衔接
# ←稍等少焉后若启动胜利后涌现提醒符(无任何提醒即意味着衔接胜利)
这时候,经由过程“ifconfig”敕令可以看到各收集接口的信息(IP地址等等)。
欢迎大家来到仓酷云论坛!
Linux教程之centos 树立ADSL衔接
任何人都可以根据自己的喜好来定制适合自己的操作系统,Linux?是抢占式多任务多用户操作系统. 放手去搞。尽量不要提问,运用搜索找答案,或者看wiki,从原理上理解操作系统的本质,而不是满足于使用几个技巧。尽量看英文资料。 Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。 为了更好的学习这门课程,我不仅课上认真听讲,课下也努力学习,为此还在自己的电脑上安装了Ubuntu系统。 随着Linux技术的更加成熟、完善,其应用领域和市场份额继续快速增大。目前,其主要应用领域是服务器系统和嵌入式系统。然而,它的足迹已遍布各个行业,几乎无处不在。 目前全球有超过一百多个Linux发行版本,在国内也能找到十几个常见版本。如何选择请根据你的需求和能力,RedhatLinux和DebianLinux是网络管理员的理想选择。 其中不乏很多IT精英的心血。我们学透以后更可以做成自己的OS!? 这也正是有别的OS得以存在的原因,每个系统都有其自身的优点。?
页:
[1]