CentOS下单网卡配置双IP的解决办法

# cd  /etc/sysconfig/network-scripts/

# cp -p ifcfg-eth0  ifcfg-eth0:0    

 

 

vi ifcfg-eth0:0  

 

# Intel Corporation 82574L Gigabit Network Connection
DEVICE=eth0:0
BOOTPROTO=static
BROADCAST=192.168.88.255
HWADDR=00:e0:81:d4:c4:ac
IPADDR=192.168.88.4
NETMASK=255.255.255.0
NETWORK=192.168.88.0
ONBOOT=yes

保存后退出, service network restart 重启生效.

posted @ 2012-03-07 14:21  糖豆爸爸  阅读(939)  评论(0编辑  收藏  举报
Live2D