From b9c3c21378356cc7c714dcf7c63dcde59549d74a Mon Sep 17 00:00:00 2001 From: Mengxin Liu Date: Fri, 6 Sep 2024 13:19:49 +0800 Subject: [PATCH] fix: arping reply may duplicate (#4477) Signed-off-by: oilbeater --- dist/images/vpcnatgateway/lb-svc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/images/vpcnatgateway/lb-svc.sh b/dist/images/vpcnatgateway/lb-svc.sh index dc3abb37080..c19c102d625 100644 --- a/dist/images/vpcnatgateway/lb-svc.sh +++ b/dist/images/vpcnatgateway/lb-svc.sh @@ -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 }