Creating subnets in the CLI

To create a subnet using the OpenStack client, use the subnet create command, as shown here:

The --project argument specifies the ID of the project that the subnet should be associated with and is only available to users with the admin role. This should be the same project associated with the parent network.

The --project-domain argument specifies the ID of the project domain that the subnet should be associated with and is only available to users with the admin role (this is not commonly used).

The --subnet-pool argument specifies the pool from which the subnet will obtain a CIDR.

The --use-default-subnet-pool ...

Get Learning OpenStack Networking - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.