让ADSL开机自动启动!

上网、浏览、聊天、下载等
回复
头像
rs888
帖子: 75
注册时间: 2005-11-30 20:48

让ADSL开机自动启动!

#1

帖子 rs888 » 2005-12-26 19:37

刚装了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终于可以开机自动启动了!希望能对像我一样的菜鸟朋友们有所帮助。
头像
lyp069
帖子: 272
注册时间: 2005-10-25 13:54
联系:

#2

帖子 lyp069 » 2006-01-09 12:47

好东西,该加精华
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#3

帖子 eexpress » 2006-01-09 20:01

论坛老早就说多次了。 :lol:
● 鸣学
头像
vovoy
帖子: 30
注册时间: 2006-03-18 0:43

#4

帖子 vovoy » 2006-03-18 18:55

interfaces不能打开是什么回事?

我是虚拟使用ubuntu, 原有XP系统,现在不能上网,不能解析IP地址???

什么有两个网络连接VMware Network Adapter VMnet8和本地连接?

什么配置?
头像
vovoy
帖子: 30
注册时间: 2006-03-18 0:43

#5

帖子 vovoy » 2006-03-18 18:59

还有我的ADSL是带路由功能的,是不是不用PPPOE?
回复