From 6e6949a0d18e26eaecbedc86ac92cf7f58d63f8f Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 21 May 2023 09:51:22 +0200 Subject: network: update a few comments regarding IPv6 auto-config IPv6 auto-configuration depends on accept_ra, accept_ra_pinfo, autoconf and forwarding. Let's mention this in the documentation part as it's not necessarily intuitive. --- sbin/init.d/network | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sbin/init.d/network b/sbin/init.d/network index 692d007..93a6830 100755 --- a/sbin/init.d/network +++ b/sbin/init.d/network @@ -1,6 +1,6 @@ #!/bin/bash -# service network [] # interface name -> int_=enable +# service network [] # ip [[addr
] | dhcp | autoconfig] [] # ip [{arp|neigh} {|pub}] [] # ip [route <-|gw>] [] @@ -41,6 +41,12 @@ # dhcptimeout (def: 10) # autoconf_script (def: /usr/libexec/ipautoconfig) +# Notes for IPv6 addressing: accept_ra defaults to 1 which means that an +# address and a default route may be assigned by a local default gateway for +# a given duration if forwarding=0 (default). Disable this by setting either +# accept_ra=0, accept_ra_pinfo=0 or autoconf=0. Force it even when forwarding=1 +# by enabling all these and setting accept_ra=2. + # we want ALL instances to stop and restart at once if [ "$1" = "restart" ]; then shift -- 2.35.3