在終端中輸入
sudo pppoeconf
設置完寬帶上網後——
問 題:系統啟動的時候網卡都沒自動激活,每次都要到 系統--聯網 —-激活eth0...
解決方案:看看/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 eth0
# The primary network interface
iface eth0 inet dhcp
--
把/etc/network/interfaces文件末尾多的一條命令那行去掉,我的是多了這麼一行:
pre-up /sbin/ifconfig eth0 up
# line maintained by pppoeconf
刪掉之後系統就能自動激活eth0了。
然後再在終端裡輸入:
sudo ln -s /etc/ppp/pppoe_on_boot /etc/ppp/ppp_on_boot
pppoeconf也能自動撥號了。