-
Notifications
You must be signed in to change notification settings - Fork 337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--dev 参数 无效的问题 #266
Comments
我刚刚测试了一下,
|
建议检查您本地策略路由设置 |
@tsosunchia tsosunchia ################ 是不是--dev用到的模式,在此场景下,不够可靠? 之前此环境,也用到了librespeed的工具,之前也是不支持此类型的环境,bind address的方式也是不行,后来我找到一个改版的版本。用到了SO_BINDTODEVICE ,就支持对接口的bind了,优先级,高于策略路由。 #策略路由相关的情况。
|
使用SO_BINDTODEVICE的时候,好像可以直接bypassing the routing table |
traceroute 的bind interface 就是SO_BINDTODEVICE模式的 |
本项目是基于Linux/macOS的,请确认您遇到的问题是否在Linux或macOS上存在。
Openwrt
Linux F85E3C5FA22C 5.4.255 #0 SMP Fri May 17 11:49:10 2024 aarch64 GNU/Linux
2 个wan的出口 usb0(默认)usb1(第2个出口)
usb0 Link encap:Ethernet HWaddr 1E:98:AB:E2:28:23
inet addr:192.168.42.2 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::1c98:abff:fee2:2823/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2042419 errors:0 dropped:967 overruns:0 frame:0
TX packets:1271530 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2305110354 (2.1 GiB) TX bytes:465878851 (444.2 MiB)
usb1 Link encap:Ethernet HWaddr 32:29:A9:42:A6:A6
inet addr:192.168.52.2 Bcast:192.168.52.255 Mask:255.255.255.0
inet6 addr: fe80::3029:a9ff:fe42:a6a6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2559603 errors:0 dropped:0 overruns:0 frame:0
TX packets:3073517 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2836038976 (2.6 GiB) TX bytes:2474963081 (2.3 GiB)
root@F85E3C5FA22C:~# ip route
default via 192.168.42.1 dev usb0 proto static src 192.168.42.2 metric 30
default via 192.168.52.1 dev usb1 proto static src 192.168.52.2 metric 40
192.168.42.0/24 dev usb0 proto static scope link metric 30
192.168.48.0/24 dev br-lan proto kernel scope link src 192.168.48.1
192.168.52.0/24 dev usb1 proto static scope link metric 40
你正在使用哪个版本的 nexttrace?
NextTrace v1.3.5 2024-10-16T03:16:40Z 4ae9d8e
linux_arm64的版本
你看到的异常现象是什么?
没有走指定的网卡usb1,走的默认网卡usb0(192.168.42.1)
你期待看到的正常表现是怎样的?
走usb1网卡(192.168.52.1)
请附上你的命令
./nexttrace_linux_arm64 -d ipinfo 223.5.5.5 --dev usb1
root@F85E3C5FA22C:~# ./nexttrace_linux_arm64 -d ipinfo 223.5.5.5 --dev usb1
NextTrace v1.3.5 2024-10-16T03:16:40Z 4ae9d8e
IP Geo Data Provider: ipinfo
traceroute to 223.5.5.5, 30 hops max, 52 bytes payload
1 192.168.42.1 * RFC1918
2.97 ms / 3.10 ms / 2.31 ms
2 192.168.30.254 * RFC1918
30.16 ms / 25.09 ms / 25.16 ms
3 10.3.0.17 * RFC1918
24.01 ms / 25.53 ms / 24.73 ms
4 *
5 *
6 124.73.164.29 AS4134 China Shanghai Shanghai CHINANET-BACKBONE
29.164.73.124.broad.dynamic.hf.ah.cndata.com 80.11 ms / 71.03 ms / * ms
7 *
8 *
9 *
10 *
11 *
12 116.251.116.93 AS45102 China Shanghai Shanghai Alibaba (US) Technology Co., Ltd.
33.10 ms / 37.73 ms / 32.58 ms
13 *
14 *
15 223.5.5.5 AS45102 ANYCAST ANYCAST Alibaba (US) Technology Co., Ltd.
public1.alidns.com 36.43 ms / 40.46 ms / 35.27 ms
MapTrace URL: https://assets.nxtrace.org/tracemap/5cde2dd2-abdc-5f84-9d12-d2ef516a2d6d.html
请附上出错时软件输出的错误信息
是否查询过本仓库wiki有没有类似错误
是否没有绑定到指定的接口?
是否可用linux下的SO_BINDTODEVICE方式来实现?
之前有用过此软件,改版后,实现了对interface的绑定。
//供参考。
MagnaboscoL/speedtest-cli@1651a82
无
The text was updated successfully, but these errors were encountered: