From f85a75c8112193654bbcf017eec241b64b20ddf5 Mon Sep 17 00:00:00 2001 From: Shuotian Cheng Date: Tue, 28 Aug 2018 14:40:01 -0700 Subject: [PATCH] [debian]: Enable keep_addr_on_down to keep IPv6 addresses (#1992) Starting from kernel 4.6, this new attribute keep_addr_on_down is introduced (https://kernelnewbies.org/Linux_4.6). If set, static global addresses with no expiration time are not flushed. Ref: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f1705ec197e705b79ea40fe7a2cc5acfa1d3bfac Signed-off-by: Shu0T1an ChenG --- build_debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index 28493ea168..e893b9df40 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -318,6 +318,10 @@ set /files/etc/sysctl.conf/net.ipv6.conf.default.accept_dad 0 set /files/etc/sysctl.conf/net.ipv6.conf.all.accept_dad 0 set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_dad 0 +set /files/etc/sysctl.conf/net.ipv6.conf.default.keep_addr_on_down 1 +set /files/etc/sysctl.conf/net.ipv6.conf.all.keep_addr_on_down 1 +set /files/etc/sysctl.conf/net.ipv6.conf.eth0.keep_addr_on_down 1 + set /files/etc/sysctl.conf/net.ipv6.conf.eth0.accept_ra_defrtr 0 set /files/etc/sysctl.conf/net.core.rmem_max 2097152