Beginner · Foundations · 2 of 15

Read CIDR and create a VNet

Your tasks
  • Create vnet-lab with address space 10.50.0.0/16

The network plan your team uses is written entirely in CIDR blocks. Learn to read them, then build a new virtual network called vnet-lab with the address space 10.50.0.0/16.

You'll learn
How CIDR notation works
  1. Use the lab's cidr tool to see a block's first and last address and its size.

    cidr 10.1.0.0/16
  2. Compare a /20.

    cidr 10.1.0.0/20
  3. Answer question 1 with the size from step 1. Answer questions 2 and 3 the same way: answer <number> <value>.

    Prefix
    An address range written as start/bits, like 10.1.0.0/16. The number after the slash is how many leading bits are fixed.
    Prefix
    An address range written as start/bits, like 10.1.0.0/16. The number after the slash is how many leading bits are fixed.
    Prefix
    An address range written as start/bits, like 10.1.0.0/16. The number after the slash is how many leading bits are fixed.
  4. Create the new virtual network. --address-prefixes sets its address space.

    az network vnet create -g rg-lab --name vnet-lab --address-prefixes 10.50.0.0/16
    What's this?

    Creates a virtual network with its address space.

    • -g the resource group the resources live in
    • --name the name of the thing to look at or change
    • --name vnet-lab the new VNet's name
    • --address-prefixes 10.50.0.0/16 one or more CIDR ranges, separated by spaces
Sources on Microsoft Learn (2)
0/1 changes
Network map
?
  • Resource group, the outer dashed frame
  • Virtual network, with its address space top right
  • Subnet, with range and usable IPs (5 reserved)
  • Network security group. A small shield on a VM's NIC means the NIC has one too
  • Route table on the subnet
  • NICVM Appliance Private endpoint
  • Peering Connected Initiated or access off
  • Goal working Goal broken, X marks where it stops
  • Private DNS zone, dotted lines go to linked VNets
  • Orange pulse: what your last command changed. Drag to pan, Ctrl and scroll to zoom.
Resource grouprg-labNo virtual networks yetCreate one and it appears here
Goals 0/4
Cloud Shell · bashVMsrg-lab · eastus2
cloudshell:~$