ข้ามไปที่เนื้อหาหลัก

How to route different traffic thru different network interfaces (in Windows 8.1)

Let's say. I have 2 NIC, both assigned static IP addresses. One LAN interface is internal corporate LAN, the others is external link for all other access (ie. the INTERNET).

the internal link can access the internet too. but I want access the internet with external link only.
it's very easy by manual config static route via windows command-line (run as administrator)

assume the internal link gateway is 10.134.2.1
> route delete 0.0.0.0 10.134.2.1
> route add 10.134.0.0 mask 255.255.0.0 10.134.2.1
addtional add default route with another interface
ctive Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0       10.134.4.1        127.0.0.1     78
      10.134.4.86  255.255.255.255         On-link       10.134.4.86    291
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    331
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    331
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    331
        224.0.0.0        240.0.0.0         On-link       10.134.4.86    291
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    331
  255.255.255.255  255.255.255.255         On-link       10.134.4.86    291
========================================================================
========================================================================
Interface List
  8...00 1b fc 93 bd a9 ......Atheros L1 Gigabit Ethernet 10/100/1000Base-T Controller
  1...........................Software Loopback Interface 1
  2...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
========================================================================

 > route add 0.0.0.0 mask 0.0.0.0 10.134.4.1 Metric 3 IF 8

ความคิดเห็น