How to To restart network interface on linux

CentOS :

systemctl restart network

or

/etc/init.d/network restart

Ubuntu:

sudo /etc/init.d/networking restart

for specific interface :

ifdown eth0
ifup eth0

Leave a Reply

Your email address will not be published. Required fields are marked *