Questo contenuto non è disponibile nella lingua selezionata.
8.222. neutron subnet-create
Positional arguments
- NETWORK
Network ID or name this subnet belongs to.
- CIDR
CIDR of subnet to create.
Optional arguments
- -h, --help
show this help message and exit
- --request-format {json}
DEPRECATED! Only JSON request format is supported.
- --tenant-id TENANT_ID
The owner tenant ID.
- --name NAME
Name of this subnet.
- --description DESCRIPTION
Description of this subnet.
- --gateway GATEWAY_IP
Gateway IP of this subnet.
- --no-gateway
Do not configure a gateway for this subnet.
- --allocation-pool
start=IP_ADDR,end=IP_ADDR
Allocation pool IP addresses for this subnet (This
option can be repeated).
- --host-route
destination=CIDR,nexthop=IP_ADDR
Additional route (This option can be repeated).
- --dns-nameserver DNS_NAMESERVER
DNS name server for this subnet (This option can be
repeated).
- --disable-dhcp
Disable DHCP for this subnet.
- --enable-dhcp
Enable DHCP for this subnet.
- --ip-version {4,6} IP
version to use, default is 4. Note that when
subnetpool is specified, IP version is determined from
the subnetpool and this option is ignored.
- --ipv6-ra-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}
IPv6 RA (Router Advertisement) mode.
- --ipv6-address-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}
IPv6 address mode.
- --subnetpool SUBNETPOOL
ID or name of subnetpool from which this subnet will
obtain a CIDR.
- --use-default-subnetpool
Use default subnetpool for ip_version, if it exists.
- --prefixlen PREFIX_LENGTH
Prefix length for subnet allocation from subnetpool.
- --segment SEGMENT ID
of segment with which this subnet will be
associated.