Chapterبەش 5 · Lectureوانە 5.5

Subnetting Step by Stepژێرڕایەڵەسازی هەنگاو بە هەنگاو

Subnetting cuts one network into smaller subnets by borrowing bits from the host part: 2S2^S subnets with 2H−22^H - 2 hosts each. Learn why networks are subnetted (smaller broadcast domains, order, security), how to plan, how to find the block size (the “magic number”, 256 minus the mask octet) and the subnet ID, broadcast and host range of every subnet — with a college in Erbil, a quick /24 table, exam examples, the classic /28–/31 exercise and why /31 is valid on router links.

یەک دەکات بە چەند بچووکتر بە قەرزکردنی لە : 2S2^S ، هەریەکە 2H−22^H - 2 . فێر ببە بۆچی دەکرێت ( بچووکتر، ڕێکوپێکی، )، چۆن پلان دادەنێیت، چۆن قەبارەی بلۆک (، ⁦256⁩ لابردنی ) و ، و مەودای هەر دەدۆزیتەوە — لەگەڵ کۆلێژێک لە هەولێر، خشتەیەکی خێرای /24، نموونەی تاقیکردنەوە، ڕاهێنانی ناسراوی /28–/31 و بۆچی /31 لە بەستەری دروستە.

17 min read19 خولەک خوێندنەوە · 18 stepsهەنگاو

What you will learnچی فێر دەبیت

  • Explain why networks are subnetted and count the subnets a network diagram needs.
  • Choose the number of borrowed bits with 2S2^S subnets and 2H−22^H - 2 hosts, and write the new mask.
  • Find the block size and list every subnet with its subnet ID, host range and broadcast address.
  • Find the subnet of a given address and explain when a /31 is valid.
  • ڕوونی بکەیتەوە بۆچی دەکرێت و ئەو بژمێریت کە پێویستی پێیانە.
  • ژمارەی قەرزکراو بە 2S2^S و 2H−22^H - 2 هەڵبژێریت و نوێ بنووسیت.
  • قەبارەی بلۆک بدۆزیتەوە و هەموو لەگەڵ ، مەودای و بنووسیت.
  • ناونیشانێکی دراو بدۆزیتەوە و ڕوونی بکەیتەوە /31 کەی دروستە.

Why cut a network into subnets?بۆچی ڕایەڵەیەک دەبڕین بە چەند ژێرڕایەڵەیەک؟

Subnetting means making several smaller networks out of one network. Each smaller network is a subnet: a subdivision of a bigger block, chosen by the network administrator. You do it by taking some bits from the host part and using them to number the subnets; the bits that are left number the hosts inside each subnet. A longer English guide is Geek University's What Is Subnetting?.

واتە دروستکردنی چەند بچووکتر لە یەک . هەر بچووکتر : بەشێکی بلۆکێکی گەورەتر کە بەڕێوەبەری هەڵیدەبژێرێت. بۆ ئەمە هەندێک لە وەردەگریت و بۆ ژمارەکردنی بەکاریان دەهێنیت؛ ئەو دەمێننەوە ناو هەر ژمارە دەکەن. ڕێبەرێکی درێژتر بە ئینگلیزی ⁦What Is Subnetting?⁩ـی Geek Universityـیە.

A huge sandwichساندویچێکی زەبەلاح

Nobody eats a two-metre sandwich in one bite: you cut it into pieces that people can hold. A /24 is the long sandwich; subnetting cuts it into 2, 4 or 8 equal pieces. For example, 192.168.14.0/24 has one range of hosts, .1 to .254; cut in two, it becomes 192.168.14.0/25 (.1–.126) and 192.168.14.128/25 (.129–.254).

کەس ساندویچێکی دوو مەتری بە یەک پاروو ناخوات: دەیبڕیت بە چەند پارچەیەک کە خەڵک بتوانن بیگرن بە دەستەوە. /24 ساندویچە درێژەکەیە؛ دەیبڕێت بە 2، 4 یان 8 پارچەی یەکسان. بۆ نموونە، ⁦192.168.14.0/24⁩ یەک مەودای هەیە، لە .1 تا .254؛ کە بە دوو بڕدرا، دەبێتە ⁦192.168.14.0/25⁩ (.1–.126) و ⁦192.168.14.128/25⁩ (.129–.254).

Where the analogy stops workingسنووری ئەم نموونەیە

In basic subnetting all pieces are equal and their size is a power of two; you cannot cut a piece of any size you like. VLSM, in a later lesson, allows pieces of different sizes.

لە سادەدا هەموو پارچەکان یەکسانن و قەبارەیان توانێکی دووە؛ ناتوانیت پارچەیەک بە هەر قەبارەیەک کە دەتەوێت ببڕیت. ، لە وانەیەکی دواتردا، ڕێگە بە پارچەی قەبارە جیاواز دەدات.

Animation in four steps. 192.168.1.0/24 is drawn as a long sandwich from .0 to .255. 1: /24 — one network of 256 addresses, 254 hosts. 2: /25 — borrow 1 bit, the sandwich is cut once into 0–127 and 128–255: two subnets of 128, 126 hosts each. 3: /26 — borrow 2 bits: 0–63, 64–127, 128–191, 192–255, 62 hosts each. 4: /27 — borrow 3 bits: eight pieces starting at 0, 32, 64, 96, 128, 160, 192 and 224, 30 hosts each. Each borrowed bit doubles the number of subnets and halves their size.
Animation in four steps. 192.168.1.0/24 is drawn as a long sandwich from .0 to .255. 1: /24 — one network of 256 addresses, 254 hosts. 2: /25 — borrow 1 bit, the sandwich is cut once into 0–127 and 128–255: two subnets of 128, 126 hosts each. 3: /26 — borrow 2 bits: 0–63, 64–127, 128–191, 192–255, 62 hosts each. 4: /27 — borrow 3 bits: eight pieces starting at 0, 32, 64, 96, 128, 160, 192 and 224, 30 hosts each. Each borrowed bit doubles the number of subnets and halves their size.
The same /24 cut into 2, 4 and 8 subnets.هەمان /24 بڕدراو بۆ 2، 4 و 8 .CêIT

What subnets give youژێرڕایەڵەکان چیت پێ دەدەن

Picture a university in Erbil with 3,000 devices in one flat network. Every ARP or DHCP broadcast reaches all of them, every faculty can reach every other faculty directly, and nobody knows which address belongs where. Give each faculty its own subnet — Engineering 172.20.1.0/24, Science 172.20.2.0/24 and so on — and a router joins them.

