Chinaunix首页 | 论坛 | 博客
  • 博客访问: 658107
  • 博文数量: 780
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 4885
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-22 16:14
文章分类

全部博文(780)

文章存档

2008年(780)

我的朋友

分类: LINUX

2008-08-22 16:24:50


成了pppoe软件
我不介绍怎么安装了。
下面直接介绍配置过程:
QUOTE:[root@localhostppp]#pppoe-setup

WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson
yoursystemtomakesurethePPPoEclientisinstalledproperly...


LOGINNAME(adsl拨号帐号)

EnteryourLoginName(defaultroot):abc@adsl

INTERFACE(接口,也就是使用那块网卡)

EntertheEthernetinterfaceconnectedtothePPPoEmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,where''X''isanumber.
(defaulteth0):

Doyouwantthelinktocomeupondemand,orstayupcontinuously?
Ifyouwantittocomeupondemand,entertheidletimeinseconds
afterwhichthelinkshouldbedropped.Ifyouwantthelinkto
stayuppermanently,enter''no''(twoletters,lower-case.)
NOTE:Demand-activatedlinksdonotinteractwellwithdynamicIP
addresses.Youmayhavesomeproblemswithdemand-activatedlinks.
Enterthedemandvalue(defaultno):(按需拨号个功能)

DNS

PleaseentertheIPaddressofyourISP''sprimaryDNSserver.
IfyourISPclaimsthat''theserverwillprovidedynamicDNSaddresses'',
enter''server''(alllower-case)here.
Ifyoujustpressenter,Iwillassumeyouknowwhatyouare
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere:server(输入“server”,自动从isp那里获取dns)

PASSWORD(adsl拨号的密码,一般都是电话号码)

PleaseenteryourPassword:
Pleasere-enteryourPassword:
Sorry,thepasswordsdonotmatch.Tryagain?(y/n)y(密码输入错误,所以要求重新输入)

PASSWORD

PleaseenteryourPassword:
Pleasere-enteryourPassword:

USERCTRL

Pleaseenter''yes''(threeletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):yes(普通用户使用拨号功能)

FIREWALLING

Pleasechoosethefirewallrulestouse.Notethattheserulesare
verybasic.Youarestronglyencouragedtouseamoresophisticated
firewallsetup;however,thesewillprovidebasicsecurity.Ifyou
arerunninganyserversonyourmachine,youmustchoose''NONE''and
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(防火墙,选择2的时候,如果是用ssh登录的,在你开始pppoe后,马上断掉连接)

Startthisconnectionatboottime

Doyouwanttostartthisconnectionatboottime?
Pleaseenternooryes(defaultno):

**Summaryofwhatyouentered**

EthernetInterface:eth0
Username:abc@adsl
Activate-on-demand:No
DNSaddresses:SuppliedbyISP''sserver
Firewalling:NONE
UserControl:yes
Acceptthesesettingsandadjustconfigurationfiles(y/n)?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/ifupppp0''tobringupyourxDSLlinkand''/sbin/ifdownppp0''
tobringitdown.
Type''/sbin/pppoe-status/etc/sysconfig/network-scripts/ifcfg-ppp0''
toseethelinkstatus.

到这里,adsl的配置完成了。 下载本文示例代码
阅读(295) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~