5
4
First of all, I know that private IP ranges are
192.168.0.0 - 192.168.255.255 (65,536 IP addresses)
172.16.0.0 - 172.31.255.255 (1,048,576 IP addresses)
10.0.0.0 - 10.255.255.255 (16,777,216 IP addresses)
But I am confused on what happens if I change the subnet mask of any the IP address of private IP range ?
I know that when we use subnet mask of different class with an IP address, we are using CIDR
.
For example,
The IP address 10.167.255.10
with subnet mask 255.0.0.0
is private.
But what if I change it's subnet mask to 255.255.0.0
. Did I just changed the IP address from private to public ?
I am really confused what's happening when I am changing the Subnet mask of the private IP range.
EDIT: I know that changing sub net mask will change the number of hosts and number of network addresses in the range, so my question is not about subnet mask. I am specifically asking about how the type of IP address affected, does it remain private?
Do you understand that you can sub-subnet a subnet? A range withing a range is a range itself. – MSalters – 2015-11-10T12:07:34.170
Possible duplicate of What is a subnet mask, and the difference between a subnet mask of 255.255.255.0 and 255.0.0.0?
– ctote – 2015-11-10T15:34:55.2531Worth noting that
Private Networks
only regard the IP in use. The IP192.168.1.1
is private regardless of whether the interface it's assigned to uses a mask of255.255.255.0
or a mask of255.0.0.0
. – ctote – 2015-11-10T15:39:25.550