【问题解决】win10连接了不可路由的以太网后,会阻止使用 WWAN 访问 Internet

笔记本使用4G模块可以上互联网,但是一插网线(有线网未连接互联网)后,笔记本就与互联网断开了。感谢度娘,终于找到原因了,原来是win10系统的缺陷。

一、问题描述

这里将问题描述的很清楚:

在秋季创作者更新中,引入了一个错误。此错误不仅限于 IoT 核心,还出现在 Windows 桌面版上(自更新 1709 以来,1703 仍然可以正常工作)。
问题是,如果您有一个没有互联网的活动以太网连接,Windows 将不再通过 USB 连接的 MBIM 调制解调器路由互联网。
强制路由的 ping 测试工作正常,但任何其他流量都不会通过调制解调器路由。断开以太网连接器,它开始工作。

(原文)

In the fall creators update a bug was introduced. This bug is not limited to IoT core, but als appeared on Windows for Desktop (since update 1709, 1703 still works fine).
The problem is that if you have an active ethernet connection without internet, Windows does not route the internet through a USB connected MBIM modem anymore.
A ping test with forced routing works fine, but any other traffic is not routed through the modem. Disconnect the ethernet connector and it starts working.

二、解决办法

2.1 GitHub

这是设计使然。如果您连接了以太网或 Wi-Fi,则访问蜂窝网络将被阻止。

如果您需要绕过 Windows 策略并允许通过收费的蜂窝连接进行连接,即使连接了以太网,我们也有选项。此以太网连接是否不可路由(例如,它没有默认网关/没有路由)?如果是这样,您可以使用注册表值配置设备,即使以太网已连接(但不可路由),Windows 也将允许蜂窝通信。

HKLM\Software\Microsoft\WcmSvc
IgnoreNonRoutableEthernet (REG_DWORD) 设置为 1

请注意,这不是特定于物联网的。

(原文)

Hi @Vincation,

This is by design. If you have Ethernet or Wi-Fi connected, access to Cellular is blocked.

We have options if you need to bypass Windows policy and allow connectivity over a costed Cellular connection even if Ethernet is connected. Is this Ethernet connection non-routable (e.g. it has no default gateway / no routes)? If so, you can configure the device with a registry value and Windows will allow Cellular traffic even with Ethernet is connected (but not-routable).

HKLM\Software\Microsoft\WcmSvc
IgnoreNonRoutableEthernet (REG_DWORD) set to 1

Note that this is not IoT-specific.

2.2微软官方

https://support.microsoft.com/en-us/topic/june-21-2018-kb4284822-os-build-16299-522-187938dc-151a-b624-366a-c3b954972131

三、衍生出的快速解决办法

我当前的操作系统是win10 1809,方法是添加一个注册表值即可,添加后WWAN和Ethernet 可以共用,删除后WWAN就会被Ethernet 影响而不能上互联网。

快速解决方法是,将下面内容拷贝到记事本里,然后另存为reg格式的文件,再双击即可导入到注册表。动手能力强的也可手动在注册表里找到对应表项,再添加对应的dword值,并设置为1。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WcmSvc]
"IgnoreNonRoutableEthernet"=dword:00000001

    

四、鸣谢

1、度娘

2、bbs.nga.cn,UID:14555022

https://bbs.nga.cn/read.php?tid=17050653&rand=292

3、superuser.com,ID:lionel

https://superuser.com/questions/1322552/windows-10-cellular-with-lan

4、微软(知错能改)

https://support.microsoft.com/en-us/topic/june-21-2018-kb4284822-os-build-16299-522-187938dc-151a-b624-366a-c3b954972131

 5、GitHub(最应该感谢的)

GitHub ,ID:saraclay

https://github.com/MicrosoftDocs/windows-iotcore-docs/issues/343

原文地址:https://www.cnblogs.com/TheWindReturns/p/15557948.html