I don't know javacript very well and needed a script to validate if a certain IP belongs to a given subnet mask prefix, meaning, while receiving two inputs, IP and prefix, would test if it belongs to it or not.
Inputs (for example 192.168.30.2/24): IP: 192.168.30.2 Subnet prefix: 24
Is this possible to do?
Submitted July 11, 2017 at 09:11PM by geelian
via reddit http://ift.tt/2u4yLLF