sudo pppoeconf
系统开始搜索所有网络接口上的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。