摘要:Ubuntu - 修改網卡,加入私有IP
https://library.linode.com/networking/configuring-static-ip-interfaces
sudo vi /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
auto eth0 eth0:0
iface eth0 inet dhcp
# private ip
iface eth0:0 inet static
address private ip
netmask 255.255.128.0
sudo /etc/init.d/networking restart