首次撥號(hào):
應(yīng)用程序–系統(tǒng)工具–終端 打開(kāi)一終端,輸入命令:
sudo pppoeconf
系統(tǒng)開(kāi)始搜索所有網(wǎng)絡(luò)接口上的adsl modem,一步步的yes過(guò)來(lái)。
│ Please enter the username which you usually need for │
│ the PPP login to your provider in the input box below. │
│ If you wish to see the help screen, delete the │
│ username and press OK. │
輸入你的adsl帳號(hào)。
輸入密碼。
Would you like to add these addresses automatically to the list of nameservers in your local /etc/resolv.conf file? (recommended)
是否自動(dòng)獲得DNS,選擇是。
Should pppoe clamp MSS at 1452 bytes? If unsure, say yes.
數(shù)據(jù)包長(zhǎng)度的設(shè)置,如果跟我一樣不確定,選擇是
Your PPPD is configured now. Would you like to start the connection at boot time?
是否啟動(dòng)時(shí)自動(dòng)激活A(yù)DSL? 各位看著辦吧。
以后,要手工撥號(hào),打開(kāi)終端,輸入命令:
sudo pon dsl-provider
一般情況下,一次撥通后以后登陸ubuntu都會(huì)自動(dòng)撥通上網(wǎng)的了,不用每次都輸入命令撥號(hào)。
手工斷線(xiàn):
sudo poff
查看連接情況:
plog 和 ifconfig ppp0
ifconfig ppp0 可查詢(xún)本機(jī)的上網(wǎng)IP。