ASCI Logo
ASCI
Programs
Practice DSA
Degrees & Careers
Pricing
Log inGet Started

Quick Navigation & Search

Search curriculum tracks, DSA problems, systems theory and tools...

aws cloud-solutions

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 CIDR Subnet Calculation & IP Allocation
•
1
2
3
4
5
6
7
8
9
10
Module 1: Global Infrastructure & VPC Networking•Lesson 1

1.1 CIDR Subnet Calculation & IP Allocation

### AWS Reserved Subnet IPs
In every subnet, AWS reserves 5 IP addresses (first four and last one) for network, router, DNS, future use, and broadcast. A /24 has $256 - 5 = 251$ usable host addresses.
Python 3.11
•
Interactive Challenge
+70 XP
Challenge Objective

Compute usable AWS subnet IPs and print 'USABLE_IPS: 251'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.