docs/doc/source/datanet/openstack/managing-ip-address-pools-using-the-cli.rst
Ron Stone f125a8b892 Remove spurious escapes (r8,dsR8)
This change addresses a long-standing issue in rST documentation imported from XML.
That import process added backslash escapes in front of various characters. The three
most common being '(', ')', and '_'.
These instances are removed.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Id43a9337ffcd505ccbdf072d7b29afdb5d2c997e
2023-03-01 11:19:04 +00:00

2.9 KiB

Manage IP Address Pools Using the CLI

You can create and manage address pools using the :

For more information about address pools, see Using IP Address Pools for Data Interfaces <using-ip-address-pools-for-data-interfaces>.

To make interface changes, you must lock the compute node first.

Create an Address pool

To create an address pool, use a command of the following form:

~(keystone_admin)]$ system addrpool-add <name> <network> <prefix> [-- order <assign_order>] [--ranges <addr_ranges>]

where:

<name>

is a name used to select the pool during data interface setup

<network>

is the subnet and mask for the range (for example, 192.168.1.0)

<prefix>

is the subnet mask, expressed in network prefix length notation (for example, 24)

<assign_order>

is the order in which to assign addresses from the pool (random or sequential). The default is random.

<addr_ranges>

is a set of IP address ranges to use for assignment, where the start and end IP address of each range is separated by a dash, and the ranges are separated by commas (for example, 192.168.1.10-192.168.1.20, 192.168.1.35-192.168.1.45). If no range is specified, the full range is used.

List address pools

To list existing address pools, use a command of the following form:

~(keystone_admin)]$ system addrpool-show <uuid>

where <uuid> is the universally unique identifier for the pool.

Modify an address pool

To modify an address pool, use a command of the following form:

~(keystone_admin)]$ system addrpool-modify <uuid> [--name <name>] [-- order <assign_order>] [--ranges <addr_ranges>]

Delete an address pool

To delete an address pool, use a command of the following form:

~(keystone_admin)]$ system addrpool-delete <uuid>

To use address pools with data interfaces, see Using IP Address Pools for Data Interfaces <using-ip-address-pools-for-data-interfaces>.

For more information about address pools, see Using IP Address Pools for Data Interfaces <using-ip-address-pools-for-data-interfaces>.