This calculator returns a variety of information regarding Internet Protocol version 4 (IPv4) and IPv6 subnets including possible network addresses, usable host ranges, subnet mask, and IP class, among others.
A subnet is a division of an IP network (internet protocol suite), where an IP network is a set of communications protocols used on the Internet and other similar networks. It is commonly known as TCP/IP (Transmission Control Protocol/Internet Protocol).
The act of dividing a network into at least two separate networks is called subnetting, and routers are devices that allow traffic exchange between subnetworks, serving as a physical boundary. IPv4 is the most common network addressing architecture used, though the use of IPv6 has been growing since 2006.
An IP address is comprised of a network number (routing prefix) and a rest field (host identifier). A rest field is an identifier that is specific to a given host or network interface. A routing prefix is often expressed using Classless Inter-Domain Routing (CIDR) notation for both IPv4 and IPv6. CIDR is a method used to create unique identifiers for networks, as well as individual devices. For IPv4, networks can also be characterized using a subnet mask, which is sometimes expressed in dot-decimal notation, as shown in the "Subnet" field in the calculator. All hosts on a subnetwork have the same network prefix, unlike the host identifier, which is a unique local identification. In IPv4, these subnet masks are used to differentiate the network number and host identifier. In IPv6, the network prefix performs a similar function as the subnet mask in IPv4, with the prefix length representing the number of bits in the address.
The subnet calculator lets you enter a subnet range (CIDR) and see IP address information about that range You can type your range directly in CIDR notation, or use the optional Mask pull-down:
This is a useful feature for service providers and network operator who frequently allocate and work with subnets. CIDR stands for Classless Inter-Domain Routing, and refers to the standard of dividing the entire IP address space into smaller networks of variable size.
The IP Subnet Mask Calculator enables subnet network calculations using network class, IP address, subnet mask, subnet bits, mask bits, maximum required IP subnets and maximum required hosts per subnet.
Results of the subnet calculation provide the hexadecimal IP address, the wildcard mask, for use with ACL (Access Control Lists), subnet ID, broadcast address, the subnet address range for the resulting subnet network and a subnet bitmap.
There comes a time when the network becomes too large to manage and performance numbers hit an all-time low as a result of too much traffic. One of the most effective techniques to solve this network congestion problem is to break the TCP/IP network into smaller, more manageable pieces. The practice of dividing the network is called subnetting, and a tool that can identify these different divisions is called a subnetting calculator.
Every subnet has an address to represent it and these subnets are interconnected via router. The router needs network address and subnet mask to find out whether the incoming IP packet has to be routed to any of its subnetwork. Performing network calculations can be hard at times when you have to consider different parameters as to how many subnets should I have and how many hosts should be in a subnetwork.
The subnet calculator is a handy tool for finding the number of possible subnets for any given network address block. You can choose the combination of subnets and number of hosts per subnet that suits your network and get the host address range and broadcast address for any given subnet mask. Partitioning a large network and allocating IP address ranges to different teams is a task that can be calculated mentally, but it's better to have an option like an IP range calculator or subnet mask calculator to double check your subnet calculations before configuring them in the router.
A co-worker asked me if I knew of subnet calculator that would not only do the math and output the results that you'd typically want, but would also show the results in a form of a graph, or grid of colored in blocks, or something to the effect. He went on to add that it would be cool if the grid of blocks (representations of IPs or subnets) could be selected and manipulated. For example, leisurely lassoing around a group of some unused blocks of a /8 would would have the tool perform math to locate the nearest bit boundary of your selections, and output some results. Maybe a small lasso would result in a /27, or perhaps a /28, or a larger swath would show you a shorter mask. You pick what you like, and perhaps it gives the option to save it for the session. Perhaps it allows you to manipulate the netblock further by clicking or lassoing through a group of used (colored in) blocks to separate them, or drag smaller subnets to different locations of the larger netblock.
Using CIDR/VLSM this calculator allows you to quickly figure out how to most efficiently setup your network. If you are using IPv6 you can use our IPv6 subnetting calculator to efficiently setup those addresses.
Variable length subnet masking (VLSM) is a more efficient way of subnetting a network. When you perform classful subnetting, all the subnets must use the same subnet mask, forcing them to each use the same number of hosts. This can lead to wasted IP space.
Say for example you need three subnets in a /24 network, with 120 hosts in one subnet and only 8 in the remaining two subnets. Well, with traditional subnetting, all subnets must be the same size. The subnet which needs 120 hosts has to have a subnet mask of 255.255.255.128. No smaller subnet will allow for 120 hosts. This means the other two subnets must also have the same subnet mask, 255.255.255.128, but three such subnets do not fit into a single /24! Also, you only need 8 hosts for the second two subnets, but with a mask of 255.255.255.128 you have 126 usable hosts. that is 118 unused IP addresses. What a waste!
Classless Inter-Domain Routing (CIDR) has replaced the classful network design. Subnets no longer have to all be the same size. Network architects can now create multiple subnets all of which vary in size and subnet mask.
If you were to use CIRD/VLSM, you could easily fit all three subnets into a single /24 network. The subnet which has 120 hosts would still have a subnet mask of 255.255.255.128, but now the remaining two subnets could have a subnet mask of 255.255.255.240. These would each allow 14 usable hosts, and still leave a chunk of the original /24 to be used in the future. A much more efficient use of IP space.
VLSM allows you to use different subnet masks, allowing for a more exact number of hosts to be used in each subnet. To perform VLSM subnetting, starting with the largest number of hosts needed in a single subnet, find the smallest subnet which will have that many hosts. Then do the same for the subnet needing the second largest number of hosts, all the way down to the smallest number of hosts needed.
The IP addresses for your subnets are represented using Classless Inter-Domain Routing (CIDR) notation. The CIDR block of a subnet can be the same as the CIDR block for the VPC (to create a single subnet in the VPC), or a subset of the CIDR block for the VPC (to create multiple subnets in the VPC). If you create more than one subnet in a VPC, the CIDR blocks of the subnets cannot overlap.
For example, if you create a VPC with CIDR block 10.0.0.0/24, it supports 256 IP addresses. You can break this CIDR block into two subnets, each supporting 128 IP addresses. One subnet uses CIDR block 10.0.0.0/25 (for addresses 10.0.0.0 - 10.0.0.127) and the other uses CIDR block 10.0.0.128/25 (for addresses 10.0.0.128 - 10.0.0.255).
There are tools available on the internet to help you calculate and create IPv4 and IPv6 subnet CIDR blocks. You can find tools that suit your needs by searching for terms such as 'subnet calculator' or 'CIDR calculator'. Your network engineering group can also help you determine the IPv4 and IPv6 CIDR blocks to specify for your subnets.
The allowed IPv4 CIDR block size for a subnet is between a /28 netmask and /16 netmask. The first four IP addresses and the last IP address in each subnet CIDR block are not available for your use, and they cannot be assigned to a resource, such as an EC2 instance. For example, in a subnet with CIDR block 10.0.0.0/24, the following five IP addresses are reserved:
10.0.0.2: Reserved by AWS. The IP address of the DNS server is the base of the VPC network range plus two. For VPCs with multiple CIDR blocks, the IP address of the DNS server is located in the primary CIDR. We also reserve the base of each subnet range plus two for all CIDR blocks in the VPC. For more information, see Amazon DNS server.
If you create a subnet using a command line tool or the Amazon EC2 API, the CIDR block is automatically modified to its canonical form. For example, if you specify 100.68.0.18/18 for the CIDR block, we create a CIDR block of 100.68.0.0/18.
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.
There are tools available on the internet to help you calculate and create IPv6 subnet CIDR blocks. You can find tools that suit your needs by searching for terms such as 'IPv6 subnet calculator' or 'IPv6 CIDR calculator'. Your network engineering group can also help you determine the IPv6 CIDR blocks to specify for your subnets.
The first four IPv6 addresses and the last IPv6 address in each subnet CIDR block are not available for your use, and they cannot be assigned to an EC2 instance. For example, in a subnet with CIDR block 2001:db8:1234:1a00/64, the following five IP addresses are reserved:
df19127ead