An administrator notices that virtual machine instances in a private subnet are dropping outbound internet connections during peak traffic hours due to Cloud NAT port exhaustion. A second static regional IP address named `nat-ip-2` has already been allocated in region `us-central1`. The administrator must add `nat-ip-2` to the active Cloud NAT gateway `prod-nat` attached to Cloud Router `prod-router` in region `us-central1` without removing the existing assigned static IP `nat-ip-1`. Which `gcloud` command should the administrator execute?
- gcloud compute routers nats update prod-nat --router=prod-router --region=us-central1 --nat-external-ip-pool=nat-ip-1,nat-ip-2Cevap
- Bgcloud compute routers nats update prod-nat --router=prod-router --region=us-central1 --nat-external-ip-pool=nat-ip-2
- Cgcloud compute nats update prod-nat --router=prod-router --region=us-central1 --nat-external-ip-pool=nat-ip-1,nat-ip-2
- Dgcloud compute routers nats update prod-nat --router=prod-router --zone=us-central1-a --nat-external-ip-pool=nat-ip-1,nat-ip-2
Cevap
Execute `gcloud compute routers nats update prod-nat --router=prod-router --region=us-central1 --nat-external-ip-pool=nat-ip-1,nat-ip-2` to include both static external IPs in the Cloud NAT pool.
Updating a Cloud NAT gateway's manually assigned external IP pool requires invoking `gcloud compute routers nats update` with the `--region` flag and listing all IP addresses intended for the pool in a comma-separated format under `--nat-external-ip-pool`.
Adım Adım Çözüm
Anahtar Kavram
Cloud NAT Configuration and IP Pool Management
Tahmini Süre:1m 30s