Stay organized with collections
Save and categorize content based on your preferences.
Manage BGP announcement (v2)
When you create v2 public advertised prefixes and v2 public delegated prefixes,
they are not automatically announced. You choose when to announce or
withdraw the prefixes.
Specifications
Announcing a public advertised prefix announces the whole public advertised
prefix to the internet.
Announcing a public delegated prefix announces that public delegated prefix
within Google Cloud.
You can announce a public delegated prefix without announcing the parent
public advertised prefix. In this configuration, the public delegated prefix
is announced within Google Cloud, and isn't announced to the internet.
You must announce at least one public delegated prefix before you can
announce the parent public advertised prefix.
You can't withdraw announcement for a public delegated prefix if it is the
only public delegated prefix being announced for the parent public
advertised prefix. First withdraw the parent public advertised prefix, then
withdraw the public delegated prefix.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-03 UTC."],[],[],null,["# Manage BGP announcement (v2)\n============================\n\nWhen you create v2 public advertised prefixes and v2 public delegated prefixes,\nthey are not automatically announced. You choose when to announce or\nwithdraw the prefixes.\n\nSpecifications\n--------------\n\n- Announcing a public advertised prefix announces the whole public advertised prefix to the internet.\n- Announcing a public delegated prefix announces that public delegated prefix within Google Cloud.\n- You can announce a public delegated prefix without announcing the parent public advertised prefix. In this configuration, the public delegated prefix is announced within Google Cloud, and isn't announced to the internet.\n- You must announce at least one public delegated prefix before you can announce the parent public advertised prefix.\n- You can't withdraw announcement for a public delegated prefix if it is the only public delegated prefix being announced for the parent public advertised prefix. First withdraw the parent public advertised prefix, then withdraw the public delegated prefix.\n- Announce and withdraw requests are rate limited. For more information, see [quotas for bring your own IP](/vpc/docs/quota#byoip).\n\nBefore you begin\n----------------\n\n- Verify that your public delegated prefix uses v2.\n\n\n Run this command to verify which version you are using: \n\n ```\n gcloud compute public-delegated-prefixes describe PDP_NAME \\\n --region=REGION | grep byoipApiVersion\n ```\n\n \u003cbr /\u003e\n\n### Announce BGP advertisement for a prefix\n\n### Console\n\n1. In the Google Cloud console, go to **Bring your own IP**.\n\n [Go to Bring your own IP](https://console.cloud.google.com/networking/byoip)\n2. Select the prefix that you want to announce.\n\n3. Click **Announce**.\n\n A dialog is displayed to confirm announcing the public advertised\n prefix.\n4. Click **Announce** to confirm.\n\n### gcloud\n\n- To announce a public delegated prefix, use the\n [`public-delegated-prefixes update`\n command](/sdk/gcloud/reference/compute/public-delegated-prefixes/update).\n\n ```\n gcloud compute public-delegated-prefixes update PDP_NAME \\\n --region=PDP_REGION \\\n --announce-prefix\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePDP_NAME\u003c/var\u003e: the public delegated prefix that you want\n to announce.\n\n - \u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e: the region of the public delegated\n prefix.\n\n- To announce a public advertised prefix, use the\n [`public-advertised-prefixes update`\n command](/sdk/gcloud/reference/compute/public-advertised-prefixes/update).\n\n ```\n gcloud compute public-advertised-prefixes update PAP_NAME \\\n --announce-prefix\n ```\n\n Replace \u003cvar translate=\"no\"\u003ePAP_NAME\u003c/var\u003e with the name of the public advertised\n prefix that you want to announce.\n\n### Withdraw advertisement of a prefix\n\n### Console\n\n1. In the Google Cloud console, go to **Bring your own IP**.\n\n [Go to Bring your own IP](https://console.cloud.google.com/networking/byoip)\n2. Select the prefix that you want to withdraw.\n\n3. Click **Withdraw**.\n\n A dialog is displayed to confirm withdrawing the public advertised\n prefix.\n4. Click **Withdraw** to confirm.\n\n### gcloud\n\n- To withdraw a public delegated prefix, use the\n [`public-delegated-prefixes update`\n command](/sdk/gcloud/reference/compute/public-delegated-prefixes/update).\n\n ```\n gcloud compute public-delegated-prefixes update PDP_NAME \\\n --region=PDP_REGION \\\n --withdraw-prefix\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePDP_NAME\u003c/var\u003e: the public delegated prefix that you want\n to withdraw.\n\n - \u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e: the region of the public delegated\n prefix.\n\n- To withdraw a public advertised prefix, use the\n [`public-advertised-prefixes update`\n command](/sdk/gcloud/reference/compute/public-advertised-prefixes/update).\n\n ```\n gcloud compute public-advertised-prefixes update PAP_NAME \\\n --withdraw-prefix\n ```\n\n Replace \u003cvar translate=\"no\"\u003ePAP_NAME\u003c/var\u003e with the name of the public advertised\n prefix that you want to withdraw."]]