
If your Linux server lost its network, here are seven ways to restart it, from least to most disruptive. “The network’s down.” Restarting the network in Linux is not just one command. The right method depends on whether you are on SSH or the console, and what broke.
In this guide, I’ll cover 7 safe ways to restart networking on Ubuntu, Debian and CentOS. You’ll learn which option works best for desktops vs servers, SSH sessions vs console access, and single-NIC issues vs system-wide failures. I’ll also share practical safety checks so you don’t accidentally lock yourself out.
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.
Why this matters: If you’re on SSH and restart the wrong service, you could lose your only access path. Local users have more freedom, and remote users need extra caution.
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
What it does: Reloads all networking services and re-applies the config.
When to use: After editing system-wide config files or major changes to /etc/network or similar.
Pros: Clean, comprehensive reset.
Cons: Drops all interfaces, which can kill SSH.
Verification step: After any method: run ip addr, ip route and ping your gateway.
On Debian with ifupdown: sudo systemctl restart networking. On Ubuntu 18.04+, use netplan apply instead.
# Ubuntu / Debian (ifupdown)
sudo systemctl restart networking
# CentOS / RHEL 7 (legacy network scripts)
sudo systemctl restart network
2. Restart NetworkManager, for desktops & modern servers
What it does: restarts the NetworkManager service, which manages Wi-Fi, DHCP and connection profiles.
When to use: On desktop distros (such as Ubuntu, Fedora, CentOS 8+)
, or servers using NetworkManager.
Pros: Non-destructive if NetworkManager already manages your interfaces.
Cons: Won’t touch static configs outside its scope.
Scenario: Wi-Fi suddenly drops on a workstation → restart NetworkManager to reload the profile.
Verification step: nmcli connection show -active bouncing the network interface in Linux CLI (if applicable) or ensure your interface reconnects to the expected SSID/IP.
# Ubuntu / Debian / CentOS 8+ / RHEL 8+
sudo systemctl restart NetworkManager
nmcli device status
3. Bounce the interface, surgical reset of one NIC
What it does: Takes a single interface down, then back up.
When to use: Link flapping, one bad NIC, or only one interface needs fixing.
Pros: Low-impact, leaves other NICs untouched.
Cons: If it’s your SSH interface, you’ll cut yourself off.
This method is often referred to as the bouncing network interface in Linux CLI.
Analogy: Like unplugging and plugging back a single Ethernet cable instead of rebooting the whole house router.
Verification step: Confirm the interface shows state UP and has a valid IP. Test by pinging the default gateway.
# 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.)
What it does: Reloads distro-specific configs netplan on Ubuntu 18.04+.
, Debian uses ifupdown (/etc/network/interfaces) by default;
When to use: After editing YAML or config files and wanting a deterministic reload.
Pros: Applies changes consistently.
Cons: Command varies per distro; old systems may not support netplan.
Scenario: You added a static IP in netplan → apply the config to take effect immediately.
Verification step: Run ip route to confirm routes match your config, and test connectivity with an external ping.
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
What it does: Renews or requests a new IP lease from the DHCP server.
When to use: Wrong subnet, duplicate IP, or missing lease after VM migration.
Pros: Non-invasive, quick fix for IP issues.
Cons: Doesn’t help with driver or hardware faults.
Scenario: You migrated a VM between VLANs, but the old IP persists. → renew DHCP lease to request a new address.
Verification step: Confirm a new IP is assigned (ip addr) and test DNS resolution (ping google.com).
# 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
What it does: Unloads and reloads the kernel driver for your NIC.
When to use: Hardware-level issues, NIC disappears, driver crashes, or firmware update.
Pros: Fixes driver bugs without reboot.
Cons: Risky over SSH, NIC disappears briefly. Safer locally.
Scenario: Your server logs “driver reset” errors in dmesg and the NIC vanishes → reload the NIC driver.
Verification step: Ensure the NIC shows up again (lspci / ip link show) and link lights return.
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
What it does: restarts the NetworkManager service, which manages Wi-Fi, DHCP and connection profiles.
When to use: When all else fails, after kernel/firmware updates, or driver reloads don’t stick.
Pros: Clears multi-layered failures.
Cons: Downtime for all services.
Verification step: After reboot, confirm interfaces come up automatically and services start as expected.
This is the brute-force way Linux starts the network when other methods fail.
uptime
ip addr
ip addr
ip route
ping -c 4 <gateway-ip>
Method comparison table
| Method | Best For | Risk Level | Disruption Level |
| Restart networking service (1) | Major config changes | High (SSH loss) | Full network |
| Restart NetworkManager (2) | Desktop & modern servers | Low | Minimal |
| Bounce interface (3) | Single NIC issues | Medium (if SSH) | One interface |
| Re-apply configs (4) | Static IP / YAML changes | Medium | Config only |
| Renew DHCP (5) | IP conflicts / missing leases | Low | Minimal |
| Reload NIC driver (6) | Hardware or driver-related issues | Medium-High | NIC downtime |
| Reboot (7) | Last resort / multi-layered failures | Very High | Full downtime |
Decision flow, which restart method to use
- Single NIC problem? → bounce interface (3).
- Wrong/missing IP? → renew DHCP (5).
- Desktop or modern server? → restart NetworkManager (2).
Edited configs? → Restart networking or re-apply netplan (1 or 4).- Hardware/driver issue? → reload NIC driver (6).
- Still broken? → reboot (7).
Think of it as triage: start with the least disruptive option and escalate.
Troubleshooting checklist (fast scan)
- Check physical link (cable, switch, lights).
- Identify if one NIC or all NICs are down.
- Confirm whether the system uses NetworkManager, netplan, or ifupdown.
- Keep console/out-of-band access before restarts.
- Backup configs.
- Always test with a simple ping or traceroute after changes.
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.
Conclusion, Restart smart, not blind
Linux gives you several ways to restart networking, from a DHCP renewal to a full reboot, from a gentle DHCP refresh to the full reboot hammer. The trick is knowing which tool to use when, especially if you’re on SSH and can’t afford lockouts. Start small, verify results, and keep a recovery path open.
Want a printable cheat sheet? Linux gives you several ways to restart networking, from a DHCP renewal to a full reboot, a one-page decision map showing each method, its risk level, and when to use it. Perfect for keeping next to your terminal.
FAQs, Restart Network in Linux
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.
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.
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.
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.
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.
