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
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?