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.
Use the following command to restart the server networking service.
# sudo /etc/init.d/networking restart
# sudo /etc/init.d/networking stop
# sudo /etc/init.d/networking start
# sudo systemctl restart networking
Once this done, use the following command to check the server network status.
# sudo /etc/init.d/networking status
# sudo systemctl status networking
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.
.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
# nmcli networking off
# nmcli networking on
# nmcli -o
# systemctl restart NetworkManager.service
# systemctl status NetworkManager.service
# systemctl restart network.service
# systemctl status network
# /etc/init.d/network restart
# /etc/init.d/network stop
# /etc/init.d/network start
# /etc/init.d/network status
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.
Network and Internet
Change adapter option
Then will get the below page:
Right click the Ethernet device and click on Disable option.
Again, Right click the Ethernet device and click on enable option.
Once this done, Right click the Ethernet device and click on status.
How to check if TCP / UDP port is open on Linux & Windows Cloud Servers
How to enable & disable Ping (ICMP Echo Requests) from IPTables on Linux Cloud Servers
How to enable & disable Ping (ICMP Echo Requests) in Windows Server 2019 Firewall
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
How to test Firewall Configuration with Nmap on Linux Cloud Servers