Mondoo Docs
Built-in FunctionsIp

prefix

prefix

Return the network prefix (network portion) of the IP.


Examples

IPv4 example:

ip("192.168.0.1").prefix

Another IPv4 example:

ip("10.0.5.123").prefix

On this page