- ip1: 192.168.10.10/23
- ip2: 192.168.11.10/23
- Find the
subnet_ip
, then find thenum_hosts
in that sub network - using
num_hosts
in that subnet find out thestart_address
,last_address
- if the second ip is in that range then they are of same subnet otherwise not