200字范文,内容丰富有趣,生活中的好帮手!
200字范文 > linux宽带账号连接 linux下配置adsl宽带连接

linux宽带账号连接 linux下配置adsl宽带连接

时间:2024-05-11 16:25:00

相关推荐

linux宽带账号连接 linux下配置adsl宽带连接

没有路由器的情况下,linux也是需要拨号上网的。

从安装光盘Packages中取出下面三个包

libpcap-1.4.0-4.0826git2dbcaa1.el6.x86_64.rpm

ppp-2.4.5-10.el6.x86_64.rpm

rp-pppoe-3.10-16.el6.x86_64.rpm

使用rpm -ivh 安装#rpm-ivhlibpcap-1.4.0-4.0826git2dbcaa1.el6.x86_64.rpmppp-2.4.5-10.el6.x86_64.rpmppp-2.4.5-10.el6.x86_64.rpm

warning:packageppp=2.4.5-10.el6wasalreadyadded,skippingppp=2.4.5-10.el6

Preparing...###########################################[100%]

1:libpcap###########################################[50%]

2:ppp###########################################[100%]

进入/usr/sbin/ 执行adsl-setup进行配置#/usr/sbin/adsl-setup

WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson

yoursystemtomakesurethePPPoEclientisinstalledproperly...

LOGINNAME

EnteryourLoginName(defaultroot):

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

PASSWORD

PleaseenteryourPassword:

[root@ashome]#/usr/sbin/adsl-setup

WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson

yoursystemtomakesurethePPPoEclientisinstalledproperly...

LOGINNAME

EnteryourLoginName(defaultroot):此处填写宽带帐号

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:

PASSWORD

PleaseenteryourPassword:

Pleasere-enteryourPassword:

USERCTRL

Pleaseenter'yes'(threeletters,lower-case.)ifyouwanttoallow

normalusertostartorstopDSLconnection(defaultyes):

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

Startthisconnectionatboottime

Doyouwanttostartthisconnectionatboottime?

Pleaseenternooryes(defaultno):yes

**Summaryofwhatyouentered**

EthernetInterface:eth0

Username:此处为宽带帐号

Activate-on-demand:No

DNS:Donotadjust

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 -start

停止adsl -stop

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。