Revision 22023e89
b/fix-net | ||
---|---|---|
33 | 33 |
eui64=$($MAC2EUI64 $MAC $SUBNET6 2>/dev/null) |
34 | 34 |
if [ "$GANETI_INSTANCE_PRIMARY" = "$host.$domain" ]; then |
35 | 35 |
# This runs on the source node |
36 |
hooks-log clear-proxy-ndp "ip -6 neigh del proxy $eui64 dev $uplink6"
|
|
36 |
hooks-log $0 "ip -6 neigh del proxy $eui64 dev $uplink6"
|
|
37 | 37 |
ip -6 neigh del proxy $eui64 dev $uplink6 >/dev/null 2>&1 |
38 | 38 |
else |
39 | 39 |
# This runs on the target node |
40 | 40 |
# Send GARP from host to upstream router to speed up mac change for the VMs IP |
41 |
hooks-log clear-proxy-ndp "arping -c3 -I $uplink -U $IP"
|
|
41 |
hooks-log $0 "arping -c3 -I $uplink -U $IP"
|
|
42 | 42 |
echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind |
43 | 43 |
arping -c3 -I $uplink -U $IP |
44 | 44 |
echo 0 > /proc/sys/net/ipv4/ip_nonlocal_bind |
45 | 45 |
# Send Unsolicited Neighbor Advertisement to speed up nd change for the VMs IP |
46 |
hooks-log clear-proxy-ndp "ndsend $eui64 $uplink6"
|
|
46 |
hooks-log $0 "ndsend $eui64 $uplink6"
|
|
47 | 47 |
ndsend $eui64 $uplink6 |
48 | 48 |
fi |
49 | 49 |
;; |
Also available in: Unified diff