Reverting to the Default Advertisement

If you no longer need to advertise certain subnets or custom IP ranges, you can revert back to the default behavior.

By default, Cloud Router advertises all available subnets, including new ones. For BGP sessions, the default behavior is to inherit the Cloud Router's behavior.

To revert advertisements on a Cloud Router:

Console


  1. Go to the Cloud Router page in the Google Cloud Platform Console.
    Cloud Router list
  2. Select the Cloud Router to update.
  3. In the Cloud Router's detail page, select Edit.
  4. Expand the Advertised routes section.
  5. For the Routes, select Advertise all subnets visible to the Cloud Router (Default).
  6. Select Save to revert to the default advertisement.

gcloud


Run the update command and use the --set-advertisement-mode flag to change the advertisement mode to default, as shown in the following example:

gcloud compute routers update my-router --set-advertisement-mode default

To revert advertisements on a BGP session:

Console


  1. Go to the Cloud Router page in the Google Cloud Platform Console.
    Cloud Router list
  2. Select the Cloud Router that contains the BGP session to update.
  3. In the Cloud Router's detail page, select the BGP session to update.
  4. In the BGP session details page, select Edit.
  5. For the Routes, select Advertise all subnets visible to the Cloud Router (Default).
  6. Select Save to revert to the default advertisement.

gcloud


Run the update-bgp-peer command and use the --set-advertisement-mode flag change the advertisement mode to default, as shown in the following example:

gcloud compute routers update-bgp-peer my-router \
    --peer-name my-bgp-session \
    --set-advertisement-mode default

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Router