ACLClouds
ACLClouds

The VPS lost its network after a modification

Restore interface, address, route and DNS from noVNC without multiple restarts. noVNC allows you to correct the configuration from the inside.

An incorrect address, renamed interface, or deleted default route cuts SSH immediately. noVNC allows you to correct the configuration from the inside.

Step-by-step procedure

  1. Open noVNC

    Do not restart in a loop. Connect locally and run ip -br addr then ip route.

  2. Identify the interface

    Locate eth0, ens18 or the active name. Compare it to the file in /etc/network/interfaces or to Netplan.

  3. Restore temporarily

    Add the address and route only with the values displayed by the panel or provided by support.

  4. Make persistent

    Correct the network manager used then test a new SSH session before restarting.

Network Status

ip -br link
ip -br addr
ip route
resolvectl status 2>/dev/null || cat /etc/resolv.conf

Restore the address and route (temporary)

ip link set ens18 up
ip addr add IPV4/CIDR dev ens18
ip route add default via GATEWAY dev ens18
ping -c 3 1.1.1.1

Before you start

On the VPS page, note the "IPv4 address" and the "Gateway / CIDR" card: these are the values the VM must use. The "Networks" page under "Additional tools" also shows the IP, the gateway and the MAC address of the interface.

Then open the "noVNC console": it goes through the hypervisor and works without a network. The panel "Shell" also runs commands through the QEMU Guest Agent, but each one is limited to 15 seconds: keep it for checks.

Most common causes

Depending on the image, the configuration lives in /etc/netplan/ (Netplan), in /etc/network/interfaces and /etc/network/interfaces.d/ (ifupdown) or in NetworkManager (nmcli) on Rocky Linux and AlmaLinux. Only edit the file of the manager that is actually in use.

  • A YAML indentation error: netplan apply then rejects the file.
  • A missing default route: ip route shows no default via line.
  • A wrong interface name: the file mentions eth0 while the active interface is called ens18.
  • A firewall (UFW, nftables or the panel one) blocking port 22 while the network itself works.

Check that everything works

Test in this order: ping -c 3 to the gateway, then ping -c 3 1.1.1.1, then ping -c 3 aclclouds.com. The first test that fails points to the layer to fix: local address, default route or DNS. Finish with ssh root@IP from your computer.

Frequently asked questions

ping 1.1.1.1 answers but Temporary failure in name resolution appears, why?

The network works, only DNS resolution is missing. Check resolvectl status or /etc/resolv.conf: no nameserver is declared, or it does not answer. Add public resolvers to the network configuration (the nameservers key with Netplan), then apply it.

Every ping returns Network is unreachable, what should I do?

The kernel knows no route to the destination, most often because the default route has disappeared. Add it with the gateway shown in the panel (command block below), test, then write it into the configuration file so that it survives a reboot.

How can I edit Netplan without risking a full cut-off?

Run netplan generate to catch syntax errors, then netplan try: the new configuration is applied and rolled back automatically after 120 seconds unless you confirm with Enter. Indent with spaces, never with tabs.

SSH answers Connection timed out while the console shows the right IP, what should I check?

If the three pings succeed, the network is fine. Check that ss -tlnp shows sshd on port 22, then the UFW rules and the "Firewall options" page in the panel: an "Input policy" of DROP with no ACCEPT rule for port 22 blocks SSH.