Linux restart network interface command

Is is possible to restart network interface such as eth1 on Linux? How to restart the networking service for given interface on CentOS Linux server?

To restart eth1 (do not run over ssh):

ifdown eth1
ifup eth1

You can also use systemctl command

sudo systemctl restart network.service

See CentOS / RHEL 7 Restart / Stop / Start Networking Command and restart network service in Linux.

1 Like