Перезагрузить сетевой интерфейс windows

  • To disable, enable, and restart a network adapter on Windows 11, go to Settings > Network & internet > Advanced network settings.
  • You can also disable, enable, or restart a network adapter from the Command Prompt, PowerShell, Device Manager, and the Control Panel on Windows 10 and 11.

All modern computers come with network adapters today so you can connect to the internet and communicate with other devices. However, even the most sophisticated network adapters, whether wired (ethernet) or wireless (wi-fi), can run into issues and not perform as they are supposed to. At this point, a simple restart of the network adapter usually fixes the issues.

By restarting the network adapter, you avoid rebooting the complete computer, and the basic connectivity issues are also resolved.

You may want to restart your network adapter if your computer hasn’t had downtime in quite some time and the internet speed isn’t optimized when you are having trouble connecting to the wireless SSID, or if you are experiencing any sort of issues with network connectivity. Restarting the network adapter should be the first of many steps for troubleshooting.

On Windows 11, restarting the ethernet, wi-fi, or virtual network adapter involves turning it off and then on again. Therefore, the methods discussed in this post to restart any network adapter first let you disable the adapter, and then re-enable it. In case you want to simply disable or enable a network adapter on your Windows PC, you can use the same methods discussed below.

Note: Restarting and resetting the network adapter are two different things. When you reset the network settings, all configurations are lost and need to be redone.

Table of Contents

Restart the network adapter from Settings in Windows 11

Microsoft has introduced the ability to disable and enable any network adapter on your computer directly from the Settings app. You no longer have to open the Control Panel to do it.

Unfortunately, this option is not available in Windows 10.

Use the following steps to restart the ethernet or the Wi-Fi network adapter from the Windows 11 Settings app:

  1. Press the Windows Key + i to open the Settings app.

  2. Switch to the “Network & internet” tab from the left.

  3. Scroll down and click “Advanced network settings.”

    Open advanced network settings

    Open advanced network settings
  4. Click Disable in front of the network adapter that you want to disable or restart.

    Disable the network adapter from Settings

    Disable the network adapter from Settings
  5. In case you want to restart the adapter, click Enable in front of it.

    Enable the network adapter from Settings

    Enable the network adapter from Settings

If you re-enable the network adapter, you have successfully restarted it. If you were encountering issues with the adapter, check to see if they have been resolved.

Restart the network adapter from Control Panel

Traditionally, you can also restart the network adapter from the Control Panel. This method (and the methods below) also works for Windows 10.

  1. Press the Windows Key + R to open the Run Command box.

  2. Type in “ncpa.cpl” and press Enter to open the Network Connections applet.

  3. Right-click on the adapter that you want to disable/restart and click Disable.

    Disable network adapter from the Control Panel

    Disable network adapter from the Control Panel
  4. To re-enable the adapter, right-click the adapter again and click Enable.

    Re enable the network adapter from the Control Panel

    Re-enable the network adapter from the Control Panel

Restart the network adapter from Device Manager

To enable, disable, or restart any network adapter of your computer from the Device Manager, use these steps:

  1. Press the Windows Key + R to open the Run Command box.

  2. Type in “devmgmt.msc” and press Enter to open the Device Manager.

  3. Click on “Network adapters” to expand it.

    Expand Network Adapters in the Device Manager

    Expand Network Adapters in the Device Manager
  4. Right-click on the adapter that you want to disable/restart and click “Disable device.”

    Disable network adapter from the Device Manager

    Disable network adapter from the Device Manager
  5. If asked for a confirmation, click Yes.

    Confirm action 1

    Confirm action
  6. To re-enable the adapter, right-click the adapter again and click “Enable device.”

    Enable the network adapter from the Device Manager

    Enable the network adapter from the Device Manager

After performing the steps above, the selected network adapter will be restarted and should perform optimally now.

Restart the network adapter from PowerShell

If you prefer using the Windows command line instead, then you can use the steps below to disable, enable, or restart the ethernet or the wireless network adapter using Windows PowerShell:

  1. Open an elevated PowerShell instance.

  2. Run the following command to list all the network adapters:

    Get-NetAdapter | format-table
    List all network adapter details in PowerShell

    List all network adapter details in PowerShell
  3. Note down the name of the network adapter that you want to restart/disable.

  4. Now use this command while entering your adapter’s name in place of [NetworkAdapterName] to disable it:

    Disable-NetAdapter -Name “[NetworkAdapterName]” -Confirm:$false
    Disable network adapter from PowerShell

    Disable network adapter from PowerShell
  5. To re-enable the adapter, use this command:

    Enable-NetAdapter -Name “[NetworkAdapterName]” -Confirm:$false
    Enable/restart network adapter from PowerShell

    Enable/restart network adapter from PowerShell

