#?Linux?一鍵安裝腳本 bash?<(curl?-Ls?https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh)

GitHub 還提供了其他兩種方式的自動安裝命令,可參考:
#?GHPROXY?鏡像(國內使用) bash?<(curl?-Ls?https://ghproxy.com/https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh) #?macOS?brew?安裝命令 brew?tap?xgadget-lab/nexttrace?&&?brew?install?nexttrace
NextTrace 的用法:
nexttrace?[-h|--help]?[-T|--tcp]?[-U|--udp]?[-F|--fast-trace]?[-p|--port ?????????????????<integer>]?[-q|--queries?<integer>]?[--parallel-requests ?????????????????<integer>]?[-m|--max-hops?<integer>]?[-d|--data-provider ?????????????????(Ip2region|ip2region|IP.SB|ip.sb|IPInfo|ipinfo|IPInsight|ipinsight|IPAPI.com|ip-api.com|IPInfoLocal|ipinfolocal|chunzhen)] ?????????????????[-n|--no-rdns]?[-a|--always-rdns]?[-P|--route-path] ?????????????????[-r|--report]?[--dn42]?[-o|--output]?[-t|--table] ?????????????????[-c|--classic]?[-f|--first?<integer>]?[-M|--map] ?????????????????[-v|--version]?[-s|--source?"<value>"]?[-D|--dev?"<value>"] ?????????????????[-R|--route]?[-z|--send-time?<integer>]?[-i|--ttl-time ?????????????????<integer>]?[_positionalArg_nexttrace_25?"<value>"] ?????????????????[--dot-server?(dnssb|aliyun|dnspod|google|cloudflare)] ?????????????????[-g|--language?(en|cn)]
NextTrace 的參數:
-
-h:幫助信息
-
-T:使用 TCP SYN 進行路由追蹤(默認端口為:80)
-
-U:使用 UDP SYN 進行路由追蹤(默認端口為:53)
-
-F:快速追蹤運營商
-
-p:設置目的端口
-
-q:每跳探測的個數(默認值:3)
-
–parallel-requests:設置并行請求數,當存在多條路由時,應該為1(默認值:18)
-
-m:設置最大 TTL 跳數(默認值:30)
-
-d:選擇 IP 地理數據提供者(默認值:LeoMoeAPI)
-
-n:不解析 IP 地址為域名
-
-a:始終將 IP 地址解析為域名
-
-P:根據 ASN 和位置輸出 traceroute 路徑
-
-r:使用報告模式輸出
-
–dn42:DN42 模式
-
-o:將跟蹤結果寫入文件
-
-t:將跟蹤結果輸出為表
-
-c:經典輸出跟蹤結果
-
-f:從第一個 TLL 跳數開始,而不是從 1 開始(默認值:1)
-
-M:不打印跟蹤地圖
-
-v:打印版本信息并退出
-
-s:發送報文時使用 source src_addr
-
-D:在發送的報文中使用網絡設備作為源地址
-
-R:顯示路由表
-
-z:設置每個報文發送的時間間隔,當某些路由對 ICMP 使用速率限制時有效(默認值:100)
-
-i:使用 TTL 值設置報文組發送的時間間隔,當某些路由對 ICMP 使用速率限制時有效(默認值:500)
-
–_positionalArg_nexttrace_25:IP 地址或域名
-
–dot-server:使用 DOT 服務進行 DNS 解析 [dnssb、aliyun、dnspod、google、cloudflare]
-
-g:選擇顯示的語言
NextTrace 的使用:
nexttrace 若不加任何參數,則默認使用 ICMP 協議發起路由追蹤請求,支持 IPv4 和 IPv6。
#?IPv4?ICMP?Trace nexttrace?8.8.8.8 #?IPv6?ICMP?Trace nexttrace?2606:4700:4700::1111

#?URL nexttrace?https://api.leo.moe/

#?測試 ISP 的路由:國內四網、電信、聯通、移動、教育網、測試 IP 類型:IPv4 / IPv6 的 ICMP 快速測試 nexttrace -F

nexttrace?-F?-T
使用?ens32?網卡 nexttrace -D ens32 1.1.1.1

#?使用?ens32?網卡IP #?使用網卡?IP?進行路由跟蹤時需要注意跟蹤的?IP?類型應該和網卡?IP?類型一致(如都為?IPv4) nexttrace --source 192.168.0.5 114.114.114.114

#?TCP?SYN?Trace nexttrace?-T?1.1.1.1 nexttrace?-T?https://api.leo.moe/ #?UDP?Trace nexttrace?-U?1.1.1.1 nexttrace?-U?https://api.leo.moe/ #?可以自行指定端口 nexttrace?--tcp?--port?443?1.1.1.1 nexttrace?--udp?--port?5353?1.0.0.1
#?每一跳發送?10?個探測包 nexttrace?-q?10?https://api.leo.moe/ #?無并發,每次只發送?1?個探測包 nexttrace?--parallel-requests?1?https://api.leo.moe/ #?從?TTL?為?10?開始發送探測包,直到?TTL?為?20?結束 nexttrace?-f?10?-m?20?https://api.leo.moe/ #?關閉?IP?反向解析功能 nexttrace?-n?https://api.leo.moe/
nexttrace -P https://api.leo.moe/

nexttrace?--table?202.108.23.50





















![搬瓦工:中國香港 HK85 機房 [HKHK_3] 已恢復移動 CMI 回程三網直連-國外主機測評](http://www.lrracing.com/wp-content/uploads/2023/03/20230316161718.png)

