1:下載下傳 system-config-network-1.5.94-2.fc10.noarch.rpm和system-config-network-tui-1.5.94-2.fc10.noarch.rpm,并同時安裝:rpm -uvh 包1 包2;
2:首先确認你的網卡正常工作,讓他處于自動擷取ip狀态,啟動linux終端(root權限),因為fedora10下已經自帶有pppoe的安裝檔案,可以直接輸入如下指令,要想了解各個步驟是什麼意思,那就看英語咯,我這裡就不多解析了。
[root@localhost ~]# pppoe-setup ---------------這裡開始安裝pppoe
welcome to the pppoe client setup. first, i will run some checks on
your system to make sure the pppoe client is installed properly...
login name
enter your login name (default root): xy170638010214 ---------------這裡鍵入上網撥号的帳号
interface
enter the ethernet interface connected to the pppoe modem
for solaris, this is likely to be something like /dev/hme0.
for linux, it will be ethx, where 'x' is a number.
(default eth0): ---------------這裡按Enter鍵
do you want the link to come up on demand, or stay up continuously?
if you want it to come up on demand, enter the idle time in seconds
after which the link should be dropped. if you want the link to
stay up permanently, enter 'no' (two letters, lower-case.)
note: demand-activated links do not interact well with dynamic ip
addresses. you may have some problems with demand-activated links.
enter the demand value (default no): ---------------這裡按Enter鍵
dns
please enter the ip address of your isp's primary dns server.
if your isp claims that 'the server will provide dynamic dns addresses',
enter 'server' (all lower-case) here.
if you just press enter, i will assume you know what you are
doing and not modify your dns setup.
enter the dns information here: ---------------這裡鍵入 server 也就是自動獲得dns
password
please enter your password: ---------------這裡鍵入上網撥号密碼
please re-enter your password: ---------------這裡鍵入上網撥号密碼
userctrl
please enter 'yes' (three letters, lower-case.) if you want to allow
normal user to start or stop dsl connection (default yes): ---------------這裡鍵入 yes
firewalling
please choose the firewall rules to use. note that these rules are
very basic. you are strongly encouraged to use a more sophisticated
firewall setup; however, these will provide basic security. if you
are running any servers on your machine, you must choose 'none' and
set up firewalling yourself. otherwise, the firewall rules will deny
access to all standard servers like web, e-mail, ftp, etc. if you
are using ssh, the rules will block outgoing ssh connections which
allocate a privileged source port.
the firewall choices are:
0 - none: this script will not set any firewall rules. you are responsible
for ensuring the security of your machine. you are strongly
recommended to use some kind of firewall rules.
1 - standalone: appropriate for a basic stand-alone web-surfing workstation
2 - masquerade: appropriate for a machine acting as an internet gateway
for a lan
choose a type of firewall (0-2): 0 ---------------這裡鍵入 0
start this connection at boot time
do you want to start this connection at boot time?
please enter no or yes (default no):y ---------------這裡鍵入 yes
** summary of what you entered **
ethernet interface: eth0
user name: xy170638010214
activate-on-demand: no
dns addresses: supplied by isp's server
firewalling: none
user control: yes
accept these settings and adjust configuration files (y/n)? y ---------------這裡鍵入 y
adjusting /etc/sysconfig/network-scripts/ifcfg-ppp0
adjusting /etc/ppp/chap-secrets and /etc/ppp/pap-secrets
(but first backing it up to /etc/ppp/chap-secrets.bak)
(but first backing it up to /etc/ppp/pap-secrets.bak)
congratulations, it should be all set up!
type '/sbin/ifup ppp0' to bring up your xdsl link and '/sbin/ifdown ppp0'
to bring it down.
type '/sbin/pppoe-status /etc/sysconfig/network-scripts/ifcfg-ppp0'
to see the link status.
[root@localhost ~]# pppoe-start ---------------激活pppoe裝置,成功後會自動傳回
[root@localhost ~]# pppoe-status ---------------檢視pppoe狀态
pppoe-status: link is up and running on interface ppp0
6: ppp0: <pointopoint,multicast,noarp,up,lower_up> mtu 1492 qdisc pfifo_fast state unknown qlen 3
link/ppp
inet 113.14.36.24 peer 113.14.32.1/32 scope global ppp0 ---------------這裡有ip配置設定給你了,可以知道你已經成功登入這個帳号了。我們ping下百度ip看看 通了,是以可以上網咯。
[root@localhost ~]# ping 121.14.88.14
ping 121.14.88.14 (121.14.88.14) 56(84) bytes of data.
64 bytes from 121.14.88.14: icmp_seq=1 ttl=54 time=17.7 ms
64 bytes from 121.14.88.14: icmp_seq=2 ttl=54 time=17.7 ms
^x^c
--- 121.14.88.14 ping statistics ---
16 packets transmitted, 16 received, 0% packet loss, time 15895ms
rtt min/avg/max/mdev = 17.675/17.744/18.170/0.175 ms
[root@localhost ~]# pppoe-status
inet 113.14.36.24 peer 113.14.32.1/32 scope global ppp0
[root@localhost ~]#
以下是對pppoe的基本操作
使用:
撥号上網 pppoe-start
段開上網 pppoe-stop
檢視狀态 pppoe-status
3:要開起networkmanager服務;
參考至:http://blog.csdn.net/gshshaohui/archive/2009/05/02/4142677.aspx
如有錯誤,歡迎指正
作者:czmmiao 原文位址:http://czmmiao.iteye.com/blog/911327