LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

openstack-subnet

manages IP subnets within OpenStack networks

TLDR

List subnets
$ openstack subnet list
copy
Create subnet
$ openstack subnet create --network [network] --subnet-range [192.168.1.0/24] [subnet_name]
copy
Show subnet details
$ openstack subnet show [subnet_name]
copy
Delete subnet
$ openstack subnet delete [subnet_name]
copy

SYNOPSIS

openstack subnet command [options]

DESCRIPTION

openstack subnet manages IP subnets within OpenStack networks. Configure IP ranges, DHCP, DNS, and routing for virtual networks. Part of OpenStack unified CLI.

PARAMETERS

list

List subnets.
create name
Create subnet.
delete name
Delete subnet.
show name
Show subnet details.
--network network
Parent network.
--subnet-range cidr
IP address range in CIDR.
--gateway ip
Gateway IP address.
--dhcp / --no-dhcp
Enable or disable DHCP on the subnet (default: enabled).
--dns-nameserver ip
DNS server address (repeat for multiple).
--allocation-pool start=IP,end=IP
Restrict DHCP allocation to a range within the subnet (repeatable).
--ip-version 4|6
IP version of the subnet (default: 4).
--ipv6-address-mode MODE
IPv6 address mode: slaac, dhcpv6-stateful, or dhcpv6-stateless.
--ipv6-ra-mode MODE
IPv6 router advertisement mode (same values as --ipv6-address-mode).
--host-route destination=CIDR,gateway=IP
Add a static host route (repeatable).
--subnet-pool NAME
Allocate the range from a subnet pool instead of specifying --subnet-range directly.

SEE ALSO

Copied to clipboard
Kai