Linux下创建虚VIP的方法及相互的区别:

#创建虚VIP
ifconfig eth1:1 192.168.202.200 broadcast 192.168.202.255 netmask 255.255.255.0 up

ip addr add 192.168.202.200/32 dev eth1

#关闭虚VIP
ifconfig eth1:1 192.168.202.200 broadcast 192.168.202.255 netmask 255.255.255.0 down

ip addr del 192.168.202.200/32 dev eth1

详细信息请参考:https://blog.csdn.net/chengxuyuanyonghu/article/details/83539966

猜你喜欢

转载自www.cnblogs.com/EikiXu/p/11096586.html