From 30a3616bf8e3002837da81aa36a6cfe49d5829d5 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 7 Sep 2025 00:58:02 +0800 Subject: [PATCH] =?UTF-8?q?net:=20=E4=BF=AE=E5=A4=8D=20accept=5Fra=20?= =?UTF-8?q?=E8=A2=AB=E5=85=B3=E9=97=AD=E5=AF=BC=E8=87=B4=20scaleway=20?= =?UTF-8?q?=E5=9C=A8=E5=AE=89=E8=A3=85=E9=98=B6=E6=AE=B5=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E8=BF=87=E6=9C=9F=E8=80=8C=E6=96=AD=E7=BD=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fixes #423 --- initrd-network.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/initrd-network.sh b/initrd-network.sh index 70c5b4b..e77beea 100644 --- a/initrd-network.sh +++ b/initrd-network.sh @@ -369,6 +369,10 @@ else sleep $DNS_FILE_TIMEOUT # 需要等待写入 dns dhcpcd -x "$ethx" # 终止 fi + # autoconf 和 accept_ra 会被 dhcpcd 自动关闭,因此需要重新打开 + # 如果没重新打开,重新运行 dhcpcd 命令依然可以正常生成 slaac 地址和路由 + sysctl -w "net.ipv6.conf.$ethx.autoconf=1" + sysctl -w "net.ipv6.conf.$ethx.accept_ra=1" ;; esac fi