EC2 Instance Unreachable After Reboot: A Lost Route Fix

An EC2 instance unreachable after reboot, with a failing instance status check, usually points to the guest OS network configuration, not AWS. Fix it without SSH by using the EC2 Serial Console, a rescue instance that mounts the root volume, the AWSSupport-ExecuteEC2Rescue runbook, or a root volume replacement.

Checked: November 24, 2026 (AWS EC2 and Systems Manager documentation, AWS re:Post Knowledge Center, Red Hat networking guide)

Why is an EC2 instance unreachable after reboot?

EC2 runs status checks every minute. The system status check watches the AWS hardware and network your instance runs on, and a failure there needs AWS to repair it. The instance status check watches the software and network connectivity of your instance. AWS checks it by sending an ARP request to the instance’s network interface. If the OS never brings the interface up correctly, that check fails. Nitro instances also have an attached EBS status check for volume I/O.

A reboot is the moment hidden configuration problems show up. Anything you changed in memory, such as a route added with a one-off command, disappears. Anything you changed on disk but never tested, such as a network script or /etc/fstab, now runs for the first time. AWS also notes that during a reboot the instance status check can report a failure until the instance is available again, so give it a few minutes before you assume the worst.

I spent 22+ years in infrastructure work, the first decade or so on-premises and, from 2013, in the cloud, mostly AWS, mainly building and operating systems. On EC2 there is no keyboard to plug in, so you need a recovery plan that works without the network.

Server rack in a data center, where an EC2 instance unreachable after reboot cannot be fixed by hand
On EC2 you cannot walk up to the rack, so recovery has to work without SSH. Photo: Kevin Ache / Unsplash

A real case: the default route that was never saved

This happened on an EC2 instance that ran an Oracle database. After I rebooted it, I could not connect to it. The cause turned out to be simple: the default route had been set up, but the route configuration was never saved before the reboot. When the server came back, the route was gone, and so was every path to the instance.

The fix was a jumphost, a server I could still reach in the same environment. I mounted the broken server’s boot drive on the jumphost and solved it from there. AWS calls this pattern a rescue instance, and its documented steps are below.

Why do routes vanish? Red Hat’s networking guide says it directly: static routes set with ip commands at the command prompt are lost if the system is shut down or restarted. To survive a reboot on Red Hat style systems, they must live in a per-interface file such as /etc/sysconfig/network-scripts/route-eth0. A default route line there looks like this:

default via 192.168.1.1 dev eth0

The address above is the example from Red Hat’s guide, not a value to copy. Use your own subnet’s gateway, and check which network tool your distribution uses before editing anything.

First checks before you touch the volume

Start with the Status and alarms tab, then open Actions > Monitor and troubleshoot > Get system log once the instance is running. Use this table to choose your next move.

What you see Likely cause First action
System status check failed AWS host, power or network problem Stop and start an EBS-backed instance, or wait at least 30 minutes for AWS to resolve it
Instance status check failed, log shows “Bringing up interface eth0: failed” Interface disabled or misconfigured Fix the interface config (AWS cites setting ONBOOT to yes) via serial console or rescue instance
Instance check passes, but SSH and apps time out Routing, firewall, or security group Check security groups and route tables, then the OS routing table from the serial console
Log shows “Failed to mount” or “Dependency failed” Bad /etc/fstab entry Correct fstab on a rescue instance, then check the file system
Log shows “different MAC address than expected” Hard-coded MAC in the image Remove the hard-coded MAC from udev rules

For an EC2 instance unreachable after reboot, a second plain reboot sometimes clears a transient problem, and AWS suggests trying it. If the route or config was never saved, though, rebooting again will not help. That is the point where you need one of the four fixes below.

Stopping an instance erases data on instance store volumes and changes the public IP unless you use an Elastic IP. If the instance is in an Auto Scaling group, stopping it might terminate it, so remove it from the group first.

Fix 1: EC2 Serial Console

AWS describes the serial console as a way to troubleshoot “boot, network configuration, and other issues.” It works through the instance’s serial port, and the browser client reaches it over port 443 through the EC2 Instance Connect endpoint for your Region, so you are not relying on the guest OS network you are trying to repair.

The catch is the prerequisites. According to AWS documentation, you need:

  • An instance built on the Nitro System, or a supported bare metal type.
  • Serial console access configured for your account, plus IAM permission to use it.
  • A password-based OS user that you set up beforehand, because you sign in at a text login prompt.
  • The instance in the running state, and a browser that supports WebSocket.

If you cannot log in normally, AWS documents booting into single-user mode from the GRUB menu. Single-user mode mounts the file system but may not activate the network, which is exactly what you want when the network config is the problem. After you correct the files, reboot and confirm the instance status check passes.

Command line interface showing a sudo prompt and a blinking cursor
A serial console session is plain text, much like sitting at the server’s own terminal. Photo: Gabriel Heinzer / Unsplash

Fix 2: Mount the root volume on a rescue instance

This works for any EBS-backed EC2 instance unreachable after reboot, with or without serial console access. The AWS Knowledge Center lays out the manual steps:

  1. Launch a rescue instance in the same VPC and Availability Zone, from the same AMI, or use an existing instance that meets those conditions.
  2. Stop the impaired instance.
  3. Detach its root EBS volume (for example /dev/xvda or /dev/sda1) and write down the device name.
  4. Attach the volume to the rescue instance as a secondary device, such as /dev/sdf.
  5. Connect to the rescue instance and mount the volume. Run lsblk first, because the device name on the rescue instance may differ.
  6. Fix the configuration on the mounted volume.
  7. Unmount it, detach it, and attach it back to the original instance as the root device.
  8. Start the original instance and confirm it responds.
