Centos 8, is there simple way to apply network settings?

Рамиль Матрасов asked:

using Centos as my favorite linux server OS. In 7 version to apply network settings simply used:

systemctl restart network

but in 8 version service network was removed.. i use:

nmcli networking off && nmcli networking on

instead. Restarting NetworkManager.service seems to not applying settings.
maybe i dont know about simplier way, point me please.

My answer:


It depends on what you have changed. Normally you can just restart whichever interface or connection you have reconfigured.

For example:

nmcli c down enp4s0 && nmcli c up enp4s0

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.