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