为了防止Windows/光猫定期无故中断ipv6网络连接,可以在后台一直ping一个ipv6地址
C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\ping.vbs
Set UAC = CreateObject("Shell.Application")
UAC.ShellExecute "cmd", "/c start /b ping x.x.x.x -t > NUL", "", "runas", 0
参考:
https://learn.microsoft.com/en-us/windows/win32/shell/shell-shellexecute
0 Open the application with a hidden window.
(
计划任务
taskschd.msc
任何用户登录时执行
c:\ping.bat
ping.bat内容是:
REM 后台ping
start /b ping 2001:da8::666 -t > NUL
exit
)
重启Windows,观察任务列表中是否有PING.EXE,或
tasklist | findstr PING
在目标服务器上验证:tcpdump -nnn -i eth0 ip6 and icmp6
如果已中断,可以重置网卡,恢复ipv6网络连接:
http://www.trustcomputing.com.cn/bbs/viewthread.php?tid=1927
[
本帖最后由 linda 于 2024-7-10 10:44 编辑 ]