ubuntu单网卡配置多IP地址
root@fish:~/Desktop# vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.1.50
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0:1
iface eth0:1 inet static
address 192.168.2.50
netmask 255.255.255.0

root@fish:~/Desktop# /etc/init.d/networking restart