<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.daihockhonggiay.com/blogs/tag/chia-mạng-con/feed" rel="self" type="application/rss+xml"/><title>Đại học Không Giấy - Blog #chia mạng con</title><description>Đại học Không Giấy - Blog #chia mạng con</description><link>https://www.daihockhonggiay.com/blogs/tag/chia-mạng-con</link><lastBuildDate>Mon, 15 Sep 2025 00:48:29 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[ Giới thiệu về chia mạng con]]></title><link>https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-chia-mang-con</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/chia.jpg"/>Chia một mạng thành các Subnet giúp giảm kích thước của miền quảng bá, khi miền quảng bá quá rộng sẽ dẫn tới việc lãng phí dải thông làm cho hiệu xuất của mạng bị giảm. Trong bài này sẽ trình bày thêm phương pháp sử dụng VLSM để các bạn tham khảo.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_HeQnzZuLSJi3t2oPSD3LdA" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_rAUzcTmyTumsp5JV9CRrMA" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_6Pe3iavTSD6CIL0B6BSXGg" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_iJaugREDQ3K3JscPskrKBg" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_iJaugREDQ3K3JscPskrKBg"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Giới thiệu về chia mạng con</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. giới thiệu</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Như chúng ta đã biết trong một mạng của lớp A có tới 16.777.214 host vậy việc quản lý và phân chia địa chỉ cho các host sẽ vô cùng khó khăn để giải quyết vấn đề này người quản trị có thể tiến hành phân chia mạng của họ thành nhiều mạng nhỏ hơn các mạng nhỏ hơn này được gọi là các mạng con (Subneting), có thể gọi ngắn gọn là Subnet. Việc phân chia một mạng thành các Subnet còn giúp giảm kích thước của miền quảng bá, khi miền quảng bá quá rộng sẽ dẫn tới việc lãng phí dải thông làm cho hiệu xuất của mạng bị giảm.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Để tạo ra một mạng con người quản trị mạng sẽ tiến hành mượn các bit cao nhất trong phần bit dành cho Host ID và gán chúng như là Subnet ID.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/1/15.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Lợi ích của phân chia mạng thành mạng con</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Giảm nghẽn mạng bằng cách tái định hướng các giao vận và giới hạn phạm vi của các thông điệp quảng bá.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Giới hạn trong phạm vi từng mạng con các trục trặc có thể xảy ra (không ảnh hưởng tới toàn mạng LAN)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Giảm % thời gian sử dụng CPU do giảm lưu lượng của các dịch vụ từ tầng ứng dụng quảng bá - Tăng cường bảo mật (các chính sách bảo mật có thể áp dụng cho từng mạng con)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Cho phép áp dụng các cấu hình khác nhau trên từng mạng con</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Các bước chia mạng con</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Câu 1.&nbsp;</span>Một doanh nghiệp A có 3 phòng máy, phòng 1 có 70 máy, phòng 2 có 140 máy, phòng 3 có 302 máy. Sử dụng dải địa chỉ 10.21.1.0/21 để chia mạng con và gán đường mạng con sau chia phù hợp với 3 phòng máy.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Câu 2.</span>&nbsp;Từ đường mạng con gán cho phòng máy 1, yêu cầu tìm các thông số sau:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">a. Network ID</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">b. Host ID</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">c. Địa chỉ đường mạng</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">d. Địa chỉ Broadcast</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">e. Dải địa chỉ cấp phát</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">f. Subnet mask</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">g. Default gateway</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Lời giải gợi ý (lời giải này chỉ mang tính tham khảo)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 1.&nbsp;</span>&nbsp;Tìm số Bit của Host ID mà các phòng máy cần sử dụng</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Phòng máy 1 có 70 máy nên số Bit Host sử dụng là 7 bit (27-2 &lt;=&gt;128-2=126).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Phòng máy 2 có 140 máy nên số Bit Host sử dụng là 8 bit (28-2&lt;=&gt;256-2=254).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Phòng máy 3 có 302 máy nên số Bit Host sử dụng&nbsp; là 9 bit (29-2&lt;=&gt;512-2=510)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 2.</span>&nbsp;Do đường mạng 10.21.1.0/21 chưa phải đường mạng chuẩn nên ta cần đưa về đường chuẩn bằng phép and:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">00001010.00010101.00000001.00000000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>11111111.11111111.11111000.00000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">00001010.00010101.00000000.00000000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng chuẩn sẽ là: 10.21.0.0/21</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 3.</span>&nbsp;Sử dụng phương pháp tối ưu VLSM để chia đường mạng chuẩn 10.21.0.0/21 thành các mạng con:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Từ Phòng máy 3, số Bit Host sử dụng là 9 nên số Bit còn dư là: 32-21-9=2 bit. Sử dụng 2 bit dư này để chia mạng con ta sẽ có 22=4 đường mạng con (các giá trị là: 00, 01,10,11).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>00001010.00010101.00000</u><span style="font-weight:700;">00</span><u>0.00000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>11111111.11111111.11111</u><span style="font-weight:700;">00</span><u>0.00000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 1 là: 10.21.0.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 2 là: 10.21.2.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 3 là: 10.21.4.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 4 là: 10.21.6.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Lấy đường mạng con 1 là: 10.21.0.0/23 gán cho Phòng máy 3.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Lấy đường mạng con 2 là: 10.21.2.0/23 đem chia tiếp.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 4.</span>&nbsp;Tiếp tục sử dụng phương pháp tối ưu VLSM để chia đường mạng 10.21.2.0/23 thành các mạng con:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Từ Phòng máy 2, số Bit Host sử dụng là 8 nên số Bit còn dư là: 32-23-8=1 bit. Sử dụng 1 bit dư này để chia mạng con ta sẽ có 21=2 đường mạng con (các giá trị là: 0,1).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>00001010.00010101.0000001</u><span style="font-weight:700;">0</span><u>.00000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>11111111.11111111.1111111</u><span style="font-weight:700;">0</span><u>.00000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 1 là: 10.21.2.0/24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 2 là: 10.21.3.0/24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Lấy đường mạng con 1 là: 10.21.2.0/24 gán cho Phòng máy 2.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Lấy đường mạng con 2 là: 10.21.3.0/24 đem chia tiếp.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 5.</span>&nbsp;Tiếp tục sử dụng phương pháp tối ưu VLSM để chia đường mạng 10.21.3.0/24 thành các mạng con:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Từ Phòng máy 1, số Bit Host sử dụng là 7 nên số Bit còn dư là: 32-24-7=1 bit. Sử dụng 1 bit dư này để chia mạng con ta sẽ có 21=2 đường mạng con (các giá trị là: 0,1).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>00001010.00010100.00000011.</u><span style="font-weight:700;">00</span><u>000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><u>11111111.11111111.11111111.</u><span style="font-weight:700;">00</span><u>000000</u></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 1 là: 10.21.3.0/25</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; Đường mạng con 2 là: 10.20.3.128/25</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Lấy đường mạng con 1 là: 10.21.3.0/25 gán cho Phòng máy 1.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;font-size:14px;">Kết luận:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ta có các đường mạng con gán cho các Phòng máy là:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.3.0/25 gán cho Phòng máy 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.2.0/24 gán cho Phòng máy 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.0.0/23 gán cho Phòng máy 3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Và các đường còn dư là:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.4.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.6.0/23</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 10.21.3.128/25</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;font-size:14px;">Câu 2. Từ đường mạng 10.21.3.0/25 gán cho Phòng máy 1 ta có</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">a. NetID = 25</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">b. HostID = 32 – 25 = 7 =&gt; 27&nbsp;– 2 = 128 – 2 = 126 địa chỉ IP (trừ địa chỉ đường mạng và địa chỉ Broadcast).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">c. Địa chỉ đường mạng: 10.21.3.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">d. Địa chỉ Broadcast: 10.21.3.127</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">e. Dải địa chỉ cấp phát: 10.21.3.1 – 10.21.3.126</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">f. Subnet mask: 255.255.255.128</span></p><p><span style="color:inherit;font-size:14px;"></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">g. Default gateway: 10.21.3.1</span></p><p style="margin-bottom:20px;">-----&amp;-----&amp;-----</p><p style="text-align:left;margin-bottom:20px;"><span style="color:inherit;"></span></p><p style="margin-bottom:20px;">Video tham khảo</p></div>
</div><div data-element-id="elm_rmH6OBhM5yA4EC8Vu0xzcQ" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_rmH6OBhM5yA4EC8Vu0xzcQ"].zpelem-video{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpvideo-container zpiframe-align-center zpiframe-mobile-align- zpiframe-tablet-align-"><iframe class="zpvideo " width="560" height="315" src="//www.youtube.com/embed/RvIYPoeRNgU" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_5YG8TM6yT3fV9TlPG0TEcQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_5YG8TM6yT3fV9TlPG0TEcQ"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_5YG8TM6yT3fV9TlPG0TEcQ"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p><span><br></span></p><p><span><br></span></p><p><span>-----&amp;-----&amp;-----</span><br></p><p><span style="font-weight:bold;">Để quay về danh sách các bài phần Network các bạn chọn link sau</span></p><p><span style="color:inherit;"></span></p><p><a href="https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network" style="color:rgb(74, 43, 212);">https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network</a></p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 00:41:26 +0700</pubDate></item></channel></rss>