FULL AI ANALYSIS

Ubuntu 22.04: NIC interface name changes after kernel driver update, networkd service fails to bring up ens3

Generated Oct 16, 2026, 9:43:08 AM

Analysis summary

Predictable network interface names are derived from hardware topology (PCI slot / ACPI path / MAC). A driver or firmware update changed the enumeration/path seen by udev (or the NIC moved PCI addresses), causing systemd/udev to assign different predictable names. Netplan and systemd-networkd continue to expect the old name; ad-hoc udev rules failed because device path attributes changed. Reverting solely the kernel may not revert PCI address assignment if firmware or driver initialized differently. Correct fixes should avoid hard-coding names tied to transient PCI paths and instead bind by stable attributes (PCI slot or persistent MAC) or update network config to match current names. If MACs changed, further investigation into NIC firmware or switch-level virtualization is required.

Possible causes

Driver or NIC firmware update changed PCI device enumeration / ID_PATH so udev/systemd renamed interfaces.

85%

Netplan/systemd config was written for a previous hardware layout; predictable names were created from PCI slot rather than stable MAC, so any PCI re-enumeration produced new names.

70%

Manufacturer driver intentionally exposes virtual functions or reassigns PHY ports (SR-IOV/VF initialization) so interface naming shifts.

40%

MAC addresses changed due to firmware reconfiguration or switch-side virtualization (VLAN or MAC spoofing) leading to new names on host.

15%

Suggested fixes

1

Diagnostic step 1

Inspect udev attributes: run 'udevadm info -a -p /sys/class/net/<ifname>' for the new and old interfaces and compare ID_PATH, ID_MODEL, and MAC to identify a stable attribute to match.

2

Diagnostic step 2

Avoid binding to PCI path. Update netplan/systemd-networkd to reference interfaces by 'match:' with MAC address (addresses from 'ip link') or by 'driver' + 'name' if stable; example netplan snippet: network.interfaces: match: macaddress: 'aa:bb:cc:dd:ee:ff'.

3

Diagnostic step 3

If you prefer previous names, write a udev rule that matches stable attributes (MAC or ID_NET_NAME_MAC) and sets NAME, then test with 'udevadm control --reload' and 'udevadm trigger' before reboot. Keep a console/other access path in case net brings link down.

4

Diagnostic step 4

If NIC firmware update likely caused MAC or VF changes, check vendor release notes and consider rolling back the firmware/driver on a maintenance window; do this only after confirming backups and having out-of-band access (iDRAC/ILO) because networking may remain broken.

5

Diagnostic step 5

Document current interface attributes and update automation (Ansible/chef) to use MAC-based matching so future driver/kernel updates won't break service wiring. Escalate to NIC vendor support if device exposes unexpected virtual functions or firmware claims to alter MACs.