1

我真的坚持这一点,我被告知堆栈溢出是一个寻求建议的好地方。

我有一台运行 Windows 7 Professional 的机器,带有两个内部千兆网卡。我使用注册表项“IPEnableRouter”启用了 IP 路由,将其设置为 1。

这是 ipconfig 的输出:

C:\Users\testlab>ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : testlab-PC
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : Yes
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : goose.com

Ethernet adapter Local Area Connection 4:

   Connection-specific DNS Suffix  . : goose.com
   Description . . . . . . . . . . . : D-Link DGE-528T Gigabit Ethernet Adapter
   Physical Address. . . . . . . . . : 00-64-01-73-A8-4G
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.1.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :
   DNS Servers . . . . . . . . . . . : 10.10.10.2
   NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : goose.com
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : B1-AE-C9-1A-59-13
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 172.16.65.65(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.0.0
   Default Gateway . . . . . . . . . : 172.16.0.254
   DNS Servers . . . . . . . . . . . : 172.20.220.26
                                       10.10.10.2
   NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Local Area Connection* 11:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Tunnel adapter isatap.bskyb.com:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : goose.com
   Description . . . . . . . . . . . : Microsoft ISATAP Adapter #2
   Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes


Routing table:

C:\Users\testlab>route print
===========================================================================
Interface List
 17...00 24 11 83 a8 4D ......D-Link DGE-528T Gigabit Ethernet Adapter
 11...b3 ae D5 1A 19 79 ......Realtek PCIe GBE Family Controller
  1...........................Software Loopback Interface 1
 12...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
 14...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0     172.16.0.254     172.16.65.65    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.65.65    266
     172.16.65.65  255.255.255.255         On-link      172.16.65.65    266
   172.16.255.255  255.255.255.255         On-link      172.16.65.65    266
      192.168.1.0    255.255.255.0         On-link       192.168.1.1    266
      192.168.1.1  255.255.255.255         On-link       192.168.1.1    266
    192.168.1.255  255.255.255.255         On-link       192.168.1.1    266
        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.65.65    266
        224.0.0.0        240.0.0.0         On-link       192.168.1.1    266
  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.65.65    266
  255.255.255.255  255.255.255.255         On-link       192.168.1.1    266
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0     172.16.0.254  Default
===========================================================================

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
  1    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

几年前我已经在几台机器上设置过它并且效果很好,我想我只是忘记了一些东西,但现在它让我发疯了。从 192.168.1 网络我可以 ping 192.168.1.1 和 172.16.65.65,但不能 ping 172.16 网络上的任何其他主机。所以 192 网络中的所有主机都没有访问权限。

我什至尝试过启用路由和远程访问服务,但这并没有什么不同。我也尝试禁用所有防火墙以确保它没有被阻止。

当我从 192 跟踪 ping 到互联网时,它到达 172.16.65.65,然后再也不会继续前进,就像机器不会转发数据包一样,但我不知道为什么。

任何建议或尝试的事情都将非常感激,如果您需要更多信息,请告诉我。

4

0 回答 0