我遇到的问题只与我的 Windows 10 机器有关。我无法访问我的 Raspberry PI3,尽管我可以从任何 LAN 监控工具中看到此设备。
Win 10:192.168.1.2
网关路由器:192.168.1.1
Raspberry:192.168.1.169
MyLanViewer 报告于 2021.05.08 04:18
设备 (9)
MAC Address Last IPv4 Address Last Host Name by IPv4 Last IPv6 Address Last Host Name by IPv6 NIC Vendor Last Time Found First Time Found
00:FF:A7:XX:XX:XX N/A N/A fe80::c134:XXXX:XXXX:XXXX N/A N/A 2021.05.08 04:17 2021.05.08 04:04
00:FF:DE:XX:XX:XX N/A N/A fe80::7573:XXXX:XXXX:XXXX N/A N/A 2021.05.08 04:17 2021.05.08 04:04
14:DA:E9:XX:XX:XX 192.168.1.2 My-PC fe80::8977:XXXX:XXXX:XXXX My-PC ASUSTek COMPUTER INC. 2021.05.08 04:17 2021.05.08 04:04
3C:37:86::XX:XX:XX 192.168.1.1 DD-WRT N/A N/A NETGEAR 2021.05.08 04:17 2021.05.08 04:04
78:92:9C::XX:XX:XX N/A N/A fe80::ed43:XXXX:XXXX:XXXX N/A Intel Corporate 2021.05.08 04:17 2021.05.08 04:04
B8:27:EB::XX:XX:XX 192.168.1.169 RaspberryPI3 fe80::ba27:XXXX:XXXX:XXXX N/A Raspberry Pi Foundation 2021.05.08 04:17 2021.05.08 04:04
从 win10 桌面 ping
192.168.1.169 的 Ping 统计信息:数据包:已发送 = 20,已接收 = 0,丢失 = 20(100% 丢失)
刚刚手动添加到我的 eth0 接口的路由,但没有解决......来自 wlan 接口的结果相同。
将全面回答您的问题:我的 RPi 可以 ping 路由器,它是有线连接的,但现在无法导航到互联网...可能是隧道接口的问题。这是我在 RPi 中的 iptables:
Chain INPUT (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:ssh
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
all -- anywhere anywhere state RELATED,ESTABLISHED
all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
我的 Windows 电脑:
Indirizzo rete Mask Gateway Interfaccia Metrica
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.2 25
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.1.0 255.255.255.0 On-link 192.168.1.2 281
192.168.1.2 255.255.255.255 On-link 192.168.1.2 281
192.168.1.255 255.255.255.255 On-link 192.168.1.2 281
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.1.2 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.1.2 281
答案1
我通过重新安装 raspberrypi OS 解决了我的问题,但现在我的 win10 使用其 wlan 地址而不是 eth0 来解析 rpi 主机名:
Server: DD-WRT
Address: 192.168.0.1
DNS request timed out.
timeout was 2 seconds.
Nome: raspberrypi.WORKGROUP
Address: 192.168.0.18 ###wlan0 address###
我希望它的地址是 eth0 地址 192.168.1.3。raspberrypi 上的 wifi 已关闭,我可以从 win10 机器访问 RPI 中的 samba 共享文件夹,但给出的是其数字地址 //192.168.0.3/share,而不是主机名 //raspberrypi/share。