ubuntu网卡增加ip案例
root@ubuntu:~# vi /etc/network/interfaces
# 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 180.97.220.161
netmask 255.255.255.0
gateway 180.97.220.254
auto eth0:1
iface etth0:1 inet static
address 103.56.63.111
netmask 255.255.255.0
gateway 103.56.63.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 8.8.8.8 114.114.114.114