Correcting Network Configuration After Snapshot Restore

After restoring a snapshot to a new machine, you may encounter issues caused by the MAC address of the network adapter changing. Usually, when the network adapter changes the operating system will create a new network adapter for it. You'd typically see the network adapter on 'eth1' (or eth2 if you had private networking enabled).

CentOS

  • Log in to your server via the KVM in your control panel
  • Remove the contents of /etc/udev/rules.d/70-persistent-net.rules
  • Open /etc/sysconfig/network-scripts/ifcfg-eth0, and change the contents to the following:

    DEVICE=eth0
    TYPE=Ethernet
    ONBOOT=yes
    NM_CONTROLLED=yes
    BOOTPROTO=dhcp
    DNS1=8.8.8.8
    NAME="System eth0"
    
  • Reboot your server
  • Once you have network connectivity again, you can permanently fix these issues by installing the cloud-init package from EPEL. This software will take care of adjusting your network adapter configuration whenever a snapshot is restored.

Debian/Ubuntu

  • Log into your server via the KVM in your control panel.
  • Remove the contents of /etc/udev/rules.d/70-persistent-net.rules
  • Review the contents of /etc/network/interfaces and update any IP addresses to match the current server.
  • Reboot your server
  • Once you have network connectivity again, you can permanently fix these issues by installing the cloud-init package. This software will take care of adjusting your network adapter configuration whenever a snapshot is restored.

Windows

  • No changes are necessary for Windows. It will automatically start using the new network adapter.
  • Correcting Network Configuration After Snapshot Restore
  • 0 A felhasználók hasznosnak találták ezt
Hasznosnak találta ezt a választ?

Kapcsolódó cikkek

Setting up a Name Server for IPv6 rDNS in CentOS

Managing your own IPv6 rDNS is a fairly simple task. After setting up the name server, please...

Reset the Root Password in CentOS

If you have forgotten the root password it is possible to set a new one by interrupting the boot...

How to Install and Configure vsftpd on CentOS 7

FTP (File Transfer Protocol) is one of the most popular methods to upload files to a server....

How to enable EPEL repository?

The EPEL repository is an additional package repository that provides easy access to install...

Find (View) Default Zone for Firewall on CentOS 7

Pre-Flight Check These instructions are intended for finding (viewing) the default zone in...