Beginner · Free · In your browser

Learn Networking Foundations

Learn how networks really work by writing Python that network engineers use every day. Calculate subnets by hand and with ipaddress, parse endpoints, URLs, DNS records, and HTTP responses, analyse logs, evaluate firewall rules, and finish with a complete network audit.

20 lessons6 modules3.7 hours of practice4 challenges
Start the Networking Foundations course →

No installation. Your code runs right in the browser. Basic Python helps: variables, functions, loops, and dictionaries. The Python course covers all of them.

What you will be able to do

Course outline

Module 1

Addresses are numbers

Read IPv4 addresses, see them in binary, and calculate masks and subnets by hand.

  1. Read an IPv4 addressDotted-quad notation · 8 min
  2. Octets in binaryBits, bytes & format() · 9 min
  3. Prefix length and subnet masksCIDR notation & bitwise operators · 10 min
  4. Network, broadcast, and hostsBitwise AND & usable host counts · 11 min
Module 2

Python’s ipaddress toolkit

Classify addresses, test membership, split networks, and plan an office.

  1. Classify an addressipaddress.ip_address & properties · 9 min
  2. Is it on my network?ip_network & the in operator · 9 min
  3. Split a network into subnetssubnets(new_prefix) & num_addresses · 10 min
  4. Project: plan an office networkFoundation project · variable-size subnets · 18 min
Module 3

Ports and endpoints

Ports and services, host and port pairs, and URLs piece by piece.

  1. Ports and servicesPort numbers & dictionaries · 8 min
  2. Host and port pairsParsing endpoints, including IPv6 · 10 min
  3. URLs piece by pieceurllib.parse.urlsplit & parse_qs · 10 min
Module 4

Names and the web

Hosts files, DNS records, and raw HTTP responses.

  1. Read a hosts fileParsing configuration text · 9 min
  2. Follow DNS recordsA and CNAME records & loop detection · 11 min
  3. Read an HTTP responseStatus line, headers & body · 11 min
Module 5

Logs and evidence

Count status codes, spot brute-force attempts, and normalise MAC addresses.

  1. Count status codes in a logRegular expressions & Counter · 11 min
  2. Spot brute-force attemptsParsing auth logs & thresholds · 11 min
  3. MAC addressesNormalising hardware addresses · 9 min
Module 6

Policies and audits

Evaluate firewall rules, read router configs, and audit a network inventory.

  1. Firewall rulesFirst-match rule evaluation · 12 min
  2. Read a router configurationParsing indented config blocks · 12 min
  3. Capstone: audit a network inventoryCapstone · addressing, ports & policy checks · 25 min

Ready for your first line?

Every lesson is short, hands-on, and checked automatically.

Start learning Networking Foundations →