Ubuntu Network Fixes: Diagnose and Restore Your Connection
In this article
Yes—many Ubuntu network problems can be fixed by checking the connection, restarting the relevant network service, or correcting a specific Wi-Fi, Ethernet, DNS, or router issue. Start with the simplest checks and identify whether the failure affects one device, one network, or only certain websites before changing settings.
How Ubuntu networking works
Ubuntu can connect through Ethernet, Wi-Fi, mobile broadband, or a VPN. On standard Ubuntu Desktop installations, NetworkManager usually manages connections and displays them in the system menu and Settings app. Ubuntu Server installations and customized systems may instead use Netplan with either systemd-networkd or NetworkManager as the backend. This distinction matters: a command or configuration file appropriate for one setup may not apply to another.
A connection also depends on several separate stages: the computer must detect an interface, associate with the Wi-Fi access point or Ethernet link, obtain an IP address, find a route to the internet, and resolve website names through DNS. A failure at any stage can look like “the internet is down,” but the useful fix differs. For example, a connected Wi-Fi icon does not prove that DNS or the router’s internet connection is working.
Start with simple checks
Before editing configuration, check whether the problem is local or broader. If other devices cannot access the same network, restart or check the router and modem, or contact the internet provider. If only Ubuntu is affected, try these steps:
- Check that Wi-Fi is enabled and Airplane Mode is off. Confirm that the laptop’s hardware wireless switch or function key is not disabling the radio.
- For Ethernet, reseat the cable and try another router port or known-good cable. Check whether the port lights indicate a link.
- Disconnect from the network and reconnect. For Wi-Fi, verify the network name and password; forget and rejoin the network if its saved settings may be stale.
- Restart Ubuntu. This can clear a temporary driver or service problem, though it will not fix a wrong password, provider outage, or persistent configuration error.
- Test more than one site or app. If a site fails by name but its service works through another connection, DNS may be involved.
On Ubuntu Desktop, the Settings app’s Wi-Fi or Network page can show whether a connection is active and let you review its settings. Menu names can vary between Ubuntu releases and desktop environments.
Useful commands for diagnosis
Open Terminal and inspect the state before attempting a repair. These commands are read-only and work on many Ubuntu systems:
ip linklists network interfaces, such aswlp2s0for Wi-Fi orenp3s0for Ethernet. An interface marked down may be disabled, although naming and output vary.ip addrshows assigned IP addresses. An interface without an expected address may not have completed its connection or received DHCP configuration.ip routeshows routing information. A default route is normally needed to reach destinations outside the local network.nmcli device statusis useful when NetworkManager is installed; it reports devices and their connection state.resolvectl statuscan show DNS settings on systems using systemd-resolved. Not every Ubuntu setup uses that resolver.
To separate connection problems from name-resolution problems, try pinging your router’s local address, then a public IP address, and finally a domain name. Find the router address with ip route; do not assume every network uses the same one. If an IP address responds but a domain does not, DNS is a likely issue. Some networks block ping, however, so a failed ping alone does not prove that internet access is unavailable.
Fix common Wi-Fi and Ethernet problems
If Wi-Fi networks do not appear, check whether Ubuntu sees the wireless adapter with ip link or nmcli device status. A missing or unmanaged adapter can indicate a driver, firmware, hardware, or radio-block problem. On laptops, rfkill list can reveal a software or hardware block; if a device is soft-blocked, sudo rfkill unblock wifi may re-enable it. A hardware switch still needs to be turned on manually.
Drivers and firmware depend on the exact adapter and Ubuntu release. Use Software & Updates > Additional Drivers when it offers a suitable driver, and install Ubuntu updates from trusted repositories. Do not install a random driver simply because its name resembles your adapter. If Wi-Fi works after connecting by Ethernet or USB tethering, that temporary connection can help install updates.
For a connection that repeatedly drops, check whether the problem occurs only far from the router, on one Wi-Fi band, or after the computer resumes from sleep. Moving closer to the access point, updating the system, and testing another network can help isolate interference, router compatibility, or a driver issue. For Ethernet, verify that the network device is enabled and that the router or switch is providing a link and address.
DNS, VPN, and configuration issues
If Ubuntu connects to the local network but cannot open websites by name, DNS may be misconfigured or unavailable. First test another browser or device and inspect the active connection’s DNS settings. A VPN, privacy tool, custom DNS entry, or router setting can change which DNS server is used. Disconnect a VPN briefly as a diagnostic test if doing so is safe and permitted; do not bypass workplace or school security rules.
A common misconception is that changing DNS will repair every internet failure. It will not restore a missing Wi-Fi driver, an unplugged cable, an invalid IP address, or an ISP outage. Avoid replacing system DNS files by hand before identifying what manages them: NetworkManager and systemd-resolved can generate or control resolver settings, so manual edits may be overwritten or cause new problems.
Restarting services and changing settings safely
On a desktop system managed by NetworkManager, restarting its service can clear a temporary connection-management fault. This disconnects active network sessions, including remote connections, so avoid doing it over SSH unless you have another way back in. A graphical reconnect or a normal reboot is often safer for a desktop user.
On systems using Netplan, inspect the existing YAML files before editing them. Indentation is significant, and a mistake can cut off network access. After making a deliberate change, administrators can use sudo netplan try where available to test it with a rollback opportunity, or apply the configuration using the method appropriate to the system. Keep a copy of the original file and ensure physical or console access before changing a remote server’s network configuration.
Avoid broad fixes such as deleting all network configuration, repeatedly running commands from unrelated forum posts, or disabling security features. Prefer one change at a time, then test again. If a proposed fix requires a command, understand whether it only inspects the system or changes files and services, and check that it matches your Ubuntu version and network manager.
Frequently Asked Questions
Why does Ubuntu say connected but have no internet?
Ubuntu may be connected to the router while the router has no internet access, or the device may lack a working default route or DNS service. Check other devices, then inspect the route and test an IP address and a domain separately.
How do I restart networking in Ubuntu?
On many Ubuntu Desktop systems, disconnecting and reconnecting in Settings is the simplest option. If NetworkManager is managing the device, restarting its service is another option, but it interrupts connections and can end a remote session.
Does Ubuntu need a separate Wi-Fi driver?
Some adapters work with drivers and firmware already included in Ubuntu; others require an additional driver or firmware package. The correct answer depends on the adapter, hardware support, and Ubuntu release. Check Additional Drivers and the system’s update tools rather than installing an unverified driver.
What should I do if Ubuntu cannot find any Wi-Fi networks?
Make sure Wi-Fi is enabled, check for a hardware or software radio block with rfkill list, and see whether the wireless interface appears in ip link. If it is absent or remains unavailable, investigate adapter support, firmware, and hardware.
Will changing DNS fix Ubuntu network problems?
Only if name resolution is the problem. If you can reach an IP address but not a website by its domain name, DNS is worth investigating. If there is no link, IP address, or route, changing DNS is unlikely to help.