我有一个带有两个NIC的服务器,如下所示。
- 一个IP地址为192.168.0.47/24。这个网络没有路由器/网关等。
- 一个具有IP地址172.16.92.45,并且桥接到OpenVPN的分接头适配器。
我正在尝试与192.168.0.204的设备通信,但失败了。 Wireshark确认尝试ping 192.168.0.204是通过172.16.92.45接口,而不是192.168.0.47,这让我感到惊讶。 tracert确认ping进入默认网关172.16.92.12,永远不会再被看到。
ipconfig说:
Windows IP Configuration
Ethernet adapter Ethernet:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Ethernet adapter Embedded LOM 1 Port 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::b40f:8c41:a781:a89b%12
IPv4 Address. . . . . . . . . . . : 192.168.0.47
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Ethernet adapter Network Bridge:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::4d2:2673:7ff4:8676%18
IPv4 Address. . . . . . . . . . . : 172.16.92.45
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . : 172.16.92.12
Tunnel adapter isatap.{B63DCFB1-4179-45E6-9268-299D4526831A}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Tunnel adapter isatap.{78520E8A-472A-4BBD-9440-7BF50D172859}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
路由表是:
===========================================================================
Interface List
19...00 ff 4d 58 89 8e ......TAP-Windows Adapter V9 #2
12...98 f2 b3 8f bb e5 ......HPE Ethernet 1Gb 2-port 332i Adapter #2
18...00 ff f8 2b 19 b1 ......Microsoft Network Adapter Multiplexor Driver
1...........................Software Loopback Interface 1
14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.92.12 172.16.92.45 266
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
172.16.0.0 255.255.0.0 On-link 172.16.92.45 266
172.16.92.45 255.255.255.255 On-link 172.16.92.45 266
172.16.255.255 255.255.255.255 On-link 172.16.92.45 266
192.168.0.0 255.255.255.0 On-link 192.168.0.47 276
192.168.0.47 255.255.255.255 On-link 192.168.0.47 276
192.168.0.255 255.255.255.255 On-link 192.168.0.47 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 172.16.92.45 266
224.0.0.0 240.0.0.0 On-link 192.168.0.47 276
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 172.16.92.45 266
255.255.255.255 255.255.255.255 On-link 192.168.0.47 276
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 172.16.92.12 Default
0.0.0.0 0.0.0.0 172.16.92.12 Default
===========================================================================
IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
18 266 fe80::/64 On-link
12 276 fe80::/64 On-link
18 266 fe80::4d2:2673:7ff4:8676/128
On-link
12 276 fe80::b40f:8c41:a781:a89b/128
On-link
1 306 ff00::/8 On-link
18 266 ff00::/8 On-link
12 276 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
我原以为192.168.0.0 / 255.255.255.0接口192.168.0.47的路由意味着192.168.0.47用于ping 192.168.0.204,但显然不是。
如果它有任何区别,这两个NIC实际上连接到相同的物理LAN(不同的交换机,但已连接)。我正在使用这两个IP地址范围,因为我正在远程工作,并尝试与LAN上具有出厂默认IP(192.168.0.200)的设备进行通信。计划是将辅助端口的IP地址更改为192.168.0.47(已完成),访问并配置设备为192.168.0.200(失败),包括将其IP地址更改为172.16.0.0网络中的某些内容。过去,这种方法在同一局域网上与其他设备一起使用。但不是今天。
任何人都可以对此有所了解吗?