在「IPv6 endpoints are now available for the Amazon EC2 Instance Metadata Service, Amazon Time Sync Service, and Amazon VPC DNS Server」這邊看到的,AWS 把一些基礎服務補上了 IPv6 interface:
The Amazon EC2 Instance Metadata Service, Amazon Time Sync Service, and Amazon VPC DNS server can now be accessed over IPv6 endpoints by instances built on the Nitro System.
Metadata Service 的部份在「Use IMDSv2」這邊可以看到,在 IPv4 的時候是 169.254.169.254
,在 IPv6 時則是 fd00:ec2::254
:
The examples in this section use the IPv4 address of the instance metadata service: 169.254.169.254. If you are retrieving instance metadata for EC2 instances over the IPv6 address, ensure that you enable and use the IPv6 address instead: fd00:ec2::254. The IPv6 address of the instance metadata service is compatible with IMDSv2 commands. The IPv6 address is only accessible on Instances built on the Nitro System.
Time Service 的部份可以在「Set the time for your Linux instance」這邊翻到,可以看到 fd00:ec2::123
這個位置:
The Amazon Time Sync Service is available through NTP at the 169.254.169.123 IPv4 address or the fd00:ec2::123 IPv6 address for any instance running in a VPC. The IPv6 address is only accessible on Instances built on the Nitro System.
DNS 的部份則是在「DNS support for your VPC」這邊翻,可以看到 fd00:ec2::253
這個 IPv6 address 的 DNS 服務:
If this attribute is true, queries to the Amazon provided DNS server at the 169.254.169.253 IPv4 address (or the reserved IP address at the base of the VPC IPv4 network range plus two) and the fd00:ec2::253 IPv6 address will succeed. The IPv6 address is only accessible on EC2 instances built on the Nitro System.
算是又補齊了一些基礎建設...
另外 EC2 剛好這三個字都在十六進位表示法的範圍內,就拿來當 IPv6 address 也是讓人好記很多。
另外結尾故意用 ::254
、::123
、::253
(要注意這是十六進位) 也讓人好記很多,而不是 ::fe
這類 hex。