比如,我的centos6.4的的eth0的ip为192.168.30.130,网关是192.168.30.1,我想为eth0添加另外两条ip地址,131和132,
则只要向ifcfg-eth0文件添加IPADDR=192.68.30.130
IPADDR=192.168.30.130
NETMASK=255.255.255.0
IPADDR2=192.168.30.131
NETMASK2=255.255.255.0
IPADDR3=192.168.30.132
NETMASK3=255.255.255.0
DNS1=8.8.8.8
GATEWAY=192.168.30.1