Skip to main content

address

Return the network address of a CIDR.


Examples

Get the network address from a CIDR:

ip("192.168.1.10/24").address

IPv6 example:

ip("2001:db8:abcd:1::123/64").address