diff --git a/HQ%2FNetzwerk%2FPPPoE_failover.mw b/HQ%2FNetzwerk%2FPPPoE_failover.mw index 64346ec1..8b9cc898 100644 --- a/HQ%2FNetzwerk%2FPPPoE_failover.mw +++ b/HQ%2FNetzwerk%2FPPPoE_failover.mw @@ -311,10 +311,20 @@ vi /root/ucarp_up.sh #// Load variables from rc.conf . /etc/rc.subr load_rc_config ucarp +#// check weird behavior +ping -S .92 -c 4 -q .91 > /dev/null +if [ $? -eq 0 ] +then + /usr/bin/logger "[WARNING] PPPoE Failover false/positive!" + exit 1 +else + : # dummy +fi +#// starting CARP failover /sbin/ifconfig $ucarp_if alias $ucarp_addr/24 /sbin/ifconfig $ucarp_if inet6 2001:BLA:BLA:BLA::5 prefixlen 64 alias #// force arp refresh for the shared ip -ping -S 172.22.99.4 -c 2 -q 172.22.99.7 > /dev/null +ping -S .4 -c 2 -q .7 > /dev/null #// delete default gateway route -n delete default >/dev/null 2>&1 #// clean ppp log