为什么每次开机都不能自动激活网卡
-
- 帖子: 12
- 注册时间: 2005-10-18 11:42
为什么每次开机都不能自动激活网卡
为什么每次开机都不能自动激活网卡,即使关机点保存设置都没用,网卡设置为DHCP
- eexpress
- 帖子: 58428
- 注册时间: 2005-08-14 21:55
- 来自: 长沙
-
- 帖子: 12
- 注册时间: 2005-10-18 11:42
# 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
# 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
- 来自: 温州大学
- 联系:
好乱呀!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
那么将 iface eth0 inet static....改成 iface eth0 inet dhcp
我心无畏,源自于我心无知。