Skip to content

Commit

Permalink
[bugfix] When add_eip, send an ARP packet from net1 to the gateway to…
Browse files Browse the repository at this point in the history
… announce the EIP to the switch.

Signed-off-by: 杨凯龙 <[email protected]>
  • Loading branch information
杨凯龙 committed Nov 6, 2024
1 parent 4ee107a commit 41be1d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/images/vpcnatgateway/nat-gateway.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ function add_eip() {
exec_cmd "ip route replace default via $gateway dev net1"
ip route | grep "default via $gateway dev net1"
exec_cmd "arping -I net1 -c 3 -D $eip_without_prefix"
exec_cmd "arping -I net1 -c 1 -s $eip_without_prefix $gateway"
done
}

Expand Down

0 comments on commit 41be1d6

Please sign in to comment.