Here are some examples of how CIDR is used in different scenarios: - kondareddypp/azure-network-fundamentals GitHub Wiki

Example 1: Small Network Network: 192.168.1.0/24

Subnet Mask: 255.255.255.0

Host Range: 192.168.1.1 - 192.168.1.254

Total Hosts: 254

Usage: A common subnet size for home or small business networks.

Example 2: Large Network Network: 10.0.0.0/8

Subnet Mask: 255.0.0.0

Host Range: 10.0.0.1 - 10.255.255.254

Total Hosts: 16,777,214

Usage: Large organizations or data centers with a need for a vast number of IP addresses.

Example 3: Subnetting a Network Let's say we have a network 192.168.0.0/16 and we want to divide it into smaller subnets:

Subnet 1 Network: 192.168.0.0/24

Subnet Mask: 255.255.255.0

Host Range: 192.168.0.1 - 192.168.0.254

Total Hosts: 254

Subnet 2 Network: 192.168.1.0/24

Subnet Mask: 255.255.255.0

Host Range: 192.168.1.1 - 192.168.1.254

Total Hosts: 254

Example 4: VLSM (Variable Length Subnet Masking) We can further use VLSM to create subnets of varying sizes:

Subnet: 192.168.1.0/25

Subnet Mask: 255.255.255.128

Host Range: 192.168.1.1 - 192.168.1.126

Total Hosts: 126

Subnet: 192.168.1.128/25

Subnet Mask: 255.255.255.128

Host Range: 192.168.1.129 - 192.168.1.254

Total Hosts: 126

Example 5: Aggregation If we have multiple subnets like 192.168.1.0/24, 192.168.2.0/24, and 192.168.3.0/24, we can aggregate them:

Aggregated Network: 192.168.0.0/22

Subnet Mask: 255.255.252.0

Host Range: 192.168.0.1 - 192.168.3.254

Total Hosts: 1022