Soru

Zorluk: ZorManaging Networking Resources

An organization manages an enterprise hybrid cloud setup connected to an on-premises data center via Cloud Interconnect. A Cloud Router named `rt-bgp-uscentral1` operating in region `us-central1` handles dynamic routing for the Virtual Private Cloud (VPC) network `production-vpc`. The Cloud Router is configured with custom route advertisements (`--advertisement-mode=CUSTOM`). A new subnet with CIDR range `10.50.0.0/20` was recently added to `production-vpc`. A network engineer must update `rt-bgp-uscentral1` to advertise this new subnet CIDR range to the on-premises BGP peer without overwriting existing custom IP advertisements or resetting the router mode, and then verify the live operational BGP session status and advertised routes. Which TWO `gcloud` commands should the engineer execute? (Select TWO.)

  1. Execute `gcloud compute routers add-advertised-ip-ranges rt-bgp-uscentral1 --region=us-central1 --ip-ranges=10.50.0.0/20`.Cevap
  2. B
    Execute `gcloud compute networks subnets update production-vpc --region=us-central1 --enable-bgp-advertisement`.
  3. Execute `gcloud compute routers get-status rt-bgp-uscentral1 --region=us-central1`.Cevap
  4. D
    Execute `gcloud compute routers update rt-bgp-uscentral1 --zone=us-central1-a --advertisement-mode=DEFAULT`.

Cevap

The engineer must run `gcloud compute routers add-advertised-ip-ranges rt-bgp-uscentral1 --region=us-central1 --ip-ranges=10.50.0.0/20` to append the new CIDR block to the custom route advertisements, and run `gcloud compute routers get-status rt-bgp-uscentral1 --region=us-central1` to inspect the live BGP session state and verified advertised routes.
The correct commands combine updating dynamic BGP route advertisements on a Cloud Router and verifying live operational status. The command `gcloud compute routers add-advertised-ip-ranges` specifically appends a new CIDR block to custom route advertisements without overwriting existing custom settings. The command `gcloud compute routers get-status` provides real-time visibility into the BGP session state and active prefix advertisements.

Adım Adım Çözüm

1
Identify the command to update custom advertised IP ranges on a Cloud Router.
Using `gcloud compute routers add-advertised-ip-ranges` with `--region=us-central1` appends `10.50.0.0/20` to the router's custom advertisement configuration.
Running `gcloud compute routers update` with `--set-advertised-ip-ranges` would replace existing custom ranges, whereas `add-advertised-ip-ranges` safely preserves existing custom routes.
2
Identify the command to inspect operational BGP peering status and active routes.
Running `gcloud compute routers get-status` returns details on BGP peer connectivity, state (e.g., ESTABLISHED), and advertised prefixes.
Cloud Router operational metrics and live Advertised Routes are displayed via `get-status` rather than configuration describe commands.

Anahtar Kavram

Cloud Router Custom Route Advertisements and Status Monitoring
Tahmini Süre:2m 0s
Bu soruyu puanla