如果您使用计算机的时间为任何正常长度,您最终将在 Windows 10 PC 上遇到各种与网络相关的问题。(various network-related issues)这些可能的问题之一是当您的 PC 显示“默认网关不可用”时。发生这种情况时,您将无法访问 Internet,因为您的 PC 无法找到默认网关,通常是您的家庭路由器。
发生此错误的原因有很多。可能是您的网络适配器的驱动程序已过时,或者您的路由器使用的 Wi-Fi 频率与您的计算机不兼容。
无论如何,您可以遵循一些方法来修复 PC 上的“默认网关不可用”错误。在本文中,我们将假设路由器正常(其他设备可以连接到它并访问Internet),但不是您的笔记本电脑或 PC。
重置 TCP/IP 堆栈
修复Windows 10中的网关错误的一种方法是重置TCP/IP堆栈。这会重置保存TCP/IP设置的堆栈,并将堆栈恢复为默认值。如果某处的 IP 设置存在错误配置,则可以解决该问题。
- 打开开始(Start)菜单,搜索命令提示符(Command Prompt),然后选择以管理员身份运行(Run as administrator)。
- 在用户帐户控制(User Account Control)提示中按是。(Yes)
- 如果您在 PC 上使用 IPv4,请在命令提示符窗口中键入(Command Prompt)netsh int ipv4 reset并按Enter。
- 如果您使用 IPv6,请键入netsh int ipv6 reset 。
- 如果您不知道您的 PC 使用的是IPv4还是IPv6,请运行这两个命令,其中一个将重置您的 IP 堆栈。
重新启动(Reboot)计算机并查看问题是否已解决。
禁用和启用网络适配器(Network Adapter)
Windows 10 允许您禁用和启用您的网络适配器。这对于解决各种与网络相关的问题很有用。您可以打开和关闭此选项,看看是否可以解决您的问题。
- 按键盘上的Windows + I键打开“设置”(Settings)应用。
- 在主设置屏幕上选择网络和 Internet 。(Network & Internet)
- (Scroll)在以下屏幕上向下滚动并选择更改适配器选项(Change adapter options)。
- 右键单击您的网络适配器并选择禁用(Disable)。
- 适配器图标将变灰,表示适配器现已禁用。
- 等待(Wait)大约半分钟,然后右键单击适配器并选择启用(Enable)。
等待(Wait)您的 PC 重新连接到您的网络。如果错误仍然存在,请尝试以下方法。
暂时关闭您的防病毒软件
您的防病毒软件也可能导致“默认网关不可用”错误,因为大多数防病毒程序都具有网络安全功能,这些功能可能会干扰您的网络工作。如果您使用 McAfee 防病毒软件,情况尤其如此。
关闭防病毒软件,看看问题是否得到解决。如果是这样,您需要调整您的防病毒设置,以免它们导致您的网络出现问题。执行此操作的步骤因您使用的防病毒程序而异,但您应该在防病毒支持网站上找到这些步骤。
如果调整防病毒设置没有帮助,是时候寻找新的防病毒程序(new antivirus program)了。
使用(Use)网络适配器(Network Adapter Troubleshooter)疑难解答
Windows 10 包含一组疑难解答程序,可帮助您诊断 PC 上的问题。其中之一是帮助查找和修复网络问题(find and fix network issues)的网络适配器疑难解答。
您可以使用此疑难解答程序来解决 PC 上的“默认网关不可用”错误。疑难解答程序会告诉您问题所在,并为您提供解决问题的帮助。
- 按键盘上的Windows + I打开“设置”(Settings)应用。
- 在设置窗口中选择更新和安全。(Update & Security)
- 选择左侧的疑难解答(Troubleshoot),然后选择右侧的其他疑难解答。(Additional troubleshooters)
- 在列表中找到网络适配器(Network Adapter),选择它,然后选择运行疑难解答(Run the troubleshooter)。
- 等待(Wait)疑难解答程序找到您的网络适配器的问题。
如果这不能解决问题,请继续执行以下步骤。
更新网络适配器驱动程序
“默认网关不可用”错误可能是网络驱动程序过时的结果。解决此问题的最佳方法是更新您的驱动程序(update your drivers)。您可以让Windows 10为您搜索并安装驱动程序,或者如果您已经下载了驱动程序,则可以加载驱动程序文件。
跟着这些步骤:
- 打开开始(Start)菜单,从结果中搜索并选择设备管理器(Device Manager)。
- 选择网络适配器(Network adapters)以查看适配器列表。
- 右键单击(Right-click)此列表中的网络适配器,然后选择更新驱动程序(Update driver)。
- 当Windows询问您希望如何更新驱动程序时,选择自动搜索驱动程序,它会为您找到合适的驱动程序。(Search automatically for drivers)
- 如果您已经下载了驱动程序以加载驱动程序文件,请选择第二个选项,Windows将为您安装驱动程序。
更改无线路由器的频率
许多现代无线路由器使用 5GHz 作为默认频率,但并非所有网络适配器都与该频率兼容。这有时会导致设备显示“默认网关不可用”错误。
幸运的是,大多数路由器都允许您将频率更改为 2.4GHz 频率,这将使网络与您 PC 的网络适配器兼容。
通过访问路由器的设置菜单更改您的无线网络频率。对于大多数路由器,您只需在连接到路由器时在浏览器中输入192.168.1.1 。从支持当前路由器频率的设备执行此操作。
如果这不起作用或 IP 地址不同,请查看我们的指南以确定您的无线路由器(determine the IP address of your wireless router)(默认网关)的 IP 地址。
然后,您需要进入无线网络设置菜单并更改频率。将您的设备重新连接到您的网络,希望这可以解决问题。
防止(Prevent)Windows 10 关闭网络适配器(Network Adapter)
为了节省电量,Windows 10 会自动关闭(turns off various devices)您计算机上的各种设备,包括网络适配器。如果在您使用适配器时这样做,可能会出现“默认网关不可用”错误。
您可以禁用网络适配器的省电选项,这将阻止您的 PC 关闭适配器以节省能源。
- 右键单击开始(Start)菜单并选择设备管理器(Device Manager)。
- 在设备管理器(Device Manager)中选择网络适配器(Network adapters),右键单击您的适配器,然后选择属性(Properties)。
- 在“属性”窗口中选择“电源管理”选项卡。(Power Management)
- 取消勾选允许计算机关闭此设备以节省电源(Allow the computer to turn off this device to save power)。然后,选择底部的确定。(OK)
在您的 PC 上禁用自动登录
自动登录与“默认网关不可用”错误没有任何直接关系,但一些用户报告说,按照以下步骤将其关闭是值得的。
- 按键盘上的Windows + R打开“运行”(Run)框。
- 在 Run 中键入netplwiz并按Enter。
- 启用用户必须输入用户名和密码才能使用此计算机(Users must enter a user name and password to use this computer)复选框。然后,选择Apply和OK。
您不会失去自动登录 PC 的能力,因为您可以随时重新打开此选项。
如果“默认网关(Default Gateway)不可用”错误(Error)仍然存在怎么办?
如果您仍然遇到“默认网关不可用”错误,您可以将路由器重置为出厂设置(reset your router to the factory settings)。这将修复任何错误设置并可能解决您的问题。
请记住,这将清除您的所有设置,您需要重新配置路由器。如果这也不起作用,请重置您的 Windows 10 PC(reset your Windows 10 PC)作为最后的手段。这将删除您的所有文件和设置,但会解决您 PC 上的许多问题。
如果您的问题没有解决,请在评论中告诉我们,我们会尽力回复您。
How to Fix a “Default Gateway Is Not Available” Error
If you have υsed a computer for аny normal lеngth of time, you will eventually experience various network-related issues on your Windows 10 PC. One of these possible issues is when your PC says “default gateway is not available”. When this happens, you lose access to the internet as your PC is unable to find the default gateway, which is normally your home router.
There are many reasons why this error occurs. It might be that your network adapter’s drivers are outdated or your router uses a Wi-Fi frequency that isn’t compatible with your computer.
Regardless, there are some methods you can follow to potentially fix the “default gateway is not available” error on your PC. In this article, we’re going to assume the router is fine (other devices can connect to it and reach the Internet), but not your laptop or PC.
Reset the TCP/IP Stack
One way to fix a gateway error in Windows 10 is to reset the TCP/IP stack. This resets the stack that holds your TCP/IP settings, and brings the stack back to the default values. If there’s a misconfiguration in the IP settings somewhere, this can fix that.
- Open the Start menu, search for Command Prompt, and select Run as administrator.
- Press Yes in the User Account Control prompt.
- If you use IPv4 on your PC, type netsh int ipv4 reset in the Command Prompt window and press Enter.
- If you use IPv6, type netsh int ipv6 reset instead.
- If you don’t know whether your PC uses IPv4 or IPv6, run both commands and one of them will reset your IP stack.
Reboot your computer and see if the problem is resolved.
Disable and Enable the Network Adapter
Windows 10 lets you disable and enable your network adapter. This is useful to troubleshoot various network-related issues. You can toggle this option on and off and see if that fixes your problem.
- Press the Windows + I keys on the keyboard to open the Settings app.
- Select Network & Internet on the main settings screen.
- Scroll down on the following screen and select Change adapter options.
- Right-click on your network adapter and select Disable.
- The adapter icon will grey-out which indicates the adapter is now disabled.
- Wait for about half a minute, and then right-click the adapter and select Enable.
Wait for your PC to reconnect to your network. If the error persists, try the methods below.
Turn Off Your Antivirus Temporarily
Your antivirus can also cause the “default gateway is not available” error because most antivirus programs have web safety features which can interfere with the workings of your network. This is especially the case if you use McAfee antivirus.
Turn your antivirus off and see if the issue gets resolved. If it does, you need to tweak your antivirus settings so they don’t cause issues with your network. Steps to do this vary by the antivirus program you use, but you should find the steps on your antivirus’ support site.
If tweaking the antivirus settings doesn’t help, it’s time to look for a new antivirus program.
Use the Network Adapter Troubleshooter
Windows 10 includes a set of troubleshooters to help you diagnose issues on your PC. One of these is a network adapter troubleshooter that helps find and fix network issues.
You can use this troubleshooter to possibly get around the “default gateway is not available” error on your PC. The troubleshooter will tell you what the issues are and offer you help to fix them.
- Press Windows + I on the keyboard to open the Settings app.
- Select Update & Security on the Settings window.
- Select Troubleshoot on the left, and then select Additional troubleshooters on the right.
- Find Network Adapter in the list, select it, and then select Run the troubleshooter.
- Wait for the troubleshooter to find issues with your network adapter.
If this doesn’t fix the issue, move on to the steps below.
Update the Network Adapter Drivers
The “default gateway is not available” error could be the result of outdated network drivers. The best way to fix the issue is to update your drivers. You can let Windows 10 search and install the drivers for you or you can load the drivers file if you’ve downloaded the drivers already.
Follow these steps:
- Open the Start menu, search for and select Device Manager from the results.
- Select Network adapters to view the adapters list.
- Right-click your network adapter in this list, and select Update driver.
- Select Search automatically for drivers when Windows asks how you’d like to update the drivers and it will find the right drivers for you.
- Select the second option if you’ve already downloaded the drivers to load the drivers file and Windows will install the drivers for you.
Change Your Wireless Router’s Frequency
Many modern wireless routers use 5GHz as the default frequency but not all network adapters are compatible with this frequency. This sometimes leads devices to display the “default gateway is not available” error.
Fortunately, most routers let you change the frequency to the 2.4GHz frequency which will make the network compatible with your PC’s network adapter.
Change your wireless network frequency by accessing the settings menu for your router. For most routers, you just need to type 192.168.1.1 in the browser while connected to the router. Do this from a device that supports the current router frequency.
If that doesn’t work or the IP address is different, then check out our guide to determine the IP address of your wireless router (default gateway).
Then, you need to head into the wireless network settings menu and change the frequency. Reconnect your devices to your network and hopefully this will resolve the issue.
Prevent Windows 10 From Turning Off the Network Adapter
In order to save power, Windows 10 automatically turns off various devices on your computer, including the network adapter. The “default gateway is not available” error may occur if it does so while you’re using the adapter.
You may disable the power save option for your network adapter which will prevent your PC from turning off the adapter to save energy.
- Right-click the Start menu and select Device Manager.
- Select Network adapters in Device Manager, right-click your adapter, and select Properties.
- Select the Power Management tab in the Properties window.
- Untick the box for Allow the computer to turn off this device to save power. Then, select OK at the bottom.
Disable Automatic Login on Your PC
Automatic login doesn’t have anything to do with the “default gateway is not available” error directly, but some users report it’s worth toggling it off by following the steps below.
- Press Windows + R on the keyboard to open the Run box.
- Type netplwiz in Run and press Enter.
- Enable the Users must enter a user name and password to use this computer checkbox. Then, select Apply followed by OK.
You won’t lose the ability to log in to your PC automatically, as you can always turn this option back on.
What to Do If the “Default Gateway Is Not Available” Error Persists?
If you’re still experiencing the “default gateway is not available” error, you could reset your router to the factory settings. This will fix any faulty settings and potentially resolve your problem.
Keep in mind this will erase all your settings and you’ll need to reconfigure your router. If that doesn’t work either, reset your Windows 10 PC as a last resort. This will delete all your files and settings, but will fix many issues on your PC.
Let us know in the comments if your problem was not resolved and we will try to get back to you.