当NAT网关计算实例失败时,人们用来更新路由集合的是什么?人们如何在一个区域中设置多个NAT网关并进行故障转移?
发布于 2016-04-17 20:46:31
一种方法是为计算引擎VM实例配置多个(两个或多个) NAT网关。在创建路由以通过网关实例(文章的步骤5)将流量发送到Internet时,请为所有这些路由的优先级指定相同的值。这应该设置一个自动故障转移功能。
gcloud compute routes create no-ip-internet-route --network gce-network \
--destination-range 0.0.0.0/0 \
--next-hop-instance nat1-gateway \
--next-hop-instance-zone us-central1-a \
--tags no-ip --priority 800
gcloud compute routes create no-ip-internet-route --network gce-network \
--destination-range 0.0.0.0/0 \
--next-hop-instance nat2-gateway \
--next-hop-instance-zone us-central1-f \
--tags no-ip --priority 800https://serverfault.com/questions/770759
复制相似问题