|
发表于 2005-11-8 10:38:29
|
显示全部楼层
# 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
# The primary network interface
auto eth0
iface eth0 inet static
address 10.10.31.4
netmask 255.255.255.0
network 10.10.31.0
broadcast 10.10.31.255
gateway 10.10.31.254
auto eth0:0
iface eth0:0 inet static
address 10.10.31.5
netmask 255.255.255.0
network 10.10.31.0
broadcast 10.10.31.255
注意,eth0:0没有gateway
然后使用ifup eth0:0就可以了。
不要使用/etc/init.d/network restart的方法
在debian中,启用和停止接口用ifup 和 ifdown的方法。 |
|