Setting up a network connection for a Linux server recovery

To recover a Linux server as described in Recovering a Linux server, the destination server must have a network connection. If you determine that the network interface is down, do the following to set up the network connection.

To set up a network connection for a Linux server recovery:

  1. Run the following command to start the network interface:

    ip link set networkDevice up

    Where networkDevice is the name of the network interface.

    After one minute, run the following command to verify that the network interface has been started:

    ip a

    If the network interface state is UP, go to Step 6.

    If the network interface state is DOWN, continue to Step 2.

  2. Obtain an unused static IP address and gateway from your network administrator.

  3. Run the following command to assign the static IP address to the device:

    ip addr add IPaddress dev networkDevice

    Where IPaddress is the static IP address and networkDevice is the name of the network interface.

    Run the following command to verify that the IP address has been assigned to the network interface:

    ip a

  4. Run the following command to add the default route to the routing table:

    ip route add default via gatewayIPaddress dev networkDevice

    Where gatewayIPaddress is the default route IP address and networkDevice is the name of the network interface.

    Run the following command to verify the default route:

    ip route

  5. Run the following command to check that DNS entries are configured correctly:

    cat /etc/resolv.conf

    If the DNS entries are incorrect, update /etc/resolv.conf with the DNS server addresses for your environment.

  6. Run one of the following commands to test the network connection:

    ping www.google.com

    nslookup www.google.com

    If the test is successful, continue the recovery as described in Recovering a Linux server.