StarkSeek
EventsJobs
Sign in

Menu

Practice

  • DSA sheetsProblem sheets by topic and company
  • AptitudeNewQuant, logic, data and verbal, with fresh questions
  • SQLNew400 interview-style SQL problems with checked solutions
  • CS fundamentalsNewOS, DBMS, networks and OOP, with labs you can run
  • Skill tracksProject-based learning in 12 domains

Interview prep

  • Mock interviewAIPractise with an AI interviewer by voice
  • Code ComprehensionNewRead, fix and explain real code with an AI assistant
  • EventsHackathons, workshops, meetups and contests
  • JobsOpen roles from companies hiring through StarkSeek

Pricing

  • MembershipsCompare plans and what each includes
  • Add-ons and creditsExtra credits when you need more
  • Rewards store

For Companies

  • Hire talentAssess real work, read the evidence behind every score and decide with your team
  • Host an eventHackathons, coding contests, workshops and meetups, with certificates and a live leaderboard
Sign in
CS fundamentals/Computer Networks/IP addressing and subnetting

Computer Networks

IP addressing and subnetting

Masks, network and broadcast addresses, classes, and splitting a block.

Open the labPractise this topic

In two minutes

One idea to a line

  1. 1

    An IPv4 address has 32 bits. A /n prefix means the first n bits name the network and the rest name the host.

  2. 2

    Network address = address AND mask (all host bits 0). Broadcast = all host bits 1. Usable hosts = 2^(32−n) − 2.

  3. 3

    Classful ranges by first number: A 1–126, B 128–191, C 192–223, D 224–239 (multicast). 127 is loopback.

  4. 4

    Borrowing k bits from the host part makes 2^k subnets, each with 2^(32−n−k) − 2 usable hosts.

  5. 5

    Private ranges: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. NAT lets many private hosts share one public address.

Slips people make here

Interviewers know them too

  • Forgetting to remove the network and broadcast addresses from the host count.

  • Counting subnet bits as the host bits.

  • Treating 172.32.x.x as private: the /12 block ends at 172.31.255.255.

Your practice here

Not started

10 written questions, and 5 kinds of calculation that change every time

No answers yet

Subnetting labAn address and a prefix in binary: network, broadcast, hosts, and splitting a block into equal subnets.Open

Get product updates

New tracks and events, straight to your inbox.

StarkSeek

Learn by building real projects, practise interview-level DSA, and apply to roles from hiring teams.

Platform

  • Learning tracks
  • Practice problems
  • Aptitude
  • SQL practice
  • CS fundamentals
  • Mock interviews
  • Code Comprehension
  • Events

Resources

  • Host an event
  • For companies
  • Certificates
  • Rewards store
  • Pricing
  • Add-ons
  • Blog

Company

  • Careers
  • Contact us
  • Privacy policy
  • Terms of service

Support

  • contact@starkseek.com
  • community@starkseek.comEvents and organizers
  • partner@starkseek.comCompanies and partnerships

© 2026 StarkSeek. A product of NOKATI LLP.

Recognized by