Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1367638
  • 博文数量: 828
  • 博客积分: 10000
  • 博客等级: 上将
  • 技术积分: 5030
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-29 13:29
文章分类

全部博文(828)

文章存档

2011年(1)

2008年(827)

我的朋友

分类: LINUX

2008-08-29 13:36:26

 
Fedora8发布,我早早地将它下载安装。大的风格没有明显地变化,但是感觉到启动速度快乐很多,这也许是gnome-2.20做了许多改进吧。多谢开发组的大拿了。现在最重要的事情是要上网,所以赶快配置Fedora上网。

在fedora下,使用拨号上网是一件比较麻烦的事情,不过如果你愿意手动配置的话,这些也不是一件特别麻烦的事情。下面是我在Fedora7/8都尝试过的方法,比较方便。因为Fedora提供了配置工具来设置拨号上网的参数。我们这里要使用的工具是pppoe-setup,pppoe-connect,pppoe-stop.

但是在使用上述工具你必须具备超级用户的权限,否则是无法完成本文介绍的方法。

pppoe-setup:设置拨号参数,使用一次足矣(假设你比较幸运的话)

pppoe-connect:每次拨号时运行此工具,既可以完成拨号上网

pppoe-stop:每次断网时,可以运行此工具,拆除同网络供应商的连接。

在本文中,绿色的部分均为手动输入的内容。

首先,使自己成为根用户。

[work@localhost~]$su

Password:

然后运行pppoe-setu命令。该命令位于/sbin/(在/usr/sbin/下面也有一个同样的命令,这是一个符号连接到/sbin/的同名)

[root@localhostwork]#/sbin/pppoe-setup

然后你会看到pppoe-setup会输出如下的提示。

WelcometothePPPoEclientsetup.First,Iwillrunsomecheckson

yoursystemtomakesurethePPPoEclientisinstalledproperly...

LOGINNAME

现在它提示你输入你在ISP所用的用户名(也叫做帐号)。

EnteryourLoginName(defaultwork):1002999

然后你会看到如下提示,这时他会提示你输入使用连接的以太网接口,不需要输入任何内容,默认值即可。

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参数,我选择的是输入:server。

DNS

PleaseentertheIPaddressofyourISP''sprimaryDNSserver.

IfyourISPclaimsthat''theserverwillprovidedynamicDNSaddresses'',

enter''server''(alllower-case)here.

Ifyoujustpressenter,Iwillassumeyouknowwhatyouare

doingandnotmodifyyourDNSsetup.

EntertheDNSinformationhere:server

现在,要求你输入对应于帐户的密码(这有些类似于你在银行帐户的密码一样,这些参数可以从你的互联网服务提供商得到),系统会让你输入两次密码确认。

PASSWORD

PleaseenteryourPassword:xxxxxx

Pleasere-enteryourPassword:xxxxxx

对于下面的提问,你可以不予理会,使用系统的默认参数即可。

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):

现在,系统开始总结你设置的参数。要求你确认,此时,你可以输入一个小y来确认。

**Summaryofwhatyouentered**

EthernetInterface:eth0

Username:*sunzhou_110

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.

但是,此时你还无法联网,你必须手动建立连接,此时需要运行pppoe-connect命令。如果你看到了下面的绿色输出表明你可以在网上冲浪了。:)

[root@localhostwork]#/sbin/pppoe-connect

/sbin/pppoe-connect:line285:ip:commandnotfound

/sbin/pppoe-connect:line357:ip:commandnotfound

Usinginterfaceppp0

Connect:ppp0<-->/dev/pts/1

Remotemessage:Authenticationsuccess,Welcome!

PAPauthenticationsucceeded

localIPaddress222.62.108.148

remoteIPaddress222.62.104.1

primaryDNSaddress211.98.2.4

secondaryDNSaddress61.233.9.9

此时你可以运行下面的命令,如果看到域名被正确解析且有回应,则一切OK

[work@localhost~]$ping

PINGpub.kernel.org(204.152.191.37)56(84)bytesofdata.

64bytesfrompub2.kernel.org(204.152.191.37):icmp_seq=1ttl=48time=311ms

64bytesfrompub2.kernel.org(204.152.191.37):icmp_seq=2ttl=48time=318ms

64bytesfrompub2.kernel.org(204.152.191.37):icmp_seq=3ttl=48time=327ms

最后,如果在网上玩够了,则需要断掉连接,可以运行下面的命令

[root@localhost~]#/sbin/pppoe-stop

Terminatingonsignal15

Connecttime0.6minutes.

Sent2558bytes,received2166bytes.

cat:/var/run/pppoe-adsl.pid.start:Nosuchfileordirectory

pppoe:read(asyncReadFromPPP):Session5001:Input/outputerror

如果你看到了最后一行的错误报告,不予理会它。怎么样,在Fedora上进行网上冲浪也不是这么麻烦吧。

Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网Fedora8下拨号上网
阅读(751) | 评论(0) | 转发(0) |
0

上一篇:硬盘安装fedora8

下一篇:fedora8安装mysql

给主人留下些什么吧!~~