Copilot said:
Ubuntu 14.04 Desktop: Configure Ethernet Without NetworkManager and MAC Address Binding
In environments where Ubuntu systems are frequently cloned, migrated, or deployed on different hardware, it can be beneficial to manage networking without NetworkManager and avoid binding network interface names to specific MAC addresses.
This guide explains how to configure networking using the traditional /etc/network/interfaces method while ensuring that Ethernet interfaces remain flexible and hardware-independent.
Step 1: Remove NetworkManager
The first step is to uninstall NetworkManager and its associated graphical components. After removal, clean up any unnecessary packages that remain on the system.
Step 2: Disable MAC-Based Network Interface Binding
Ubuntu 14.04 uses udev rules to associate network interface names with specific MAC addresses. While this can provide consistency on a single system, it may cause issues when cloning disks or moving systems between different machines.
Disable the Persistent Network Rule Generator
Prevent udev from automatically creating MAC-based network interface rules.
Remove Existing Persistent Network Rules
Delete any existing network interface mapping rules as well as the cached generator rules. This ensures the system no longer remembers previous MAC-to-interface assignments.
Step 3: Configure Network Interfaces Manually
Edit the /etc/network/interfaces file and define the required network interfaces.
Example configuration:
auto lo
iface lo inet loopback
allow-hotplug eth0
iface eth0 inet static
address 192.168.10.90
netmask 255.255.0.0
allow-hotplug eth1
iface eth1 inet static
address 172.16.8.210
netmask 255.255.0.0
This method uses the traditional eth0 and eth1 interface naming convention without requiring MAC address assignments.
Step 4: Reboot the System
Restart the system to apply all configuration changes and allow the networking service to initialize using the new settings.
Step 5: Verify Network Interface Status
After the reboot, verify that the network interfaces have been detected correctly and that the assigned IP addresses are active.
You can use either the traditional networking tools or newer Linux networking utilities to check interface status.
Expected Results
After completing the configuration:
- NetworkManager is no longer used for network management.
- Network interfaces are not tied to specific MAC addresses.
- Interface names remain in the familiar
eth0,eth1, and similar format. - The operating system can be cloned or migrated to different hardware without requiring network reconfiguration.
- Network connectivity becomes available immediately after startup.
Conclusion
By disabling MAC-based interface persistence and managing networking through /etc/network/interfaces, Ubuntu 14.04 becomes more portable and easier to maintain across different hardware platforms. This approach is especially useful for virtual machine templates, cloned systems, laboratory environments, and appliance-style deployments where predictable interface names and simplified network configuration are preferred.
Suggested Post Titles
- Ubuntu 14.04: Configure Ethernet Without NetworkManager or MAC-Based NIC Binding
- How to Disable MAC Address NIC Binding in Ubuntu 14.04
- Ubuntu 14.04 Network Configuration Using Traditional Ethernet Interfaces
- Keeping eth0 and eth1 in Ubuntu 14.04 Without NetworkManager
- Preparing Ubuntu 14.04 for Hardware Cloning and Migration
