- Newest
- Most votes
- Most comments
Hello.
Since the VPC CIDR is "2a05:d01c:f8f:9100::/56", only the range "2a05:d01c:f8f:9100::/56" can be allocated in the subnet.
In other words, if you have already assigned "2a05:d01c:f8f:9100::/56" to the subnet, you will not be able to create another subnet.
For example, if you set the IPv6 CIDR of the first subnet to "2a05:d01c:f8f:9100::/64", you can assign "2a05:d01c:f8f:9101::/64" etc. to the second subnet.
If you calculate with "/64", the prefix will be the first "2a05:d01c:f8f:9100".
The CIDR set for the VPC is "/56", so it looks like the table below.
"2a05:d01c:f8f:9100" to "2a05:d01c:f8f:91ff" can be set by the user.
https://docs.aws.amazon.com/vpc/latest/userguide/subnet-sizing.html#subnet-sizing-ipv6
If you've associated an IPv6 CIDR block with your VPC, you can associate an IPv6 CIDR block with an existing subnet in your VPC, or when you create a new subnet. Possible IPv6 netmask lengths are between /44 and /64 in increments of /4.
prefix | Hexadecimal | Binary number |
---|---|---|
/56 | 2a05:d01c:f8f:91 ~ | 0010101000000101:1101000000011100:0000111110001111:10010001 ~ |
/64 | 2a05:d01c:f8f:9100 ~ 2a05:d01c:f8f:91ff | 0010101000000101:1101000000011100:0000111110001111:1001000100000000 ~ 0010101000000101:1101000000011100:0000111110001111:1001000111111111 |
Relevant content
- asked 7 months ago
- asked 5 months ago
- AWS OFFICIALUpdated 17 days ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
To put it in another way, the /56 for your VPC indicates the size of a range of numbers, like an area code in a telephone network. The subnets are sub-allocations within that area code and have to have a longer prefix (just like a phone number) to fit inside the area code (=the CIDR of the VPC). You could think of the IPv6 address as a phone number 128 digits long, and the CIDR of size /56 having a prefix of 56 digits. So, if you allocate subnets of size /64, many of them will fit inside the /56 "area code" of your CIDR. If you assign the whole /56 to a subnet, all numbers would be used up.
Thank you so much Riku and Leo!!!!!! Life savers