Questo contenuto non è disponibile nella lingua selezionata.

2.403. openstack subnet set


usage: openstack subnet set [-h] [--name <name>] [--dhcp | --no-dhcp]
                            [--gateway <gateway>]
                            [--allocation-pool start=<ip-address>,end=<ip-address>]
                            [--dns-nameserver <dns-nameserver>]
                            [--host-route destination=<subnet>,gateway=<ip-address>]
                            <subnet>
Copy to Clipboard Toggle word wrap
Set subnet properties

Positional arguments

<subnet>


        Subnet to modify (name or ID)

Optional arguments

-h, --help


        show this help message and exit

--name <name>


        Updated name of the subnet

--dhcp


        Enable DHCP

--no-dhcp


        Disable DHCP

--gateway <gateway>


        Specify a gateway for the subnet. The options are:
      <ip-address>: Specific IP address to use as the
      gateway, 'none': This subnet will not use a gateway,
      e.g.: --gateway 192.168.9.1, --gateway none.

--allocation-pool


        start=<ip-address>,end=<ip-address>
      Allocation pool IP addresses for this subnet e.g.:
      start=192.168.199.2,end=192.168.199.254 (repeat option
      to add multiple IP addresses)

--dns-nameserver <dns-nameserver>


      DNS server for this subnet (repeat option to set
      multiple DNS servers)

--host-route


        destination=<subnet>,gateway=<ip-address>
      Additional route for this subnet e.g.:
      destination=10.10.0.0/16,gateway=192.168.71.254
      destination: destination subnet (in CIDR notation)
      gateway: nexthop IP address (repeat option to add
      multiple routes)

Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat