Skip to content

Commit

Permalink
fix: arping reply may duplicate
Browse files Browse the repository at this point in the history
Signed-off-by: oilbeater <[email protected]>
  • Loading branch information
oilbeater committed Sep 5, 2024
1 parent 4e5cc7b commit 4b90911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/images/vpcnatgateway/lb-svc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function add_eip() {
exec_cmd "ip route replace $eip_network/$eip_prefix dev net1 table $ROUTE_TABLE"
exec_cmd "ip route replace default via $gateway dev net1 table $ROUTE_TABLE"
ip link set dev net1 arp on
exec_cmd "arping -c 3 -s $eip_without_prefix $gateway"
exec_cmd "arping -f -c 3 -s $eip_without_prefix $gateway"
done
}

Expand Down

0 comments on commit 4b90911

Please sign in to comment.