带来一篇CentOS6.4 adsl电信宽带拔号上彀设置
如果您觉得本篇CentOSLinux教程讲得好,请记得点击右边漂浮的分享程序,把好文章分享给你的好朋友们!我用的是电信8M宽带,联网也费了很年夜劲。将CentOS6.4收集设置历程纪录上去。以下满是以root权限实行的。在下令行中输出su回车输出root暗码就可以用root权限了。--------------------------------------------------------------------------------
起首将光盘1放进光驱,启动以后,实行以下下令:
mount/dev/cdrom/mnt
cd/mnt
rpm-ivhppp*rp-pppo*
装置好了以后持续往下
#pppoe-setup---------------这里入手下手装置PPPOE
WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson
yoursystemtomakesurethePPPoEclientisinstalledproperly...
LOGINNAME
EnteryourLoginName(defaultroot):xy170638010214---------------这里键进上彀拨号的帐号
INTERFACE
EntertheEthernetinte***ceconnectedtothePPPoEmodem
ForSolaris,thisislikelytobesomethinglike/dev/hme0.
ForLinux,itwillbeethX,whereXisanumber.
(defaulteth0):---------------这里按回车键(这里的话要注重选对网卡,假如你是经由过程网线链接电脑上彀的,那末你就选择eth0,可是假如你利用无线链接路由器的那末选择wlan0,我刚入手下手没有选对网卡,招致最初实行adsl-start的时分报错提醒/usr/sbin/adsl-start:line217:4044Terminated$CONNECT"$@">/dev/null2>&1,个中的4044貌似每次都在变,有的是后是3907。人人要注重啊。)
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,Iwillassumeyouknowwhatyouareppp
doingandnotmodifyyourDNSsetup.
EntertheDNSinformationhere:---------------这里键进server也就是主动取得DNS
PASSWORD
PleaseenteryourPassword:---------------这
里键进上彀拨号暗码
Pleasere-enteryourPassword:---------------这里键进上彀拨号暗码
USERCTRL
Pleaseenteryes(threeletters,lower-case.)ifyouwanttoallow
normalusertostartorstopDSLconnection(defaultyes):---------------这里键进yes
FIREWALLING
Pleasechoosethefirewallrulestouse.Notethattheserulesare
verybasic.YouarestronglyencouragedtouseamoresophisticatedNTHQB198529CFO
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):y---------------这里键进y
**Summaryofwhatyouentered**
EthernetInte***ce:eth0
Username:xy170638010214
Activate-on-demand:No
DNSaddresses:SuppliedbyISPsserver
Firewalling:NONE
UserControl:yes
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/pppoe-status/etc/sysconfig/network-scripts/ifcfg-ppp0
toseethelinkstatus.
#pppoe-start---------------激活PPPOE装备,乐成后会主动前往
#(呈现这个申明链接乐成。不乐成会报错的。)
#pppoe-status---------------检察PPPOE形态
pppoe-status:Linkisupandrunningoninte***ceppp0
6:ppp0:mtu1492qdiscpfifo_faststateUNKNOWNqlen3
link/ppp
inet113.14.36.24peer113.14.32.1/32scopeglobalppp0---------------这里有IP分派给你了,能够晓得你已乐成登录这个帐号了。我们ping下百度IP看看通了,以是能够上彀咯。
#ping121.14.88.14
PING121.14.88.14(121.14.88.14)56(84)bytesofdata.
64bytesfrom121.14.88.14:icmp_seq=1ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=2ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=3ttl=54time=17.6ms
64bytesfrom121.14.88.14:icmp_seq=4ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=5ttl=54time=17.7ms
^C64bytesfrom121.14.88.14:icmp_seq=6ttl=54time=17.6ms
64bytesfrom121.14.88.14:icmp_seq=7ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=8ttl=54time=17.6ms
64bytesfrom121.14.88.14:icmp_seq=9ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=10ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=11ttl=54time=17.7ms
64bytesfrom121.14.88.14:icmp_seq=12ttl=54time=17.7ms
^C64bytesfrom121.14.88.14:icmp_seq=13ttl=54time=18.1ms
64bytesfrom121.14.88.14:icmp_seq=14ttl=54time=17.6ms
64bytesfrom121.14.88.14:icmp_seq=15ttl=54time=17.6ms
^C^X64bytesfrom121.14.88.14:icmp_seq=16ttl=54time=17.6ms
^X^C
---121.14.88.14pingstatistics---
16packetstransmitted,16received,0%packetloss,time15895ms
rttmin/avg/max/mdev=17.675/17.744/18.170/0.175ms
#pppoe-status
pppoe-status:Linkisupandrunningoninte***ceppp0
6:ppp0:mtu1492qdiscpfifo_faststateUNKNOWNqlen3
link/ppp
inet113.14.36.24peer113.14.32.1/32scopeglobalppp0
#
以下是对PPPOE的基础操纵
利用:
拨号上彀pppoe-start
段开上彀pppoe-stop
检察形态pppoe-status
欢迎大家来到仓酷云论坛! 尽我能力帮助他人,在帮助他人的同时你会深刻巩固知识。 说实话小时候没想过搞IT,也计算机了解也只是一些皮毛,至于什么UNIX,Linux,听过没见过,就更别说用过了。? Linux的成功就在于用最少的资源最短的时间实现了所有功能,这也是符合人类进化的,相信以后节能问题会日益突出。 如果你想深入学习Linux,看不懂因为文档实在是太难了。写的最好的、最全面的文档都是英语写的,最先发布的技术信息也都是用英语写的。 期间我阅读了不少关于Linux的相关资料,其中也不乏一些有趣的小故事,这既丰富了我的课余生活,也让我加深了对一些术语的理解,比玩游戏强多了。? 任何一个叫做操作系统的东西都是这样子构成的:内核+用户界面+一般应用程序。 Linux只是个内核!这点很重要,你必须理解这一点。只有一个内核是不能构成一个操作系统的。
页:
[1]