question

srinathsarman-6473 avatar image
0 Votes"
srinathsarman-6473 asked srinathsarman-6473 commented

Classless IP for Azure Vnet

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered srinathsarman-6473 commented

Hi @srinathsarman-6473 ,

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

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.