زانکۆیەک لە هەولێر بهێنە پێش چاوت کە ⁦3,000⁩ ئامێری لە یەک تەختدا هەیە. هەر یان دەگاتە هەموویان، هەر کۆلێژێک ڕاستەوخۆ دەگاتە هەموو کۆلێژەکانی تر و کەس نازانێت کام ناونیشان هی کوێیە. تایبەت بدە بە هەر کۆلێژێک — ئەندازیاری ⁦172.20.1.0/24⁩، زانست ⁦172.20.2.0/24⁩ و هتد — و پێکیانەوە دەبەستێتەوە.

  • Smaller broadcast domains: a broadcast stays inside its subnet, because routers do not forward it (Broadcast domains).
  • Order: each place or department has its own range, so an address tells you where a device is.
  • Security: traffic between subnets passes a router or firewall, where it can be filtered (Network segmentation).
  • Fewer wasted addresses: each subnet is only as big as its group needs.
  • بچووکتر: لە ناو خۆیدا دەمێنێتەوە، چونکە نایگوازنەوە (پاوانەکانی پەخش).
  • ڕێکوپێکی: هەر شوێن یان بەشێک مەودای خۆی هەیە، بۆیە ناونیشانێک پێت دەڵێت ئامێرەکە لە کوێیە.
  • : هاتوچۆی نێوان بە یان تێدەپەڕێت و لەوێ دەتوانرێت پاڵاوتە بکرێت (بەشبەشکردنی ڕایەڵە).
  • ناونیشانی بەفیڕۆچووی کەمتر: هەر تەنیا ئەوەندە گەورەیە کە گرووپەکەی پێویستیەتی.

Your home is a small example: the home router separates your LAN from the ISP's network. Millions of homes can all use 192.168.1.0/24 because these are private addresses, and NAT shares one public address (NAT) — subnetting itself only splits one block into smaller blocks.

ماڵەکەت نموونەیەکی بچووکە: ماڵەوە لە جیا دەکاتەوە. ملیۆنان ماڵ دەتوانن هەموویان ⁦192.168.1.0/24⁩ بەکار بهێنن، چونکە ئەمانە و یەک بەش دەکات (وەرگێڕانی ناونیشانی ڕایەڵە) — خۆی تەنیا بلۆکێک دەکات بە چەند بلۆکێکی بچووکتر.

A university in Erbil drawn as four dashed purple boxes around a core router: Engineering 172.20.1.0/24, Science 172.20.2.0/24, Medicine 172.20.3.0/24 and Administration 172.20.4.0/24, each with a switch and three PCs and each linked to the router. Note: a broadcast stays inside its faculty; traffic between faculties passes the router.زانکۆیەک لە هەولێر وەک چوار چوارگۆشەی مۆری پچڕپچڕ لە دەوری ڕێدۆزێکی سەرەکی: ئەندازیاری 172.20.1.0/24، زانست 172.20.2.0/24، پزیشکی 172.20.3.0/24 و کارگێڕی 172.20.4.0/24، هەریەکە بە سویچێک و سێ PC و هەریەکە بە ڕێدۆزەکەوە بەستراوە. تێبینی: پەخشکردن لە ناو کۆلێژەکەی خۆیدا دەمێنێتەوە؛ هاتوچۆی نێوان کۆلێژەکان بە ڕێدۆزدا تێدەپەڕێت.
One subnet per faculty, joined by a router. بۆ هەر کۆلێژێک، بە پێکەوە بەستراون.CêIT

Before you start: count what you needپێش دەستپێکردن: ئەوەی پێویستتە بیژمێرە

Subnetting has three stages: analyse the needs, design the subnets (choose the block and one mask, list the subnets), then plan the implementation (which subnet goes where, static addresses, DHCP ranges). The analysis asks four questions: which hosts belong together in one subnet? How many subnets are needed? How many hosts does each subnet need? One subnet size for all, or different sizes?

سێ قۆناغی هەیە: شیکردنەوەی پێویستییەکان، دیزاینی (بلۆکەکە و یەک هەڵبژێرە، بنووسە)، پاشان پلانی جێبەجێکردن (کام بۆ کوێ، ناونیشانی جێگیر، مەوداکانی ). شیکردنەوەکە چوار پرسیار دەکات: کام پێکەوە لە یەک ؟ چەند پێویستە؟ هەر چەند پێویستە؟ یەک قەبارە بۆ هەموو، یان قەبارەی جیاواز؟

The grouping rule: addresses in the same subnet are not separated by a router; addresses in different subnets are separated by at least one router. So count every LAN behind a router interface and every link between two routers — even a router-to-router link is a subnet. Then find the subnet with the most hosts: it decides the size.

یاسای گرووپکردن: ناونیشانەکانی ناو هەمان بە لە یەک جیا ناکرێنەوە؛ ناونیشانەکانی جیاواز بە لانیکەم یەک لە یەک جیا دەکرێنەوە. بۆیە هەر لە پشت و هەر بەستەرێکی نێوان دوو بژمێرە — تەنانەت بەستەرێکی نێوان دوو . پاشان ئەو بدۆزەوە کە زۆرترین هەیە: ئەو قەبارەکە دیاری دەکات.

A core router with its own LAN (1) and three branch routers B1, B2 and B3. Each core-to-branch link is circled as a subnet (2, 4 and 6) and each branch LAN too (3, 5 and 7). The LAN of B1 is the largest, with 50 hosts; the others are smaller. Bottom: 1 core LAN + 3 branch LANs + 3 WAN links = 7 subnets.ڕێدۆزێکی سەرەکی بە ڕایەڵەی ناوچەیی خۆیەوە (1) و سێ ڕێدۆزی لق: B1، B2 و B3. هەر بەستەرێکی نێوان سەرەکی و لقێک وەک ژێرڕایەڵە بازنەی لێ دراوە (2، 4 و 6) و ڕایەڵە ناوچەییەکانی لقەکانیش (3، 5 و 7). ڕایەڵەی ناوچەیی B1 گەورەترینە، بە 50 میوانگرەوە؛ ئەوانی تر بچووکترن. خوارەوە: 1 ڕایەڵەی ناوچەیی سەرەکی + 3 ڕایەڵەی ناوچەیی لق + 3 بەستەری ڕایەڵەی فراوان = 7 ژێرڕایەڵە.
Count the LANs and the links between routers: 7 subnets. و بەستەرەکانی نێوان بژمێرە: 7 .CêIT

Borrowing host bitsقەرزکردنی بیتەکانی میوانگر

Before subnetting, an address has two parts with a fixed size: the network part (N bits) and the host part. Subnetting borrows S bits from the host part, so three parts appear: N + S + H = 32. With S subnet bits you get 2S2^S subnets, and with H host bits each subnet has 2H−22^H - 2 usable addresses. One subnet bit gives 2 subnets, two bits give 4, three bits give 8.

پێش ، ناونیشان دوو بەشی قەبارە جێگیری هەیە: (N ) و . S لە قەرز دەکات، بۆیە سێ بەش دەردەکەون: ⁦N + S + H = 32⁩. بە S 2S2^S وەردەگریت و بە H هەر 2H−22^H - 2 ناونیشانی بەکارهاتووی هەیە. یەک 2 دەدات، دوو 4 و سێ 8.

subnets=2S≥Xhosts per subnet=2H−2≥Y\text{subnets} = 2^{S} \ge X \qquad \text{hosts per subnet} = 2^{H} - 2 \ge Y

Choose S so that you get at least X subnets, then check that H still gives at least Y hosts.

S بە جۆرێک هەڵبژێرە کە لانیکەم X وەربگریت، پاشان بپشکنە کە H هێشتا لانیکەم Y دەدات.

Design example: the class B network 172.16.0.0 must have 200 subnets with 200 hosts each. 27=1282^7 = 128 is too few, so S = 8 (28=2562^8 = 256 subnets, 56 spare). That leaves H = 32 − 16 − 8 = 8: 28−2=2542^8 - 2 = 254 hosts, 54 spare. The new prefix is 16 + 8 = /24.

