- 論壇徽章:
- 0
|
安裝pppoe,安裝完軟件包后,必須配置pppoe的配置文件/etc/ppp/pppoe.conf,從而讓ADSL撥號(hào)時(shí)
使用配置文件中的用戶名、密碼等參數(shù)。我們不必手工改動(dòng)這個(gè)文件,可以使用
adsl-setup這個(gè)工具進(jìn)行配置:
#/usr/sbin/adsl-setup
當(dāng)出現(xiàn)
>>> Enter your PPPoE user name :
輸入ADSL帳號(hào)的用戶名
當(dāng)出現(xiàn)
>>> Enter the Ethernet interface connected to the ADSL modem
For Solaris, this is likely to be something like /dev/hme0.
For Linux, it will be ethn, where 'n' is a number.
(default eth0):
輸入 eth0 ,這是ADSL相連的網(wǎng)卡的名字
當(dāng)出現(xiàn)
>>> Enter the demand value (default no):
輸入 no
當(dāng)出現(xiàn)
>>> Enter the DNS information here:
輸入 server ,這表示使用ADSL撥號(hào)自動(dòng)獲得的DNS服務(wù)器IP地址
當(dāng)出現(xiàn)
>>> Please enter your PPPoE password:
輸入ADSL帳號(hào)的密碼
當(dāng)出現(xiàn)
>>> Choose a type of firewall (0-2):
輸入 0 ,不使用防火墻
當(dāng)出現(xiàn)
>>> Accept these settings and adjust configuration files (y/n)?
如果輸入的信息正確,輸入 y ,完成配置,否則,輸入 n 重新輸入。
四、啟動(dòng)PPPOE客戶端軟件
使用命令
/usr/sbin/adsl-start 啟動(dòng)PPPOE客戶端軟件,進(jìn)行連接,如果成功,將出現(xiàn)
Connected;
如果不成功,請(qǐng)檢查網(wǎng)線、ADSL MODEM等物理設(shè)備,并查看 /var/log/messages中的信
息
/usr/sbin/adsl-stop 關(guān)閉和ISP的連接
/usr/sbin/adsl-status 查看當(dāng)前連接的狀態(tài)
如果想在Linux系統(tǒng)啟動(dòng)時(shí)自動(dòng)啟動(dòng)ADSL連接,輸入以下命令
#chkconfig --add adsl
將在當(dāng)前的運(yùn)行級(jí)下加入ADSL的自啟動(dòng)腳本
五、測(cè)試
當(dāng)連接成功后,使用命令
[/url]
本文來(lái)自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):[url]http://blog.chinaunix.net/u3/93926/showart_1922777.html |
|