一、PPPoE拨号配置步骤1.运行命令pppoe-setup进行PPPoE拨号上网配置。[root@localhost~]#pppoe-setupWelcometothePPPoEclientsetup.First,IwillrunsomechecksonyoursystemtomakesurethePPPoEclientisinstalledproperly...2.输入PPPoE账号,不输入的话默认是root。LOGINNAMEEnteryourLoginName(defaultroot):2000001234563.输入用来拨号的网卡号,不输入的话默认是eth0,如果就是用eth0来拨号的话直接回车即可。INTERFACEEntertheEthernetinterfaceconnectedtothePPPoEmodemForSolaris,thisislikelytobesomethinglike/dev/hme0.ForLinux,itwillbeethX,where'X'isanumber.(defaulteth0):eth04.配置PPPoE连接模式为按需连接或是一直连接,默认是不按需连接,也就是一直连接,此处直接回车即可。Doyouwantthelinktocomeupondemand,orstayupcontinuously?Ifyouwantittocomeupondemand,entertheidletimeinsecondsafterwhichthelinkshouldbedropped.Ifyouwantthelinktostayuppermanently,enter'no'(twoletters,lower-case.)NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIPaddresses.Youmayhavesomeproblemswithdemand-activatedlinks.Enterthedemandvalue(defaultno):no5.配置DNS,此处输入server来自动获取DNS。DNSPleaseentertheIPaddressofyourISP'sprimaryDNSserver.IfyourISPclaimsthat'theserverwillprovidedynamicDNSaddresses',enter'server'(alllower-case)here.Ifyoujustpressenter,IwillassumeyouknowwhatyouaredoingandnotmodifyyourDNSsetup.EntertheDNSinformationhere:server6.输入两次PPPoE密码。PASSWORDPleaseenteryourPassword:123456Pleasere-enteryourPassword:1234567.允许普通用户开启或关闭PPPoE拨号,默认是运行,此处直接回车即可。USERCTRLPleaseenter'yes'(threeletters,lower-case.)ifyouwanttoallownormalusertostartorstopDSLconnection(defaultyes):yes8.防火墙策略配置,此处输入0不开启任何防火墙策略。FIREWALLINGPleasechoosethefirewallrulestouse.Notethattheserulesareverybasic.Youarestronglyencouragedtouseamoresophisticatedfirewallsetup;however,thesewillprovidebasicsecurity.Ifyouarerunninganyserversonyourmachine,youmustchoose'NONE'andsetupfirewallingyourself.Otherwise,thefirewallruleswilldenyaccesstoallstandardserverslikeWeb,e-mail,ftp,etc.IfyouareusingSSH,theruleswillblockoutgoingSSHconnectionswhichallocateaprivilegedsourceport.Thefirewallchoicesare:0-NONE:Thisscriptwillnotsetanyfirewallrules.Youareresponsibleforensuringthesecurityofyourmachine.YouareSTRONGLYrecommendedtousesomekindoffirewallrules.1-STANDALONE:Appropriateforabasicstand-aloneweb-surfingworkstation2-MASQUERADE:AppropriateforamachineactingasanInternetgatewayforaLANChooseatypeoffirewall(0-2):09.开机启动配置,此处输入yes开机自动启动PPPoE拨号。StartthisconnectionatboottimeDoyouwanttostartthisconnectionatboottime?Pleaseenternooryes(defaultno):yes10.配置确认,没配错的话输入y保存配置,配置文件默认保存在/etc/sysconfig/network-scripts/ifcfg-ppp0,也可以将此文件删除后重新进行PPPoE拨号配置。**Summaryofwhatyouentered**EthernetInterface:eth0Username:200000123456Activate-on-demand:NoDNSaddresses:SuppliedbyISP'sserverFirewalling:NONEUserControl:yesAcceptthesesettingsandadjustconfigurationfiles(y/n)?yAdjusting/etc/sysconfig/network-scripts/ifcfg-ppp0Adjusting/etc/ppp/chap-secretsand/etc/ppp/pap-secrets(Butfirstbackingitupto/etc/ppp/chap-secrets.bak)(Butfirstbackingitupto/etc/ppp/pap-secrets.bak)Congratulations,itshouldbeallsetup!Type'/sbin/ifupppp0'tobringupyourxDSLlinkand'/sbin/ifdownppp0'tobringitdown.Type'/sbin/pppoe-status/etc/sysconfig/network-scripts/ifcfg-ppp0'toseethelinkstatus.PPPoE拨号日志文件默认存储在/var/log/messages中,可以使用tail-f/var/log/messages查看最新拨号日志内容。