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
|
|
|
|
|
2016-12-20 09:18:55 +08:00
|
|
|
openstack 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-09-19 16:43:28 -05:00
|
|
|
[--description <description>]
|
2016-01-27 20:50:22 -06:00
|
|
|
[--availability-zone-hint <availability-zone>]
|
2016-06-29 09:48:04 -05:00
|
|
|
[--enable-port-security | --disable-port-security]
|
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-09-26 11:12:07 +01:00
|
|
|
[--qos-policy <qos-policy>]
|
2016-04-19 13:46:15 +09:00
|
|
|
[--transparent-vlan | --no-transparent-vlan]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tag <tag> | --no-tag]
|
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-09-19 16:43:28 -05:00
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
Set network description
|
|
|
|
|
2017-04-27 10:26:07 -05:00
|
|
|
*Network version 2 only*
|
|
|
|
|
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
|
|
|
|
2016-06-29 09:48:04 -05:00
|
|
|
.. option:: --enable-port-security
|
|
|
|
|
|
|
|
Enable port security by default for ports created on
|
|
|
|
this network (default)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --disable-port-security
|
|
|
|
|
|
|
|
Disable port security by default for ports created on
|
|
|
|
this network
|
|
|
|
|
|
|
|
*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-09-26 11:12:07 +01:00
|
|
|
.. option:: --qos-policy <qos-policy>
|
|
|
|
|
|
|
|
QoS policy to attach to this network (name or ID)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
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*
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be added to the network (repeat option to set multiple tags)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --no-tag
|
|
|
|
|
|
|
|
No tags associated with the network
|
|
|
|
|
|
|
|
*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
|
|
|
|
|
2016-12-20 09:18:55 +08:00
|
|
|
openstack network delete
|
2015-01-20 16:44:50 -06:00
|
|
|
<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
|
|
|
|
|
2016-12-20 09:18:55 +08:00
|
|
|
openstack network list
|
2016-08-18 15:07:47 +07:00
|
|
|
[--external | --internal]
|
2015-01-20 16:44:50 -06:00
|
|
|
[--long]
|
2016-08-18 15:07:47 +07:00
|
|
|
[--name <name>]
|
|
|
|
[--enable | --disable]
|
|
|
|
[--project <project> [--project-domain <project-domain>]]
|
|
|
|
[--share | --no-share]
|
|
|
|
[--status <status>]
|
2016-10-20 20:56:32 -07:00
|
|
|
[--provider-network-type <provider-network-type>]
|
|
|
|
[--provider-physical-network <provider-physical-network>]
|
|
|
|
[--provider-segment <provider-segment>]
|
2016-10-17 18:26:01 +00:00
|
|
|
[--agent <agent-id>]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tags <tag>[,<tag>,...]] [--any-tags <tag>[,<tag>,...]]
|
|
|
|
[--not-tags <tag>[,<tag>,...]] [--not-any-tags <tag>[,<tag>,...]]
|
2015-01-20 16:44:50 -06:00
|
|
|
|
|
|
|
.. option:: --external
|
|
|
|
|
|
|
|
List external networks
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --internal
|
|
|
|
|
|
|
|
List internal networks
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2015-01-20 16:44:50 -06:00
|
|
|
.. option:: --long
|
|
|
|
|
|
|
|
List additional fields in output
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --name <name>
|
|
|
|
|
|
|
|
List networks according to their name
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --enable
|
|
|
|
|
|
|
|
List enabled networks
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --disable
|
|
|
|
|
|
|
|
List disabled networks
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --project <project>
|
|
|
|
|
|
|
|
List networks according to their project (name or ID)
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07: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-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --share
|
|
|
|
|
|
|
|
List networks shared between projects
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --no-share
|
|
|
|
|
|
|
|
List networks not shared between projects
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-08-18 15:07:47 +07:00
|
|
|
.. option:: --status <status>
|
|
|
|
|
|
|
|
List networks according to their status
|
|
|
|
('ACTIVE', 'BUILD', 'DOWN', 'ERROR')
|
|
|
|
|
2016-10-20 20:56:32 -07:00
|
|
|
.. option:: --provider-network-type <provider-network-type>
|
|
|
|
|
|
|
|
List networks according to their physical mechanisms.
|
|
|
|
The supported options are: flat, geneve, gre, local, vlan, vxlan.
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --provider-physical-network <provider-physical-network>
|
|
|
|
|
|
|
|
List networks according to name of the physical network
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --provider-segment <provider-segment>
|
|
|
|
|
|
|
|
List networks according to VLAN ID for VLAN networks
|
|
|
|
or Tunnel ID for GENEVE/GRE/VXLAN networks
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2016-10-17 18:26:01 +00:00
|
|
|
.. option:: --agent <agent-id>
|
|
|
|
|
|
|
|
List networks hosted by agent (ID only)
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List networks which have all given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
List networks which have any given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --not-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude networks which have all given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. option:: --not-any-tags <tag>[,<tag>,...]
|
|
|
|
|
|
|
|
Exclude networks which have any given tag(s)
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
2015-01-20 16:44:50 -06:00
|
|
|
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
|
|
|
|
|
2016-12-20 09:18:55 +08:00
|
|
|
openstack network set
|
2015-01-20 16:44:50 -06:00
|
|
|
[--name <name>]
|
|
|
|
[--enable | --disable]
|
|
|
|
[--share | --no-share]
|
2016-09-19 16:43:28 -05:00
|
|
|
[--description <description>]
|
2016-06-29 09:48:04 -05:00
|
|
|
[--enable-port-security | --disable-port-security]
|
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-09-26 11:12:07 +01:00
|
|
|
[--qos-policy <qos-policy> | --no-qos-policy]
|
2017-04-29 00:32:32 +00:00
|
|
|
[--tag <tag>] [--no-tag]
|
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-09-19 16:43:28 -05:00
|
|
|
.. option:: --description <description>
|
|
|
|
|
|
|
|
Set network description
|
|
|
|
|
2016-06-29 09:48:04 -05:00
|
|
|
.. option:: --enable-port-security
|
|
|
|
|
|
|
|
Enable port security by default for ports created on
|
|
|
|
this network
|
|
|
|
|
|
|
|
.. option:: --disable-port-security
|
|
|
|
|
|
|
|
Disable port security by default for ports created on
|
|
|
|
this network
|
|
|
|
|
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-09-26 11:12:07 +01:00
|
|
|
.. option:: --qos-policy <qos-policy>
|
|
|
|
|
|
|
|
QoS policy to attach to this network (name or ID)
|
|
|
|
|
|
|
|
.. option:: --no-qos-policy
|
|
|
|
|
|
|
|
Remove the QoS policy attached to this network
|
|
|
|
|
2017-04-29 00:32:32 +00:00
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be added to the network (repeat option to set multiple tags)
|
|
|
|
|
|
|
|
.. option:: --no-tag
|
|
|
|
|
|
|
|
Clear tags associated with the network. Specify both --tag
|
|
|
|
and --no-tag to overwrite current tags
|
|
|
|
|
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
|
|
|
|
|
2016-12-20 09:18:55 +08:00
|
|
|
openstack network show
|
2015-01-20 16:44:50 -06:00
|
|
|
<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)
|
2017-04-29 00:32:32 +00:00
|
|
|
|
|
|
|
network unset
|
|
|
|
-------------
|
|
|
|
|
|
|
|
Unset network properties
|
|
|
|
|
|
|
|
*Network version 2 only*
|
|
|
|
|
|
|
|
.. program:: network unset
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
openstack network unset
|
|
|
|
[--tag <tag> | --all-tag]
|
|
|
|
<network>
|
|
|
|
|
|
|
|
.. option:: --tag <tag>
|
|
|
|
|
|
|
|
Tag to be removed from the network
|
|
|
|
(repeat option to remove multiple tags)
|
|
|
|
|
|
|
|
.. option:: --all-tag
|
|
|
|
|
|
|
|
Clear all tags associated with the network
|
|
|
|
|
|
|
|
.. _network_unset-network:
|
|
|
|
.. describe:: <network>
|
|
|
|
|
|
|
|
Network to modify (name or ID)
|