NM.SettingIP6Config

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingIPConfig NM.SettingIPConfig NM.Setting->NM.SettingIPConfig NM.SettingIP6Config NM.SettingIP6Config NM.SettingIPConfig->NM.SettingIP6Config

Subclasses:

None

Methods

Inherited:

NM.SettingIPConfig (59), NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_addr_gen_mode ()

get_dhcp_duid ()

get_dhcp_pd_hint ()

get_ip6_privacy ()

get_mtu ()

get_ra_timeout ()

get_token ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.SettingIPConfig (25), NM.Setting (1)

Name

Type

Flags

Short Description

addr-gen-mode

int

r/w/en

dhcp-duid

str

r/w/en

dhcp-pd-hint

str

r/w/en

ip6-privacy

NM.SettingIP6ConfigPrivacy

r/w/en

mtu

int

r/w/en

ra-timeout

int

r/w/en

token

str

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingIP6Config(**kwargs)
Bases:

NM.SettingIPConfig

Abstract:

No

Structure:

NM.SettingIP6ConfigClass

IPv6 Settings

classmethod new()
Returns:

the new empty NM.SettingIP6Config object

Return type:

NM.Setting

Creates a new NM.SettingIP6Config object with default values.

get_addr_gen_mode()
Returns:

IPv6 Address Generation Mode.

Return type:

NM.SettingIP6ConfigAddrGenMode

Returns the value contained in the NM.SettingIP6Config :addr-gen-mode property.

New in version 1.2.

get_dhcp_duid()
Returns:

The configured DUID value to be included in the DHCPv6 requests sent to the DHCPv6 servers.

Return type:

str

Returns the value contained in the NM.SettingIP6Config :dhcp-duid property.

New in version 1.12.

get_dhcp_pd_hint()
Returns:

a string containing an address and prefix length to be used as hint for DHCPv6 prefix delegation.

Return type:

str

Returns the value contained in the NM.SettingIP6Config :dhcp-pd-hint property.

New in version 1.44.

get_ip6_privacy()
Returns:

IPv6 Privacy Extensions configuration value (NM.SettingIP6ConfigPrivacy).

Return type:

NM.SettingIP6ConfigPrivacy

Returns the value contained in the NM.SettingIP6Config :ip6-privacy property.

get_mtu()
Returns:

The configured NM.SETTING_IP6_CONFIG_MTU value for the maximum transmission unit.

Return type:

int

New in version 1.40.

get_ra_timeout()
Returns:

The configured NM.SETTING_IP6_CONFIG_RA_TIMEOUT value with the timeout for router advertisements in seconds.

Return type:

int

New in version 1.24.

get_token()
Returns:

A string.

Return type:

str

Returns the value contained in the NM.SettingIP6Config :token property.

New in version 1.4.

Property Details

NM.SettingIP6Config.props.addr_gen_mode
Name:

addr-gen-mode

Type:

int

Default Value:

3

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Configure the method for creating the IPv6 interface identifier of addresses for RFC4862 IPv6 Stateless Address Autoconfiguration and IPv6 Link Local.

The permitted values are: NM.SettingIP6ConfigAddrGenMode.EUI64, NM.SettingIP6ConfigAddrGenMode.STABLE_PRIVACY. NM.SettingIP6ConfigAddrGenMode.DEFAULT_OR_EUI64 or NM.SettingIP6ConfigAddrGenMode.DEFAULT.

If the property is set to “eui64”, the addresses will be generated using the interface token derived from the hardware address. This makes the host part of the address constant, making it possible to track the host’s presence when it changes networks. The address changes when the interface hardware is replaced. If a duplicate address is detected, there is no fallback to generate another address. When configured, the “ipv6.token” is used instead of the MAC address to generate addresses for stateless autoconfiguration.

If the property is set to “stable-privacy”, the interface identifier is generated as specified by RFC7217. This works by hashing a host specific key (see NetworkManager(8) manual), the interface name, the connection’s “connection.stable-id” property and the address prefix. This improves privacy by making it harder to use the address to track the host’s presence as every prefix and network has a different identifier. Also, the address is stable when the network interface hardware is replaced.

The special values “default” and “default-or-eui64” will fallback to the global connection default as documented in the NetworkManager.conf(5) manual. If the global default is not specified, the fallback value is “stable-privacy” or “eui64”, respectively.

For libnm, the property defaults to “default” since 1.40. Previously it used to default to “stable-privacy”. On D-Bus, the absence of an addr-gen-mode setting equals “default”. For keyfile plugin, the absence of the setting on disk means “default-or-eui64” so that the property doesn’t change on upgrade from older versions.

