因此,当我在家中使用连接到以太网和无线网络的(Ethernet)Windows 7时遇到了一个有趣的情况:每当我在NAS和机器之间传输数据时,Windows 7倾向于使用无线网络而不是以太网(Ethernet)联系!这很烦人,因为出于显而易见的原因,无线连接的传输速度要慢得多。
我有点惊讶,因为我认为Windows会自动发现以太网(Ethernet)连接对于这种类型的传输更快,因此会切换。然而,事实并非如此。所以我忍不住想办法让Windows使用有线连接而不是无线连接。
在本文中,我将向您展示可用于完成此任务的两种方法。请注意,最好将这两种方法结合起来,以真正确保使用正确的连接。一种方法涉及更改网络适配器绑定,另一种方法涉及更改每个网络连接上的指标。默认情况下,Windows使用具有最低指标值的连接。不管出于何种原因,以太网(Ethernet)连接可能不会以较低的度量值结束,因此您可以手动更改它。
方法 1 (Method 1) – 更改网络适配器绑定(– Change Network Adapter Bindings)
要更改适配器绑定和顺序,首先单击开始(Start),然后输入网络连接。从列表中,单击查看网络连接(View network connections)。
在“网络连接(Network Connections)”对话框中,您需要按键盘上的ALT键才能显示菜单栏。然后单击高级(Advanced)并单击高级设置(Advanced Settings)。
现在您将看到连接框中列出的网络连接列表。
在我的情况下,您看不到无线网络,因为它在虚拟机中运行,但是,通常您会看到Local Area Connection和Wireless Network Connection。您想使用绿色箭头将本地连接(Local Area Connection)移动到顶部。这将按顺序将有线连接向上移动,以便Windows 7将首先使用以太网(Ethernet)访问网络,然后是无线(Wireless)。这是第一步。还建议使用第二种方法,以确保Windows 7强制使用LAN连接。
方法 2 (Method 2) – 更改网络指标值(– Change Network Metric Value)
您可以在此处阅读有关访问网络资源时度量值如何工作的一些信息:
http://support.microsoft.com/?id=299540
为了更改值,您需要再次转到网络连接(Network Connections),但这次右键单击要更改其度量值的网络并选择属性(Properties)。
现在单击 Internet Protocol Version 4 (TCP/IPv4)并单击Properties。
然后点击右下角的高级(Advanced)按钮:
最后,在IP 设置( IP Settings )对话框中,继续并取消选中自动指标(Automatic metric)框,然后自己输入一个值。
对于有线连接,您需要较低的值,最好从 10 开始。至少这是Microsoft使用的标准。对于无线连接,您可以输入更高的值,例如 25 或 100。这将确保在路由表中,“更快”的网络路由现在是有线连接而不是无线连接。
就像我之前说的,最好同时使用这两种方法来完全确保您强制Windows使用一个连接而不是另一个连接。如果您有任何问题,请随时发表评论。享受!
Force Windows 7 to Use Wired Connection over Wireless
So here’s an interesting situаtion I ran into when using Windows 7 connected to both my Ethernet network and my wireless network at home: whenever I would transfer data bеtween my NAS and my machine, Windows 7 would tend to uѕe the wіreless network instead of the Ethernet connection! Thiѕ was annoying because the speed of the transfers was much slower over the wireless connectiоn for obvious reasonѕ.
I was kind of surprised because I figured Windows would automatically figure out that the Ethernet connection was faster for this type of transfer and therefore switch over. However, that was not the case. So then I couldn’t help but try to figure out a way to force Windows to use the wired connection over the wireless one.
In this article, I’ll show you two methods that you can use to accomplish this. Note that it may be best to combine both methods to really make sure the proper connection is being used. One method involves changing the network adapter bindings and the other method involves changing the metric on each network connection. By default, Windows uses the connection with the lowest metric value. For whatever reason though, the Ethernet connection may not end up with a lower metric value, so you can manually change it.
Method 1 – Change Network Adapter Bindings
To change the adapter bindings and order, first click on Start and then type in network connections. From the list, click on View network connections.
In the Network Connections dialog, you will need to press the ALT key on your keyboard to get the menu bar to appear. Then click on Advanced and click on Advanced Settings.
Now you will see the list of network connections listed in the connections box.
In my case, you don’t see the wireless network because this is running in a virtual machine, however, normally you would see Local Area Connection and Wireless Network Connection. You want to move Local Area Connection to the top using the green arrows. This will move the wired connection higher up in the order so that Windows 7 will access the network using Ethernet first, then Wireless. That’s step one. The second method is also recommended to ensure Windows 7 is forcefully using the LAN connection.
Method 2 – Change Network Metric Value
You can read a little bit about how metric values work when accessing network resources here:
http://support.microsoft.com/?id=299540
In order to change the values, you need to go to Network Connections again, but this time right-click on the network you want to change the metric value for and choose Properties.
Now click on Internet Protocol Version 4 (TCP/IPv4) and click on Properties.
Then click on the Advanced button at the bottom right:
Lastly, on the IP Settings dialog, go ahead and uncheck the Automatic metric box and then type in a value yourself.
For the wired connection, you want a lower value and it’s best to start with 10. At least that’s the standard Microsoft uses. For the wireless connection, you can type in a higher value like 25 or 100. This will ensure that in the routing table, the “faster” network route is now the wired connection instead of the wireless connection.
Like I said before, it’s best to use both of these methods to fully ensure you are forcing Windows to use one connection over another. If you have any questions, feel free to post a comment. Enjoy!