From dbd2d379da8aafc41a2bdaff0a7226dd88527b9e Mon Sep 17 00:00:00 2001 From: Bobby Rong Date: Thu, 1 Jul 2021 23:12:39 +0800 Subject: nixos: nixos/doc/manual/configuration/ipv6-config.xml to CommonMark --- .../manual/configuration/ipv6-config.section.md | 42 +++++++++++++++++ nixos/doc/manual/configuration/ipv6-config.xml | 54 ---------------------- nixos/doc/manual/configuration/networking.xml | 2 +- .../from_md/configuration/ipv6-config.section.xml | 47 +++++++++++++++++++ 4 files changed, 90 insertions(+), 55 deletions(-) create mode 100644 nixos/doc/manual/configuration/ipv6-config.section.md delete mode 100644 nixos/doc/manual/configuration/ipv6-config.xml create mode 100644 nixos/doc/manual/from_md/configuration/ipv6-config.section.xml (limited to 'nixos') diff --git a/nixos/doc/manual/configuration/ipv6-config.section.md b/nixos/doc/manual/configuration/ipv6-config.section.md new file mode 100644 index 00000000000..6d51a21aa64 --- /dev/null +++ b/nixos/doc/manual/configuration/ipv6-config.section.md @@ -0,0 +1,42 @@ +# IPv6 Configuration {#sec-ipv6} + +IPv6 is enabled by default. Stateless address autoconfiguration is used +to automatically assign IPv6 addresses to all interfaces, and Privacy +Extensions (RFC 4946) are enabled by default. You can adjust the default +for this by setting [`networking.tempAddresses`](options.html#opt-networking.tempAddresses). This option +may be overridden on a per-interface basis by +[`networking.interfaces..tempAddress`](options.html#opt-networking.interfaces._name_.tempAddress). You can disable +IPv6 support globally by setting: + +```nix +networking.enableIPv6 = false; +``` + +You can disable IPv6 on a single interface using a normal sysctl (in +this example, we use interface `eth0`): + +```nix +boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true; +``` + +As with IPv4 networking interfaces are automatically configured via +DHCPv6. You can configure an interface manually: + +```nix +networking.interfaces.eth0.ipv6.addresses = [ { + address = "fe00:aa:bb:cc::2"; + prefixLength = 64; +} ]; +``` + +For configuring a gateway, optionally with explicitly specified +interface: + +```nix +networking.defaultGateway6 = { + address = "fe00::1"; + interface = "enp0s3"; +}; +``` + +See [](#sec-ipv4) for similar examples and additional information. diff --git a/nixos/doc/manual/configuration/ipv6-config.xml b/nixos/doc/manual/configuration/ipv6-config.xml deleted file mode 100644 index 45e85dbf3df..00000000000 --- a/nixos/doc/manual/configuration/ipv6-config.xml +++ /dev/null @@ -1,54 +0,0 @@ -
- IPv6 Configuration - - - IPv6 is enabled by default. Stateless address autoconfiguration is used to - automatically assign IPv6 addresses to all interfaces, and Privacy - Extensions (RFC 4946) are enabled by default. You can adjust the default - for this by setting . - This option may be overridden on a per-interface basis by - . - You can disable IPv6 support globally by setting: - - = false; - - - - - You can disable IPv6 on a single interface using a normal sysctl (in this - example, we use interface eth0): - -."net.ipv6.conf.eth0.disable_ipv6" = true; - - - - - As with IPv4 networking interfaces are automatically configured via DHCPv6. - You can configure an interface manually: - -networking.interfaces.eth0.ipv6.addresses = [ { - address = "fe00:aa:bb:cc::2"; - prefixLength = 64; -} ]; - - - - - For configuring a gateway, optionally with explicitly specified interface: - - = { - address = "fe00::1"; - interface = "enp0s3"; -}; - - - - - See for similar examples and additional - information. - -
diff --git a/nixos/doc/manual/configuration/networking.xml b/nixos/doc/manual/configuration/networking.xml index 6203d2ba8dc..10265922432 100644 --- a/nixos/doc/manual/configuration/networking.xml +++ b/nixos/doc/manual/configuration/networking.xml @@ -11,7 +11,7 @@ - + diff --git a/nixos/doc/manual/from_md/configuration/ipv6-config.section.xml b/nixos/doc/manual/from_md/configuration/ipv6-config.section.xml new file mode 100644 index 00000000000..ac3c2cd4b21 --- /dev/null +++ b/nixos/doc/manual/from_md/configuration/ipv6-config.section.xml @@ -0,0 +1,47 @@ +
+ IPv6 Configuration + + IPv6 is enabled by default. Stateless address autoconfiguration is + used to automatically assign IPv6 addresses to all interfaces, and + Privacy Extensions (RFC 4946) are enabled by default. You can adjust + the default for this by setting + networking.tempAddresses. + This option may be overridden on a per-interface basis by + networking.interfaces.<name>.tempAddress. + You can disable IPv6 support globally by setting: + + +networking.enableIPv6 = false; + + + You can disable IPv6 on a single interface using a normal sysctl (in + this example, we use interface eth0): + + +boot.kernel.sysctl."net.ipv6.conf.eth0.disable_ipv6" = true; + + + As with IPv4 networking interfaces are automatically configured via + DHCPv6. You can configure an interface manually: + + +networking.interfaces.eth0.ipv6.addresses = [ { + address = "fe00:aa:bb:cc::2"; + prefixLength = 64; +} ]; + + + For configuring a gateway, optionally with explicitly specified + interface: + + +networking.defaultGateway6 = { + address = "fe00::1"; + interface = "enp0s3"; +}; + + + See for similar examples and additional + information. + +
-- cgit 1.4.1