|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
如果您觉得本篇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衔接。
[root@sample~]#adsl-start ←启动ADSL衔接
[root@sample~]# ←稍等少焉后若启动胜利后涌现提醒符(无任何提醒即意味着衔接胜利)
这时候,经由过程“ifconfig”敕令可以看到各收集接口的信息(IP地址等等)。
欢迎大家来到仓酷云论坛! |
|