Correcting network configuration after Snapshot recovery

Snapshot is a copy of files and directories of the file system at a specific point in time. File systems at this point can later be mounted read-only.

So, after the snapshot recovery period has passed on the new VPS, problems may arise caused by changing the MAC address of the network adapter. Typically, when you change a network adapter, the operating system creates a new network adapter for it. Typically you will see the network adapter on “eth1” (or eth2 if you have a private network enabled).

CentOS

This operating system describes the following steps to correct network configuration after snapshot recovery:

  1. First you need to log into your server, this can be done as a consequence of this;
  2. Delete the contents of /etc/udev/rules.d/70-persistent-net.rules
  3. Open /etc/sysconfig/network-scripts/ifcfg-eth0 and change the content to the following:
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp
DNS1=8.8.8.8
NAME="System eth0"

After this three steps, you need to restart VPS

Debian & Ubuntu

This operating system describes the following steps to correct network configuration after snapshot recovery:

  1. First you need to log into your server, this can be done as a consequence of this;
  2. Delete the contents of /etc/udev/rules.d/70-persistent-net.rules
  3. Review the contents of /etc/network/interfaces and update all IP addresses to match the current server.

After this three steps, you need to restart VPS

Was this article helpful?

Related Articles

Leave A Comment?