刚装了ubuntu5.10,可是ADSL总是不能自动启动,我的是网卡直接连在ADSL猫上,没有经过路由器或者交换机(也就是这个方法说对它们没有作用),按照网上说的网卡ip地址设置为192,168,1,10 网关设为192.168.1.1(ADSL猫的地址),仍然不能开机自动启动(尽管在pppoeconf中设置了自动启动)。打开“系统”-“系统管理”-“联网”一看,eth0网卡处于未激活状态。打开/etc/network/interfaces一看,原来pppoeconf做了如下改动:
# 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 static
network 192.168.1.0
broadcast 192.168.1.255
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
# added by pppoeconf
auto eth0
pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf
网卡未激活肯定是最后一句auto eth0 pre-up /sbin/ifconfig eth0 up没有起作用,删掉它,然后把eth0设为自动启动,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
auto eth0
iface eth0 inet static
network 192.168.1.0
broadcast 192.168.1.255
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.1
auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider
哈哈,试试吧!ADSL终于可以开机自动启动了!希望能对像我一样的菜鸟朋友们有所帮助。
让ADSL开机自动启动!
- rs888
- 帖子: 75
- 注册时间: 2005-11-30 20:48
- vovoy
- 帖子: 30
- 注册时间: 2006-03-18 0:43