I have a W7 machine that has an Ethernet adapter and a Wireless adapter. The ethernet is routed through a desk phone, which is then plugged into the wall.

Computer <-> Desk Phone <-> Wall

This makes network traffic quite a bit slower on LAN. There is a specific machine I need to get access to from time to time, but is only available to access on the LAN due to firewall restrictions. What I would like is to have the LAN used only when I RDP to that machine, and the Wireless used for everything else. Currently, when I need to access the protected machine, I need to disable the wireless adapter. I would like to avoid this if possible.

The adapters have different subnet masks, different default gateways, and the same DHCP server

Is there a way to accomplish this via changing network priority, or modifying the hosts file on Windows?

  • Do wireless and wired adapters belong to different network subnets with different routers? – VL-80 Aug 19 '15 at 17:54
  • Different subnet mask, different default gateway, same DHCP server – Zymus Aug 19 '15 at 18:00

Use routing table.

Add an explicit route rule for the remote machine to go to the wired gateway and change your default route rule to the Wireless gateway (if needed):

In console:

route add -p {network} mask {subnet mask} {gateway}

where {network} is the machine's IP address, {subnet} is and {gateway} is the default gateway for wired adapter. Subnet narrows destination to only one host.

With this all traffic to the remote machine should be going to the LAN.

To display routing table:

route print -4

You need to be an administrator to make changes to the routing table.

  • Perfect, that seemed to work. I"m able to use both now. – Zymus Aug 19 '15 at 18:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.