How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (2024)

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 restartor# sudo /etc/init.d/networking stop# sudo /etc/init.d/networking startelse# sudo systemctl restart networking

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (1)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (2)

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

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (3)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (4)

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

How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (5)

AlmaLinux

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

    # nmcli networking off# nmcli networking onor# systemctl restart NetworkManager

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (6)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (7)

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

    # nmcli -oor# systemctl status NetworkManager

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (8)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (9)

Rocky Linux

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

    # nmcli networking off# nmcli networking onor# systemctl restart NetworkManager

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (10)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (11)

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

    # nmcli -oor# systemctl status NetworkManager

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (12)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (13)

CentOS 8

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

    # nmcli networking off# nmcli networking onor# systemctl restart NetworkManager.service

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (14)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (15)

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

    # systemctl status NetworkManager.serviceor# nmcli -o

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (16)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (17)

CentOS 7

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

    # systemctl restart network.serviceor# service network restartor# /etc/init.d/network restart

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (18)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (19)

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

    # systemctl status network.serviceor# service network statusor# /etc/init.d/network status

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (20)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (21)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (22)

CentOS 6

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

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (23)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (24)

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

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (25)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (26)

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.

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (27)

    Then will get the below page:

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (28)

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (29)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (30)

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (31)

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (32)

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (33)

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.

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (34)

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

    > netsh winsock reset

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (35)

  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:

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (36)

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.

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (37)

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (38)

  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.

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (39)

  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.

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (40)

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

    How to restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (41)

Related Tutorials

  • 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 restart Network Interface / Network Adapter on Linux & Windows Cloud Servers | LayerStack (2024)
Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 6399

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.