How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers

2022-05-26 By Ryan 927262 Views linux windows networking
20 reviews

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.

    restartnetworkwin5

  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.

    restartnetworkwin13

  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.

    restartnetworkwin14


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

    restartnetworkwin15


Related Tutorials

What do you think about this article?

Rate this article
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.