vpc/Vm External Ip Connectivity

Troubleshooting for common issues which affect VM connectivity to external IP addresses.

Product: Virtual Private Cloud Kind: Debugging Tree

Description

This runbook investigates components required for VMs to establish connectivity to external IP addresses

Areas Examined:

  • VM Instance Status: Evaluates the VM’s current state, performance - ensuring that it is running and not impaired by high CPU usage, insufficient memory, or disk space issues that might disrupt normal operations.

  • VM Configuration: Checks the source nic configuration on the VM if it has an External IP address or not.

  • GCE Network Connectivity Tests: Reviews applicable routing and firewall rules to verify that there are no network barriers preventing the VM from connection to an external IP address.

  • NATGW Checks: For source nic without an External IP address, verify the VM is served by a Public NAT Gateway and check there are no issues on the NATGW.

Executing this runbook

gcpdiag runbook vpc/vm-external-ip-connectivity \
  -p project_id=value \
  -p name=value \
  -p id=value \
  -p dest_ip=value \
  -p dest_port=value \
  -p protocol_type=value \
  -p src_nic=value \
  -p zone=value

Parameters

Name Required Default Type Help
project_id True None str The Project ID of the resource under investigation
name True None str The name of the GCE VM
id False None int The instance ID of the GCE VM
dest_ip True None IPv4Address External IP the VM is connecting to
dest_port False 443 int External IP the VM is connecting to
protocol_type False tcp str Protocol used to connect to SSH
src_nic True None str VM source NIC
zone True None str The zone of the target GCE VM

Get help on available commands

gcpdiag runbook --help

Potential Steps