External IPs not assigned within VM
问题 I have a couple of Centos 6 VMs that I am trying to setup. I assigned static IPs to them but when running ifconfig, I do not see the external IPs, just the internal IPs. Does Google not allow this capability? 回答1: In addition to what Anderson said, this is the command to query for the external IP from the instance itself: curl "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -H "Metadata-Flavor: Google" 回答2: DHCP only supports