How it works...
A network can be divided into subnetworks for easy maintenance and security concerns. These subnetworks are referred to as subnets. An IP address in CIDR format is divided into NID bits and host identifier (HID) bits. The netmask of the IP address represents the size of the NID bits. With subnetting, additional bits from the HID part will be used for subnetting. The netmask for a subnet will, therefore, represent the combination of NID bits and subnet identifier bits, and this combined bitmask is usually called a subnet mask.
We created a VPC with a CIDR block range of 10.0.0.0/16. Here, the netmask is /16 and represents NID bits. HID bits can be obtained by subtracting the netmask size from the total available 32 bits for ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access