RedHat下隧道模式的负载均衡(3)

# vim /bin/shutarp
            -------------------------------
            #!/bin/bash
            VIP=192.168.0.19
            /sbin/ifconfig lo:0 $VIP broadcast $VIP netmask 255.255.255.255 up
            /sbin/route add -host $VIP dev lo:0
            echo "1" >/proc/sys/net/ipv4/conf/lo/arp_ignore
            echo "2" >/proc/sys/net/ipv4/conf/lo/arp_announce
            echo "1" >/proc/sys/net/ipv4/conf/all/arp_ignore
            echo "2" >/proc/sys/net/ipv4/conf/all/arp_announce
            sysctl -p
            -------------------------------
        # shutarp

C。客户端:
    在浏览器中打开:    (重复刷新,看显示的页面:如果是不同页面说明实验成功!)

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wyddgs.html