gcp vm (compute) - forcing it to use a cloud NAT router
We can configure the VM to use cloud NAT router instead of its public external ip. First we have to create a cloud NAT router.
Let's create our cloud NAT and cloud router first. In this configuration we will be attaching it to default VPC network.
It should give you an public IP.
Next, let's create our VM and configure it to
- use default network
- disable public ip creation by setting it to none, by setting External IP to none - as shown here:-
And when try to et the default IP use for your network, you will get it using the cloud router IP.
Comments