Refer to the corresponding attribute documentation in IPv4Interface.
ipaddress/IPv6Interface.network
IPv6Interface.network