How to create a private Network

1. How to create a new Network

  1. Create a new Network (e.g., Private).
  2. Input 10.0.0.0/24 in the cidr field.

Fig. Specify an IP range for a network

important

OTC allows the following network ranges:

  • 10.0.0.0/8-24
  • 172.16.0.0/12-24
  • 192.168.0.0/16-24
note

If a network has no CIDR specified, the designer will auto-set it with the next available CIDR, starting from 10.0.0.0/24, 10.0.1.0/24, 10.0.2.0/24, etc.

2. How to reuse an existing network

Users can reuse an existing Network as follows:

  1. Get the network_id (e.g., 354b6773-f52c-4c95-8ec8-d7ce0a712bd9)
$ openstack network list
+--------------------------------------+--------------------------------------+--------------------------------------+
| ID | Name | Subnets |
+--------------------------------------+--------------------------------------+--------------------------------------+
| 354b6773-f52c-4c95-8ec8-d7ce0a712bd9 | 9e702e5e-95bd-4ea0-b018-8fb0c7c117a9 | fedb8970-1a2b-4a21-b8e2-747b4e12ef6e |
+--------------------------------------+--------------------------------------+--------------------------------------+
  1. Create a network (e.g., Private_2) and specify the network_id:

Fig. Specify an existing network

3. Expect result:

  • The network Private is created with the ip_range 10.0.0.0/24 (as in step 1).
  • The network Private_2 is reused. The compute is connected to both existing network and the new one.
  • In our design, one topology has at most one VPC network. Therefore, the VPC of the network Private_2 is also reused to attach all subnets of Private and Private_2.

4. Auto network validation

When you save the topology, the designer will validate it for any errors. The example below shows an error that two networks in the topology having overlapping CIDRs:

Fig. Overlapped CIDRs