How-to Restart Networking in CentOS

After performing any sort of network change, such as adding IPs it is necessary to restart the network adapters in Linux so the new changes are active. This may also be a useful step in troubleshooting network issues.

#depending on your version of CentOS you may need a different command
/etc/init.d/network restart
#systemctl is the modern way to restart networking
systemctl restart network
How-to Check the Linux Version

How-to Check the Linux Version

When you connect via shell/terminal to a server it may not be obvious which type of linux distro it is running. Every […]