在Windows上使用Teredo隧道以访问IPv6资源

admin 2023年12月26日13:47:26系统文档评论2,088 次浏览阅读模式

在我们的网络环境中,大部分的电脑只有IPv4而没有IPv6。但是我们需要使用IPv6的资源,又应该咋办呢?在这篇文章中,我会介绍一种方式——Teredo隧道,以让大家使用IPv6的资源。

准备材料

一台Windows的电脑

部署步骤

右键开始菜单,选择“终端(管理员)”

输入以下命令以设置 Teredo 服务器

1
netsh interface teredo set state enterpriseclient server=default

输入以下指令测试IPv6连通性,如连接通的可以直接不用看下面的内容了

1
2
ping -6 [2001:470:1:18::125]
ping -6 ipv6.test-ipv6.com

自定义Teredo隧道服务器地址,下面四个地址能ping通就选哪个地址

1
2
3
4
5
teredo.trex.fi
teredo.iks-jena.de
teredo.remlab.net
teredo-debian.remlab.net
debian-miredo.progsoc.org

设置命令:

1
netsh interface teredo set state server=teredo.remlab.net

设置Teredo隧道端口

1
2
netsh interface teredo set state natawareclient clientport=60409
netsh interface teredo set state enterpriseclient clientport=60309

查看Teredo隧道状态,如状态未显示offline即为链接成功

1
netsh interface teredo show state

如需禁用Teredo隧道,运行

1
netsh interface Teredo set state disable

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2023年12月26日13:47:26
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/xitongwendang/2023/1226/16172.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: