NM.SettingIP6Config¶
- Subclasses:
None
Methods¶
- Inherited:
NM.SettingIPConfig (60), NM.Setting (21), GObject.Object (37)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
|||
r/w/en |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.SettingIP6Config(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
IPv6 Settings
- classmethod new()¶
- Returns:
the new empty
NM.SettingIP6Config
object- Return type:
Creates a new
NM.SettingIP6Config
object with default values.
- get_addr_gen_mode()¶
- Returns:
IPv6 Address Generation Mode.
- Return type:
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:
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:
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:
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:
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:
New in version 1.24.
- get_temp_preferred_lifetime()¶
- Returns:
The preferred lifetime of autogenerated temporary addresses.
- Return type:
Returns the value contained in the
NM.SettingIP6Config
:temp-preferred-lifetime
property.New in version 1.48.
- get_temp_valid_lifetime()¶
- Returns:
The valid lifetime of autogenerated temporary addresses.
- Return type:
Returns the value contained in the
NM.SettingIP6Config
:temp-valid-lifetime
property.New in version 1.48.
- get_token()¶
- Returns:
A string.
- Return type:
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:
- Default Value:
3
- Flags:
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
orNM.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:
- Default Value:
- Flags:
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:
- Default Value:
- Flags:
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:
- Default Value:
- Flags:
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” (default) means fallback to global configuration “ipv6.ip6-privacy”. If it’s also 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:
- Default Value:
0
- Flags:
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:
- Default Value:
0
- Flags:
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.temp_preferred_lifetime¶
- Name:
temp-preferred-lifetime
- Type:
- Default Value:
0
- Flags:
The preferred lifetime of autogenerated temporary addresses, in seconds.
Having a per-connection setting set to “0” (default) means fallback to global configuration “ipv6.temp-preferred-lifetime” setting”. If it’s also unspecified or set to “0”, fallback to read “/proc/sys/net/ipv6/conf/default/temp_prefered_lft”.
New in version 1.48.
- NM.SettingIP6Config.props.temp_valid_lifetime¶
- Name:
temp-valid-lifetime
- Type:
- Default Value:
0
- Flags:
The valid lifetime of autogenerated temporary addresses, in seconds.
Having a per-connection setting set to “0” (default) means fallback to global configuration “ipv6.temp-valid-lifetime” setting”. If it’s also unspecified or set to “0”, fallback to read “/proc/sys/net/ipv6/conf/default/temp_valid_lft”.
New in version 1.48.
- NM.SettingIP6Config.props.token¶
- Name:
token
- Type:
- Default Value:
- Flags:
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.