Note that this setting is distinct from the Privacy Extensions as configured by “ip6-privacy” property and it does not affect the temporary addresses configured with this option.

New in version 1.2.

NM.SettingIP6Config.props.dhcp_duid
Name:

dhcp-duid

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

A string containing the DHCPv6 Unique Identifier (DUID) used by the dhcp client to identify itself to DHCPv6 servers (RFC 3315). The DUID is carried in the Client Identifier option. If the property is a hex string (‘aa:bb:py:data::cc<NM.SettingIP6Config.props.cc>') it is interpreted as a binary DUID and filled as an opaque value in the Client Identifier option.

The special value “lease” will retrieve the DUID previously used from the lease file belonging to the connection. If no DUID is found and “dhclient” is the configured dhcp client, the DUID is searched in the system-wide dhclient lease file. If still no DUID is found, or another dhcp client is used, a global and permanent DUID-UUID (RFC 6355) will be generated based on the machine-id.

The special values “llt” and “ll” will generate a DUID of type LLT or LL (see RFC 3315) based on the current MAC address of the device. In order to try providing a stable DUID-LLT, the time field will contain a constant timestamp that is used globally (for all profiles) and persisted to disk.

The special values “stable-llt”, “stable-ll” and “stable-uuid” will generate a DUID of the corresponding type, derived from the connection’s stable-id and a per-host unique key. You may want to include the “${DEVICE}” or “${MAC}” specifier in the stable-id, in case this profile gets activated on multiple devices. So, the link-layer address of “stable-ll” and “stable-llt” will be a generated address derived from the stable id. The DUID-LLT time value in the “stable-llt” option will be picked among a static timespan of three years (the upper bound of the interval is the same constant timestamp used in “llt”).

When the property is unset, the global value provided for “ipv6.dhcp-duid” is used. If no global value is provided, the default “lease” value is assumed.

New in version 1.12.

NM.SettingIP6Config.props.dhcp_pd_hint
Name:

dhcp-pd-hint

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

A IPv6 address followed by a slash and a prefix length. If set, the value is sent to the DHCPv6 server as hint indicating the prefix delegation (IA_PD) we want to receive. To only hint a prefix length without prefix, set the address part to the zero address (for example “::/60”).

New in version 1.44.

NM.SettingIP6Config.props.ip6_privacy
Name:

ip6-privacy

Type:

NM.SettingIP6ConfigPrivacy

Default Value:

NM.SettingIP6ConfigPrivacy.UNKNOWN

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Configure IPv6 Privacy Extensions for SLAAC, described in RFC4941. If enabled, it makes the kernel generate a temporary IPv6 address in addition to the public one generated from MAC address via modified EUI-64. This enhances privacy, but could cause problems in some applications, on the other hand. The permitted values are: -1: unknown, 0: disabled, 1: enabled (prefer public address), 2: enabled (prefer temporary addresses).

Having a per-connection setting set to “-1” (unknown) means fallback to global configuration “ipv6.ip6-privacy”.

If also global configuration is unspecified or set to “-1”, fallback to read “/proc/sys/net/ipv6/conf/default/use_tempaddr”.

Note that this setting is distinct from the Stable Privacy addresses that can be enabled with the “addr-gen-mode” property’s “stable-privacy” setting as another way of avoiding host tracking with IPv6 addresses.

NM.SettingIP6Config.props.mtu
Name:

mtu

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Maximum transmission unit size, in bytes. If zero (the default), the MTU is set automatically from router advertisements or is left equal to the link-layer MTU. If greater than the link-layer MTU, or greater than zero but less than the minimum IPv6 MTU of 1280, this value has no effect.

New in version 1.40.

NM.SettingIP6Config.props.ra_timeout
Name:

ra-timeout

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

A timeout for waiting Router Advertisements in seconds. If zero (the default), a globally configured default is used. If still unspecified, the timeout depends on the sysctl settings of the device.

Set to 2147483647 (MAXINT32) for infinity.

New in version 1.24.

NM.SettingIP6Config.props.token
Name:

token

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Configure the token for draft-chown-6man-tokenised-ipv6-identifiers-02 IPv6 tokenized interface identifiers. Useful with eui64 addr-gen-mode.

When set, the token is used as IPv6 interface identifier instead of the hardware address. This only applies to addresses from stateless autoconfiguration, not to IPv6 link local addresses.

New in version 1.4.