نموونەی دیزاین: پۆلی ⁦B 172.16.0.0⁩ دەبێت ⁦200⁩ هەبێت، هەریەکە ⁦200⁩ . 27=1282^7 = 128 کەمە، بۆیە ⁦S = 8⁩ (28=2562^8 = 256 ، ⁦56⁩ زیادە). کەواتە H=32−16−8=8H = 32 - 16 - 8 = 8: 28−2=2542^8 - 2 = 254 ، ⁦54⁩ زیادە. پێشگری نوێ 16+8=2416 + 8 = 24، واتە /24.

Three bars of 32 bits. Class C network 192.168.4.0/24 before subnetting: N = 24, H = 8 — 1 network, 2⁸ − 2 = 254 hosts. Borrow 2 host bits → /26 (255.255.255.192): N = 24, S = 2, H = 6 — 2² = 4 subnets, 2⁶ − 2 = 62 hosts each. Class B 172.16.0.0 with 200 subnets × 200 hosts → /24: N = 16, S = 8, H = 8 — 2⁸ = 256 subnets, 254 hosts each.سێ شریتی 32 بیتی. ڕایەڵەی پۆلی C 192.168.4.0/24 پێش ژێرڕایەڵەسازی: N = 24، H = 8 — 1 ڕایەڵە، 2⁸ − 2 = 254 میوانگر. قەرزکردنی 2 بیتی میوانگر ← /26 (255.255.255.192): N = 24، S = 2، H = 6 — 2² = 4 ژێرڕایەڵە، هەریەکە 2⁶ − 2 = 62 میوانگر. پۆلی B 172.16.0.0 بە 200 ژێرڕایەڵە × 200 میوانگر ← /24: N = 16، S = 8، H = 8 — 2⁸ = 256 ژێرڕایەڵە، هەریەکە 254 میوانگر.
The subnet bits (S) come out of the host bits (H). ⁦(S)⁩ لە ⁦(H)⁩ دەردەهێنرێن.CêIT

The magic number: block sizeژمارەی جادوویی: قەبارەی بلۆک

Where do the subnets start? Look at the interesting octet: the mask octet that is neither 255 nor 0 (for /26 it is the last one, 192). The block size — in class often called the magic number — is 256 minus that octet: 256 − 192 = 64. 256 is 282^8, the number of values one octet of 8 bits can hold. The subnet IDs are the multiples of the block size: 0, 64, 128 and 192.

لە کوێ دەست پێ دەکەن؟ سەیری ئەو بکە کە نە ⁦255⁩ـە و نە 0 (بۆ /26 دوایین ، ⁦192⁩). قەبارەی بلۆک — کە لە پۆلدا زۆرجار پێی دەگوترێت — بریتییە لە ⁦256⁩ لابردنی ئەو : 256−192=64256 - 192 = 64. ⁦256⁩ دەکاتە 282^8، ژمارەی ئەو بەهایانەی یەک 8 دەتوانێت هەڵیبگرێت. چەندجارەکانی قەبارەی بلۆکن: 0، ⁦64⁩، ⁦128⁩ و ⁦192⁩.

Two ways give the same number: 256 ÷ (number of subnets) = 256 ÷ 4 = 64, or 2H2^H = 262^6 = 64. The last subnet always starts at 256 − block size: 256 − 64 = 192. You will use the same block size of 64, in the third octet, in a RIP lab with /18 subnets.

دوو ڕێگە هەمان ژمارە دەدەن: 256÷4=64256 \div 4 = 64 (⁦256⁩ دابەش بە ژمارەی )، یان 2H=26=642^H = 2^6 = 64. دوایین هەمیشە لە ⁦256⁩ لابردنی قەبارەی بلۆکەوە دەست پێ دەکات: 256−64=192256 - 64 = 192. هەمان قەبارەی بلۆک، ⁦64⁩، لە سێیەمدا لە تاقیکردنەوەیەکی RIP بە ژێرڕایەڵەکانی /18 بەکار دەهێنیتەوە.

The last octet from 0 to 256 cut into four coloured blocks of 64 for the mask /26 (255.255.255.192): .0–.63 subnet 1, .64–.127 subnet 2, .128–.191 subnet 3, .192–.255 subnet 4, with ticks at 0, 64, 128, 192 and 256 and a +64 arc over each block. Note: subnet IDs are multiples of the block size — 0, 64, 128, 192; the last subnet starts at 256 − 64 = 192.دوایین هەشتە لە 0 تا 256 بڕدراوە بۆ چوار بلۆکی ڕەنگاوڕەنگی 64ـی بۆ ماسکی ژێرڕایەڵەی /26 (255.255.255.192): .0–.63 ژێرڕایەڵە 1، .64–.127 ژێرڕایەڵە 2، .128–.191 ژێرڕایەڵە 3، .192–.255 ژێرڕایەڵە 4، لەگەڵ نیشانەکانی 0، 64، 128، 192 و 256 و کەوانەیەکی +64 لە سەر هەر بلۆکێک. تێبینی: ناسەڕایەڵەکانی ژێرڕایەڵەکان چەندجارەی قەبارەی بلۆکن — 0، 64، 128، 192؛ دوایین ژێرڕایەڵە لە 256 − 64 = 192 دەست پێ دەکات.
Block size 64: the subnets start every 64 addresses.قەبارەی بلۆک ⁦64⁩: هەموو ⁦64⁩ ناونیشانێک دەست پێ دەکەن.CêIT

Subnet ID, broadcast and usable addressesناسەڕایەڵە، ناسەپەخش و ناونیشانە بەکارهاتووەکان

Every subnet has the same four key numbers as a network. The subnet ID (subnet number, subnet address) is the lowest number of the subnet and names the subnet. The subnet broadcast address (also called the directed broadcast address) is the highest number. Neither can be given to a host. All the numbers between them are the usable addresses for hosts.

هەر هەمان چوار ژمارە سەرەکییەکەی هەیە. (ژمارە یان ناونیشانی ) نزمترین ژمارەی و ناوی دیاری دەکات. (کە پێی دەگوترێت ئاڕاستەکراویش) بەرزترین ژمارەیە. هیچیان نادرێن بە . هەموو ژمارەکانی نێوانیان ناونیشانە بەکارهاتووەکانن بۆ .

So for each subnet: first host = subnet ID + 1, broadcast = next subnet ID − 1 (or subnet ID + block size − 1), and last host = broadcast − 1. For 192.168.4.64/26: subnet ID .64, first host .65, last host .126, broadcast .127 — and the next subnet starts at .128.

کەواتە بۆ هەر : یەکەم = + 1، = دواتر − 1 (یان + قەبارەی بلۆک − ⁦1⁩) و دوایین = − 1. بۆ ⁦192.168.4.64/26⁩: .64، یەکەم .65، دوایین .126، .127 — و دواتر لە .128ـەوە دەست پێ دەکات.

