Get the interface IPs
ip a | grep inet | awk ‘{print $2}’ | cut -d/ -f1
cphaprob -m tablestat
—- Unique IP’s Table —-
Member Interface IP-Address MAC-Address
(Local)
0 2 13.49.132.78 00:1c:7f:c3:ff:b8
0 24 192.168.0.2 00:1c:7f:a5:ff:d7
1 2 13.49.132.79 00:1c:7f:c3:ff:cc
1 24 192.168.0.3 00:1c:7f:a5:ff:6f
https://community.checkpoint.com/t5/Security-Gateways/How-to-send-G-ARP-manually/td-p/69895
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind
ip l | grep UP | grep -v lo | awk '{print $2}' | sed -e 's/://' | awk -F@ '{print $1}' |while read int; do
addr=$(ip a show $int | grep inet | awk '{print $2}' | cut -d/ -f1 | awk -F. '{ printf "%s.%s.%s.%s\n",$1,$2,$3,$4-1 }') ;
[ ! -z $addr ] && echo arping -c 4 -A -I $int $addr ;
done
clish -c "show configuration interface" | grep -e 'bond.\..*state off' | sed -e 's/off/on/' | while read cmd ; do echo clish -c \"$cmd\"; done
clish -c "set interface bond1.993 state on"
clish -c "set interface bond2.995 state on"
clish -c "set interface bond3.318 state on"
clish -c "set interface bond3.901 state on"
clish -c "set interface bond3.902 state on"
clish -c "set interface bond3.903 state on"
clish -c "set interface bond3.904 state on"
clish -c "set interface bond3.905 state on"
clish -c "set interface bond3.906 state on"
clish -c "set interface bond3.907 state on"
clish -c "set interface bond3.908 state on"
clish -c "set interface bond3.909 state on"
clish -c "set interface bond3.910 state on"
clish -c "set interface bond3.913 state on"
clish -c "set interface bond3.914 state on"
clish -c "set interface bond3.915 state on"

