Hack Forums
Calculating a decimal mask or subnet mask from a prefix - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Hacks, Exploits, and Various Discussions (https://hackforums.net/forumdisplay.php?fid=45)
+--- Forum: Grayhat • Purple Team • Hybrid Security (https://hackforums.net/forumdisplay.php?fid=449)
+---- Forum: Beginner Hacking (https://hackforums.net/forumdisplay.php?fid=4)
+---- Thread: Calculating a decimal mask or subnet mask from a prefix (/showthread.php?tid=5670154)



Calculating a decimal mask or subnet mask from a prefix - ernestmiller - Jul 15, 2017

How do you calculate a subnet mask or the decimal mask from a prefix

say for example someone says they have a /27 subnet how do you convert that to the decimal