@@ -488,53 +488,6 @@ Gateway=0.0.0.0
488488Table=1234</programlisting ></para >
489489 </listitem >
490490 </varlistentry >
491- <varlistentry >
492- <term ><varname >IPv6Token=</varname ></term >
493- <listitem >
494- <para >Specifies an optional address generation mode for the Stateless Address
495- Autoconfiguration (SLAAC). Supported modes are <literal >prefixstable</literal > and
496- <literal >static</literal >.</para >
497-
498- <para >When the mode is set to <literal >static</literal >, an IPv6 address must be
499- specified after a colon (<literal >:</literal >), and the lower bits of the supplied
500- address are combined with the upper bits of a prefix received in a Router Advertisement
501- (RA) message to form a complete address. Note that if multiple prefixes are received in an
502- RA message, or in multiple RA messages, addresses will be formed from each of them using
503- the supplied address. This mode implements SLAAC but uses a static interface identifier
504- instead of an identifier generated by using the EUI-64 algorithm. Because the interface
505- identifier is static, if Duplicate Address Detection detects that the computed address is a
506- duplicate (in use by another node on the link), then this mode will fail to provide an
507- address for that prefix. If an IPv6 address without mode is specified, then
508- <literal >static</literal > mode is assumed.</para >
509-
510- <para >When the mode is set to <literal >prefixstable</literal > the
511- <ulink url =" https://tools.ietf.org/html/rfc7217" >RFC 7217</ulink > algorithm for generating
512- interface identifiers will be used. This mode can optionally take an IPv6 address separated
513- with a colon (<literal >:</literal >). If an IPv6 address is specified, then an interface
514- identifier is generated only when a prefix received in an RA message matches the supplied
515- address.</para >
516-
517- <para >If no address generation mode is specified (which is the default), or a received
518- prefix does not match any of the addresses provided in <literal >prefixstable</literal >
519- mode, then the EUI-64 algorithm will be used to form an interface identifier for that
520- prefix. This mode is also SLAAC, but with a potentially stable interface identifier which
521- does not directly map to the interface's hardware address.</para >
522-
523- <para >Note that the <literal >prefixstable</literal > algorithm uses both the interface
524- name and MAC address as input to the hash to compute the interface identifier, so if either
525- of those are changed the resulting interface identifier (and address) will change, even if
526- the prefix received in the RA message has not changed.</para >
527-
528- <para >This setting can be specified multiple times. If an empty string is assigned, then
529- the all previous assignments are cleared.</para >
530-
531- <para >Examples:
532- <programlisting >IPv6Token=::1a:2b:3c:4d
533- IPv6Token=static:::1a:2b:3c:4d
534- IPv6Token=prefixstable
535- IPv6Token=prefixstable:2002:da8:1::</programlisting ></para >
536- </listitem >
537- </varlistentry >
538491 <varlistentry >
539492 <term ><varname >LLMNR=</varname ></term >
540493 <listitem >
@@ -2205,11 +2158,9 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
22052158 <term ><varname >Token=</varname ></term >
22062159 <listitem >
22072160 <para >Specifies an optional address generation mode for assigning an address in each
2208- delegated prefix. Takes an IPv6 address. When set, the lower bits of the supplied address is
2209- combined with the upper bits of each delegatad prefix received from the WAN interface by the
2210- DHCPv6 Prefix Delegation to form a complete address. When <varname >Assign=</varname > is
2211- disabled, this setting is ignored. When unset, the EUI-64 algorithm will be used to form
2212- addresses. Defaults to unset.</para >
2161+ delegated prefix. This accepts the same syntax as <varname >Token=</varname > in the
2162+ [IPv6AcceptRA] section. If <varname >Assign=</varname > is set to false, then this setting will
2163+ be ignored. Defaults to unset, which means the EUI-64 algorithm will be used.</para >
22132164 </listitem >
22142165 </varlistentry >
22152166
@@ -2236,6 +2187,57 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
22362187 with the <varname >IPv6AcceptRA=</varname > setting described above:</para >
22372188
22382189 <variablelist class =' network-directives' >
2190+ <varlistentry >
2191+ <term ><varname >Token=</varname ></term >
2192+ <listitem >
2193+ <para >Specifies an optional address generation mode for the Stateless Address
2194+ Autoconfiguration (SLAAC). Supported modes are <literal >eui64</literal >,
2195+ <literal >static</literal >, and <literal >prefixstable</literal >.</para >
2196+
2197+ <para >When the mode is set to <literal >eui64</literal >, then the EUI-64 algorithm will be
2198+ used to generate an address for that prefix.</para >
2199+
2200+ <para >When the mode is set to <literal >static</literal >, an IPv6 address must be
2201+ specified after a colon (<literal >:</literal >), and the lower bits of the supplied
2202+ address are combined with the upper bits of a prefix received in a Router Advertisement
2203+ (RA) message to form a complete address. Note that if multiple prefixes are received in an
2204+ RA message, or in multiple RA messages, addresses will be formed from each of them using
2205+ the supplied address. This mode implements SLAAC but uses a static interface identifier
2206+ instead of an identifier generated by using the EUI-64 algorithm. Because the interface
2207+ identifier is static, if Duplicate Address Detection detects that the computed address is a
2208+ duplicate (in use by another node on the link), then this mode will fail to provide an
2209+ address for that prefix. If an IPv6 address without mode is specified, then
2210+ <literal >static</literal > mode is assumed.</para >
2211+
2212+ <para >When the mode is set to <literal >prefixstable</literal > the
2213+ <ulink url =" https://tools.ietf.org/html/rfc7217" >RFC 7217</ulink > algorithm for generating
2214+ interface identifiers will be used. This mode can optionally take an IPv6 address separated
2215+ with a colon (<literal >:</literal >). If an IPv6 address is specified, then an interface
2216+ identifier is generated only when a prefix received in an RA message matches the supplied
2217+ address.</para >
2218+
2219+ <para >If no address generation mode is specified (which is the default), or a received
2220+ prefix does not match any of the addresses provided in <literal >prefixstable</literal >
2221+ mode, then the EUI-64 algorithm will be used to form an interface identifier for that
2222+ prefix.</para >
2223+
2224+ <para >Note that the <literal >prefixstable</literal > algorithm uses both the interface
2225+ name and MAC address as input to the hash to compute the interface identifier, so if either
2226+ of those are changed the resulting interface identifier (and address) will be changed, even
2227+ if the prefix received in the RA message has not been changed.</para >
2228+
2229+ <para >This setting can be specified multiple times. If an empty string is assigned, then
2230+ the all previous assignments are cleared.</para >
2231+
2232+ <para >Examples:
2233+ <programlisting >Token=eui64
2234+ Token=::1a:2b:3c:4d
2235+ Token=static:::1a:2b:3c:4d
2236+ Token=prefixstable
2237+ Token=prefixstable:2002:da8:1::</programlisting ></para >
2238+ </listitem >
2239+ </varlistentry >
2240+
22392241 <varlistentry >
22402242 <term ><varname >UseDNS=</varname ></term >
22412243 <listitem >
@@ -2727,6 +2729,16 @@ IPv6Token=prefixstable:2002:da8:1::</programlisting></para>
27272729 </para ></listitem >
27282730 </varlistentry >
27292731
2732+ <varlistentry >
2733+ <term ><varname >Token=</varname ></term >
2734+ <listitem >
2735+ <para >Specifies an optional address generation mode for assigning an address in each
2736+ prefix. This accepts the same syntax as <varname >Token=</varname > in the [IPv6AcceptRA]
2737+ section. If <varname >Assign=</varname > is set to false, then this setting will be ignored.
2738+ Defaults to unset, which means the EUI-64 algorithm will be used.</para >
2739+ </listitem >
2740+ </varlistentry >
2741+
27302742 <varlistentry >
27312743 <term ><varname >RouteMetric=</varname ></term >
27322744 <listitem >
0 commit comments