The subnet 192.168.4.64/26 as a row of boxes: .64 subnet ID (blue), .65 first host, … 62 hosts, .126 last host (green), .127 broadcast (orange), and a dashed box .128 for the next subnet. Formulas: first host = subnet ID + 1 · broadcast = next subnet ID − 1 · last host = broadcast − 1. The subnet ID and the broadcast are never given to a host; 64 addresses − 2 = 62 usable host addresses.ژێرڕایەڵەی 192.168.4.64/26 وەک ڕیزێک چوارگۆشە: .64 ناسەڕایەڵە (شین)، .65 یەکەم میوانگر، … 62 میوانگر، .126 دوایین میوانگر (سەوز)، .127 ناسەپەخش (پرتەقاڵی) و چوارگۆشەیەکی پچڕپچڕی .128 بۆ ژێرڕایەڵەی دواتر. هاوکێشەکان: یەکەم میوانگر = ناسەڕایەڵە + 1 · ناسەپەخش = ناسەڕایەڵەی دواتر − 1 · دوایین میوانگر = ناسەپەخش − 1.
Four numbers of one subnet.چوار ژمارەی یەک .CêIT
What is Subnetting? - Subnetting Mastery - Part 1 of 7Practical Networking · Englishئینگلیزی · 702K viewsبینین · 12K likesلایک · Partبەشی 1:40–8:37 (ofلە 8:37)

The seven numbers of every subnet: size, mask and CIDR prefix, network ID, broadcast address, first and last host, and the next network.

حەوت ژمارەکەی هەر : قەبارە، و پێشگری ، ، ، یەکەم و دوایین و دواتر.

Watch from 1:40: the seven numbers of a subnet, with the network ID, the broadcast address and the first and last host.

لە ⁦1:40⁩ـەوە سەیر بکە: حەوت ژمارەکەی ، لەگەڵ ، و یەکەم و دوایین .

Worked example: three departments of a college in Erbilنموونەی کارپێکراو: سێ بەشی کۆلێژێک لە هەولێر

You are the network engineer of a university in Erbil. The College of Informatics has the network 192.168.4.0/24 and three departments — Information Technology, Networks and Database. Each department must exchange data inside its own subnet, separated from the others.

تۆ ئەندازیاری زانکۆیەکی لە هەولێر. کۆلێژی ئینفۆرماتیک ⁦192.168.4.0/24⁩ـی هەیە و سێ بەش — ، بەشی و . دەبێت هەر بەشێک لە ناو خۆیدا ئاڵوگۆڕ بکات، جیا لە ئەوانی تر.

Three subnets are needed, but subnets come in powers of two: 21=22^1 = 2 is too few, 22=42^2 = 4 is enough. Borrow 2 bits: /26. Each subnet has 64 addresses (including the subnet ID and the broadcast), so 62 hosts. The animation goes through the steps.

سێ پێویستە، بەڵام ژمارەی توانێکی دووە: 21=22^1 = 2 کەمە، 22=42^2 = 4 بەسە. 2 قەرز بکە: /26. هەر ⁦64⁩ ناونیشانی هەیە (بە و )، واتە ⁦62⁩ . ئەنیمەیشنەکە هەنگاوەکان نیشان دەدات.

Animation in six steps for 192.168.4.0/24 and three departments. 1: the task — college network 192.168.4.0/24, three departments, each in its own subnet. 2: borrow bits — 2¹ = 2 is less than 3, 2² = 4 is enough, borrow 2 bits; 24 + 2 = /26, mask 255.255.255.192. 3: block size — 256 − 192 = 64 addresses per subnet; 6 host bits give 2⁶ − 2 = 62 hosts. 4: subnet IDs — start at .0 and add 64: .0, .64, .128, .192. 5: broadcast = next subnet ID − 1; first host = ID + 1; last host = broadcast − 1. 6: the table — Information Technology 192.168.4.0 (.1–.62, broadcast .63), Networks 192.168.4.64 (.65–.126, .127), Database 192.168.4.128 (.129–.190, .191), spare 192.168.4.192 (.193–.254, .255); 62 hosts in each, the fourth subnet free for later.
Animation in six steps for 192.168.4.0/24 and three departments. 1: the task — college network 192.168.4.0/24, three departments, each in its own subnet. 2: borrow bits — 2¹ = 2 is less than 3, 2² = 4 is enough, borrow 2 bits; 24 + 2 = /26, mask 255.255.255.192. 3: block size — 256 − 192 = 64 addresses per subnet; 6 host bits give 2⁶ − 2 = 62 hosts. 4: subnet IDs — start at .0 and add 64: .0, .64, .128, .192. 5: broadcast = next subnet ID − 1; first host = ID + 1; last host = broadcast − 1. 6: the table — Information Technology 192.168.4.0 (.1–.62, broadcast .63), Networks 192.168.4.64 (.65–.126, .127), Database 192.168.4.128 (.129–.190, .191), spare 192.168.4.192 (.193–.254, .255); 62 hosts in each, the fourth subnet free for later.
Borrow bits, find the block size, list the subnets, fill in the numbers. قەرز بکە، قەبارەی بلۆک بدۆزەوە، بنووسە، ژمارەکان پڕ بکەرەوە.CêIT

Worked example: three departments of a college in Erbilنموونەی کارپێکراو: سێ بەشی کۆلێژێک لە هەولێر

The finished table, column by columnخشتە تەواوکراوەکە، ستوون بە ستوون

192.168.4.0/24 cut into four /26 subnets⁦192.168.4.0/24⁩ بڕدراو بۆ چوار /26
DepartmentبەشSubnet IDMaskHost rangeمەودای BroadcastHosts
Information Technology192.168.4.0/26.1 – .62192.168.4.6362
Networksبەشی 192.168.4.64/26.65 – .126192.168.4.12762
Database192.168.4.128/26.129 – .190192.168.4.19162
spareیەدەگ192.168.4.192/26.193 – .254192.168.4.25562
  1. Subnet IDناسەڕایەڵە

    Start with the college's 192.168.4.0, then add the block size, 64, each time.

    بە ⁦192.168.4.0⁩ـی کۆلێژەکە دەست پێ بکە، پاشان هەر جارە قەبارەی بلۆک، ⁦64⁩، زیاد بکە.

  2. Maskماسکی ژێرڕایەڵە

    The same for all four: /26 (255.255.255.192).

    بۆ هەر چواریان هەمانە: /26 ⁦(255.255.255.192)⁩.

  3. Hostsمیوانگرەکان

    62, not 64: the 64 addresses include the subnet ID and the broadcast.

    ⁦62⁩، نەک ⁦64: 64⁩ ناونیشانەکە و لەخۆ دەگرن.

  4. Broadcastناسەپەخش

    The next subnet ID minus 1; the last one ends at .255. Or add 64 to the previous broadcast: .191 + 64 = .255.

    دواتر لابردنی 1؛ دوایینیان بە .255 کۆتایی دێت. یان ⁦64⁩ بخە سەر پێشوو: .191 + ⁦64⁩ = .255.

  5. Host rangeمەودای میوانگرەکان

    Everything between the subnet ID and the broadcast: first host = ID + 1, last host = broadcast − 1.

    هەموو ئەوانەی لە نێوان و : یەکەم = + 1، دوایین = − 1.

Three departments use three subnets; the fourth stays free. With equal-size subnets one block is left over — keep it for a new department, or split it further with VLSM (VLSM: subnets of different sizes).

