Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Öffentliche delegierte Präfixe erstellen
Sie können öffentlich delegierte Präfixe erstellen, bevor das Erstellen des öffentlich beworbenen Präfixes abgeschlossen ist.
Der Typ des öffentlich beworbenen Präfixes bestimmt die Konfiguration des öffentlich delegierten Präfixes. Weitere Informationen finden Sie unter BYOIP-Konfigurationen.
Wir empfehlen, öffentlich beworbene Präfixe der Version 2 zum Erstellen regionaler öffentlich delegierter Präfixe zu verwenden. Sie müssen öffentlich beworbene Präfixe der Version 2 verwenden, um IPv6-Präfixe in Google Cloudzu importieren.
Wenn Sie ein globales öffentlich delegiertes Präfix erstellen, muss das übergeordnete öffentlich beworbene Präfix die folgenden Anforderungen erfüllen:
Das öffentlich beworbene Präfix wird nur für globale öffentlich delegierte Präfixe verwendet.
Das öffentlich beworbene Präfix befindet sich in einem Projekt, das auf die Zulassungsliste für globale Präfixe gesetzt wurde. Weitere Informationen finden Sie unter Globale öffentlich delegierte Präfixe.
Ein öffentlicher delegierter Präfixname kann nicht geändert werden, ohne die Ressource zu löschen und neu zu erstellen. Aus diesem Grund empfehlen wir Ihnen, allgemeine Namen zu erstellen, die nicht geändert werden müssen, z. B. pdp-203-0-113-0-25, wobei pdp den Ressourcentyp und 203-0-113-0-25 das spezifische Präfix und die spezifische Präfixlänge angibt.
Zum Erstellen eines globalen öffentlich delegierten Präfixes müssen Sie ein öffentlich beworbenes Präfix verwenden, das nur für globale öffentlich delegierte Präfixe verwendet wird und sich in einem Projekt befindet, das für globale Präfixe auf die Zulassungsliste gesetzt wurde.. Weitere Informationen finden Sie unter Globale öffentlich delegierte Präfixe.
Console
Rufen Sie in der Google Cloud Console Eigene IP-Adresse verwenden auf.
PDP_NAME: Der Name für das öffentlich delegierte Präfix, das Sie erstellen.
PAP_NAME: Der Name des öffentlich beworbenen Präfixes, das zum Erstellen des öffentlich delegierten Präfixes verwendet werden soll.
PDP_IP_RANGE: Der IPv4- oder IPv6-Adressbereich, der verwendet werden soll, um das öffentliche delegierte Präfix zu erstellen.
PDP_DESCRIPTION: Eine optionale Beschreibung für das öffentlich delegierte Präfix.
PDP_REGION: Region, in der Sie die öffentlich delegierten Präfixadressen verwenden möchten. Wenn Sie stattdessen ein globales öffentlich delegiertes Präfix verwenden möchten, ersetzen Sie --region=PDP_REGION durch --global.
Verwenden Sie den folgenden Befehl, um einen IPv6-PDP zu erstellen:
Status eines öffentlich delegierten Präfixes prüfen
Sie können den Status eines öffentlich delegierten Präfixes prüfen. Die verfügbaren Status für öffentliche delegierte Präfixe der Versionen 2 und 1 sind in der folgenden Tabelle beschrieben.
Status
Beschreibung
v2
v1
INITIALIZING
Das öffentlich delegierte Präfix wird initialisiert und es können noch keine Adressen erstellt werden.
READY_TO_ANNOUNCE
Das öffentlich delegierte Präfix wurde zurückgezogen und kann angekündigt werden.
PDP_NAME: Das öffentlich delegierte Präfix oder Unterpräfix, für das Sie Informationen abrufen möchten.
PDP_REGION: Die Region des öffentlichen delegierten Präfixes oder Unterpräfixes.
PDP_REGION: Region, in der Sie die öffentlich delegierten Präfixadressen verwenden möchten. Wenn Sie stattdessen ein globales öffentlich delegiertes Präfix verwenden möchten, ersetzen Sie --region=PDP_REGION durch --global.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-05 (UTC)."],[],[],null,["# Create public delegated prefixes\n================================\n\nYou can create [public delegated prefixes](/vpc/docs/bring-your-own-ip#pdp)\nbefore the public advertised prefix creation is complete.\n\nThe public advertised prefix type determines the configuration of the public\ndelegated prefix. For more information, see [Bring your own IP\nconfigurations](/vpc/docs/bring-your-own-ip#comparison).\n\nWe recommend that you use v2 public advertised prefixes to create regional\npublic delegated prefixes. You must use v2 public advertised prefixes to import\nIPv6 prefixes to Google Cloud.\n\nBefore you begin\n----------------\n\n- [Create a public advertised prefix](/vpc/docs/create-pap).\n- If you're creating a global public delegated prefix, the parent public advertised prefix must meet these requirements:\n - The public advertised prefix is used for global public delegated prefixes only.\n - The public advertised prefix is in a project that has been added to the allowlist for global prefixes. For more information, see [Global public\n delegated prefixes](/vpc/docs/bring-your-own-ip#global-pdp).\n\n### Roles\n\n\nTo get the permissions that\nyou need to complete the tasks in this guide,\n\nask your administrator to grant you the\n\n\n[Compute Public IP Admin](/iam/docs/roles-permissions/compute#compute.publicIpAdmin) (`roles/compute.publicIpAdmin`)\nIAM role on your project.\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n\nCreate public delegated prefixes\n--------------------------------\n\n\nA public delegated prefix name can't be changed without deleting and recreating\nthe resource. For this reason, we recommend that you create generic names that\nwon't need to change---for example, `pdp-203-0-113-0-25`, where `pdp`\ndenotes the resource type and `203-0-113-0-25` denotes the specific prefix and\nprefix length.\n\nTo create a global public delegated prefix, you must use a public advertised\nprefix that is used for global public delegated prefixes only, and is in a\nproject that has been added to the allowlist for global prefixes. For more\ninformation, see [Global public delegated\nprefixes](/vpc/docs/bring-your-own-ip#global-pdp). \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)\n\n1. Click the public advertised prefix that you want to delegate.\n2. Click **Create PDP**.\n3. For **Name**, enter a name for the public delegated prefix.\n4. For **Description**, enter an optional description for the public delegated prefix.\n5. If you're creating a public delegated prefix for an IPv4 address range, do the following:\n 1. Select a prefix length from the **Prefix length** list.\n 2. Select a range of IP addresses from the **IP addresses** list.\n 3. Select a **Scope** for the public delegated prefix.\n 4. If you selected **Regional** for the scope, select a **Region**.\n6. If you're creating a public delegated prefix for an IPv6 address range, do the following:\n 1. Select a prefix length from the **IPv6 prefix length** list.\n 2. Enter an IPv6 address range in **IPv6 range**.\n 3. Select a region from the **Region** list.\n7. Select a **Project** for the public delegated prefix.\n8. Click **Create**.\n\n### gcloud\n\nUse the [`public-delegated-prefixes\ncreate`\ncommand](/sdk/gcloud/reference/compute/public-delegated-prefixes/create).\n\n- To create an IPv4 PDP, use the following command:\n\n ```\n gcloud compute public-delegated-prefixes create PDP_NAME \\\n --public-advertised-prefix=PAP_NAME \\\n --range=PDP_IP_RANGE \\\n --region=PDP_REGION\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePDP_NAME\u003c/var\u003e: the name to use for the public delegated\n prefix that you are creating.\n\n - \u003cvar translate=\"no\"\u003ePAP_NAME\u003c/var\u003e: the name of the public advertised prefix to\n use to create the public delegated prefix.\n\n - \u003cvar translate=\"no\"\u003ePDP_IP_RANGE\u003c/var\u003e: the IPv4 or IPv6 address range to use\n to create the public delegated prefix.\n\n - \u003cvar translate=\"no\"\u003ePDP_DESCRIPTION\u003c/var\u003e: an optional description for the\n public delegated prefix.\n\n - \u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e: the region where you want to use the\n public delegated prefix addresses. If you want a global public delegated\n prefix instead, replace `--region=`\u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e with\n `--global`.\n\n- To create an IPv6 PDP, use the following commamd:\n\n ```\n gcloud compute public-delegated-prefixes create PDP_NAME \\\n --public-advertised-prefix=PAP_NAME \\\n --range=PDP_IP_RANGE \\\n --region=PDP_REGION \\\n --mode=DELEGATION\n ```\n\nCheck the status of a public delegated prefix\n---------------------------------------------\n\nYou can check the status of a public delegated prefix. The available statuses\nfor both v2 and v1 public delegated prefixes are described in the following\ntable.\n\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. The **Status** column displays the status for all public delegated\n prefixes.\n\n### gcloud\n\nTo describe the public delegated prefix and get its status, use the\n[`public-delegated-prefixes describe`\ncommand](/sdk/gcloud/reference/compute/public-delegated-prefixes/describe). \n\n```\ngcloud compute public-delegated-prefixes describe PDP_NAME \\\n --region=PDP_REGION \\\n --format='value(status)'\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePDP_NAME\u003c/var\u003e: the public delegated prefix or sub-prefix\n that you want to get information for.\n\n- \u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e: the region of the public delegated prefix\n or sub-prefix.\n\n- \u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e: the region where you want to use the\n public delegated prefix addresses. If you want a global public delegated\n prefix instead, replace `--region=`\u003cvar translate=\"no\"\u003ePDP_REGION\u003c/var\u003e with\n `--global`.\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- [Create IPv4 sub-prefixes and IP addresses](/vpc/docs/create-sub-prefixes-ip-addresses)\n- [Create IPv6 sub-prefixes](/vpc/docs/create-ipv6-sub-prefixes)"]]