By default, Nebius AI Cloud networks and subnets provide private IP addresses from specific CIDR blocks. These blocks depend on the network’s or subnet’s region. If you need private addresses outside these blocks, add the required CIDR block to the network’s pool. Next, create a subnet with that CIDR block in the network. As a result, you can allocate random or specific addresses from this block in the required network or subnet.Documentation Index
Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
-
Make sure you are in a group that has at least the
editorrole within your tenant; for example, the defaulteditorsgroup. You can check this in the Administration → IAM section of the web console. - Install and initialize the Nebius AI Cloud CLI.
-
Install jq to extract IDs and tokens from the JSON data returned by the Nebius AI Cloud CLI:
How to allocate addresses
-
Determine what CIDR block you need and save it to an environment variable:
For example, you can specify the
172.16.0.0/24CIDR block. -
Get the ID of the required network and save it to an environment variable:
-
Get the ID of this network’s private pool and save it to an environment variable:
As this command contains
pools[0], it saves the ID of the private pool that goes first in the network specification. If you need a different pool, specify its index inpools[<index>]. To check the order of pools, runnebius vpc network list. -
Add the
CUSTOM_SUBNET_CIDRblock to the private pool withPRIVATE_POOL_ID: -
Create a new subnet with this private pool and save the subnet ID to an environment variable:
-
Create an allocation within this subnet and save its ID to an environment variable:
The
--ipv4-private-cidrparameter contains the IP address for the allocation:- If you use this parameter, make sure that the specified IP address is in the CIDR block of the private pool.
- If you run the command without using the
--ipv4-private-cidrparameter, it creates an allocation with a random IP address within the specified CIDR block.