سێ بەش سێ بەکار دەهێنن؛ چوارەمیان بەتاڵ دەمێنێتەوە. بە قەبارە یەکسان، بلۆکێک زیاد دەمێنێتەوە — بۆ بەشێکی نوێ هەڵیبگرە، یان بە زیاتر دابەشی بکە (VLSM: ژێرڕایەڵەکانی قەبارە جیاواز).

A quick table for /24 to /32خشتەیەکی خێرا بۆ /24 تا /32

For a /24 the whole job fits in one table. Find the number of subnets you need (or the hosts per subnet) and read the prefix, the mask, the block size and the usable hosts on the same row. Needing 3 subnets? 3 is not in the table, so take the next bigger number, 4: /26, block 64, 62 hosts.

بۆ /24 هەموو کارەکە لە یەک خشتەدا جێ دەبێتەوە. ژمارەی ئەو پێویستتە (یان هەر ) بدۆزەوە و پێشگر، ، قەبارەی بلۆک و بەکارهاتوو لە هەمان ڕیزدا بخوێنەوە. 3 پێویستە؟ 3 لە خشتەکەدا نییە، بۆیە ژمارەی گەورەتری دواتر بگرە، 4: /26، بلۆکی ⁦64⁩، ⁦62⁩ .

A table for subnetting a /24 with five columns: prefix, last mask octet, subnets, block size and usable hosts. /24: 0, 1, 256, 254. /25: 128, 2, 128, 126. /26: 192, 4, 64, 62. /27: 224, 8, 32, 30. /28: 240, 16, 16, 14. /29: 248, 32, 8, 6. /30: 252, 64, 4, 2. /31: 254, 128, 2, 2 (both addresses usable on a point-to-point link between two routers, RFC 3021). /32: 255, 256, 1, 1 (one single address, for example a router loopback interface).خشتەیەک بۆ ژێرڕایەڵەسازیی /24 بە پێنج ستوون: پێشگر، دوایین هەشتەی ماسکی ژێرڕایەڵە، ژمارەی ژێرڕایەڵەکان، قەبارەی بلۆک و میوانگری بەکارهاتوو. /24: 0، 1، 256، 254. /25: 128، 2، 128، 126. /26: 192، 4، 64، 62. /27: 224، 8، 32، 30. /28: 240، 16، 16، 14. /29: 248، 32، 8، 6. /30: 252، 64، 4، 2. /31: 254، 128، 2، 2 (هەردوو ناونیشان لە بەستەرێکی پەیوەندیی خاڵ بۆ خاڵ نێوان دوو ڕێدۆزدا، RFC 3021). /32: 255، 256، 1، 1 (تەنیا یەک ناونیشان).
Each row down: twice the subnets, half the block.هەر ڕیزێک بەرەو خوارەوە: دوو هێندە ، نیوەی بلۆک.CêIT

Which subnet is this address in?ئەم ناونیشانە لە کام ژێرڕایەڵەدایە؟

Exams often give one address with a prefix and ask for its subnet. Method: find the block size, then find the largest multiple of the block size that is not bigger than the address's interesting octet. That multiple is the subnet ID; the next multiple minus 1 is the broadcast.

پرسیارەکانی تاقیکردنەوە زۆرجار یەک ناونیشان لەگەڵ پێشگرێک دەدەن و دەپرسن. ڕێگە: قەبارەی بلۆک بدۆزەوە، پاشان گەورەترین چەندجارەی قەبارەی بلۆک بدۆزەوە کە لە گۆڕاوەکەی ناونیشانەکە گەورەتر نەبێت. ئەو چەندجارەیە ؛ چەندجارەی دواتر لابردنی 1 .

  • 192.168.1.77/25 — block 128 (2 subnets, 126 hosts each): 77 is in .0–.127 → subnet ID 192.168.1.0, broadcast 192.168.1.127.
  • 192.168.1.200/25 — same two subnets: 200 is in .128–.255 → subnet ID 192.168.1.128, broadcast 192.168.1.255.
  • 192.168.1.200/26 — block 64 (4 subnets, 62 hosts each): 200 is in .192–.255 → 192.168.1.192, broadcast 192.168.1.255.
  • 192.168.1.100/27 — block 32 (8 subnets, 30 hosts each: 0–31, 32–63, 64–95, 96–127 …): 100 is in .96–.127 → 192.168.1.96, broadcast 192.168.1.127.
  • ⁦192.168.1.77/25⁩ — بلۆکی ⁦128⁩ (واتە 2 ، هەریەکە ⁦126⁩ ): ⁦77⁩ لە .0–.127ـدایە ← ⁦192.168.1.0⁩، ⁦192.168.1.127⁩.
  • ⁦192.168.1.200/25⁩ — هەمان دوو : ⁦200⁩ لە .128–.255ـدایە ← ⁦192.168.1.128⁩، ⁦192.168.1.255⁩.
  • ⁦192.168.1.200/26⁩ — بلۆکی ⁦64⁩ (واتە 4 ، هەریەکە ⁦62⁩ ): ⁦200⁩ لە .192–.255ـدایە ← ⁦192.168.1.192⁩، ⁦192.168.1.255⁩.
  • ⁦192.168.1.100/27⁩ — بلۆکی ⁦32⁩ (واتە 8 ، هەریەکە ⁦30⁩ : ⁦0–31⁩، ⁦32–63⁩، ⁦64–95⁩، ⁦96–127⁩ …)؛ ⁦100⁩ لە .96–.127ـدایە ← ⁦192.168.1.96⁩، ⁦192.168.1.127⁩.

The mask may also be given in dotted decimal: 192.168.0.100 with 255.255.255.128 is the same as /25 — 1 borrowed bit, block 128, subnets 192.168.0.0–192.168.0.127 and 192.168.0.128–192.168.0.255, so .100 is in the first.

دەکرێت بە بدرێت: ⁦192.168.0.100⁩ لەگەڵ ⁦255.255.255.128⁩ هەمان /25ـە — 1 قەرزکراو، بلۆکی ⁦128⁩، ⁦192.168.0.0–192.168.0.127⁩ و ⁦192.168.0.128–192.168.0.255⁩، بۆیە .100 لە یەکەمیاندایە.

Three number lines from 0 to 255 with the matching block highlighted and a pin at the address. 192.168.1.77/25: blocks of 128, the pin at 77 in the first block — block 128: .0 – .127, subnet ID .0, broadcast .127. 192.168.1.200/26: blocks of 64, the pin at 200 in the last block — .192 – .255, subnet ID .192, broadcast .255. 192.168.1.100/27: blocks of 32, the pin at 100 in the fourth block — .96 – .127, subnet ID .96, broadcast .127.سێ هێڵی ژمارە لە 0 تا 255، بلۆکی گونجاو دیاری کراوە و دەرزییەک لە سەر ناونیشانەکەیە. 192.168.1.77/25: بلۆکی 128ـی، دەرزی لە 77 لە بلۆکی یەکەم — .0 – .127، ناسەڕایەڵە .0، ناسەپەخش .127. 192.168.1.200/26: بلۆکی 64ـی، دەرزی لە 200 لە دوایین بلۆک — .192 – .255. 192.168.1.100/27: بلۆکی 32ـی، دەرزی لە 100 لە بلۆکی چوارەم — .96 – .127.
Find the block that holds the address.ئەو بلۆکە بدۆزەوە کە ناونیشانەکەی تێدایە.CêIT

