How to restore the configuration of network interfaces on a dedicated server
Restoring the configuration of network interfaces on a dedicated server is a critical task that ensures the server's connectivity and functionality. Whether due to accidental changes, system upgrades, or hardware replacements, network settings might need to be restored to a known, working state.
This guide is not suitable for Windows-based systems.
Downloading the default network configuration image of a server
- In the left-hand menu, navigate to Dedicated Servers → Manage
- Choose the server and click Details
- Scroll down to the Networks section and download the configuration image by clicking the helpful ISO file
Mounting the image
Use the instructions How to boot a bare-metal server into a custom ISO image remotely using iDRAC to enable Virtual Media in iDRAC and mount the downloaded configuration image.
Restoring network settings
Linux
-
Mount the image to the file system in the
/mntdirectory:mount /dev/cdrom /mnt -
Navigate to the
/mntdirectory:cd /mnt -
Network configuration scripts for all Linux-based operating systems are available inside the image.
-
Run the script for the required OS. For example, for CentOS 7:
bash linux.sh -
After running the script, restart the network service:
systemctl restart network
The network configuration of the server will be restored to its initial settings.
VMware ESXi
-
Load a kernel module:
vmkload_mod iso9660 -
Define the name of the virtual CD-ROM:
esxcfg-mpath -l | grep CD-ROM -
Mount the virtual CD-ROM (replace with your CD-ROM name):
vsish -e set /vmkModules/iso9660/mount mpx.vmhba32:C0:T0:L0 -
Run the script:
sh /vmfs/volumes/CDROM/vmware.sh
The network configuration of the server will be restored to its initial settings.