2015-01-20 16:44:50 -06:00
|
|
|
=======
|
|
|
|
network
|
|
|
|
=======
|
|
|
|
|
2016-04-24 19:17:36 -05:00
|
|
|
A **network** is an isolated Layer 2 networking segment. There are two types
|
|
|
|
of networks, project and provider networks. Project networks are fully isolated
|
|
|
|
and are not shared with other projects. Provider networks map to existing
|
|
|
|
physical networks in the data center and provide external network access for
|
|
|
|
servers and other resources. Only an OpenStack administrator can create
|
|
|
|
provider networks. Networks can be connected via routers.
|
|
|
|
|
2016-02-10 11:49:15 +08:00
|
|
|
Compute v2, Network v2
|
2015-01-20 16:44:50 -06:00
|
|
|
|
|
|
|
network create
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Create new network
|
|
|
|
|
|
|
|
.. program:: network create
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
os network create
|
2015-06-26 12:07:58 +08:00
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
2015-01-20 16:44:50 -06:00
|
|
|
[--enable | --disable]
|
|
|
|
[--share | --no-share]
|
2016-01-27 20:50:22 -06:00
|
|
|
[--availability-zone-hint <availability-zone>]
|
2016-03-14 15:35:46 +09:00
|
|
|
[--external [--default | --no-default] | --internal]
|
2016-04-04 11:17:29 +09:00
|
|
|
[--provider-network-type <provider-network-type>]
|
|
|
|
[--provider-physical-network <provider-physical-network>]
|
2016-04-08 10:05:17 +09:00
|
|
|
[--provider-segment <provider-segment>]
|
2016-04-19 13:46:15 +09:00
|
|
|
[--transparent-vlan | --no-transparent-vlan]
|
2015-01-20 16:44:50 -06:00
|
|
|
<name>
|
|
|
|
|
2015-02-16 23:21:00 -08:00
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
Owner's project (name or ID)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2015-02-16 23:21:00 -08:00
|
|
|
|
2015-06-26 12:07:58 +08:00
|
|
|
.. option:: --project-domain <project-domain>
|
|
|
|
|
|
|
|
Domain the project belongs to (name or ID).
|
|
|
|
This can be used in case collisions between project names exist.
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2015-06-26 12:07:58 +08:00
|
|
|
|
2015-01-20 16:44:50 -06:00
|
|
|
.. option:: --enable
|
|
|
|
|
|
|
|
Enable network (default)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2015-01-20 16:44:50 -06:00
|
|
|
|
|
|
|
.. option:: --disable
|
|
|
|
|
|
|
|
Disable network
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2015-01-20 16:44:50 -06:00
|
|
|
|
|
|
|
.. option:: --share
|
|
|
|
|
|
|
|
Share the network between projects
|
|
|
|
|
|
|
|
.. option:: --no-share
|
|
|
|
|
|
|
|
Do not share the network between projects
|
|
|
|
|
2016-01-27 20:50:22 -06:00
|
|
|
.. option:: --availability-zone-hint <availability-zone>
|
|
|
|
|
2016-04-12 15:57:17 +08:00
|
|
|
Availability Zone in which to create this network
|
2016-04-16 10:59:37 +08:00
|
|
|
(Network Availability Zone extension required,
|
2016-04-12 15:57:17 +08:00
|
|
|
repeat option to set multiple availability zones)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-02-25 16:35:57 +08:00
|
|
|
|
|
|
|
.. option:: --subnet <subnet>
|
|
|
|
|
|
|
|
IPv4 subnet for fixed IPs (in CIDR notation)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Compute version 2 only*
|
2016-01-27 20:50:22 -06:00
|
|
|
|
2016-03-14 15:35:46 +09:00
|
|
|
.. option:: --external
|
|
|
|
|
2016-04-16 10:59:37 +08:00
|
|
|
Set this network as an external network
|
|
|
|
(external-net extension required)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-03-14 15:35:46 +09:00
|
|
|
|
|
|
|
.. option:: --internal
|
|
|
|
|
|
|
|
Set this network as an internal network (default)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-03-14 15:35:46 +09:00
|
|
|
|
|
|
|
.. option:: --default
|
|
|
|
|
|
|
|
Specify if this network should be used as
|
|
|
|
the default external network
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-03-14 15:35:46 +09:00
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
2016-04-16 10:59:37 +08:00
|
|
|
Do not use the network as the default external network
|
|
|
|
(default)
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-03-14 15:35:46 +09:00
|
|
|
|
2016-04-04 11:17:29 +09:00
|
|
|
.. option:: --provider-network-type <provider-network-type>
|
|
|
|
|
|
|
|
The physical mechanism by which the virtual network is implemented.
|
2016-06-21 16:30:55 +07:00
|
|
|
The supported options are: flat, geneve, gre, local, vlan, vxlan.
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-04-04 11:17:29 +09:00
|
|
|
|
|
|
|
.. option:: --provider-physical-network <provider-physical-network>
|
|
|
|
|
|
|
|
Name of the physical network over which the virtual network is implemented
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-04-04 11:17:29 +09:00
|
|
|
|
2016-04-08 10:05:17 +09:00
|
|
|
.. option:: --provider-segment <provider-segment>
|
2016-04-04 11:17:29 +09:00
|
|
|
|
2016-06-10 14:44:50 -05:00
|
|
|
VLAN ID for VLAN networks or Tunnel ID for GENEVE/GRE/VXLAN networks
|
2016-04-01 16:16:08 -05:00
|
|
|
|
|
|
|
*Network version 2 only*
|
2016-04-04 11:17:29 +09:00
|
|
|
|
2016-04-19 13:46:15 +09:00
|
|
|
.. option:: --transparent-vlan
|
|
|
|
|
|
|
|
Make the network VLAN transparent
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --no-transparent-vlan
|
|
|
|
|
|
|
|
Do not make the network VLAN transparent
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2015-01-20 16:44:50 -06:00
|
|
|
.. _network_create-name:
|
|
|
|
.. describe:: <name>
|
|
|
|
|
|
|
|
New network name
|
|
|
|
|
|
|
|
network delete
|
|
|
|
--------------
|
|
|
|
|
|
|
|
Delete network(s)
|
|
|
|
|
|
|
|
.. program:: network delete
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
os network delete
|
|
|
|
<network> [<network> ...]
|
|
|
|
|
2015-12-12 01:19:20 +08:00
|
|
|
.. _network_delete-network:
|
2015-01-20 16:44:50 -06:00
|
|
|
.. describe:: <network>
|
|
|
|
|
2015-12-05 10:40:09 +08:00
|
|
|
Network(s) to delete (name or ID)
|
2015-01-20 16:44:50 -06:00
|
|
|
|
|
|
|
network list
|
|
|
|
------------
|
|
|
|
|
|
|
|
List networks
|
|
|
|
|
|
|
|
.. program:: network list
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
os network list
|
|
|
|
[--external]
|
|
|
|
[--long]
|
|
|
|
|
|
|
|
.. option:: --external
|
|
|
|
|
|
|
|
List external networks
|
|
|
|
|
|
|
|
.. option:: --long
|
|
|
|
|
|
|
|
List additional fields in output
|
|
|
|
|
|
|
|
network set
|
|
|
|
-----------
|
|
|
|
|
|
|
|
Set network properties
|
|
|
|
|
2016-04-01 16:16:08 -05:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2015-01-20 16:44:50 -06:00
|
|
|
.. program:: network set
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
os network set
|
|
|
|
[--name <name>]
|
|
|
|
[--enable | --disable]
|
|
|
|
[--share | --no-share]
|
2016-04-08 14:24:30 +09:00
|
|
|
[--external [--default | --no-default] | --internal]
|
2016-04-08 14:47:04 +09:00
|
|
|
[--provider-network-type <provider-network-type>]
|
|
|
|
[--provider-physical-network <provider-physical-network>]
|
|
|
|
[--provider-segment <provider-segment>]
|
2016-04-19 13:46:15 +09:00
|
|
|
[--transparent-vlan | --no-transparent-vlan]
|
2015-01-20 16:44:50 -06:00
|
|
|
<network>
|
|
|
|
|
|
|
|
.. option:: --name <name>
|
|
|
|
|
|
|
|
Set network name
|
|
|
|
|
|
|
|
.. option:: --enable
|
|
|
|
|
|
|
|
Enable network
|
|
|
|
|
|
|
|
.. option:: --disable
|
|
|
|
|
|
|
|
Disable network
|
|
|
|
|
|
|
|
.. option:: --share
|
|
|
|
|
|
|
|
Share the network between projects
|
|
|
|
|
|
|
|
.. option:: --no-share
|
|
|
|
|
|
|
|
Do not share the network between projects
|
|
|
|
|
2016-04-08 14:24:30 +09:00
|
|
|
.. option:: --external
|
|
|
|
|
|
|
|
Set this network as an external network.
|
2016-04-16 10:59:37 +08:00
|
|
|
(external-net extension required)
|
2016-04-08 14:24:30 +09:00
|
|
|
|
|
|
|
.. option:: --internal
|
|
|
|
|
|
|
|
Set this network as an internal network
|
|
|
|
|
|
|
|
.. option:: --default
|
|
|
|
|
2016-04-16 10:59:37 +08:00
|
|
|
Set the network as the default external network
|
2016-04-08 14:24:30 +09:00
|
|
|
|
|
|
|
.. option:: --no-default
|
|
|
|
|
|
|
|
Do not use the network as the default external network.
|
|
|
|
|
2016-04-08 14:47:04 +09:00
|
|
|
.. option:: --provider-network-type <provider-network-type>
|
|
|
|
|
|
|
|
The physical mechanism by which the virtual network is implemented.
|
2016-06-21 16:30:55 +07:00
|
|
|
The supported options are: flat, gre, local, vlan, vxlan.
|
2016-04-08 14:47:04 +09:00
|
|
|
|
|
|
|
.. option:: --provider-physical-network <provider-physical-network>
|
|
|
|
|
|
|
|
Name of the physical network over which the virtual network is implemented
|
|
|
|
|
|
|
|
.. option:: --provider-segment <provider-segment>
|
|
|
|
|
|
|
|
VLAN ID for VLAN networks or Tunnel ID for GRE/VXLAN networks
|
|
|
|
|
2016-04-19 13:46:15 +09:00
|
|
|
.. option:: --transparent-vlan
|
|
|
|
|
|
|
|
Make the network VLAN transparent
|
|
|
|
|
|
|
|
.. option:: --no-transparent-vlan
|
|
|
|
|
|
|
|
Do not make the network VLAN transparent
|
|
|
|
|
2015-12-12 01:19:20 +08:00
|
|
|
.. _network_set-network:
|
2015-01-20 16:44:50 -06:00
|
|
|
.. describe:: <network>
|
|
|
|
|
|
|
|
Network to modify (name or ID)
|
|
|
|
|
|
|
|
network show
|
|
|
|
------------
|
|
|
|
|
|
|
|
Display network details
|
|
|
|
|
|
|
|
.. program:: network show
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
os network show
|
|
|
|
<network>
|
|
|
|
|
2015-12-12 01:19:20 +08:00
|
|
|
.. _network_show-network:
|
2015-01-20 16:44:50 -06:00
|
|
|
.. describe:: <network>
|
|
|
|
|
|
|
|
Network to display (name or ID)
|