One address, four masksیەک ناونیشان، چوار ماسکی ژێرڕایەڵە

A classic exercise: subnet 192.168.1.100 with /28, /29, /30 and /31 (class C, so the starting mask is /24). For each mask: borrowed bits = prefix − 24, subnets = 2S2^S, block size = 256 ÷ subnets, hosts = block − 2, and the subnet of .100 is the block that holds 100.

ڕاهێنانێکی ناسراو: ⁦192.168.1.100⁩ بە /28، /29، /30 و /31 (پۆلی C، بۆیە سەرەتا /24ـە). بۆ هەر : قەرزکراو = پێشگر − ⁦24⁩، ژمارەی = 2S2^S، قەبارەی بلۆک = ⁦256⁩ ÷ ژمارەی ، = بلۆک − 2 و .100 ئەو بلۆکەیە کە ⁦100⁩ـی تێدایە.

192.168.1.100 with four masks (checked with Python)⁦192.168.1.100⁩ بە چوار (بە پشکنراوە)
PrefixپێشگرMaskBorrowed bits قەرزکراوSubnetsBlockبلۆکHostsSubnet of .100 .⁦100⁩
/28255.255.255.2404161614192.168.1.96 – .111
/29255.255.255.24853286192.168.1.96 – .103
/30255.255.255.25266442192.168.1.100 – .103
/31255.255.255.254712822 (router link)2 (بەستەری )192.168.1.100 – .101

To list all the subnets quickly, count up in steps of the block size: for /29, 0, 8, 16, 24 … The last subnet ID is always 256 − block size (for /29: 256 − 8 = 248, the same as “255 − (block − 1)”), and the last broadcast is .255.

بۆ نووسینی خێرای هەموو ، بە هەنگاوی قەبارەی بلۆک بژمێرە: بۆ /29، 0، 8، ⁦16⁩، ⁦24⁩ … دوایین هەمیشە 256−block256 - \text{block}ـە (بۆ /29: 256−8=248256 - 8 = 248، هەمان 255−(8−1)255 - (8 - 1)) و دوایین .255ـە.

The addresses .96 to .111 in a row, with .100 and .101 highlighted. Four bars below: /28 covers .96 – .111 (16 addresses, 14 hosts); /29 covers .96 – .103 (8 addresses, 6 hosts); /30 covers .100 – .103 (4 addresses, 2 hosts); /31 covers .100 – .101 (2 addresses, both used on a router link). Each longer prefix halves the block around .100.ناونیشانەکانی .96 تا .111 لە ڕیزێکدا، .100 و .101 دیاری کراون. چوار شریت لە خوارەوە: /28 .96 – .111 دەگرێتەوە (16 ناونیشان، 14 میوانگر)؛ /29 .96 – .103 (8 ناونیشان، 6 میوانگر)؛ /30 .100 – .103 (4 ناونیشان، 2 میوانگر)؛ /31 .100 – .101 (2 ناونیشان، هەردووکیان لە بەستەری ڕێدۆز). هەر پێشگرێکی درێژتر بلۆکی دەوری .100 نیوە دەکات.
The same address in smaller and smaller blocks.هەمان ناونیشان لە بلۆکی بچووکتر و بچووکتردا.CêIT

/31: two addresses for a router link/31: دوو ناونیشان بۆ بەستەری ڕێدۆز

What about /31? The block size is 2, so the old rule leaves no host at all (2 − 2 = 0), and for a long time /31 was treated as unusable. Since RFC 3021 (December 2000) that is no longer true for point-to-point links: a link between two routers has exactly two ends and needs no broadcast, so both addresses of a /31 are host addresses. A /30 wastes half of its four addresses on the same link.

ئەی /31؟ قەبارەی بلۆک 2ـە، بۆیە یاسا کۆنەکە هیچ ناهێڵێتەوە (2−2=02 - 2 = 0) و بۆ چەندین ساڵ /31 بە بەکارنەهاتوو دادەنرا. لە ⁦RFC 3021⁩ـەوە (کانوونی یەکەمی ⁦2000⁩) ئەمە بۆ بەستەری ڕاست نییە: بەستەرێکی نێوان دوو تەنیا دوو سەری هەیە و پێویستی بە نییە، بۆیە هەردوو ناونیشانی /31 ناونیشانی . /30 لە هەمان بەستەردا نیوەی چوار ناونیشانەکەی بەفیڕۆ دەدات.

In a normal LAN a /31 is still useless: there would be no room for a broadcast address or a third device. And /32 is one single address — used, for example, for a router's loopback interface in the routing lessons. Python agrees: ip_network('198.51.100.0/31').hosts() returns both addresses.

لە ئاساییدا /31 هێشتا بێسوودە: شوێن بۆ یان ئامێری سێیەم نامێنێت. /32ـیش تەنیا یەک ناونیشانە — بۆ نموونە بۆ لە وانەکانی بەکار دێت. هەمان شت دەڵێت: ip_network('198.51.100.0/31').hosts() هەردوو ناونیشانەکە دەگەڕێنێتەوە.

Two panels with routers R1 and R2 joined by one link. Left: 198.51.100.0/30 — 4 addresses: .0 network ID, .1 R1, .2 R2, .3 broadcast; 2 of 4 addresses used. Right: 198.51.100.0/31 — 2 addresses: .0 R1, .1 R2; 2 of 2 used (RFC 3021).دوو پەنجەرە، ڕێدۆزەکانی R1 و R2 بە یەک بەستەر پێکەوە بەستراون. چەپ: 198.51.100.0/30 — 4 ناونیشان: .0 ناسەڕایەڵە، .1 R1، .2 R2، .3 ناسەپەخش؛ 2 لە 4 ناونیشان بەکار دێن. ڕاست: 198.51.100.0/31 — 2 ناونیشان: .0 R1، .1 R2؛ 2 لە 2 بەکار دێن (RFC 3021).
A /31 saves half the addresses of every router-to-router link./31 نیوەی ناونیشانەکانی هەموو بەستەرێکی نێوان دوو دەپارێزێت.CêIT

Exam question: what exists before subnetting?پرسیاری تاقیکردنەوە: پێش ژێرڕایەڵەسازی چی هەیە؟

A favourite exam question: before an engineer subnets the class B network 172.16.0.0, which parts of its address structure already exist, with a fixed size? Think of N + S + H: the subnet part is created by borrowing, so before subnetting there are only two parts: the network part and the host part (16 bits each).

پرسیارێکی خۆشەویستی تاقیکردنەوە: پێش ئەوەی ئەندازیارێک پۆلی ⁦B 172.16.0.0⁩ بکات، کام بەشەکانی پێکهاتەی ناونیشانەکانی بە قەبارەیەکی دیاریکراو هەن؟ بیر لە ⁦N + S + H⁩ بکەرەوە: بەشی بە قەرزکردن دروست دەبێت، بۆیە پێش تەنیا دوو بەش هەن: و (هەریەکە ⁦16⁩ ).

Plan the implementation, then try itپلانی جێبەجێکردن، پاشان تاقیکردنەوە

