Usage of CIDR notation in the Cloud Networks

CIDR is also known as Classless Inter-Domain Routing (CIDR), which is also known as the range if IP addresses which is used by the network. Here the CIDR address looks like that of a normal IP address except that it ends with a slash which is being follows by a number. Here the number which comes after the slash represents the number of the addresses which is in the range.




Cloud Hosting Plans

MEDIUM CLOUD
9571 Save 44%
5360 / month
7.4 / hour
  • Disk Space : 80 GB SSD
  • 4 Core
  • RAM : 8 GB
  • Bandwidth : 5 TB
SMALL CLOUD
6929 Save 44%
3880 / month
5.3 / hour
  • Disk Space : 80 GB SSD
  • 2 Core
  • RAM : 6 GB
  • Bandwidth : 5 TB
MICRO CLOUD
4786 Save 44%
2680 / month
3.7 / hour
  • Disk Space : 60 GB SSD
  • 2 Core
  • RAM : 4 GB
  • Bandwidth : 4 TB
LARGE CLOUD
19214 Save 44%
10760 / month
14.9 / hour
  • Disk Space : 120 GB SSD
  • 8 Core
  • RAM : 16 GB
  • Bandwidth : 6 TB
EXTRA LARGE CLOUD
38286 Save 44%
21440 / month
29.7 / hour
  • Disk Space : 320 GB SSD
  • 12 Core
  • RAM : 32 GB
  • Bandwidth : 7 TB
NANO CLOUD
2545 Save 44%
1425 / month
1.9 / hour
  • Disk Space : 50 GB SSD
  • 2 Core
  • RAM : 2 GB
  • Bandwidth : 3 TB

Below is an example of CIDR IP address in the IPv4:

192.0.2.0/26


Here the IPV4 will be having a 32-bit address space the 24 bit prefix above that the address range is the 8 bits after that of 192.0.2.0.
Below is an example of IPv6

2003:db8::/33


In this the IPv6 is having a 128-bit range so that the 32-bit network prefix would mean that it is referring to 96 bits worth of the addresses following 2003:db8 which can be 76 octicillion addresses.

CIDR Notation which is in the Cloud Control Panel

If you have been using the Cloud Control Panel for creation of a Cloud Network you will not have to worry about the calculation of the IP address. Here the CIDR field is automatically which is populated with an IP block on the network. You will be required to supply the name for the network and the click on the Create Network.

You need to follow the instructions on creating the Cloud Network by using the Cloud Control Panel.

Here the nova client command would look like this:

nova network-create <network_label> <cidr>

Here when the network_label is in the name of the network such as my_new_network, here the cidr is the IP block to allocate from, such as a 162.14.0.0/22 or 2003:DB8::/54.


Here the command curl -s

-X POST -H "X-Auth-Project-Id: 010101" -H "Content-Type: application/json" <br>
-H "Accept: application/json" <br>
-H "X-Auth-Token: 574c5763-86ab-431e-8b6c-5f7cf84c30ca" <br>
-d '{"network": {"cidr": "192.168.0.0/24", "label": "superprivate"}}' | python -m json.tool

 

Here the JSON-format response would be looking similar as shown below:

{
"network": {
"cidr": "192.168.0.0/24",
"id": "aaa44708-bae2-4eed-840e-896a7dd345d4",
"label": "superprivate"
}
}

Here we have mentioned the Usage of CIDR notation in the Cloud Networks.