分页: 1 / 1

[问题]手动指定ip要重启机器?

发表于 : 2006-03-22 18:43
networker
我的机器从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

发表于 : 2006-04-23 13:21
zhan
看不出什么问题,
sudo ifdown eth0停止
sudo ifup eth0起动行么?

发表于 : 2006-04-23 13:22
zhan
看不出什么问题,
sudo ifdown eth0停止
sudo ifup eth0起动行么?

发表于 : 2006-04-23 14:03
eexpress
修改配置,确实只要重启网卡就可以