Skip to content
Follow
Ubuntu Linux

How to Restart Network Services in Ubuntu 24.04

Richard
Written by
Richard
Dec 19, 2024 Updated Jul 13, 2026 3 min read
How to Restart Network Services in Ubuntu 24.04
How to Restart Network Services in Ubuntu 24.04

Restarting network services in Ubuntu 24.04 clears up network problems and applies new settings.

Network services are the hidden programs that keep your computer connected to the internet and other devices. They control things like your Wi-Fi or Ethernet connection.

You often need to restart them after changing network setup files. For example, after you edit a Netplan configuration file, a restart makes sure the changes work correctly.

This simple step also fixes many common connection issues by giving your network a fresh start.

⚡ Quick Answer

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

Restarting network services with Systemd: For most Ubuntu systems, the go-to method is the Systemd command. Here’s how you run it:

Run the command below.

🐧Bash / Shell
sudo systemctl restart NetworkManager
sudo systemctl restart NetworkManager.service

Restart network services using the NetworkManager CLI

Restarting network services with the NetworkManager CLI: If your internet isn’t working right, you can use the nmcli command. This tool lets you disable and then re-enable your network connections by their specific names. It’s a quick way to fix connection problems without a lot of typing.

To start, list the network interfaces by running the command below.

💻Code
nmcli connection show

Then, use the command format below to disable or enable the network interface.

🐧Bash / Shell
sudo nmcli connection down <interface_name>

Replace <interface_name> with the name of the network interface you want to disable or enable.

You can turn the network on or off entirely using the command below, thus restarting the network services.

🐧Bash / Shell
sudo nmcli networking off
sudo nmcli networking on

Restart network services using the NetworkManager Text User Interface (nmtui)

Restarting network services with the NetworkManager Text User Interface (nmtui): Ubuntu offers an approachable text-based menu with the nmtui tool. It lets you manage network settings without complicated commands. Simply run nmtui, select to turn your network off, and then turn it back on to restart the services.

The nmtui command provides an interactive way to manage network configurations.

Run the command below, select deactivate, and then reactivate the network services.

💻Code
nmtui

Use the screen to deactivate and reactivate the interface.

Restart network services using ifup / ifdown

Restarting network services with ifup / ifdown: For older methods, you can use the ifup and ifdown commands in Ubuntu. First, find the name of your network connection. Then, use ‘ifdown’ to turn it off and ‘ifup’ to turn it back on, which restarts the service.

Run the command below to list all the interfaces.

💻Code
ip a

Then, use the command format below to turn the network interface off or on.

🐧Bash / Shell
sudo ifdown <interface_name>
sudo ifup <interface_name>

Replace the <interface_name> with the name of the network interface on your system.

For example, run the command below to shut down the enp0s3 interface.

🐧Bash / Shell
sudo ifdown enp0s3

To bring up the same interface, run the command below.

🐧Bash / Shell
sudo ifup enp0s3

That should complete the process!

Conclusion:

In summary, restarting network services in Ubuntu is essential for effective network management and troubleshooting. Here are the key points to remember:

  • 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.
  • Always verify your network configurations after making changes to ensure connectivity.
  • Regularly using these commands will help you become more comfortable managing network services on Ubuntu.

How do I restart my network services?

To restart your network services by resetting your hardware, unplug your modem and router from power, and wait about 30 seconds.

Was this guide helpful?

Was this helpful?
Richard

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.

📚 Related Tutorials

How to Start, Stop, and Restart Services in Windows 11
Windows How to Start, Stop, and Restart Services in Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

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