Networking Fundamentals
You don’t need to be a network engineer to use the cloud — but a few core ideas make VNets, firewalls and load balancers much easier to understand.
On this page · 5 min · Intermediate
On this page
- Learning objectives
- Explanation
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Intermediate
- Updated
- Oct 29, 2026
Related tutorials
Interview questions
Learning objectives#
- Read CIDR notation
- Explain subnets and private IP ranges
- Describe how DNS works
- Compare Azure load balancing options
Explanation#
An IP address identifies a machine. Private ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) are used inside networks and are not reachable from the internet.
CIDR notation describes a range: /16 fixes the first 16 bits, leaving 65,536 addresses; /24 leaves 256. Azure reserves 5 addresses in every subnet, so a /24 subnet has 251 usable addresses.
DNS translates names (api.techiebabaji.com) into IP addresses. Azure DNS hosts public zones; private DNS zones resolve names inside VNets.
Load balancing in Azure: Load Balancer (layer 4, TCP/UDP), Application Gateway (layer 7 HTTP with a web application firewall) and Front Door (global HTTP entry point with CDN and WAF).
Code example: Planning a VNet address space#
VNet 10.0.0.0/16 65,536 addresses
├─ web 10.0.1.0/24 251 usable (Azure reserves 5)
├─ api 10.0.2.0/24 251 usable
├─ data 10.0.3.0/24 251 usable
└─ (spare) 10.0.4.0 – 10.0.255.255 for future subnets
Each tier gets its own subnet, so traffic between tiers can be controlled with network security groups.
This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.
Step-by-step explanation#
- /16 gives room for many subnets.
- Each /24 subnet holds one tier of the application.
- Leaving spare space avoids painful re-addressing later.
- The ranges must not overlap with on-premises or other VNets you will connect.
Real-world use case#
Before creating any VNet, teams agree an IP plan so networks can later be peered or connected to the office VPN without conflicts.
Common mistakes#
Two VNets that both use 10.0.0.0/16 cannot be peered. Plan unique ranges.
Some services need dedicated, larger subnets. Leave headroom.
Best practices#
- Plan IP ranges before building
- Use private ranges and avoid overlaps
- Separate tiers into subnets
- Use Front Door or Application Gateway for public HTTP traffic
Remember this#
Smaller /number = bigger network (/16 > /24).
Azure keeps 5 addresses per subnet.
L4 = Load Balancer, L7 = Application Gateway, Global = Front Door.
Practice exercise#
Your task: How many addresses does a /26 subnet contain, and how many are usable in Azure?
Show solution
/26 → 2^(32-26) = 64 addresses; 64 − 5 reserved = 59 usable.
Mini quiz#
Which Azure service is a layer-7 HTTP load balancer with a web application firewall?
Want more? Practise all Microsoft Azure MCQs · Microsoft Azure interview questions
My notes#
Saved in this browser.