vi /etc/sysconfig/network-scripts/ifcfg-eth0:1
DEVICE=eth0:1
BOOTPROTO=static
IPADDR=IP地址
NETMASK=掩码
ONBOOT=yes
service network restart
转载于:https://blog.51cto.com/gdzy1987/591124