修改/etc/network 目录下有两个文件:ifstate interface
1:#cd /etc/network
#vi interface
# 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 eth0 eth1 eth1:1 eth1:2
iface lo inet loopback
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
iface eth1 inet static
address 124.205.148.178
netmask 255.255.255.240
gateway 124.205.148.177
iface eth1:1 inet static
address 124.205.148.179
netmask 255.255.255.240
gateway 124.205.148.177
iface eth1:2 inet static
address 124.205.148.181
netmask 255.255.255.240
gateway 124.205.148.177
保存退出
2:#vi ifstate
lo=lo
eth0=eth0
eth1=eth1
eth1:1=eth1:1
eth1:2=eth1:2
~
~
保存退出!
ok