目标主机在 LAN 中不可访问

目标主机在 LAN 中不可访问

我有 TP-LINK 路由器,可通过光纤接入互联网。路由器连接到服务器(Microsoft Windows Server 2008R2)。我的服务器有 2 个以太网卡,第一个从路由器接入互联网(WAN)。第二个将互联网分发到其他计算机(LAN)。我使用 Windows Server R2 管理员的路由和远程控制来分发互联网。互联网在所有 PC 上运行良好。但我想要的是使用 LAN 用户的打印机之一。用户 PC 的 IP 为 192.168.1.85。我的服务器 IP 是 192.168.1.2。路由器 IP 是 192.168.1.1。当我 ping 192.168.1.85 时,主机无法访问。当我 ping 192.168.1.1 时,一切正常。所有 PC 都在工作组中。可能是什么问题。请告诉我方向。提前致谢。

编辑 ipconfig /all Windows IP 配置

   Host Name . . . . . . . . . . . . : KURBONOV1
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Mixed
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Marvell Yukon 88E8057 PCI-E Gigabit Ether
net Controller
   Physical Address. . . . . . . . . : 00-1D-BA-EF-47-7B
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Intel(R) WiFi Link 5100 AGN
   Physical Address. . . . . . . . . : 00-22-FB-69-27-E6
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.123(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1
   DNS Servers . . . . . . . . . . . : 91.200.216.2
                                       91.200.216.7
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Local Area Connection* 6:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 7:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 02-00-54-55-4E-01
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:79fd:2046:2217:3f57:fe84(Pref
erred)
   Link-local IPv6 Address . . . . . : fe80::2046:2217:3f57:fe84%12(Preferred)
   Default Gateway . . . . . . . . . : ::
   NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Local Area Connection* 12:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{CA5BAAC0-79D3-4DBA-838D-481359920
C71}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 13:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 20:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{C1121A84-3E64-4076-93C4-3FECC1337
64B}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 21:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : 6TO4 Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 22:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 23:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 24:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 26:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 27:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 28:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 30:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 31:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 32:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 33:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 34:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 35:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 36:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : isatap.{1C73FE11-C907-4519-B95C-B17DCF400
1E2}
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 38:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : 6TO4 Adapter
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

路线打印

Interface List
 10 ...00 1d ba ef 47 7b ...... Marvell Yukon 88E8057 PCI-E Gigabit Ethernet Con
troller
 11 ...00 22 fb 69 27 e6 ...... Intel(R) WiFi Link 5100 AGN
  1 ........................... Software Loopback Interface 1
 20 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 12 ...02 00 54 55 4e 01 ...... Teredo Tunneling Pseudo-Interface
 31 ...00 00 00 00 00 00 00 e0  isatap.{CA5BAAC0-79D3-4DBA-838D-481359920C71}
 24 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 29 ...00 00 00 00 00 00 00 e0  isatap.{C1121A84-3E64-4076-93C4-3FECC133764B}
 25 ...00 00 00 00 00 00 00 e0  6TO4 Adapter
 26 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 27 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 28 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 32 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 18 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 33 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 35 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 36 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 37 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 38 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 39 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 40 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 41 ...00 00 00 00 00 00 00 e0  isatap.{1C73FE11-C907-4519-B95C-B17DCF4001E2}
 42 ...00 00 00 00 00 00 00 e0  6TO4 Adapter
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0      192.168.1.1    192.168.1.123    281
        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
      192.168.1.0    255.255.255.0         On-link     192.168.1.123    281
    192.168.1.123  255.255.255.255         On-link     192.168.1.123    281
    192.168.1.255  255.255.255.255         On-link     192.168.1.123    281
        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     192.168.1.123    281
  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     192.168.1.123    281
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0      192.168.1.1  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
 12     38 ::/0                     On-link
  1    306 ::1/128                  On-link
 12     38 2001::/32                On-link
 12    286 2001:0:5ef5:79fd:2046:2217:3f57:fe84/128
                                    On-link
 12    286 fe80::/64                On-link
 12    286 fe80::2046:2217:3f57:fe84/128
                                    On-link
  1    306 ff00::/8                 On-link
 12    286 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

答案1

根据我通过评论从您那里得到的其他信息,您需要在服务器上为第二个适配器所在的 192.168.1.0/24 LAN 网络添加静态路由。此路由将告诉发往 192.168.1.0/24 主机的流量使用“LAN”适配器,并将 Internet(公共 IP 分配适配器)留给另一个适配器。您可以打开命令提示符来添加路由。

您的路由将类似于:route add 192.168.1.0 mask 255.255.255.0 192.168.1.1(这只是一个尽可能接近您的环境的示例,但请阅读下面链接的指南以获得更好的理解。您很可能必须根据您的内部网关调整用于这些路由的 IP。)

以下是一个简单的指南用于设置和理解静态路由。

相关内容