arp-tables脚本
#!/bin/bash VIP=172.25.0.100 VIPCAST=172.25.0.255 RIP=192.168.88.80 DGW=172.25.0.254 DGWMAC="52:54:00:00:00:fe" arptables -F arptables -A IN -d $VIP -j DROP arptables -A OUT -s $VIP -j mangle --mangle-ip-s $RIP /sbin/ifconfig eth0:1 $VIP broadcast $VIPCAST netmask 255.255.255.0 up arp -s $DGW $DGWMAC /sbin/route add default gw $DGW
本文来自希曼博客-www.ximan.tech,作者:希曼博客,转载请注明原文链接:https://www.cnblogs.com/lihuaichen/p/8270171.html