File: create_and_manage_networks.rst

package info (click to toggle)
python-openstackdocstheme 3.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,008 kB
  • sloc: javascript: 8,326; python: 544; makefile: 162; sh: 152
file content (102 lines) | stat: -rw-r--r-- 3,317 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
==========================
Create and manage networks
==========================

The OpenStack Networking service provides a scalable system for managing
the network connectivity within an OpenStack cloud deployment. It can
easily and quickly react to changing network needs (for example,
creating and assigning new IP addresses).

Networking in OpenStack is complex. This section provides the basic
instructions for creating a network and a router. For detailed
information about managing networks, refer to the `OpenStack
Administrator
Guide <https://docs.openstack.org/neutron/latest/admin/>`__.

Create a network
~~~~~~~~~~~~~~~~

#. Log in to the dashboard, choose a project, and click Networks.

#. Click Create Network.

#. In the Create Network dialog box, specify the following values.

   :guilabel:`Network` tab

   :guilabel:`Network Name`: Specify a name to identify the network.

   :guilabel:`Subnet` tab

   :guilabel:`Create Subnet`: Select this check box to create a subnet

   You do not have to specify a subnet when you create a network, but if
   you do not specify a subnet, any attached instance receives an Error status.

   :guilabel:`Subnet Name`: Specify a name for the subnet.

   :guilabel:`Network Address`: Specify the IP address for the subnet.

   :guilabel:`IP Version`: Select IPv4 or IPv6.

   :guilabel:`Gateway IP`: Specify an IP address for a specific gateway. This
   parameter is optional.

   :guilabel:`Disable Gateway`: Select this check box to disable a gateway IP
   address.

   :guilabel:`Subnet Detail` tab

   :guilabel:`Enable DHCP`: Select this check box to enable DHCP.

   :guilabel:`Allocation Pools` Specify IP address pools.

   :guilabel:`DNS Name Servers`: Specify a name for the DNS server.

   :guilabel:`Host Routes`: Specify the IP address of host routes.

#. Click :guilabel:`Create`.

   The dashboard shows the network on the :guilabel:`Networks` tab.

Create a router
~~~~~~~~~~~~~~~

#. Log in to the dashboard, choose a project, and click :guilabel:`Routers`.

#. Click :guilabel:`Create Router`.

#. In the :guilabel:`Create Router` dialog box, specify a name for the router
   and click :guilabel:`Create Router`.

   The new router is now displayed in the :guilabel:`Routers` tab.

#. Click the new router's :guilabel:`Set Gateway` button.

#. In the :guilabel:`External Network` field, specify the network to which the
   router will connect, and then click :guilabel:`Set Gateway`.

Connect a router
~~~~~~~~~~~~~~~~

#. To connect a private network to the newly created router, on the
   :guilabel:`Routers` tab, click the name of the router.

#. On the :guilabel:`Router Details` page, click :guilabel:`Add Interface`.

#. In the :guilabel:`Add Interface` dialog box, select a :guilabel:`Subnet`.

#. Optionally, in the :guilabel:`Add Interface` dialog box, set an
   :guilabel:`IP Address` for the router interface for the selected subnet.

   If you choose not to set the :guilabel:`IP Address` value, then by
   default OpenStack Networking uses the first host IP address in the subnet.

   The :guilabel:`Router Name` and :guilabel:`Router ID` fields are
   automatically updated.

#. Click :guilabel:`Add Interface`.

You have successfully created the router. You can view the new topology
from the :guilabel:`Network Topology` tab.