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

2020-05-26 By Ryan 104414 Views linux windows networking
2 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 network interface or network adapter in the Linux and Windows server.




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
    

    restartnetwork5

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

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

    restartnetwork6


Ubuntu 17.10 and higher versions uses 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 has been made to the network will take effect:

# netplan apply

restartnetwork16




AlmaLinux


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

    # nmcli networking off
    # nmcli networking on
    

    restartnetwork17

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

    # nmcli -o
    

    restartnetwork18




CentOS 8


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

    # systemctl restart NetworkManager.service
    

    restartnetwork15

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

    # systemctl status NetworkManager.service
    

    restartnetwork14




CentOS 7


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

    # systemctl restart network.service
    

    restartnetwork1

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

    # systemctl status network
    

    restartnetwork2





CentOS 6


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

    # /etc/init.d/network restart
    or
    # /etc/init.d/network stop
    # /etc/init.d/network start
    

    restartnetwork3

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

    # /etc/init.d/network status
    

    restartnetwork4




Windows OS


  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 shown in the below image.

    restartnetwork7

    Then will get the below page:

    restartnetwork8

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

    restartnetwork9

    restartnetwork10

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

    restartnetwork11

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

    restartnetwork12

    restartnetwork13


Related Tutorials

What do you think about this article?

Rate this article