Sehen Sie sich die unterstützten und nicht unterstützten Funktionen in VPC-Netzwerken mit dem RDMA-Netzwerkprofil an. Wenn Sie versuchen, nicht unterstützte Funktionen zu konfigurieren, gibt Google Cloud einen Fehler zurück.
Netzwerk mit dem RDMA-Netzwerkprofil erstellen
So erstellen Sie ein VPC-Netzwerk mit dem RDMA-Netzwerkprofil:
Console
Rufen Sie in der Google Cloud -Console die Seite VPC-Netzwerke auf.
Geben Sie im Feld Name einen Namen für das VPC-Netzwerk ein.
Wählen Sie im Feld Maximale Übertragungseinheit (MTU) die Option 8896 aus.
Wählen Sie Netzwerkprofil konfigurieren aus und gehen Sie so vor:
Wählen Sie im Feld Zone die Zone des Netzwerkprofils aus, das Sie verwenden möchten.
Das von Ihnen erstellte VPC-Netzwerk ist auf diese Zone beschränkt. Das bedeutet, dass Sie Ressourcen im Netzwerk nur in dieser Zone erstellen können.
Wählen Sie das RDMA-Netzwerkprofil für die zuvor ausgewählte Zone aus, z. B. europe-west1-b-vpc-roce.
Wenn Sie sich die unterstützten Funktionen für das ausgewählte Netzwerkprofil ansehen möchten, klicken Sie auf Vorschau der Netzwerkprofilfunktionen anzeigen.
Legen Sie im Abschnitt Neues Subnetz folgende Konfigurationsparameter für das Subnetz fest:
Geben Sie im Feld Name einen Namen für das Subnetz ein.
Wählen Sie im Feld Region die Region aus, in der das Subnetz erstellt werden soll. Diese Region muss der Zone des von Ihnen konfigurierten Netzwerkprofils entsprechen. Wenn Sie das Netzwerkprofil beispielsweise für europe-west1-b konfiguriert haben, müssen Sie das Subnetz in europe-west1 erstellen.
Geben Sie einen IPv4-Bereich ein. Dieser Bereich ist der primäre IPv4-Bereich für das Subnetz.
Wenn Sie einen Bereich auswählen, der keine RFC 1918-Adresse ist, prüfen Sie, ob der Bereich mit einer vorhandenen Konfiguration in Konflikt steht. Weitere Informationen finden Sie unter IPv4-Subnetzbereiche.
Klicken Sie auf Fertig.
Klicken Sie auf Subnetz hinzufügen, um weitere Subnetze zu erstellen. Wiederholen Sie dazu die vorherigen Schritte.
Sie können dem Netzwerk auch weitere Subnetze hinzufügen, nachdem Sie es erstellt haben.
NETWORK_PROFILE: Der zonenspezifische Name des Netzwerkprofils, z. B. europe-west1-b-vpc-roce
Das RDMA-Netzwerkprofil ist nicht in allen Zonen verfügbar. Wenn Sie die zonenbezogenen Instanzen des verfügbaren Netzwerkprofils aufrufen möchten, folgen Sie der Anleitung zum Auflisten von Netzwerkprofilen.
NETWORK: der Name des VPC-Netzwerk, das das neue Subnetz enthält
PRIMARY_RANGE: der primäre IPv4-Bereich für das neue Subnetz in CIDR-Notation. Weitere Informationen finden Sie unter IPv4-Subnetzbereiche.
REGION: die Google Cloud Region, in der das neue Subnetz erstellt wird. Sie muss mit der Zone des konfigurierten Netzwerkprofils übereinstimmen. Wenn Sie beispielsweise das Netzwerkprofil in der Zone europe-west1-b mit dem Netzwerkprofil namens europe-west1-b-vpc-roce konfiguriert haben, müssen Sie das Subnetz in der Region europe-west1 erstellen.
API
Senden Sie zum Erstellen des Netzwerks eine POST-Anfrage an die Methode networks.insert und geben Sie die Eigenschaft networkProfile an.
POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/networks
{
"autoCreateSubnetworks": false,
"name": "NETWORK",
"networkProfile": "NETWORK_PROFILE"
}
Ersetzen Sie Folgendes:
PROJECT_ID: die ID des Projekts, in dem das VPC-Netzwerk erstellt wird
NETWORK: der Name des VPC-Netzwerks
NETWORK_PROFILE: Der zonenspezifische Name des Netzwerkprofils, z. B. europe-west1-b-vpc-roce
Das RDMA-Netzwerkprofil ist nicht in allen Zonen verfügbar. Wenn Sie die zonenbezogenen Instanzen des verfügbaren Netzwerkprofils aufrufen möchten, folgen Sie der Anleitung zum Auflisten von Netzwerkprofilen.
Wenn Sie Subnetze hinzufügen möchten, stellen Sie eine POST-Anfrage an die Methode subnetworks.insert.
POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks
{
"ipCidrRange": "IP_RANGE",
"network": "NETWORK_URL",
"name": "SUBNET"
}
Ersetzen Sie Folgendes:
PROJECT_ID: Die ID des Projekts, das das zu ändernde VPC-Netzwerk enthält
REGION: der Name der Google Cloud Region, in der das Subnetz hinzugefügt wird. Diese Region muss der Zone des von Ihnen konfigurierten Netzwerkprofils entsprechen. Wenn Sie beispielsweise das Netzwerkprofil in der Zone europe-west1-b mit dem Netzwerkprofil namens europe-west1-b-vpc-roce konfiguriert haben, müssen Sie das Subnetz in der Region europe-west1 erstellen.
IP_RANGE: der primäre IPv4-Adressbereich für das Subnetz.
Weitere Informationen finden Sie unter IPv4-Subnetzbereiche.
NETWORK_URL: die URL des VPC-Netzwerk, dem Sie das Subnetz hinzufügen.
[[["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-08-19 (UTC)."],[],[],null,["# Create a VPC network for RDMA NICs\n==================================\n\nThis page describes how to create a VPC network with the\nRDMA network profile provided by Google Cloud.\n\nYou only need to configure a network profile if you want to run workloads\nthat require `MRDMA` NICs as described in [RDMA network profile overview](/vpc/docs/rdma-network-profiles).\nOtherwise, [create a regular VPC network](/vpc/docs/create-modify-vpc-networks)\nwithout a network profile.\n\nBefore you begin\n----------------\n\nMake sure that you review the\n[supported and unsupported features](/vpc/docs/rdma-network-profiles#supported-features) in\nVPC networks with the RDMA network profile. If you attempt to\nconfigure unsupported features, Google Cloud returns an error.\n\nCreate a network with the RDMA network profile\n----------------------------------------------\n\nTo create a VPC network with the RDMA network profile, do the\nfollowing. \n\n### Console\n\n1. In the Google Cloud console, go to the **VPC networks** page.\n\n\n [Go to VPC networks](https://console.cloud.google.com/networking/networks/list)\n\n \u003cbr /\u003e\n\n2. Click **Create VPC network**.\n\n3. In the **Name** field, enter a name for the network.\n\n4. In the **Maximum transmission unit (MTU)** field, select `8896`.\n\n5. Select **Configure network profile** and do the following:\n\n 1. In the **Zone** field, select the zone of the network profile that you want to use. The VPC network that you create is constrained to this zone, which means that you can only create resources in the network in this zone.\n 2. Select the RDMA network profile for the zone that you selected previously, such as `europe-west1-b-vpc-roce`.\n 3. To view the set of supported features for the network profile that you selected, click **Preview network profile features**.\n6. In the **New subnet** section, specify the following configuration\n parameters for a subnet:\n\n 1. In the **Name** field, enter a name for the subnet.\n 2. In the **Region** field, select the region in which to create the subnet. This region must correspond to the zone of the network profile that you configured. For example, if you configured the network profile for `europe-west1-b`, then you must create the subnet in `europe-west1`.\n 3. Enter an **IPv4 range** . This range is the [primary IPv4\n range](/vpc/docs/vpc#vpc_networks_and_subnets) for the subnet.\n\n If you select a range that is not an RFC 1918 address, confirm that\n the range doesn't conflict with an existing configuration. For more\n information, see [IPv4 subnet\n ranges](/vpc/docs/subnets#ipv4-ranges).\n 4. Click **Done**.\n\n7. To add more subnets, click **Add subnet** and repeat the previous steps.\n You can also [add more subnets](/vpc/docs/create-modify-vpc-networks#add-subnets) to the network after you\n have created the network.\n\n8. Click **Create**.\n\n### gcloud\n\n1. To create the network, use the [`gcloud compute networks create` command](/sdk/gcloud/reference/compute/networks/create)\n and specify the `--network-profile` flag.\n\n ```\n gcloud compute networks create NETWORK \\\n --subnet-mode=custom \\\n --network-profile=NETWORK_PROFILE\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eNETWORK\u003c/var\u003e: a name for the VPC network\n - \u003cvar translate=\"no\"\u003eNETWORK_PROFILE\u003c/var\u003e: the zone-specific name of the\n network profile, such as `europe-west1-b-vpc-roce`\n\n The RDMA network profile isn't available in all zones. To view the\n zone-specific instances of the network profile that are available,\n follow the instructions to\n [list network profiles](/vpc/docs/view-network-profiles#list_network_profiles).\n2. To add subnets, use the [`gcloud compute networks subnets create` command](/sdk/gcloud/reference/compute/networks/subnets/create).\n\n ```\n gcloud compute networks subnets create SUBNET \\\n --network=NETWORK \\\n --range=PRIMARY_RANGE \\\n --region=REGION\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eSUBNET\u003c/var\u003e: a name for the new subnet\n - \u003cvar translate=\"no\"\u003eNETWORK\u003c/var\u003e: the name of the VPC network that contains the new subnet\n - \u003cvar translate=\"no\"\u003ePRIMARY_RANGE\u003c/var\u003e: the primary IPv4 range for the new subnet, in CIDR notation. For more information, see [IPv4 subnet ranges](/vpc/docs/subnets#ipv4-ranges).\n - \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the Google Cloud region in which the new subnet is created. This must correspond to the zone of the network profile that you configured. For example, if you configured the network profile in the `europe-west1-b` zone by using the network profile named `europe-west1-b-vpc-roce`, then you must create the subnet in the `europe-west1` region.\n\n### API\n\n1. To create the network, make a `POST` request to the\n [`networks.insert` method](/compute/docs/reference/rest/v1/networks/insert)\n and specify the `networkProfile` property.\n\n ```\n POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/global/networks\n {\n \"autoCreateSubnetworks\": false,\n \"name\": \"NETWORK\",\n \"networkProfile\": \"NETWORK_PROFILE\"\n }\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project where the VPC network is created\n - \u003cvar translate=\"no\"\u003eNETWORK\u003c/var\u003e: a name for the VPC network\n - \u003cvar translate=\"no\"\u003eNETWORK_PROFILE\u003c/var\u003e: the zone-specific name of the\n network profile, such as `europe-west1-b-vpc-roce`\n\n The RDMA network profile isn't available in all zones. To view the\n zone-specific instances of the network profile that are available,\n follow the instructions to\n [list network profiles](/vpc/docs/view-network-profiles#list_network_profiles).\n2. To add subnets, make a `POST` request to the\n [`subnetworks.insert` method](/compute/docs/reference/rest/v1/subnetworks/insert).\n\n ```\n POST https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/subnetworks\n {\n \"ipCidrRange\": \"IP_RANGE\",\n \"network\": \"NETWORK_URL\",\n \"name\": \"SUBNET\"\n }\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of the project that contains the VPC network to modify\n - \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the name of the Google Cloud region where the subnet is added. This region must correspond to the zone of the network profile that you configured. For example, if you configured the network profile in the `europe-west1-b` zone by using the network profile named `europe-west1-b-vpc-roce`, then you must create the subnet in the `europe-west1` region.\n - \u003cvar translate=\"no\"\u003eIP_RANGE\u003c/var\u003e: the primary IPv4 address range for the subnet. For more information, see [IPv4 subnet ranges](/vpc/docs/subnets#ipv4-ranges).\n - \u003cvar translate=\"no\"\u003eNETWORK_URL\u003c/var\u003e: the URL of the VPC network where you're adding the subnet\n - \u003cvar translate=\"no\"\u003eSUBNET\u003c/var\u003e: a name for the subnet\n\nWhat's next\n-----------\n\n- [Create VMs in your network](/ai-hypercomputer/docs/create/create-vm)\n- [Get an overview of network profiles](/vpc/docs/network-profiles)\n- [Learn about the RDMA network profile](/vpc/docs/rdma-network-profiles)"]]