首次撥號:
應用程序–系統(tǒng)工具–終端 打開一終端,輸入命令:
sudo pppoeconf
系統(tǒng)開始搜索所有網絡接口上的adsl modem,一步步的yes過來。
│ 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帳號。
輸入密碼。
Would you like to add these addresses automatically to the list of nameservers in your local /etc/resolv.conf file? (recommended)
是否自動獲得DNS,選擇是。
Should pppoe clamp MSS at 1452 bytes? If unsure, say yes.
數據包長度的設置,如果跟我一樣不確定,選擇是
Your PPPD is configured now. Would you like to start the connection at boot time?
是否啟動時自動激活ADSL? 各位看著辦吧。
以后,要手工撥號,打開終端,輸入命令:
sudo pon dsl-provider
一般情況下,一次撥通后以后登陸ubuntu都會自動撥通上網的了,不用每次都輸入命令撥號。
手工斷線:
sudo poff
查看連接情況:
plog 和 ifconfig ppp0
ifconfig ppp0 可查詢本機的上網IP。