【问题标题】:Amazon Elastic IP's Pricing and issuesAmazon Elastic IP 的定价和问题
【发布时间】:2019-01-31 10:26:57
【问题描述】:

我正在尝试了解 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 地址。

In here,流量通过 Internet 网关路由。而不是专用网关。

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

如果我的理解有误,请纠正我。感谢您的宝贵时间。

【问题讨论】:

    标签: amazon-web-services amazon-ec2 amazon-vpc elastic-ip aws-billing


    【解决方案1】:
    1. 是的,每个区域 5 个 EIP 意味着 3 个区域有 15 个 EIP。

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

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

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

    【讨论】:

    • 是的,我同意你关于与 DNS 解析相关的 TTL。假设我有一个 Route 53 的记录集,它在公共子网的弹性 IP 上路由流量。 DNS 解析器将返回弹性 IP 地址。因此,在 TTL 到期之前,我们将在缓存中保留旧 IP(弹性 IP)。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-02-27
    • 1970-01-01
    • 1970-01-01
    • 2015-01-09
    • 2013-03-05
    • 1970-01-01
    • 2015-04-10
    相关资源
    最近更新 更多