From 34672d93efb0ae3773f6dd43d8b98383ecfe7001 Mon Sep 17 00:00:00 2001 From: QiuSimons <45143996+QiuSimons@users.noreply.github.com> Date: Sat, 27 Jan 2024 00:12:55 +0800 Subject: [PATCH] ensure dhcpv6 work properly --- files/nat6.init | 3 +++ 1 file changed, 3 insertions(+) diff --git a/files/nat6.init b/files/nat6.init index 9d3b01d..fd8042c 100644 --- a/files/nat6.init +++ b/files/nat6.init @@ -45,6 +45,8 @@ EOF del dhcp.lan.ndp set dhcp.lan.ra_default='2' set dhcp.lan.ra_slaac='0' + del dhcp.lan.ra_flags + add_list dhcp.lan.ra_flags='managed-config' commit dhcp EOF /etc/init.d/odhcpd reload @@ -95,6 +97,7 @@ EOF if [ "$(uci -q get dhcp.lan.ra_slaac)" != "" ]; then uci -q batch <<-EOF >/dev/null del dhcp.lan.ra_slaac + del dhcp.lan.ra_flags commit dhcp EOF fi