可是发现仍然上不了网;sudo pppoeconf
依照步骤提示进行,在输入用户名的时候注意把username清空後输入,否则可能会出现usernameXXXXX的现象。
[编辑] 防止 ADSL 掉线
在终端内
sudo gedit /etc/network/interfaces
复制下面内容完全复盖即可
# /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep
map eth1
# The primary network interface
iface eth1 inet static
address 10.0.0.139
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 211.162.32.1 211.162.32.20
nameservers 是你的dns服务器地址,如果有路由器的同志可以打开路由器设置看看,把路由器上的默认dns服务器贴上。
sudo pon dsl.provider 时,提示:
sudo plog 查看,提示:The file /etc/ppp/peers/dsl.provider does not exist. Please create it or use
a command line argument to use another file in the /etc/ppp/peers/ directory
我是济南网通用户,2M的ADSL。 请指点下,照着网上的文章尝试了多次还不行。有问题还得返回到win下来解决,很郁闷。Jun 11 10:29:23 baby-laptop pppd[15178]: remote IP address 60.208.224.1
Jun 11 10:29:23 baby-laptop pppd[15178]: primary DNS address 202.102.134.68
Jun 11 10:29:23 baby-laptop pppd[15178]: secondary DNS address 202.102.152.3
Jun 11 10:29:24 baby-laptop pppd[15178]: Terminating on signal 15
Jun 11 10:29:24 baby-laptop pppd[15178]: Connect time 0.1 minutes.
Jun 11 10:29:24 baby-laptop pppd[15178]: Sent 0 bytes, received 0 bytes.
Jun 11 10:29:24 baby-laptop pppd[15178]: Connection terminated.
Jun 11 10:29:24 baby-laptop pppd[15178]: Exit.
谢谢