Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Win7 雙網卡同時連內網/外網發生閘道衝突?外網卡設預設閘道、內網卡留空 + route 指令手動加靜態路由

編輯:Win7 系統應用技巧

雙網卡環境同時連內外網,預設閘道衝突導致兩邊都連不上。解法:僅外網卡設定預設閘道,內網卡留空,再用 route 手動加入內網靜態路由。

設定步驟

  1. 外網卡:正常設定 IP/子網路遮罩/預設閘道/DNS。
  2. 內網卡:設定 IP/子網路遮罩,**預設閘道留空**。
  3. 管理員 CMD:route print 確認 0.0.0.0 走外網閘道。若非:route delete 0.0.0.0 → route add 0.0.0.0 mask 0.0.0.0 <外網閘道>。
  4. 加入內網靜態路由(永久生效 -p):
    route add -p 192.168.100.0 mask 255.255.255.0 192.168.100.1 if 14
    (14 為內網介面編號,由 route print 介面清單查得)

雙網卡閘道衝突示意

設定完成後,外網流量走外網卡,內網流量走內網卡,雙網共存無衝突。

Copyright © Windows教程網 All Rights Reserved