# 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。客户端:
在浏览器中打开: (重复刷新,看显示的页面:如果是不同页面说明实验成功!)