为什么每次开机都不能自动激活网卡

CPU/显卡/打印机/USB设备等硬件问题
回复
whitefish
帖子: 12
注册时间: 2005-10-18 11:42

为什么每次开机都不能自动激活网卡

#1

帖子 whitefish » 2005-10-20 22:26

为什么每次开机都不能自动激活网卡,即使关机点保存设置都没用,网卡设置为DHCP
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#2

帖子 eexpress » 2005-10-20 22:27

● 鸣学
whitefish
帖子: 12
注册时间: 2005-10-18 11:42

#3

帖子 whitefish » 2005-10-23 22:43

没用,我现在关机她就显示:
Deconfig network config... [failed]
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2005-10-23 22:45

/etc/network/interfaces的内容和权限信息
● 鸣学
whitefish
帖子: 12
注册时间: 2005-10-18 11:42

#5

帖子 whitefish » 2006-01-02 12:16

# 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
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep

# The primary network interface
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1


iface eth1 inet dhcp

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider

pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf

auto eth1
头像
firehare
帖子: 2625
注册时间: 2005-04-10 16:54
来自: 温州大学
联系:

#6

帖子 firehare » 2006-01-02 14:34

whitefish 写了:# 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
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
script grep

# The primary network interface
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1


iface eth1 inet dhcp

auto dsl-provider
iface dsl-provider inet ppp
provider dsl-provider

pre-up /sbin/ifconfig eth1 up # line maintained by pppoeconf

auto eth1
好乱呀!
请参照下面的修改:

代码: 全选

firehare@firehare:~$ more /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 static
        address 10.39.6.59
        netmask 255.255.255.0
        network 10.39.6.0
        broadcast 10.39.6.255
        gateway 10.39.6.254
        # dns-* options are implemented by the resolvconf package, if installed
        #dns-nameservers 10.39.6.254 192.168.0.1 192.168.1.1

auto eth0
如果你的是DHCP的话
那么将 iface eth0 inet static....改成 iface eth0 inet dhcp
我心无畏,源自于我心无知。
图片
回复