How to Restart Network Services in Ubuntu 24.04
Restarting network services in Ubuntu 24.04 fixes dropped connections and applies new network settings without rebooting your whole computer. Network services are the background tools that manage your Wi-Fi and Ethernet connections to keep you online.
You need to restart these services every time you change your network setup files, such as a Netplan configuration. Ubuntu 24.04 uses the NetworkManager tool to handle these connections, and running a quick command brings your internet back to life in seconds.
Restart Ubuntu 24.04 network services using `sudo systemctl restart NetworkManager` in the terminal. Alternatively, use `nmcli networking off && nmcli networking on` or the `nmtui` interface. These commands reset network connections to apply changes or fix issues.
Restart network services using Systemd
Using Systemd: For most Ubuntu systems, the go-to method relies on the Systemd command. Running this tool requires the command below.
Execute the command below.
sudo systemctl restart NetworkManager
sudo systemctl restart NetworkManager.service
Restart network services using the NetworkManager CLI
Troubleshooting internet issues often involves the nmcli command (NetworkManager Command Line Interface). This tool lets you disable and then re-enable your network connections by their specific names. Fixing connection problems this way takes minimal typing.
Listing the network interfaces first requires running the command below.
nmcli connection show
Disabling or enabling the network interface then uses the command format below.
sudo nmcli connection down <interface_name>
Replacing <interface_name> with the name of the network interface targets the correct connection for disabling or enabling.
Turning the network on or off entirely happens with the command below, which restarts the network services.
sudo nmcli networking off
sudo nmcli networking on
Restart network services using the NetworkManager Text User Interface (nmtui)
Ubuntu offers an approachable text-based menu with the nmtui tool (NetworkManager Text User Interface). Managing network settings through this utility avoids complicated commands. Running nmtui, selecting to turn your network off, and then turning it back on restarts the services.
An interactive approach to managing network configurations comes directly from the nmtui command.
Executing the command below opens the menu where deactivating and then reactivating the network services takes place.
nmtui
Deactivating and reactivating the interface happens on the screen.


Restart network services using ifup / ifdown
Older methods in Ubuntu utilize the ifup and ifdown commands. Finding the name of your network connection comes first. Running 'ifdown' turns it off while 'ifup' turns it back on, completing the service restart.
Listing all the interfaces requires running the command below.
ip a
Turning the network interface off or on follows the command format below.
sudo ifdown <interface_name>
sudo ifup <interface_name>
Putting the name of the network interface on your system in place of <interface_name> is necessary.
Shutting down the enp0s3 interface happens by running the command below, for example.
sudo ifdown enp0s3
Bringing up the same interface requires running the command below.
sudo ifup enp0s3
Completing the process happens here.
Conclusion:
Restarting network services in Ubuntu remains essential for effective network management and troubleshooting. Reviewing the key points helps solidify the process:
- Restarting network services can resolve connectivity issues by resetting network interfaces.
- Various methods are available to restart network services, including:
- Using Systemd commands (
sudo systemctl restart NetworkManager). - Utilizing the NetworkManager CLI (
nmcli). - Employing the NetworkManager Text User Interface (nmtui).
- Executing ifup and ifdown commands for specific interfaces.
- Using Systemd commands (
- Verifying your network configurations after making changes ensures continuous connectivity.
- Building comfort with managing network services on Ubuntu comes from regularly using these commands.
How do I restart my network services?
Restarting your network services by resetting your hardware involves unplugging your modem and router from power and waiting about 30 seconds.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
No comments yet — be the first to share your thoughts!