资源描述:
《FC3下单网卡ADSL拨号共享上网》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、FC3下单网卡ADSL拨号共享上网Evening发表于2006年04月22日18:56阅读(4)评论(1)分类:个人日记大家在讨论网络共享时,代理服务器都是使用的双网卡。其实有一个交换机的话,可以省掉第二块网卡。操作环境:FedoraCore3软件包:ppp-2.4.2-6.4.FC3.rpmrp-pppoe-3.5-22.rpm网络图:一、拨号上网1.可以用netconfig给网卡设置IP和掩码,但不要填网关。eth0:192.168.0.254/24不要配置网关2.运行adsl-setup配置pppoe拨号[root@lo
2、calhost~]#adsl-setupWelcometotheADSLclientsetup.First,IwillrunsomechecksonyoursystemtomakesurethePPPoEclientisinstalledproperly...LOGINNAMEEnteryourLoginName(defaultroot):ADSL提供商给的用户名,写在这里INTERFACEEntertheEthernetinterfaceconnectedtotheADSLmodemForSolaris,thisislike
3、lytobesomethinglike/dev/hme0.ForLinux,itwillbeethX,where'X'isanumber.(defaulteth0):eth0这是ADSL通过第一台机器的第一张网卡eth0提供上网Doyouwantthelinktocomeupondemand,orstayupcontinuously?Ifyouwantittocomeupondemand,entertheidletimeinsecondsafterwhichthelinkshouldbedropped.Ifyouwantthe
4、linktostayuppermanently,enter'no'(twoletters,lower-case.)NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIPaddresses.Youmayhavesomeproblemswithdemand-activatedlinks.Enterthedemandvalue(defaultno):在这里按一下回车就行了。DNSPleaseentertheIPaddressofyourISP'sprimaryDNSserve
5、r.IfyourISPclaimsthat'theserverwillprovidedynamicDNSaddresses',enter'server'(alllower-case)here.Ifyoujustpressenter,IwillassumeyouknowwhatyouaredoingandnotmodifyyourDNSsetup.EntertheDNSinformationhere:202.96.134.133这是DNS,最好用你本地电信给的PleaseentertheIPaddressofyourISP'ss
6、econdaryDNSserver.Ifyoujustpressenter,IwillassumethereisonlyoneDNSserver.EnterthesecondaryDNSserveraddresshere:202.96.168.68这是第二个DNS,也是电信给的。PASSWORDPleaseenteryourPassword:在这里把ADSL提供商给的密码写上Pleasere-enteryourPassword:确认密码USERCTRLPleaseenter'yes'(twoletters,lower-case
7、.)ifyouwanttoallownormalusertostartorstopDSLconnection(defaultyes):yesFIREWALLINGPleasechoosethefirewallrulestouse.Notethattheserulesareverybasic.Youarestronglyencouragedtouseamoresophisticatedfirewallsetup;however,thesewillprovidebasicsecurity.Ifyouarerunninganyser
8、versonyourmachine,youmustchoose'NONE'andsetupfirewallingyourself.Otherwise,thefirewallruleswilldenyaccesstoallstandardserverslikeWeb,e-mai