The last stage maps the subnets onto the real network: look at the network diagram and give every location that needs a subnet its own block. In the example below the class B network 172.16.0.0 is cut into /24 subnets: one for each of the three LANs and one for each of the two links between routers (a serial link and an Ethernet WAN). Then decide the static addresses (router interfaces, servers) and the DHCP ranges in each subnet.

قۆناغی کۆتایی دەخاتە سەر ڕاستەقینەکە: سەیری بکە و بلۆکی تایبەت بدە بە هەر شوێنێک کە پێویستی بە هەیە. لە نموونەی خوارەوەدا پۆلی ⁦B 172.16.0.0⁩ بڕدراوە بۆ /24: یەکێک بۆ هەریەک لە سێ و یەکێک بۆ هەریەک لە دوو بەستەرەکەی نێوان (بەستەرێکی زنجیرەیی و Ethernet WAN). پاشان ناونیشانە جێگیرەکان ( ، ) و مەوداکانی لە هەر دیاری بکە.

Three routers. R1 in the middle is joined to R2 by a serial link, subnet 172.16.4.0/24, and to R3 through an Ethernet WAN cloud, subnet 172.16.5.0/24. Each router has a LAN with a switch and three PCs: R3 172.16.3.0/24, R1 172.16.1.0/24, R2 172.16.2.0/24. Bottom: 3 LANs + 2 router links = 5 subnets, each a /24 (255.255.255.0).سێ ڕێدۆز. R1 لە ناوەڕاست بە بەستەرێکی زنجیرەیی بە R2ـەوە بەستراوە (ژێرڕایەڵە 172.16.4.0/24) و لە ڕێگەی هەورێکی Ethernet WAN بە R3ـەوە (ژێرڕایەڵە 172.16.5.0/24). هەر ڕێدۆزێک ڕایەڵەیەکی ناوچەیی هەیە بە سویچێک و سێ PCـەوە: R3 172.16.3.0/24، R1 172.16.1.0/24، R2 172.16.2.0/24. خوارەوە: 3 ڕایەڵەی ناوچەیی + 2 بەستەری ڕێدۆز = 5 ژێرڕایەڵە، هەریەکە /24 (255.255.255.0).
Five locations, five /24 subnets of 172.16.0.0.پێنج شوێن، پێنج /24ـی ⁦172.16.0.0⁩.CêIT

Try it: in the CêIT network lab build two subnets joined by a router — for example 192.168.1.0/26 and 192.168.1.64/26 — give each PC an address of its subnet and the router interface as gateway, then ping across. In Packet Tracer the same works with a router and two switches; the next lesson builds bigger designs.

تاقیی بکەرەوە: لە تاقیگەی ڕایەڵەی CêIT دوو دروست بکە کە بە پێکەوە بەستراون — بۆ نموونە ⁦192.168.1.0/26⁩ و ⁦192.168.1.64/26⁩ — بە هەر PCـێک ناونیشانێکی بدە و وەک ، پاشان بکە بۆ ئەوبەر. لە Packet Tracerـیش بە و دوو هەمان کار دەکرێت؛ وانەی داهاتوو دیزاینی گەورەتر دروست دەکات.

Common mistakesهەڵە باوەکان

MistakeهەڵەWhat is trueڕاستییەکە
A /26 subnet has 64 hosts. /26 ⁦64⁩ هەیە.64 addresses, 62 hosts: the subnet ID and the broadcast are not hosts.⁦64⁩ ناونیشان، ⁦62⁩ : و نین.
The first host is the subnet ID; the last host is the broadcast.یەکەم ؛ دوایین .First host = subnet ID + 1; last host = broadcast − 1.یەکەم = + 1؛ دوایین = − 1.
Need 3 subnets → borrow 3 bits.3 پێویستە ← 3 قەرز بکە.Borrow the fewest bits with 2S≥32^S \ge 3: 2 bits give 4.کەمترین قەرز بکە کە 2S≥32^S \ge 3: 2 4 دەدەن.
Block size = the mask octet (192).قەبارەی بلۆک = ⁦(192)⁩.Block size = 256 − 192 = 64.قەبارەی بلۆک = 256−192=64256 - 192 = 64.
The block size is always applied to the last octet.قەبارەی بلۆک هەمیشە لە دوایین بەکار دێت.It applies to the octet where the mask is neither 255 nor 0 (the third octet for /17–/23).لەو بەکار دێت کە تێیدا نە ⁦255⁩ـە نە 0 ( سێیەم بۆ /17–/23).
/31 is never valid./31 هەرگیز دروست نییە.It is valid on point-to-point router links (RFC 3021).لە بەستەری دروستە ⁦(RFC 3021)⁩.
Two subnets can be on the same LAN without a router.دوو دەتوانن بێ لەسەر هەمان بن.Different subnets need a router between them to talk. جیاواز بۆ قسەکردن پێویستیان بە هەیە لە نێوانیاندا.

Exercisesڕاهێنانەکان

ExerciseڕاهێنانOne address, three masksیەک ناونیشان، سێ ماسکی ژێرڕایەڵە

Subnet 192.168.1.100 with /28, /29 and /30. For each: borrowed bits, number of subnets, block size, hosts per subnet, the first three subnets, the last subnet and the subnet that holds .100.

⁦192.168.1.100⁩ بە /28، /29 و /30 بکە. بۆ هەریەکە: قەرزکراو، ژمارەی ، قەبارەی بلۆک، هەر ، سێ یەکەم، دوایین و ئەو .100ـی تێدایە.

Show answerوەڵامەکە پیشان بدە
MaskBorrowed bits (S) قەرزکراو ⁦(S)⁩SubnetsBlockبلۆکHostsFirst threeسێی یەکەمLastدوایین.100 is in.100 لە
/284161614.0, .16, .32.240 – .255.96 – .111
/2953286.0, .8, .16.248 – .255.96 – .103
/3066442.0, .4, .8.252 – .255.100 – .103
ExerciseڕاهێنانFive subnetsپێنج ژێرڕایەڵە

The network 192.168.5.0/24 must be split into 5 subnets. Give the new mask, the block size, the hosts per subnet and the list of subnet IDs.

⁦192.168.5.0/24⁩ دەبێت بکرێت بە 5 . نوێ، قەبارەی بلۆک، هەر و لیستی بنووسە.

Show answerوەڵامەکە پیشان بدە

23=8≥52^3 = 8 \ge 5, so borrow 3 bits: /27 = 255.255.255.224. Block 32, 30 hosts per subnet. Subnet IDs: .0, .32, .64, .96, .128, .160, .192, .224 (five used, three spare).

23=8≥52^3 = 8 \ge 5، بۆیە 3 قەرز بکە: /27 = ⁦255.255.255.224⁩. بلۆکی ⁦32⁩، ⁦30⁩ لە هەر . : .0، .32، .64، .96، .128، .160، .192، .224 (پێنجیان بەکار دێن و سێیان یەدەگن).

ExerciseڕاهێنانTen subnetsدە ژێرڕایەڵە

The documentation network 203.0.113.0/24 must be split into 10 subnets. Which prefix do you use, and what are the first two subnets with their host ranges?

