Lost Internet Connection After Upgrading Ubuntu 20.04.6: Two Different Interfaces named en01 and eth1

Abstract: Resolve lost internet connectivity after upgrading Ubuntu 20.04.6 by updating network configuration files to match new interface names like en01 instead of eth0.

Created: 2026-08-01 by

Upgrading Ubuntu often causes network interfaces to rename from eth0 to predictable names like enp3s0 or en01, breaking scripts that expect the old naming convention. This mismatch between configuration files and actual hardware names results in lost internet connectivity after an upgrade to 20.04.6.

Understanding Network Interface Renaming

Ubuntu has transitioned from the traditional ethX naming scheme to a more predictable, hardware-based naming convention introduced in systemd. When you upgrade from older versions like 16.04 or 18.04 to 20.04.6, the system may detect your network card differently, assigning it a name such as en01, enp3s0, or eno1. If your network configuration files, such as those in /etc/network/interfaces or Netplan YAML files, still reference the old eth0 or eth1 names, the operating system will fail to bring up the interface correctly. This issue is particularly common when using virtual machines or specific hardware where the driver behavior changes between kernel versions. The lshw command can help identify the current hardware details, but the key is to align your software configuration with the new hardware identity. For users experiencing similar upgrade hurdles, reviewing the broader context of installation errors can be helpful, as seen in Stuck During Ubuntu Upgrade? Try These Troubleshooting Steps!.

Diagnosing the Current Interface Names

Before making any changes, you must confirm the actual names assigned to your network interfaces by the kernel. Open a terminal and run the following command:
ip addr show
Look for lines starting with link/ether or link/loopback. You will likely see interfaces named something like enp0s3, en01, or wlan0. Note these exact names. Do not assume they are still eth0. If you have multiple interfaces, ensure you identify the one connected to your Ethernet cable or Wi-Fi adapter. In some cases, especially with Hyper-V or other virtualization platforms, you might see unexpected secondary interfaces, which is discussed further in Understanding Two Network Interfaces in Ubuntu 22.04 with Hyper-V Virtual Machines. Additionally, check the status of the networking service:
systemctl status networking
If the service reports failures or inactive states for the expected interface, it confirms that the configuration does not match the hardware reality.

Fixing Configuration Files

The solution depends on whether you are using the legacy ifupdown package or the modern Netplan system. Most Ubuntu 20.04 installations use Netplan. For Netplan Users: Netplan configuration files are located in /etc/netplan/ and typically end with a .yaml extension. Open the file using a text editor with sudo privileges:
sudo nano /etc/netplan/01-netcfg.yaml
(Note: The filename may vary, e.g., 50-cloud-init.yaml). Inside this file, look for the interfaces key. Replace any instance of eth0 or eth1 with the correct name identified in the previous step (e.g., en01). Ensure the indentation is correct, as YAML is sensitive to whitespace. Save the file and apply the changes:
sudo netplan apply
For Legacy ifupdown Users: If you are still using the older method, edit /etc/network/interfaces:
sudo nano /etc/network/interfaces
Find the line defining your interface, such as auto eth0 or iface eth0 inet dhcp, and change eth0 to the new name. Then restart the networking service:
sudo systemctl restart networking

Restoring Internet Connectivity

After updating the configuration files, verify that the interface is now active. Run ip addr show again and check if the new interface has an IP address assigned. If you are using DHCP, the system should automatically request an address. If you are using static IPs, ensure the static values in your config file match your network's requirements. If the connection still fails, try disabling and re-enabling the interface:
sudo ip link set en01 down
sudo ip link set en01 up
Replace en01 with your actual interface name. This forces the kernel to re-initialize the driver and apply the new configuration. If you recently upgraded and suspect kernel-related issues, checking your installed kernels is also advisable, as described in Upgrading Ubuntu: Checking Installed Kernels in the Boot Partition. In rare cases, residual configurations from previous upgrades may cause conflicts. A clean reboot often clears temporary states and ensures all services start with the new configuration. If problems persist, consider reverting to a known good state or performing a fresh installation if data backup allows.

Frequently Asked Questions

Why did my interface name change from eth0?

Ubuntu switched to predictable network interface names to avoid conflicts and provide consistent naming based on hardware topology. This change was implemented to replace the arbitrary ethX assignments that could vary between boots or hardware additions.

How do I find my new interface name quickly?

Run ip -br addr in the terminal. This command provides a brief, readable list of all network interfaces along with their current status and IP addresses, making it easy to spot the active connection.

Can I revert to eth0 naming?

Yes, you can add the kernel parameter net.ifnames=0 biosdevname=0 to your GRUB configuration. However, this is generally discouraged because it may lead to naming inconsistencies in complex hardware setups or future upgrades.

What if netplan apply gives an error?

Check the syntax of your YAML file carefully. Indentation errors are the most common cause. Use yamllint or online validators to check the file structure. Also, ensure there are no trailing spaces or tabs that YAML parsers might misinterpret.

Does this issue affect Wi-Fi connections too?

Yes, Wi-Fi interfaces also follow the new naming convention, typically starting with wl (e.g., wlp2s0). If your Wi-Fi stops working after an upgrade, update the corresponding interface name in your Netplan or network manager settings.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More