Classless IP for Azure Vnet

srinath sarman 41 Reputation points
2021-05-14T11:07:59.2+00:00

Hello Techies,

I am Creating a Vnet in Azure and wanted to create 2 subnet one for front end and other for back end:

For VNET i gave address range as 192.168.0.0/25 so that i can use 2 subnet with same address range to avoid wastage of IP's.

Subnet 1) 192.168.0.1 - 192.168.0.126
Subnet 2) 192.168.0.128 - 192.168..254

How can I give address range for Subnet? Is it something like below?

Subnet 1 -> 192.168.0.0/25

Subnet 2 -> 192.168.0.128/25

Thanks in Advance!

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,762 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andreas Baumgarten 123.4K Reputation points MVP Volunteer Moderator
    2021-05-14T11:21:32.133+00:00

    Hi @srinath sarman ,

    if you wan't two subnets 192.168.0.0/25 and 192.168.0.128/25 (126 host addresses each subnet) you need a vNet with 192.168.0.0/24.
    http://jodies.de/ipcalc?host=192.168.0.1&mask1=24&mask2=25

    if you have a vNet with 192.168.0.0/25 you could add 2 subnets 62 host each) like this: 192.168.0.0/26 and 192.168.0.64/26
    http://jodies.de/ipcalc?host=192.168.0.1&mask1=25&mask2=26

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.