A subnet is technically a division of an network by range of ip address
A subnet is also known as:
- a net range (ie 18.104.22.168 - 22.214.171.124)
- or a CIDR (different notation - ie 126.96.36.199/13)
In the internet age, all networks may be considered as subnet.
It is used to represent a subnet of hosts which can be reached over a network interface.
A SubNet is a partially qualified internet address in numeric (dotted quad) form, optionally followed by a slash and the netmask, specified as:
- the number of significant bits. See Classless Inter-Domain Routing (CIDR)
All hosts on a subnet have the same mask.
How to find the net range of a IP
In a whois request, you can see the NetRange back (and the CIDR notation)
NetRange: 188.8.131.52 - 184.108.40.206 CIDR: 220.127.116.11/13
A private subnet has no Internet access and can host the backend systems such as databases or application servers.
A public subnet send and receive traffic directly from the internet.
The maximum size of a network is given by the number of addresses that are possible with the remaining, least-significant bits below the mask prefix. See the mask table
You can bind a whole subnet on one machine. See subnet binding