7 Ways to Restart Network in Linux (Ubuntu, Debian, CentOS)

  • Home
  • Blog
  • 7 Ways to Restart Network in Linux (Ubuntu, Debian, CentOS)
Banner for restarting the network in Linux (Ubuntu, Debian, CentOS) with a server and devices
DateOct 4, 2025


Who this guide is for

  • Remote SSH admins, managing VPS, dedicated servers, or cloud instances.


  • Local console users, working on a physical server, VM console, or lab machine.


Quick safety rules before you restart networking

  • Check your access: Keep console or out-of-band access available, especially when working over SSH.

  • Back up configurations: Save your current network settings before making changes.

  • Choose the least disruptive method: Identify whether the issue affects one interface or the entire network.

  • Verify connectivity: After restarting, check the interface, routing table and network connection.

  • Avoid the SSH lockout trap: Restarting networking over SSH can disconnect your session, so use a cloud console or secondary connection and, if possible, schedule the restart in a maintenance window.






1. Restart the networking service (system-level), reliable but disruptive

# Ubuntu / Debian (ifupdown)

sudo systemctl restart networking

# CentOS / RHEL 7 (legacy network scripts)

sudo systemctl restart network


2. Restart NetworkManager, for desktops & modern servers

# Ubuntu / Debian / CentOS 8+ / RHEL 8+

sudo systemctl restart NetworkManager

nmcli device status


3. Bounce the interface, surgical reset of one NIC

# Ubuntu / Debian / CentOS / RHEL

sudo ip link set eth0 down && sudo ip link set eth0 up

# Purane Debian (ifupdown)

sudo ifdown eth0 && sudo ifup eth0

# CentOS / RHEL (NetworkManager)

sudo nmcli device disconnect eth0 && sudo nmcli device connect eth0


4. Re-apply distro network configuration (Ubuntu’s netplan, Debian ifupdown, etc.)

Ubuntu (netplan): test safely first, then apply

sudo netplan try

sudo netplan apply

# CentOS / RHEL (NetworkManager)

sudo nmcli connection reload

sudo nmcli connection up “connection-name”


5. Restart DHCP client / renew lease, fix IP conflicts

# Ubuntu / Debian (dhclient)

sudo dhclient -r eth0 && sudo dhclient eth0

# NetworkManager wale system (CentOS 8+/RHEL 8+)

sudo nmcli connection down “connection-name” && sudo nmcli connection up “connection-name”


6. Reload the NIC driver, restart the network card safely

First, find the driver name

lspci -k | grep -A3 -i ethernet

Driver reload (replace e1000e with your module)

sudo modprobe -r e1000e && sudo modprobe e1000e


7. Reboot, the nuclear option

ip addr

ip route

ping -c 4 <gateway-ip>


Method comparison table

MethodBest ForRisk LevelDisruption Level
Restart networking service (1)Major config changesHigh (SSH loss)Full network
Restart NetworkManager (2)Desktop & modern serversLowMinimal
Bounce interface (3)Single NIC issuesMedium (if SSH)One interface
Re-apply configs (4)Static IP / YAML changesMediumConfig only
Renew DHCP (5)IP conflicts / missing leasesLowMinimal
Reload NIC driver (6)Hardware or driver-related issuesMedium-HighNIC downtime
Reboot (7)Last resort / multi-layered failuresVery HighFull downtime

Decision flow, which restart method to use


Troubleshooting checklist (fast scan)


Short real-world examples

  • Scenario A (Cloud VPS): VPS lost IP after host reboot → renewed DHCP, got a new lease, and SSH restored.

  • Scenario B (Datacenter server): Switch firmware upgrade caused NIC flap → bounced interface, link came back, routes stayed intact.

  • Scenario C (Workstation): Wi-Fi stopped after kernel update → restarted NetworkManager, wireless reconnected instantly.








How do I restart the network card in Linux safely?

You can restart the network card by reloading its driver or bouncing the interface. Use ip link set <interface> down followed by up for a quick reset. For deeper issues, unload and reload the driver. Avoid doing this over SSH unless you have console access.

What is the safest way to restart networking on Ubuntu?

The safest method on Ubuntu is using netplan apply for config changes or restarting NetworkManager with systemctl restart NetworkManager. Both methods reload settings without rebooting the whole server. Always verify connectivity with ping and keep console access available to avoid SSH lockouts.

What does bouncing network interface in Linux CLI mean?

Bouncing network interface in Linux CLI refers to bringing a single NIC down and back up using commands like ifdown eth0 && ifup eth0 or ip link set eth0 down && ip link set eth0 up. It resets link negotiation without disrupting other network interfaces. Useful for single-NIC troubleshooting.

Does restarting networking affect SSH sessions?

Yes, if your SSH session relies on the interface being restarted, you’ll be disconnected. Methods like DHCP renewal or non-SSH NIC resets are safer. Always prepare backup console access before restarting networking to avoid being locked out, especially on VPS, dedicated servers, or remote systems.

How can I check if Linux starts the network successfully after restart?

To confirm Linux starts the network correctly, run ip addr to check assigned IPs, ip route for routing, and ping 8.8.8.8 to test connectivity. For Wi-Fi, ensure reconnection to the correct SSID. Always verify DNS resolution with ping google.com to confirm a fully functional network restart.

Related Reading

Author avatar
Evan Allenn

Evan Allenn writes technical guides and troubleshooting articles at RDPextra. He has 3 years of experience in the hosting industry and focuses on clear, step-by-step instructions for RDP, VPS and server users.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x