sudo mkdir /rescue
lsblk
sudo mount /dev/xvdf1 /rescue
# edit files under /rescue, for example /rescue/etc/sysconfig/network-scripts/
sudo umount /rescue

For a lost route, the file to check is the route file for the interface on the mounted volume. For a disabled interface, AWS points to ifcfg-eth0 and the ONBOOT setting. Before you run any file system repair tool such as fsck or xfs_repair, AWS advises backing up the file system first. Taking an EBS snapshot of the volume before you edit it is a simple way to keep a way back.

Fix 3: AWSSupport-ExecuteEC2Rescue

According to the Systems Manager documentation, the runbook deploys a temporary CloudFormation stack, creates a temporary VPC unless you give it a subnet, launches an SSM-enabled helper instance in the same Availability Zone, stops your instance, creates a backup, and attaches the root volume to the helper. After EC2Rescue runs, it reattaches the volume, restarts your instance, and removes the temporary resources.

Know the limits before you start:

  • Instances with encrypted root volumes are not supported.
  • Without a subnet ID, it needs room for a new VPC. The default quota is five VPCs per Region, and the run fails without changing the instance if you hit it.
  • A backup AMI named AWSSupport-EC2Rescue:<instance-id> stays in your account afterward.
  • The helper instance type defaults to t2.medium.

The documentation does not say that this runbook repairs a missing custom route, so treat it as a tool for common OS issues and confirm what its modules cover. For a specific config file you already know is wrong, the manual rescue instance is often more direct.

Network cables plugged into a patch panel in a data center
One missing route can cut a server off from every cable it is plugged into. Photo: Taylor Vick / Unsplash

Fix 4: Replace the root volume from a snapshot

If you have a snapshot from before the bad change, this can be the fastest path. AWS documentation says the instance stays on the same host, keeps its private and public IP addresses and DNS name, and keeps instance store and non-root EBS volumes attached. The instance is rebooted automatically during the task, and if the task fails, the original root volume stays attached.

The trade-off is data. Anything written to the root volume after the snapshot is lost on the new volume. The original volume is kept unless you choose to delete it, so you can still mount it on a rescue instance and copy files off. The snapshot must come from the instance’s current or previous root volume, and the instance must be running.

Method Needs setup in advance Stops the instance Best for
EC2 Serial Console Yes: account access, password user, Nitro No Quick edits to network config in place
Rescue instance (jumphost) No Yes Any EBS-backed instance, precise file fixes
AWSSupport-ExecuteEC2Rescue IAM permissions; no encrypted root Yes Automated repair of common OS issues
Replace root volume A snapshot from before the change No (it reboots) Rolling back a bad change when root data can be restored

How to keep this from happening again

Lessons from my case and the AWS guidance come down to a short checklist:

  • Persist routes: if you add a route by hand, write it to the interface route file in the same change. A route that lives only in memory will not survive the next reboot.
  • Test the reboot: after a network change, plan one controlled reboot while people are ready to fix it, instead of finding out during the next patch night.
  • Enable the serial console early: configure account access and a password-based user on critical Nitro instances now.
  • Snapshot before changes: a fresh EBS snapshot makes root volume replacement possible.
  • Alarm on status checks: a CloudWatch alarm can recover an instance after system check failures when it uses only EBS volumes and a supported instance type.
  • Keep a jumphost path: know which healthy instance in the same Availability Zone can act as a rescue instance and who has permission to move volumes.

If cost reviews are part of your change process, my guide on AWS Pricing Calculator vs Real Bill: 6 Costs It Misses covers the line items, such as EBS snapshots, that teams often forget to budget.

Server rack filled with network and electronic equipment
Persisting routes and testing reboots ahead of time prevents most of these outages. Photo: Valentin Lacoste / Unsplash

FAQ

Why is my EC2 instance unreachable after reboot and failing the reachability check?

Most often the guest OS came back with a broken network or boot configuration, such as a lost route, a disabled interface, or a bad fstab entry. AWS lists incorrect networking or startup configuration as a typical cause. Read the system log to find the exact error.

Will rebooting the EC2 instance again fix it?

Sometimes, if the problem was temporary. If the configuration on disk is wrong, such as a route that was never saved, another reboot brings back the same state. You need the serial console, a rescue instance, or a root volume replacement.

Will AWS fix a failed instance status check for me?

No. AWS says instance status checks detect problems that require your involvement to repair, such as incorrect networking or startup configuration. System status check failures are the ones that need AWS involvement, and stopping and starting an EBS-backed instance is the usual first step for those.

Do I lose data when I stop the instance to detach the root volume?

Data on EBS volumes stays. Data on instance store volumes is erased when you stop the instance, and the public IP changes unless you use an Elastic IP. Take a snapshot of the root volume before you edit it.

What is the difference between a jumphost and a rescue instance?

A jumphost is any server you can reach that gives you access to others in the network. AWS calls an instance used to mount and fix another instance’s root volume a rescue instance. In practice, a jumphost in the same Availability Zone can serve as the rescue instance.

1 thought on “EC2 Instance Unreachable After Reboot: A Lost Route Fix”

  1. Pingback: RDS for Oracle vs EC2: Licensing, Cost and Ops (2026)

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top