Restart the network adapter from Command Prompt

You can also use the Command Prompt to restart any connected network adapter. Here is how:

  1. Run the Command Prompt with administrative privileges.

  2. List all the network adapter details with this command:

    netsh interface show interface
    List all network adapter details in Command Prompt

    List all network adapter details in Command Prompt
  3. Note down the name of the network adapter that you want to restart/disable.

  4. Now use this command while entering your adapter’s name in place of [NetworkAdapterName] to disable it:

    netsh interface set interface “[NetworkAdapterName]” disable
    Disable network adapter from Command Prompt

    Disable network adapter from Command Prompt
  5. To re-enable the adapter, use this command:

    netsh interface set interface “[NetworkAdapterName]” enable
    Enablerestart network adapter from Command Prompt

    Enable/restart network adapter from Command Prompt

Ending words

Restarting the network adapters on Windows was already an easy task. However, Windows 11 has made it even more convenient.

Although the Settings app was supposed to replace the Control Panel, Microsoft still hasn’t entirely accomplished the task. They are gradually shifting the controls from the Control Panel over to the Settings app, and the addition of the ability to disable and enable the network adapters from the Settings app is part of that ongoing agenda.

Once you make changes in the server network configuration file, then require to restart the server networking service in order to reflect the changes.

This guide will describe the steps to restart the network interface or network adapter in the Linux and Windows servers.

Restarting Network interface/adapter in Linux OS

Ubuntu / Debian

  1. Use the following command to restart the server networking service.

    # sudo /etc/init.d/networking restart
    or
    # sudo /etc/init.d/networking stop
    # sudo /etc/init.d/networking start
    else
    # sudo systemctl restart networking
    

    networkadapter1

    networkadapter2

  2. Once this is done, use the following command to check the server network status.

    # sudo /etc/init.d/networking status
    or
    # sudo systemctl status networking
    

    networkadapter3

    networkadapter4

Ubuntu 17.10 and higher versions use NetPlan as the default network management tool and its configuration files are written in YAML syntax with a .yaml file extension.

Run the below command to update networking and then any changes that have been made to the network will take effect:

# netplan apply

networkadapter5

AlmaLinux

  1. Use the following command to restart the server networking service.

    # nmcli networking off
    # nmcli networking on
    or
    # systemctl restart NetworkManager
    

    networkadapter6

    networkadapter7

  2. Once this is done, use the following command to check the server network status.

    # nmcli -o
    or
    # systemctl status NetworkManager
    

    networkadapter8

    networkadapter9

Rocky Linux

  1. Use the following command to restart the server networking service.

    # nmcli networking off
    # nmcli networking on
    or
    # systemctl restart NetworkManager
    

    restartnetworkrockylinux1

    restartnetworkrockylinux2

  2. Either of the below commands can be executed to check the status of the networking service.

    # nmcli -o
    or
    # systemctl status NetworkManager
    

    restartnetworkrockylinux3

    restartnetworkrockylinux14

CentOS 8

  1. Use the following command to restart the server networking service.

    # nmcli networking off
    # nmcli networking on
    or
    # systemctl restart NetworkManager.service
    

    networkadapter11

    networkadapter10

  2. Either of the below commands can be executed to check the status of the networking service.

    # systemctl status NetworkManager.service
    or
    # nmcli -o
    

    networkadapter12

    networkadapter13

CentOS 7

  1. Use the following command to restart the server networking service.

    # systemctl restart network.service
    or
    # service network restart
    or
    # /etc/init.d/network restart
    

    networkadapter14

    networkadapter15

  2. The status of the networking service can be checked by making use of any of the below commands.

    # systemctl status network.service
    or
    # service network status
    or
    # /etc/init.d/network status
    

    networkadapter17

    networkadapter16

    networkadapter19

CentOS 6

  1. Use the following command to restart the server networking service.

    # service network restart
    or
    # /etc/init.d/network restart
    

    networkadapter20

    networkadapter21

  2. Once this is done, use the following command to check the server network status.

    # service network status
    or
    # /etc/init.d/network status
    

    networkadapter22

    networkadapter23

Windows OS

