[问题]手动指定ip要重启机器?
发表于 : 2006-03-22 18:43
我的机器从dhcp到手动指定ip地址。需要重启机器吗?重启服务为什么不行呢。?这是bug还是我没配置好呢。下面是我的配置文件:
# 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
#iface dsl-provider inet ppp
#provider dsl-provider
# added by pppoeconf
#auto eth0
# iface eth0 inet manual
#auto eth0
# iface eth0 inet manual
#############################################
# The primary network interface
iface eth0 inet dhcp
auto eth0
################ static IP address###################
## The primary network interface
#iface eth0 inet static
#address 192.168.117.13
#netmask 255.255.254.0
#gateway 192.168.116.4
###################################################
#####################################
# pre-up /sbin/ifconfig eth0 up # line maintained by 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
#iface dsl-provider inet ppp
#provider dsl-provider
# added by pppoeconf
#auto eth0
# iface eth0 inet manual
#auto eth0
# iface eth0 inet manual
#############################################
# The primary network interface
iface eth0 inet dhcp
auto eth0
################ static IP address###################
## The primary network interface
#iface eth0 inet static
#address 192.168.117.13
#netmask 255.255.254.0
#gateway 192.168.116.4
###################################################
#####################################
# pre-up /sbin/ifconfig eth0 up # line maintained by pppoeconf