全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 2841|回复: 6

分享个三网回程路由测试脚本

[复制链接]
发表于 2023-3-11 10:57:26 | 显示全部楼层 |阅读模式
本帖最后由 276080758 于 2023-3-11 11:20 编辑

能测试本机IPV4和IPV6的三网回程路由(TCP)以及本机到指定IP的路由(TCP),功能挺多的。
  1. 服务器信息(优先显示IPv4,仅供参考):
  2. ————————————————————————————————————
  3. ISP      : HostHatch  
  4. ASN      : AS63473 HostHatch, LLC
  5. 服务商   : HostHatch LLC
  6. 国家     : Sweden
  7. 地址     : Stockholm, Stockholm County (AB)
  8. IPv4地址 : 185.213.*.*
  9. IPv6地址 : 无 IPv6
  10. IP 性质  : 数据中心

  11. 测试项(TCP Mode,三网回程测试点均为 9 个):
  12. ————————————————————————————————————
  13. 1. 本机 IPv4 三网回程路由 中文 输出 BestTrace库(默认)
  14. 2. 本机 IPv4 三网回程路由 中文 输出 Nexttrace库
  15. 3. 本机 IPv4 三网回程路由 英文 输出 BestTrace库
  16. 4. 本机 IPv6 三网回程路由 中文 输出 Nexttrace库
  17. 5. 本机 IPv6 三网回程路由 英文 输出 Nexttrace库
  18. 6. 本机到指定 IPv4/IPv6 路由(BestTrace/Nexttrace)
  19. 7. 退出测试
  20.    
  21. 请输入需要的测试项 [1-7] ( 默认:1 ):
复制代码


用法:
  1. wget -N --no-check-certificate https://raw.githubusercontent.com/Chennhaoo/Shell_Bash/master/AutoTrace.sh && chmod +x AutoTrace.sh && bash AutoTrace.sh
复制代码


效果:
  1. Num:9/9 Traceroute to 中国 北京 移动 (TCP Mode, Max 30 Hop, IPv4)
  2. ============================================================
  3. traceroute to 211.136.25.153 (211.136.25.153), 30 hops max, 32 byte packets
  4. 1  31.220.5.1  17.86 ms  AS63473  瑞典, 斯德哥尔摩省, 斯德哥尔摩, terratransit.de
  5. 2  80.67.1.130  0.85 ms  AS42708  瑞典, 斯德哥尔摩省, 斯德哥尔摩, glesys.se
  6. 3  80.67.4.136  0.81 ms  AS42708  瑞典, 斯德哥尔摩省, 斯德哥尔摩, glesys.se
  7. 4  80.67.4.247  8.37 ms  AS42708  GLESYS.SE 骨干网, glesys.se
  8. 5  80.67.4.238  19.78 ms  AS42708  荷兰, 北荷兰省, 阿姆斯特丹, glesys.se
  9. 6  80.67.4.224  25.13 ms  AS42708  英国, 伦敦, glesys.se
  10. 7  195.66.226.5  27.49 ms  AS34984  英国, 伦敦, linx.net
  11. 8  223.120.10.189  26.73 ms  AS58453  英国, 伦敦, chinamobile.com, 移动
  12. 9  223.120.10.1  26.59 ms  AS58453  英国, 伦敦, chinamobile.com, 移动
  13. 10  223.120.15.2  268.19 ms  AS58453  中国, 北京, chinamobile.com, 移动
  14. 11  223.120.22.18  269.10 ms  AS58453  中国, 北京, chinamobile.com, 移动
  15. 12  221.183.55.110  269.16 ms  AS9808  中国, 北京, chinamobile.com, 移动
  16. 13  221.183.46.250  269.94 ms  AS9808  中国, 北京, chinamobile.com, 移动
  17. 14  221.183.89.102  283.23 ms  AS9808  中国, 北京, chinamobile.com, 移动
  18. 15  *
  19. 16  *
  20. 17  *
  21. 18  211.136.67.166  271.95 ms  AS56048  中国, 北京, chinamobile.com, 移动
  22. 19  *
  23. 20  *
  24. 21  *
  25. 22  211.136.25.153  274.88 ms  AS56048  中国, 北京, chinamobile.com, 移动
复制代码

发表于 2023-3-11 11:00:24 | 显示全部楼层
手工点赞
 楼主| 发表于 2023-3-11 11:18:50 | 显示全部楼层

刚好最近在找测试脚本
发表于 2023-3-11 11:26:35 | 显示全部楼层
感谢分享,收藏了。
发表于 2023-3-11 11:28:23 | 显示全部楼层
谢谢分享,试试
发表于 2023-3-11 11:28:49 | 显示全部楼层
感谢分享,我网站也有一个,还不错
发表于 2023-3-11 12:33:33 | 显示全部楼层
感谢分享,前排支持
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-6 16:42 , Processed in 0.061139 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表