From 5befab467404775e1f10948ce0979df792b19ac2 Mon Sep 17 00:00:00 2001 From: jeffy Date: Fri, 9 Sep 2022 10:48:05 +0800 Subject: [PATCH] fix: failed to add eip (#1898) Co-authored-by: chenjianhui --- dist/images/vpcnatgateway/nat-gateway.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/images/vpcnatgateway/nat-gateway.sh b/dist/images/vpcnatgateway/nat-gateway.sh index 6027a81f1dc..1d0571873ae 100644 --- a/dist/images/vpcnatgateway/nat-gateway.sh +++ b/dist/images/vpcnatgateway/nat-gateway.sh @@ -113,7 +113,7 @@ function add_eip() { # gw may lost, even if add_vpc_external_route add route successfully exec_cmd "ip route replace default via $gateway dev net1" ip route | grep "default via $gateway dev net1" - exec_cmd "arping -c 3 -s $eip_without_prefix $gateway" + exec_cmd "arping -I net1 -c 3 -D $eip_without_prefix" done }