Virtual Network and subnets

Lalith 161 Reputation points
2019-12-02T04:14:32.377+00:00

Hi, I have a virtual network 192.168.0.0/16 . now, i want to know why do we have to create subnets and what is the whole point of creating subnets when we can directly access the 65,536 ip addresses available in the specified virtual network ip address space.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,107 questions
0 comments No comments
{count} votes

Accepted answer
  1. msrini-MSFT 9,256 Reputation points Microsoft Employee
    2019-12-02T04:19:48.95+00:00

    Hi,

    In Azure, when you create VNET, you create Address space. In your case, the address space is 192.168.0.0/16. Once that is created, you need to create subnets on which you will be able to deploy any resources.

    Address space is the super set and the subnets are the subsets of Address space. If you want to use all the address space, then create a subnet with prefix 192.168.0.0/16 and you will have 65K IPs available for you.

    Let me know if you have any further questions.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Rajesh Swarnkar 851 Reputation points
    2021-12-08T06:35:23.873+00:00

    > why do we have to create subnets

    Subnets are created for the purpose of network segmentation with the network performance and security goals in focus. Without the sub-netting it will be hard to manage network.

    VNet is like a large piece of land and subnets are like rooms/buildings. Ofcourse you can't give shelter to entire population without segmenting it.

    0 comments No comments