分享知识,分享快乐

0%

centos绑定虚拟IP

配置虚拟IP

/sbin/ifconfig bond0:2 172.20.192.241 netmask 255.255.255.0 up

广播通知

/sbin/arping -c 5 -U -I bond0 172.20.192.241 >/dev/null 2>&1

关闭虚拟IP

/sbin/ifconfig bond0:2 172.20.192.241 netmask 255.255.255.0 down