--
© 2018 Google Inc. 1600 Amphitheatre Parkway, Mountain View, CA 94043
Email preferences: You received this email because you signed up for the Google Compute Engine Discussion Google Group (gce-dis...@googlegroups.com) to participate in discussions with other members of the Google Compute Engine community and the Google Compute Engine Team.
---
You received this message because you are subscribed to the Google Groups "gce-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gce-discussio...@googlegroups.com.
To post to this group, send email to gce-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gce-discussion/ffa53cc3-54b2-4415-ba8c-b3e56d539926%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.142.0.1 * 255.255.255.255 UH 0 0 0 eth0 link-local * 255.255.0.0 U 1002 0 0 eth0
I compared that to a pre-upgraded snapshot still running CentOS 6.9, which showed a default gateway was present:
[root@instance-2 sysconfig]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.128.0.1 * 255.255.255.255 UH 0 0 0 eth0 link-local * 255.255.0.0 U 1002 0 0 eth0 default 10.128.0.1 0.0.0.0 UG 0 0 0 eth0
[david@instance-1 network-scripts]$ sudo route add default gw 10.142.0.1 eth0 [sudo] password for david: [david@instance-1 network-scripts]$ route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 10.142.0.1 * 255.255.255.255 UH 0 0 0 eth0 link-local * 255.255.0.0 U 1002 0 0 eth0 default 10.142.0.1 0.0.0.0 UG 0 0 0 eth0
After this, I was able to connect to my instance as normal. I hope this helps with your situation too!
This is a known issue when updating to kernel 2.6.32-754 that is affecting both Red Hat, and CentOS images, and seems related to this DHCP update. The Compute Engine team are already aware of this issue.
Meanwhile, and in addition to the great suggestions above, you may also use a startup script ( add the default gateway IP address) to fix this issue, and then restart your instance.
#!/bin/bash
route add default gw [default_gateway_ip] eth0
For further information/updates about this issue, you may check this issue tracker link.