GCP Load Balancer Local Routing Table

Test if the GCP Load Balancer is working by sending a curl command from the backend VM.

Assume the load balancer IP address is, and the VM is called vm-a1.


The end result is …

Page served from: vm-a1

Make sure there’s an entry in the local table that matches the IP of the load balancer.

ip route show table local | grep

If not, add it.

ip route add to local dev eth0 proto 66