电信宽带提供的是动态的公网IPv6, 每天需要重启更新IPv6前缀;使用中发现路由器重启后,群晖还保留着上次的公网IP,需要手动刷新避免ddns脚本获取错误的IP 。
参考群晖 怎么用命令重启网卡或者ipv6?,把synonetdtool --refresh-gateway -6添加到计划任务,在路由器重启后执行一次即可。

2021/6/21更新:并不能解决问题,暂时定时重启解决;

2021/10/25更新:重启网卡ifconfig eth0 down&&ifconfig eth0 up

2021/10/28更新:使用shell脚本判断ipv6数量

#!/bin/sh

if [ `ifconfig |grep inet6|wc -l` -gt 3 ]
then
    ifconfig eth0 down&&ifconfig eth0 up
    echo "change!"
else
    echo "No change!"
fi

标签: 黑群

添加新评论