05-03-2016 10:41 AM - edited 03-08-2019 05:36 AM
Hello,
Can someone please tell me if you can calculate the subnet mask having only the ip and default gateway?
Thanks in advance.
Solved! Go to Solution.
05-03-2016 01:24 PM
As mentioned before, you can't tell that. But you can calculate the smallest subnet possible to make sure that both PC and DG are in the same subnet.
Example: PC has 10.0.0.194 and DG has 10.0.0.254. With a subnet-mask of /26 (255.255.255.192) both are in the same subnet. But with any bigger subnet (/25, /24, ...) the PC would also be able to reach it's gateway.
Challenge questions: Which minimum subnet is needed for:
05-03-2016 01:24 PM
As mentioned before, you can't tell that. But you can calculate the smallest subnet possible to make sure that both PC and DG are in the same subnet.
Example: PC has 10.0.0.194 and DG has 10.0.0.254. With a subnet-mask of /26 (255.255.255.192) both are in the same subnet. But with any bigger subnet (/25, /24, ...) the PC would also be able to reach it's gateway.
Challenge questions: Which minimum subnet is needed for:
05-04-2016 04:53 AM
1. 10.0.0.0 /24
2. 10.0.0.0 /23
3. 10.0.0.0 /22
05-03-2016 03:58 PM
Hi,
Basically you cant tell your mask unless you are using the class defaults from your info.
Class "A" = 255.0.0.0 (1.0.0.0 - 126.255.255.255)
Class "B" = 255.255.0.0 (128.0.0.0 - 191.255.255.255)
Class "C" = 255.255.255.0 (192.0.0.0 - 223.255.255.255)
Regards
Alex
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide