|
发表于 2005-11-8 10:42:39
|
显示全部楼层
举个例子吧:
# 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
启用和停用接口用ifdown和ifup |
|