Techub Knowledge Center
TechubKnowledge Center • Illustrated Guides • Troubleshooting

Describe the Linux task or exact error — for example, updates fail or a drive will not mount.

Linux Networking & Connectivity • Linux & Open Source

Linux Has No Network or Internet Access

Trace the actual adapter, address, route, DNS and application instead of resetting every network setting.

DifficultyIntermediate; owner or authorized administrator
Time20–45 minutes for checks; installation, backup or recovery can take longer
Guide typeIdentify, act & verify
GoalIdentify the failing network layer

Keep access available. Read the connection state before changing it. On a remote server, arrange console access before editing routes or restarting networking. Keep VPN, DNS and log details private.

First — identify the distribution, context and task

This workflow covers a Linux PC or server with the ip tools installed. The optional NetworkManager and systemd-resolved checks apply only when those services manage this machine. Open Terminal as your ordinary user. The commands below display state; they do not renew a lease, change a route or restart networking. For an SSH-only machine, keep the current session and arrange console access before making a later correction.

What you’ll need

A Terminal, the actual distribution/release, the failing destination and error, and console access if the machine is remote. The optional commands require their named network services.

Step 1 — Record the failing connection

Note the release, desktop/server role, connection type, VPN/proxy, exact error and intended destination. Compare another device and another service where permitted. Check whether this is a host, VM or container network.

What to look for: The smallest affected layer and scope.

What the result means: A browser error alone does not establish that the physical connection is down.

Step 2 — Check adapter and link state

In the desktop Network settings inspect the actual active adapter. Where supported, ip -brief address and ip route provide read-only addressing/route views. Check cable/link or Wi-Fi association without disabling security controls.

Link state, addressing/routing, name resolution and application access are different checks. Diagnose the failing layer before changing configuration. Techub concept diagram, not a terminal or application screenshot.
Link state, addressing/routing, name resolution and application access are different checks. Diagnose the failing layer before changing configuration. Techub concept diagram, not a terminal or application screenshot.Image: Techub · Source · View full-size image

Find the interface used by this connection

Run ip -brief address. Ignore lo, the loopback interface, when identifying the physical connection. Names such as enp3s0 and wlp2s0 are examples; use the name shown on your machine. A row with no usable address needs a different next check from a row with an address and a failing application.

When NetworkManager is installed and running, nmcli device status adds the device type and connection state. disconnected means no active NetworkManager connection on that device; unmanaged means NetworkManager is not controlling it. Neither message alone proves the adapter is defective. If the command is missing or the service is not running, use the actual network manager rather than installing another one for this test.

What to look for: The intended interface is connected and active.

What the result means: Having an adapter listed is different from having a working link.

Step 3 — Read assigned addressing and gateway

Compare the actual address/prefix and default route with the approved LAN or VPN plan. A missing lease, duplicate static address or wrong route needs its specific correction. Avoid inventing an address or copying one from a screenshot.

Read the route as a path

Run ip route show for IPv4 and ip -6 route show for IPv6. A default entry describes a route for destinations without a more specific match. IPv4 and IPv6 can have different working states; the absence of an IPv4 default route alone does not establish a complete internet outage.

Illustrative output, not settings to enter:
default via 192.168.50.1 dev enp3s0
This reads: send ordinary IPv4 traffic through gateway 192.168.50.1 on enp3s0. Compare the actual gateway and interface with your approved network. VPNs, policy routing and containers may use additional tables, so this short view is not a complete audit of those configurations.

What to look for: A valid unique address and intended gateway.

What the result means: An active link does not guarantee usable IP configuration.

Step 4 — Separate name lookup from transport

Compare a known approved destination by address and by name using appropriate tools and the actual service. Inspect the configured resolver path. Internal/domain services may need organization-specific DNS rather than public resolvers.

Check the resolver the machine actually uses

On a system using systemd-resolved, run resolvectl status to view per-link DNS settings, then resolvectl query www.ubuntu.com to test a public name. Keep the DNS-server and internal-domain details private. If the service is absent, use your distribution’s supported resolver check instead.

  • A public name resolves, but a work-only name fails: check the required VPN and internal DNS route with IT; a public lookup does not test the organization’s namespace.
  • The lookup returns addresses, but the browser still fails: record the browser’s exact proxy, certificate or connection error. The answer has narrowed the test; it has not verified HTTPS.
  • The lookup fails and no usable route is present: resolve the earlier connection or route problem before replacing DNS settings.

What to look for: Whether routing, DNS or the service itself fails.

What the result means: One successful ping does not validate an application, and blocked ping does not prove it is down.

Step 5 — Correct the responsible configuration only

Follow the actual manager’s documentation: Ubuntu Desktop commonly uses NetworkManager; Ubuntu Server configurations can use Netplan with a selected renderer. Do not edit multiple competing configuration files or overwrite resolv.conf blindly. Keep console access before remote changes.

What to look for: One coherent supported configuration and recovery path.

What the result means: A network change can cut off the SSH session used to make it.

Step 6 — Retest the original task and protections

Verify the required application, intended route and name lookup. Check that VPN, firewall and access restrictions remain as designed. Restore ineffective temporary changes and record the exact cause privately.

What to look for: Stable intended access without broader exposure.

What the result means: Internet access does not by itself prove internal services are correct.

What did you find?
The link is downCheck the actual cable, radio or virtual connection.
Address or gateway is wrongCorrect the approved DHCP/static design.
Address works but name failsUse the DNS guide.
Only one application failsCheck its service, proxy and policy path.
Distribution, desktop & application help

Use the documentation for the manager actually controlling the interface. A NetworkManager device marked unmanaged may be configured elsewhere. Ask the responsible administrator before changing a server, VPN or managed resolver.

Parts & supplies — only if needed

Most initial checks use the supported tools already available. Buy a USB drive, backup destination or replacement hardware only when the task requires it, after checking exact hardware, capacity, power and distribution support.

Technical references

Techub’s troubleshooting guides are written in plain language and informed by manufacturer documentation. Features and procedures can vary by model. Before following model-specific steps, check the manufacturer’s latest instructions for your exact device.

Ubuntu — Network configurationLinux manual — ip addressLinux manual — ip routeNetworkManager — nmcli device statussystemd — resolvectl status and query

Still need help?

Need help with a Linux task?

Bring the distribution/release, desktop or server context, exact error and checks already tried. Explain whether wanted data has a usable independent backup. Keep credentials, keys, private paths and diagnostic data out of public screenshots.

Visit Techub Services ↗