On previous versions on RHEL/Fedora, the network
service could be controlled via init scripts and (later) via systemctl
. After updating DNS settings, I want to restart the network service to bounce the interface and pickup the new DNS settings (and force NetworkManager to rewrite /etc/resolve.conf
).
Using systemctl
, I'm getting:
# systemctl restart network
Failed to restart network.service: Unit network.service not found.
Where'd the network
service go and how do I restart the interface to pickup changes?
Best Answer
Instead of
systemctl
, use NetworkManager, either via the GUI interface or thenmcli
command-line.Command Line
Note the device name that you want to restart.
(Substitute your device name for "eno1")
GUI