On Linux images, a default route is added when setting a static public IP address using the route command. This route does not persist if the computer is rebooted.
To resolve this for Red Hat-based distributions, a file should be added for the public interface when a static IP is set:
The contents should be:
I don't think this is currently a problem for Ubuntu.