我有TP-LINK路由器,它从光纤上获得互联网。 路由器连接到服务器(Microsoft Windows Server 2008R2)。 我的服务器有2个以太网卡,第一个是从路由器获得互联网(WAN)。 第二个是将互联网分配给其他计算机(LAN)。 我从Windows Server R2的pipe理员使用路由和远程控制来分发互联网。 互联网在所有电脑上工作正常。 但是我想要的是使用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都在WORKGROUP中。 可能是什么问题。 请告诉我方向。 提前致谢。
编辑ipconfig /所有Windows IPconfiguration
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
根据我通过评论得到的其他故事,您将需要在服务器上为您的第二个适配器所在的192.168.1.0/24 LANnetworking添加静态路由。 此路由将告知去往192.168.1.0/24主机的stream量使用“LAN”适配器,并将Internet(公共IP分配的适配器)留给其他适配器。 您可以打开命令提示符以添加路由。
你的路线将如下所示:route add 192.168.1.0 mask 255.255.255.0 192.168.1.1(这只是一个尽可能接近你的环境的例子,但为了更好的理解,阅读下面链接的指南。可能不得不根据您的内部网关来调整用于这些路由的IP。)
这是一个简单的指南,用于设置和理解静态路由。