192.168.x.x addresses with subnet 255.255.0.0

ipsubnet

We are designing a network where we have

192.168.100.52
192.168.110.13

Initially the subnet mask was 255.255.255.0, so clearly these first two machines will not communicate with each other without some sort of router.

Is it legal to change the subnet mask to 255.255.0.0 to allow these two networks to be part of the same network?

Best Answer

The 192.168.* range is private so you can technically do this without causing IP address collision problems on the wider Internet. However, conventionally the 192 octet range is used for Class C networks, which have a subnet mask of 255.255.255.0, allowing communication across only one octet range of computers (255). What you are describing is a Class B network, which by convention uses 172.16.x.x

Convention aside, there is nothing stopping you from using the 192.168 range as a class B. If you wanted to limit network traffic to only the 192.168.100.x and 192.168.110.x networks, you could change the subnet mask to something that includes only that range, such as 255.255.240.0 (which would allow communication between any subnet in the range 192.168.96.1 - 191.168.111.254) - if you put the two subnets together (192.168.100.x and 192.168.101.x) you could change the subnet mask to 255.255.254.0.

A fun Subnet calculator to play with can be found at http://www.subnet-calculator.com/

Related Question