From 3fe4df00e3c03889d55a9a36fcd3348ad90fb04a Mon Sep 17 00:00:00 2001 From: LIU Yulong Date: Wed, 2 Oct 2019 14:30:04 +0800 Subject: [PATCH] [doc][IPv6] make kernel config addr_gen_mode clear 1. There is no such config ``net.ipv6.conf.*.addr_gen_mode`` for some kernel version, for instance: 3.10.0-862.14.4.el7.x86_64 2. According to the commit [1], this config is used for link-local and autoconf addresses. [1] https://github.com/torvalds/linux/commit/d35a00b8e33dab7385f724e713ae71c8be0a49f4 Change-Id: Ib8e0dda5ecc668ad936155df101dc696141f8d60 --- doc/source/admin/config-ipv6.rst | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/source/admin/config-ipv6.rst b/doc/source/admin/config-ipv6.rst index dc3c33f681b..d545b90c7a5 100644 --- a/doc/source/admin/config-ipv6.rst +++ b/doc/source/admin/config-ipv6.rst @@ -432,9 +432,21 @@ they might not be able to communicate properly on the network. For example, in Linux guests, these are controlled via these two ``sysctl`` variables: - ``net.ipv6.conf.*.use_tempaddr`` (Privacy Extensions) -- ``net.ipv6.conf.*.addr_gen_mode`` (link-local and autoconf address generation) -Both of these settings should be disabled (zero). +This allows the use of non-changing interface identifiers for IPv6 addresses +according to RFC3041 semantics. It should be disabled (zero) so that stateless +addresses are constructed using a stable, EUI64-based value. + +- ``net.ipv6.conf.*.addr_gen_mode`` + +This defines how link-local and auto-configured IPv6 addresses are +generated. It should be set to zero (default) so that IPv6 +addresses are generated using an EUI64-based value. + +.. note:: + + Support for ``addr_gen_mode`` was added in kernel version 4.11. + Other types of guests might have similar configuration options, please consult your distribution documentation for more information.