Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.

8.222. neutron subnet-create


usage: neutron subnet-create [-h] [-f {json,shell,table,value,yaml}]
                             [-c COLUMN] [--max-width <integer>] [--noindent]
                             [--prefix PREFIX] [--request-format {json}]
                             [--tenant-id TENANT_ID] [--name NAME]
                             [--description DESCRIPTION]
                             [--gateway GATEWAY_IP | --no-gateway]
                             [--allocation-pool start=IP_ADDR,end=IP_ADDR]
                             [--host-route destination=CIDR,nexthop=IP_ADDR]
                             [--dns-nameserver DNS_NAMESERVER]
                             [--disable-dhcp] [--enable-dhcp]
                             [--ip-version {4,6}]
                             [--ipv6-ra-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--ipv6-address-mode {dhcpv6-stateful,dhcpv6-stateless,slaac}]
                             [--subnetpool SUBNETPOOL]
                             [--use-default-subnetpool]
                             [--prefixlen PREFIX_LENGTH] [--segment SEGMENT]
                             NETWORK [CIDR]
Create a subnet for a given tenant.

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.

Red Hat logoGithubredditYoutubeTwitter

Lernen

Testen, kaufen und verkaufen

Communitys

Über Red Hat Dokumentation

Wir helfen Red Hat Benutzern, mit unseren Produkten und Diensten innovativ zu sein und ihre Ziele zu erreichen – mit Inhalten, denen sie vertrauen können. Entdecken Sie unsere neuesten Updates.

Mehr Inklusion in Open Source

Red Hat hat sich verpflichtet, problematische Sprache in unserem Code, unserer Dokumentation und unseren Web-Eigenschaften zu ersetzen. Weitere Einzelheiten finden Sie in Red Hat Blog.

Über Red Hat

Wir liefern gehärtete Lösungen, die es Unternehmen leichter machen, plattform- und umgebungsübergreifend zu arbeiten, vom zentralen Rechenzentrum bis zum Netzwerkrand.

Theme

© 2026 Red Hat
Nach oben