ICMP 傳送到錯誤的接口

ICMP 傳送到錯誤的接口

我在家裡設定了以下網路。我可以從塔式 PC 上 ping 通 192.168.2.1 上的筆記型電腦。但我不能從筆記型電腦上。兩台電腦都運行 Windows 10。

在此輸入影像描述

WireShark 顯示 ICMP 請求訊框前往 TP Link(在 Wi-Fi 介面上)而不是交換器(在 eth 介面上)。

Frame 10: 74 bytes on wire (592 bits), 74 bytes captured (592 bits) on interface 1
Ethernet II, Src: AskeyCom_fa:a3:86 (e0:ca:94:fa:a3:86), Dst: Tp-LinkT_22:d3:82 (30:b5:c2:22:d3:82)
    Destination: Tp-LinkT_22:d3:82 (30:b5:c2:22:d3:82)
    Source: AskeyCom_fa:a3:86 (e0:ca:94:fa:a3:86)
    Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 192.168.0.108, Dst: 192.186.2.153
Internet Control Message Protocol

我確信這是由於路由錯誤造成的。從塔式 PC 到筆記型電腦的 ping 操作可能只能起作用,因為預設回覆是針對請求來源的相同介面完成的。

這是我嘗試設定它的方法。這些是筆記型電腦介面配置:

Ethernet adapter Ethernet
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Qualcomm Atheros AR8161/8165 PCI-E Gigabit Ethernet Controller (NDIS 6.20)
   Physical Address. . . . . . . . . : 00-26-6C-17-74-09
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.2.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Qualcomm Atheros AR9485WB-EG Wireless Network Adapter
   Physical Address. . . . . . . . . : E0-CA-94-FA-A3-86
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.0.108(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 01 October 2017 21:26:37
   Lease Expires . . . . . . . . . . : 03 October 2017 01:26:30
   Default Gateway . . . . . . . . . : 192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DNS Servers . . . . . . . . . . . : 192.168.0.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

這是預設路由表:

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.108      4
        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.0.0    255.255.255.0         On-link     192.168.0.108    258
    192.168.0.108  255.255.255.255         On-link     192.168.0.108    258
    192.168.0.255  255.255.255.255         On-link     192.168.0.108    258
      192.168.2.0    255.255.255.0         On-link       192.168.2.1    257
      192.168.2.1  255.255.255.255         On-link       192.168.2.1    257
    192.168.2.255  255.255.255.255         On-link       192.168.2.1    257
        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.2.1    257
        224.0.0.0        240.0.0.0         On-link     192.168.0.108    258
  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.2.1    257
  255.255.255.255  255.255.255.255         On-link     192.168.0.108    258
===========================================================================
Persistent Routes:
  None

我希望這條規則能夠解決問題,但事實並非如此:

      192.168.2.0    255.255.255.0         On-link       192.168.2.1    257

我還嘗試將規則的度量更改為 2、6 和 400,但也不起作用。有人有什麼想法嗎?

答案1

由於發出指令時出現拼字錯誤,您找錯樹了ping

Internet 協定版本 4,來源:192.168.0.108,目標:192.186.2.153
                                                                                            ^^^

注意186而不是 168。

相關內容