ubuntu add ip

vi /etc/network/interfaces

#eth0是主IP
auto eth0
iface eth0 inet static
address 8.8.8.23
gateway 8.8.8.1
netmask 255.255.255.0

#eth0:0是新增加的IP1
auto eth0:0
iface eth0:0 inet static
address 111.111.111.111
netmask 255.255.255.0

#eth0:1是新增加的IP2
auto eth0:1
iface eth0:1 inet static
address 222.222.222.222
netmask 255.255.255.0