⁦203.0.113.0/24⁩ دەبێت بکرێت بە ⁦10⁩ . کام پێشگر بەکار دەهێنیت و دوو یەکەم لەگەڵ مەودای چین؟

Show answerوەڵامەکە پیشان بدە

24=16≥102^4 = 16 \ge 10: /28 (255.255.255.240), block 16, 14 hosts. 203.0.113.0/28: hosts .1–.14, broadcast .15. 203.0.113.16/28: hosts .17–.30, broadcast .31.

24=16≥102^4 = 16 \ge 10: /28 ⁦(255.255.255.240)⁩، بلۆکی ⁦16⁩، ⁦14⁩ . ⁦203.0.113.0/28⁩: .1–.14، .15. ⁦203.0.113.16/28⁩: .17–.30، .31.

ExerciseڕاهێنانPlanning by hostsپلاندانان بەپێی میوانگرەکان

Each subnet of 192.168.7.0/24 must hold 25 hosts. Which prefix do you choose, and how many such subnets are there?

هەر ⁦192.168.7.0/24⁩ دەبێت ⁦25⁩ هەڵبگرێت. کام پێشگر هەڵدەبژێریت و چەند لەم جۆرە هەیە؟

Show answerوەڵامەکە پیشان بدە

25−2=30≥252^5 - 2 = 30 \ge 25 (but 24−2=142^4 - 2 = 14 is too few), so H = 5 and the prefix is 32 − 5 = /27: 8 subnets of 30 hosts.

25−2=30≥252^5 - 2 = 30 \ge 25 (بەڵام 24−2=142^4 - 2 = 14 کەمە)، بۆیە ⁦H = 5⁩ و پێشگرەکە 32−5=2732 - 5 = 27، واتە /27: 8 ، هەریەکە ⁦30⁩ .

ExerciseڕاهێنانUsable or not?بەکارهاتووە یان نا؟

Is 192.168.4.191 a usable host address in 192.168.4.128/26? What about 192.168.4.100?

ئایا ⁦192.168.4.191⁩ ناونیشانێکی بەکارهاتووی لە ⁦192.168.4.128/26⁩ـدا؟ ئەی ⁦192.168.4.100⁩؟

Show answerوەڵامەکە پیشان بدە

No: .191 is the broadcast of 192.168.4.128/26 (.128–.191). And .100 is not in this subnet at all: it belongs to 192.168.4.64/26.

نەخێر: .191 ⁦192.168.4.128/26⁩ـە (.128–.191). .100ـیش هەر لەم نییە: سەر بە ⁦192.168.4.64/26⁩ـە.

Summaryپوختە

A checklist card with six numbered steps: 1 how many subnets and hosts do you need? 2 borrow S host bits so that 2^S ≥ subnets; check 2^H − 2 ≥ hosts. 3 new prefix = old prefix + S; write the mask. 4 block size = 256 − the mask octet that is not 255 or 0. 5 list the subnet IDs: 0, block, 2 × block … 6 for each: first host = ID + 1, broadcast = next ID − 1, last host = broadcast − 1.کارتێکی پشکنین بە شەش هەنگاوی ژمارەکراو: 1 چەند ژێرڕایەڵە و چەند میوانگرت پێویستە؟ 2 S بیتی میوانگر قەرز بکە تا 2^S لە ژمارەی ژێرڕایەڵەکان کەمتر نەبێت. 3 پێشگری نوێ = پێشگری کۆن + S؛ ماسکی ژێرڕایەڵەکە بنووسە. 4 قەبارەی بلۆک = 256 − ئەو هەشتەیەی ماسکی ژێرڕایەڵە کە 255 یان 0 نییە. 5 ناسەڕایەڵەکان بنووسە: 0، بلۆک، 2 × بلۆک … 6 بۆ هەریەکە: یەکەم میوانگر = ناسەڕایەڵە + 1، ناسەپەخش = ناسەڕایەڵەی دواتر − 1، دوایین = ناسەپەخش − 1.
The whole method on one card.هەموو ڕێگاکە لە یەک کارتدا.CêIT
  • Subnetting borrows S bits from the host part: N + S + H = 32, 2S2^S subnets, 2H−22^H - 2 hosts each.
  • Block size (magic number) = 256 − the interesting mask octet; subnet IDs are its multiples.
  • First host = ID + 1, broadcast = next ID − 1, last host = broadcast − 1.
  • Subnets give smaller broadcast domains, order and security; a router joins them.
  • /31 is valid on point-to-point router links (RFC 3021); /32 is a single address.
  • S لە قەرز دەکات: ⁦N + S + H = 32⁩، 2S2^S ، هەریەکە 2H−22^H - 2 .
  • قەبارەی بلۆک () = ⁦256⁩ − گۆڕاوەکەی ؛ چەندجارەکانی ئەون.
  • یەکەم = + 1، = دواتر − 1، دوایین = − 1.
  • بچووکتر، ڕێکوپێکی و دەدەن؛ پێکیانەوە دەبەستێتەوە.
  • /31 لە بەستەری دروستە ⁦(RFC 3021)⁩؛ /32 تەنیا یەک ناونیشانە.

Videoڤیدیۆ

Watch a videoسەیری ڤیدیۆیەک بکە

A video that viewers liked a lot and praised in their comments, chosen for this lesson.ڤیدیۆیەک کە بینەران زۆریان پێ خۆش بووە و لە کۆمێنتەکانیاندا ستایشیان کردووە، بۆ ئەم وانەیە هەڵبژێردراوە.

IP Subnetting FLSM - Part 1 | KurdishHAMANET · Kurdish (Sorani)کوردی (سۆرانی) · 8.9K viewsبینین · 271 likesلایک

A short Kurdish worked example of subnetting with one mask for every subnet (FLSM), written out by hand.

نموونەیەکی کورتی چارەسەرکراو بە کوردی بۆ بە یەک بۆ هەموو ⁦(FLSM)⁩، کە بە دەست نووسراوە.

Whole video, in Kurdish: one subnetting example worked by hand.

هەموو ڤیدیۆکە، بە کوردی: نموونەیەکی کە بە دەست چارەسەر دەکرێت.

Lesson complete!وانەکە تەواو بوو!

Well done. Review the key terms, then go on to the next lesson.دەستخۆش. سەیرێکی زاراوە سەرەکییەکان بکەرەوە، پاشان بڕۆ بۆ وانەی داهاتوو.

Key termsزاراوە سەرەکییەکان

Next lessonوانەی داهاتوو

More Subnetting: Bigger Networks, Exam Questions and VLSMژێرڕایەڵەسازیی زیاتر: ڕایەڵە گەورەکان، پرسیاری تاقیکردنەوە و VLSM

References and further readingسەرچاوەکان و خوێندنەوەی زیاتر

This lecture is a first edition. The Kurdish text and terminology are waiting for review by Kurdish IT teachers.ئەم وانەیە چاپی یەکەمە. دەقە کوردییەکە و زاراوەکانی چاوەڕێی پێداچوونەوەی مامۆستایانی کوردی بواری IT ن.

Appearanceڕووکار

Modeدۆخ
Styleشێواز
Coloursڕەنگەکان

Saved on this device only.تەنیا لەسەر ئەم ئامێرە پاشەکەوت دەکرێت.