Repair Network
The Repair Network function in ProxMenux addresses issues caused by changes in network interface identifiers that occur when modifying hardware components such as network adapters, GPUs, or other PCI devices. This can lead to a loss of network connectivity because the system retains old configurations that no longer match the new interface IDs.
Purpose
In many cases, when adding or removing hardware (e.g., network cards, GPUs, storage controllers), network interfaces may be renamed due to changes in the system's PCI device enumeration. As a result, Proxmox VE may fail to establish a network connection because the /etc/network/interfaces
file references outdated interface names.
Restoring a backup of /etc/network/interfaces
is not a viable solution, as the IDs of the interfaces have changed. Instead, the system needs to detect the new identifiers and update the configuration accordingly. Repair Networkautomates this process by identifying the correct interface names and applying the necessary corrections.
How It Works
- Detects the current physical network interfaces and their updated identifiers.
- Checks the
/etc/network/interfaces
file for outdated interface names. - Replaces incorrect or missing network interface names with the correct ones.
- Verifies the integrity of bridge configurations and updates them if necessary.
- Provides an option to restart the network service to apply changes.
Expected Results
- Network connectivity is restored automatically without manual intervention.
- Updated interface names are correctly assigned in
/etc/network/interfaces
. - Bridges and other network settings remain functional after hardware changes.
Important Considerations
- This script is useful when network connectivity is lost due to hardware modifications.
- Having an alternative access method (such as IPMI or console) is advisable in case of unforeseen issues.