启用本地网络后互联网无法使用

启用本地网络后互联网无法使用

我们的网络设置如下:

A) Router IP 192.168.51.49
B) Windows Server 2008 R2 with dual NIC:
    Lan A) WAN interface (192.168.51.50) ( Used for internet)
    Lan B) LAN interface (192.168.30.228) ( used for local connectivity )

当我保持两个 LAN 都启用时,我的互联网就无法工作,但如果我禁用本地 LAN,则互联网可以正常工作。

我该如何解决这个问题?我需要在服务器上进行路由吗?

请参阅以下附件路线打印结果

C:\Users\Administrator>route print
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
           0.0.0.0          0.0.0.0     192.168.51.49     192.168.51.50    276
           0.0.0.0          0.0.0.0    192.168.30.227    192.168.30.228    266
    192.168.30.224  255.255.255.240         On-link      192.168.30.228    266
    192.168.30.228  255.255.255.255         On-link      192.168.30.228    266
    192.168.30.239  255.255.255.255         On-link      192.168.30.228    266
     192.168.51.48  255.255.255.240         On-link       192.168.51.50    276
     192.168.51.50  255.255.255.255         On-link       192.168.51.50    276
     192.168.51.63  255.255.255.255         On-link       192.168.51.50    276
         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
      202.56.230.5  255.255.255.255     192.168.51.49     192.168.51.50     21
      202.56.230.6  255.255.255.255     192.168.51.49     192.168.51.50     21
    192.168.26.124  255.255.255.255     192.168.51.49     192.168.51.50     21
         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.51.50    276
         224.0.0.0        240.0.0.0         On-link      192.168.30.228    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       192.168.51.50    276
   255.255.255.255  255.255.255.255         On-link      192.168.30.228    266
===========================================================================
Persistent Routes:
  Network Address          Netmask  Gateway Address  Metric
          0.0.0.0          0.0.0.0    192.168.30.227  Default
          0.0.0.0          0.0.0.0     192.168.51.49  Default
===========================================================================

答案1

192.168.30.x 网络的默认网关的度量值低于 192.168.51.x 网络的默认网关,因此服务器尝试通过 192.168.30.x 网络访问互联网。删除该 NIC 上的默认网关设置,应该可以解决问题。

据我所知,Windows 主机始终只支持单个默认网关。

相关内容