问题:更换新路由器(TP-Link AX11000)后无法从 Windows PC 访问 Linux Mint 20.1 PC
路由器:TP-Link AX11000
机器 1:Windows 10 电脑
机器2:Linux Mint 20.1 电脑
我能够从 Windows 10 PC 通过 winscp / nomachine / ssh 连接到 Linux Mint 20.1 PC,直到我更换了新路由器,并且为每个设备分配了新 IP。我不确定问题是否是由于:
- ax11000 阻止连接
- 由于新 IP,PC 配置过时
- Linux Mint 20.1 的防火墙(我禁用了防火墙,
sudo ufw disable
并尝试使用下面提到的方法连接,但没有成功。所以我不认为防火墙是问题所在) - 其他东西
WinSCP 错误:
Network error: Connection to "192.168.0.231" timed out
NoMachine 错误:
A connection timeout has occurred while trying to connect to '192.168.0.231' on port '4000'. The issue could either be caused by a networking problem, by a firewall or NAT blocking incoming traffic or by a wrong server address. Please verify your configuration and try again.
- UPnP(通用即插即用)已启用,并且存在由NoMachine创建的端口4000。
SSH 错误:
# standard ssh to my linux mint don't work as expected
$ ssh -v [email protected]
OpenSSH_8.2p1 Ubuntu-4ubuntu0.1, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /home/USER/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug1: Connecting to 192.168.0.231 [192.168.0.231] port 22.
debug1: connect to address 192.168.0.231 port 22: No route to host
ssh: connect to host 192.168.0.231 port 22: No route to host
# ping the IP address to ensure linux mint pc is up (it's because I am looking at the mint pc), from my Windows to my Linux
ping 192.168.0.231
PING 192.168.0.231 (192.168.0.231) 56(84) bytes of data.
From 192.168.0.194 icmp_seq=7 Destination Host Unreachable
From 192.168.0.194 icmp_seq=10 Destination Host Unreachable
From 192.168.0.194 icmp_seq=13 Destination Host Unreachable
From 192.168.0.194 icmp_seq=16 Destination Host Unreachable
From 192.168.0.194 icmp_seq=19 Destination Host Unreachable
From 192.168.0.194 icmp_seq=22 Destination Host Unreachable
From 192.168.0.194 icmp_seq=25 Destination Host Unreachable
^C
--- 192.168.0.231 ping statistics ---
25 packets transmitted, 0 received, +7 errors, 100% packet loss, time 24778ms
IP信息:
$ sudo netstat -anutp | grep :22
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 64417/sshd: /usr/sb
tcp6 0 0 :::22 :::* LISTEN 64417/sshd: /usr/sb
$ ip addr
...
inet 192.168.0.231/24 brd 192.168.0.255 scope global dynamic noprefixroute wlp59s0
...
$ hostname -I
192.168.0.231
$ ip r
192.168.0.0/24 dev wlp59s0 proto kernel scope link src 192.168.0.231 metric 600
AX11000 系统诊断输出:
# Windows 10 PC ping
PING 192.168.0.194 (192.168.0.194): 64 data bytes
Reply from 192.168.0.194: bytes=64 ttl=128 seq=1 time=1.632 ms
Reply from 192.168.0.194: bytes=64 ttl=128 seq=2 time=1.620 ms
Reply from 192.168.0.194: bytes=64 ttl=128 seq=3 time=1.327 ms
Reply from 192.168.0.194: bytes=64 ttl=128 seq=4 time=1.722 ms
--- Ping Statistic "192.168.0.194" ---
Packets: Sent=4, Received=4, Lost=0 (0.00% loss)
Round-trip min/avg/max = 1.327/1.575/1.722 ms
ping is stopped.
# Windows 10 PC traceroute
traceroute to 192.168.0.194, 5 hops max, 38 byte packets
1 * * *
2 * * *
3 * * *
4 * * *
5 * * *
Trace Complete.
traceroute is stopped.
# Linux Mint 20.1 PC ping
PING 192.168.0.231 (192.168.0.231): 64 data bytes
Reply from 192.168.0.231: bytes=64 ttl=64 seq=1 time=7.350 ms
Reply from 192.168.0.231: bytes=64 ttl=64 seq=2 time=1.145 ms
Reply from 192.168.0.231: bytes=64 ttl=64 seq=3 time=1.307 ms
Reply from 192.168.0.231: bytes=64 ttl=64 seq=4 time=2.178 ms
--- Ping Statistic "192.168.0.231" ---
Packets: Sent=4, Received=4, Lost=0 (0.00% loss)
Round-trip min/avg/max = 1.145/2.995/7.350 ms
ping is stopped.
# Linux Mint 20.1 PC traceroute
traceroute to 192.168.0.231, 5 hops max, 38 byte packets
1 192.168.0.231 (192.168.0.231) 35.597 ms 35.319 ms 1.242 ms
Trace Complete.
traceroute is stopped.
任何回应/指示/帮助都将不胜感激!
答案1
这很尴尬,但重新启动路由器后问题就消失了,我发誓我这样做了,并确认它不起作用,然后我才在这里发布问题。
我联系了 TP-Link 支持人员,与他们一起解决问题。如果您使用 TP-Link AX11000 并遇到同样的问题,请注意以下设置
高级 > 无线 > 无线设置
- 安全性:WPA/WPA2-个人
- 版本:WPA-PSK/WPA2-PSK
- 加密:AES
高级 > 无线 > 附加设置
- 确保
AP Isolation
已禁用
高级 > 系统 > 固件升级
- 确保固件是最新的
确保这些设置正确后,关闭路由器,等待 5 分钟,然后重新启动。现在应该可以正常工作了,祈祷吧。
另外,特别感谢用户@Zina 的帮助。