In my LAN, I have two subnet masks:
255.255.255.0
255.255.255.128
Is there a method to scan all LAN's IP to know in which subnet mask they are?
In my LAN, I have two subnet masks:
255.255.255.0
255.255.255.128
Is there a method to scan all LAN's IP to know in which subnet mask they are?
First of all we have 2 subnet masks.
Now it depends on what IPs you are using.
I assume that you a using a class C net like.
192.168. 1 .0
255.255.255.0
If we use your 1st subnetmask, that would divide the network into 1 net
192.168.1.0 - 192.168.1.255
If we use your 2nd subnetmask, that would divide the network into 2 subnets
192.168.1.0 - 192.168.1.127
192.168.1.127 - 192.168.1.255
Following the RFC 1878 you calculate the number of subnets by 2^n where n is the number of bits that are used for subnetting.
The standard mask for a class C net is 255.255.255.0 (24 consecutive binary 1s).
If you use the subnetmask 255.255.255.128 you have 25 sonsecutive binary 1s.
25 - 24 = 1. so n is 1.
2^1 = 2. so we have 2 sub nets