ホーム 暮らし NW Introduction Part 3: "What is /24?" Understanding Subnet Masks with Diagrams

NW Introduction Part 3: "What is /24?" Understanding Subnet Masks with Diagrams

八木 麻衣 八木 麻衣 • 更新: • 公開: • 読了約 7 分
目次

10+ years of NW engineering experience | Read time: approx. 5 min | For beginners and students
Last time, we learned the basics of IP addresses and routing. This time, let's clearly understand the meaning of "/24" in "192.168.1.0/24"—in other words, subnet masks—using diagrams and analogies.

️ A subnet is a "neighborhood range"

n55a658eb8e86

An IP address is made up of 32 bits. Of these, the first half is the network portion (town name), and the second half is the host portion (street address).
Network portion (town name): 192.168.1 (24 bits)
Host portion (street address): .10 (8 bits)
Peers in the same town (subnet): 192.168.1.1 to 192.168.1.254
Network portion (192.168.1) Host portion (.10) ← 24 bits (fixed/town name) → ← 8 bits → PC-A 192.168.1.1 PC-B 192.168.1.2 Different subnet 10.0.0.1 Direct communication OK via router Direct communication within the same subnet, router required for outside

The meaning of the "/24" number

"/24" is called CIDR notation, and it indicates how many bits the network portion has.
️ Frequently used CIDR notation and available terminal counts/24 (255.255.255.0) → Max 254 devices (for home/small office)
/16 (255.255.0.0) → Max 65,534 devices (for large-scale networks)
/30 (255.255.255.252) → Max 2 devices (for links between routers)

Why 254 devices?

In the case of /24, the host portion is 8 bits = 256 combinations. However, .0 (network address) and .255 (broadcast address) cannot be assigned to terminals. Therefore, 256 − 2 = 254 devices is the usable limit.
️ Point that often appears on exams: The calculation for the number of hosts is "2ⁿ − 2". n is the number of bits in the host portion. For /24, it is 2⁸ − 2 = 254.

Let's check with your home router

Accessing 192.168.1.1 or 192.168.0.1 in your browser opens the management screen for your home router. If you look at the "LAN Settings," you can see notation like 192.168.1.0 / 255.255.255.0.
Let's try it: Run ipconfig in the Command Prompt (Windows). If "255.255.255.0" is displayed in the "Subnet Mask" field, that is /24!
Summary

  • IP address = Town name (network portion) + Street address (host portion)

  • /24 = The first 24 bits are the network portion (= 255.255.255.0)

  • Within the same subnet → Direct communication OK

  • Different subnet → Router required

  • Usable host count = 2ⁿ − 2 (n = number of bits in host portion)

Next time, I will explain "What is a default gateway? Understanding the exit to the outside world." Please follow and stay tuned!
#NetworkIntroduction #SubnetMask #CIDR #Infrastructure #AspiringEngineer #ITStudy


同じカテゴリの記事

八木 麻衣
トレンドリサーチャー 八木 麻衣
プロフィールを見る →

全記事の事実確認を担当。一次情報・公式発表・公開資料の三点を確認できない場合は公開を見送る判断をします。

おすすめの関連記事