-1

我正在尝试了解 AWS 中的弹性 IP 定价。有几个问题让我感到困惑。

根据 AWS Docs,

1) 限制 EC2-VPC 每个区域的弹性 IP 地址为 5。因此,如果我在 3 个区域中有 3 个 VPC 并通过 VPC 对等连接。I can have 15 Elastic IPs in total for my account?

2) 当您的实例运行时,您无需为与该实例关联的一个弹性 IP 地址付费,但您需要为与该实例关联的任何其他弹性 IP 地址付费。

- Does it mean, charges will be applicable for 4 Elastic IPs if I use them for the same instance? - If so, I can avoid billing for 4 elastic IPs if I use them somewhere else like, NAT, NAT Gateway, ELB, Bastion etc.?

3) 我们可以将弹性 IP 重新分配给其他实例,并且我们可以从池中获取新的弹性 IP。In both the cases, Won't be cached data for these IPs routed to our instances? TTL will be still alive on the client side right.

4)通过VPC的Internet网关访问弹性IP地址。如果您在 VPC 和网络之间设置了 VPN 连接,则 VPN 流量会通过虚拟私有网关而不是 Internet 网关,因此无法访问弹性 IP 地址。

在这里,流量通过 Internet 网关路由。而不是专用网关。

If the traffic is routed through private Gateway, can't we access bastion servers which uses elastic IPs, to administer private instances?

如果我的理解有误,请纠正我。谢谢你的时间。

4

1 回答 1

1
  1. 是的,每个区域 5 个 EIP 意味着 3 个区域的 15 个 EIP。

  2. 如果您将 N 个 EIP 关联到单个 EC2 实例,那么您将按小时为其中的 N-1 个实例收费。

  3. 如果您将 EIP 移动到新的 DNS 名称,则缓存了旧 DNS 条目的客户端将需要更新它们。

  4. 如果您通过 VPN 连接,您通常会针对私有 IP 地址,而不是公共 IP 地址。您的本地 VPN 配置将包括通过 VPN 连接到这些私有 IP 的路由。

于 2018-08-25T01:00:40.870 回答