Using the Enable/Disable mode of network adapter

  1. Click on the Windows key to open start and search Settings and go to the Network and Internet then click on Change adapter option which is shown in the below image.

    restartnetworkwin1

    Then will get the below page:

    restartnetworkwin2

  2. Right-click the Ethernet device and click on Disable option.

    restartnetworkwin3

    restartnetworkwin4

  3. Again, Right-click the Ethernet device and click on enable option.

  4. Once this is done, Right-click the Ethernet device and click on status.

    restartnetworkwin6

    restartnetworkwin7

Using the netsh command

In Windows OS, the command line method involves using the netsh command for resetting the network and TCP/IP stack.

  1. Go to Start and type CMD in the search window.

    restartnetworkwin8

  2. Once opened the Command Prompt, the command for restarting the network interface, as provided below, can be executed.

    > netsh winsock reset
    

    restartnetworkwin9

  3. Regularize the networking process as indicated in the message after restarting the server.

  4. In addition to the above command, may also use the command which resets the TCP/IP stack. The command is as follows.

    > netsh int ip reset
    

    The output will be as follows:

    restartnetworkwin10

Using the Network Reset option (Windows 10/11)

The reset button method can be used in Windows 10 & 11 versions by which the user can restart the Network interface. The steps for this are given below.

  1. Click on Windows Start Menu button and then select Settings.

    restartnetworkwin11

  2. From the Settings option, select Network & Internet option.

    restartnetworkwin12

  3. Here you would be able to see the adapter options i.e Advanced Network Settings, from which you can click on Network Reset option.

  4. Click on the Reset Now button on the right side of Network reset option and you will be prompted for the confirmation. Choose Yes for proceeding with resetting the network settings.

    Once clicked on Yes, the network adapter will start to reset and you will be able to restart the network interface.

Related Tutorials

  • How to check if TCP / UDP port is open on Linux & Windows Cloud Servers

  • Installing telnet client on Linux and Windows Cloud Servers

  • How to check TCP/IP configuration with ipconfig on Windows Cloud Servers

  • How to check TCP/IP configuration with ifconfig on Linux Cloud Servers

  • How to configure the Static IP Address & Network Card for Linux & Windows Cloud Servers

  • Заметки
  • Windows

03.06.2021

Перезапуск сетевого интерфейса через команую строку поможет вам в том случае, если вы подключаетесь к рабочей машине удалённо. В этом случае через графический интерфейс этого вам просто не сделать, так как вы просто напросто потеряете соединение.

Как перезапустить сетефой интерфейс через CMD

Создаём Bat файл с следующим содержанием, где указываем имя вашего подключения.

netsh interface set interface name="Подключение по локальной сети" admin=DISABLED
ping 127.0.0.1 -n 6 > nul
netsh interface set interface name="Подключение по локальной сети" admin=ENABLED

Теперь для переподключения сетевого интерфейса вам необходимо просто запустить этот батник от имени администратора.

Автору на кофе ☕ или просто поднять мотивацию писать больше статей для вас 😉 !

Отдельное спасибо всем, кто отправляет донатики 😀! Очень приятно и неожиданно. Благодаря вам сайт может и в дальнейшем обходиться без рекламных баннеров.

Очень часто при работе по удаленке надо передернуть сетевой кабель или отключить и включить сетевой адаптер. Но раз мы не можем это сделать физически, приходится просить кого-то это сделать или изощряться такими способами. В Linux это происходит легко, через ssh вбиваем ifdown eth0 & ifup eth0 и всё норм. В Windows приходится провернуть следующее…

Создаём bat-ник, вписываем туда следующий скрипт обязательно в кодировке ANSI

netsh interface set interface name="Подключение по локальной сети" admin=DISABLED

ping 127.0.0.1 -n 6 > nul

netsh interface set interface name="Подключение по локальной сети" admin=ENABLED

и запускаем от имени администратора.

где «Подключение по локальной сети» — это название сетевого адаптера в вашей Windows. Оно может называться «Подключение по локальной сети 2» или «Подключение по локальной сети 3«.  Я для удобства переименовал подключения в LAN, WiFi, Internet, Router или Bluetooth.

Замечания: работает не только в Windows 7, но также и в Windows 8 и Windows 10.

P.S. один раз скрипт не заработал, пришлось рано утром ехать на объект, так что применяем на свой страх и риск

Отблагдарить автора статьи также можно переводом, +100 вам в карму!

 bat windows скрипт

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Ваша копия не прошла проверку на подлинность windows 7 как убрать
  • Как сбросить учетную запись майкрософт на windows 10 при входе в систему через биос
  • Сетевой диск windows 10 пропадает
  • Asus hotkeys driver windows 10
  • Консоль управления hyper v windows 10