<?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/dhcp-relay/feed" rel="self" type="application/rss+xml"/><title>Đại học Không Giấy - Blog #DHCP RELAY</title><description>Đại học Không Giấy - Blog #DHCP RELAY</description><link>https://www.daihockhonggiay.com/blogs/tag/dhcp-relay</link><lastBuildDate>Wed, 10 Sep 2025 19:09:43 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Giới thiệu về DHCP]]></title><link>https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dhcp</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/dh.jpg"/>Bài viết này sẽ giúp các bạn có góc nhìn về DHCP một cách chi tiết nhất]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_2CV4wxvgRy6q7MbiELDIHQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_ICfnLGJFRZaTBJNoGaUJCA" 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_p-00NQc2QZWLPYSnJNFdEg" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"> [data-element-id="elm_p-00NQc2QZWLPYSnJNFdEg"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_jGcY2kc9ReGGbFEHNQp6TQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_jGcY2kc9ReGGbFEHNQp6TQ"].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;">I. Tổng quan</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Giới thiệu về dịch vụ DHCP:</span>&nbsp;là dịch vụ cấp phát địa chỉ IP động. Trong một hệ thống lớn có nhiều máy, thay vì chúng ta phải đi nhập IP bằng tay cho tất cả các máy thì chúng ta dùng DHCP cấp phát IP.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Để dịch vụ DHCP hoạt động được nó phải có 2 thành phần: DHCP Server và DHCP Client</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; DHCP Server dùng để cấp phát IP động sử dụng Port 68. Gửi IP hoặc nhận thông tin đều ở Port này.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; DHCP Client dùng để nhận IP, xin cấp phát IP sử dụng Port 67. Xin IP hoặc nhận IP đều dùng ở Port này.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Có 4 bản tin được sử dụng:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bản tin 1: là Discover</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bản tin 2: là Offer</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bản tin 3: là Request</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bản tin 4: là ACK</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Các bước hoạt động:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:bold;">Bước 1:</span> DHCP Client sẽ gửi một bản tin Broadcast là Discover. Bản tin là thông tin yêu cầu xin địa chỉ IP. Bản tin sẽ được tầng Transport nhận bằng cổng 68 sau đó đóng gói bằng giao thức UDP&nbsp; rồi truyền xuống dưới. Tầng Network Access sẽ đóng địa chỉ MAC nguồn là máy mình và MAC đích là MAC Broadcast&nbsp; rồi chuyển ra đường truyền. Do có địa chỉ MAC là Broadcast nên tất cả các máy trong mạng đều nhận được, trong đó có máy DHCP Server.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:bold;">Bước 2::</span> Sau khi DHCP Server nhận được gói tin nó sẽ được tầng Network Access sẽ chuyển lên bên trên để xử lý. Tầng Transport sẽ nhận thông tin rồi chuyển lên Port 67 cho tầng Application.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:bold;">Bước 3: </span>Sau khi DHCP Server xử lý, Server sẽ gửi lại một bản tin Offer bao gồm thông tin địa chỉ IP cấp cho máy Client và thông tinh máy của mình như tên, IP. Rồi chuyển xuống cho tầng Transport đóng gói bằng cổng 67. Tầng Transport sẽ đóng bằng giao thức UDP và tiếp tục chuyển xuống đóng địa chỉ MAC nguồn MAC đích. Tiếp theo dữ liệu sẽ gửi ra đường truyền.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:bold;">Bước 4:</span> Client nhận dữ liệu từ Port 68 và đưa IP vào DHCP Client. Sau đó DHCP Client sẽ gửi lại một bản tin Request là đồng ý sử dụng IP đó để DHCP Server xác nhận</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:bold;">Bước 5:</span> DHCP Server nhận được thông tin từ DHCP Client sẽ gửi lại một bản tin ACK để xác nhận là quá trình đã thành công.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Cấu hình DHCP:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#Service DHCP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#IP dhcp pool IT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(dhcp-config)#network 192.168.1.0 255.255.255.0&nbsp; (dải địa chỉ IP sẽ được dùng để cấp cho các DHCP Client)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(dhcp-config)#default-router 192.168.1.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(dhcp-config)#dns-server 8.8.8.8 8.8.4.4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(dhcp-config)#domain-name dnpower.vn</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình giới hạn giải không cấp cho Pc mà để cho Server:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Đang trong mode R1(dhcp-config)# exit ra</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#ip dhcp excluded-address 192.168.1.1&nbsp; 192.168.1.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình Relay để chuyền sang mạng khác:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#IP helper-address 192.168.1.6</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Lệnh kiểm tra:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Dùng lệnh Show ip DHCP binding (show hết các thành phần cấu hình)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">e. Bài tập cấu hình dịch vụ DHCP và DHCP Relay:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cho sơ đồ:</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/2/21.jpg" style="width:444.4px;height:372px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Trên Router R1, tiến hành đổi tên thành DHCPServer và cấu hình IP cho cổng f0/0</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#hostname DHCPServer</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#interface fastEthernet 0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-if)#ip add 10.0.0.1 255.255.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Sau đó, ta tiến hành định tuyến cho Router này luôn. Ở đây sử&nbsp;dụng RIP version 2 .</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#router rip</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-router)#network 10.0.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-router)#version 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-router)#no auto-summary</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config-router)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Chuyển qua Router R2, ta cũng đổi tên thành DHCPRealy và lần lượt cấu hình IP cho các cổng f0/0, f0/1 và f1/0</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2&gt;en</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2#config t</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#hostname DHCPRelay</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#interface fastEthernet 0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#ip add 10.0.0.2 255.255.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Cấu hình IP cho cổng f0/1</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#interface fastEthernet 0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#ip add 192.168.1.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Cấu hình IP cho cổng f1/0</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#interface fastEthernet 1/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#ip add 192.168.2.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Trên Router R2, ta cấu hình định tuyến RIP tới 3 mạng 10.0.0.0/16, 192.168.1.0/24 và 192.168.2.0/24.</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#router rip</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#version 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#network 10.0.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#network 192.168.1.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#network 192.168.2.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#no auto-summary</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Chuyển về Router DHCPServer&nbsp;tiếp tục cấu hình DHCP Server, tạo ra các Pool là các mạng cần cấp phát IP.</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#service dhcp</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#ip dhcp pool network192.168.1.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#network 192.168.1.0 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#default-router 192.168.1.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#dns-server 8.8.8.8</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#service dhcp</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(config)#ip dhcp pool network192.168.2.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#network 192.168.2.0 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#default-router 192.168.2.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#dns-server 8.8.8.8</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPServer(dhcp-config)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bây giờ ta chuyển qua cấu hình DHCP Relay Agent trên Router R2</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay#config t</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#interface fastEthernet 0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#ip helper-address 10.0.0.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config)#interface fastEthernet 1/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#ip helper-address 10.0.0.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DHCPRelay(config-if)#exit</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">II. Thực hành</span></p><p style="margin-bottom:20px;"><span style="color:inherit;font-size:14px;"><span style="font-weight:bold;">1. Cấu hình DHCP và DHCP RELAY</span></span><span style="font-weight:700;"><br></span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị&nbsp;</span></p><p style="margin-bottom:20px;">2 router cisco 2621XM</p><p style="margin-bottom:20px;">2 Switch cisco 2950-24</p><p style="margin-bottom:20px;">2 PC</p><p style="margin-bottom:20px;">Dây cáp</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung&nbsp;</span></p><p style="margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;">Cấu hình cơ bản cho Switch</p><p style="margin-bottom:20px;">Cấu hình trên các Interface</p><p style="margin-bottom:20px;">Kiểm tra kết nối giữa các thiết bị trong mạng</p><p style="text-align:center;"></p><p style="text-align:left;margin-bottom:20px;"><span style="color:inherit;"></span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">c. Video hướng dẫn</span></p></div>
</div><div data-element-id="elm_0VV9-GVmRDWttzBMvelTBg" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_0VV9-GVmRDWttzBMvelTBg"].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/8uVyQtz0v-M" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_gF-oZIuhaSca_CRVCj0KBw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_gF-oZIuhaSca_CRVCj0KBw"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_gF-oZIuhaSca_CRVCj0KBw"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="margin-bottom:20px;"><span style="font-weight:bold;"><span style="font-size:14px;">2.&nbsp;</span><span style="font-size:14px;color:inherit;">Cấu hình DHCPv6</span></span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị</span></p><p style="margin-bottom:20px;">2 Router Cisco 1941</p><p style="margin-bottom:20px;">1 Catalyst Switch Cisco 2950T-24</p><p style="margin-bottom:20px;">1 PC</p><p style="margin-bottom:20px;">Dây cáp Fast Ethernet</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung</span></p><p style="margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;">Cấu hình cơ bản DHCPv6 Stateless</p><p><span style="color:inherit;"></span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">c. Video hướng dẫn</span></p></div>
</div><div data-element-id="elm_54zgwc7r6GNu2L2_j2wF8g" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_54zgwc7r6GNu2L2_j2wF8g"].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/BpaimF7FZpY" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_Fd34pbsyyr20f4UklxwLnQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_Fd34pbsyyr20f4UklxwLnQ"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_Fd34pbsyyr20f4UklxwLnQ"].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 01:25:43 +0700</pubDate></item><item><title><![CDATA[Cấu hình Multiscope DHCP trên Windows Server 2016 kết hợp Fortinet]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-multiscope-dhcp-tren-windows-server-2016-ket-hop-fortinet</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/41b959f4-1ccb-4cde-8233-7d6d9efd1704.jpg"/>Trong bài này sẽ hướng dẫn các bạn cấu hình Multiscope DHCP trên Windows Server 2016 kết hợp Fortinet để người dùng nhận được IP động từ dịch vụ DHCP]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_4MS07FtnRQCdjTRsvIjF7g" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm__upgviWfRiesiQR1i7DiTw" 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_C0QUHLqCQGa0CmJbIZbGhg" 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_N0wKOqTGRpKH6lcRZTCwDw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_N0wKOqTGRpKH6lcRZTCwDw"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p><b><span style="font-size:10.5pt;">I. Tổng quan&nbsp;&nbsp;</span></b></p><p><b><span style="font-size:10.5pt;">1. Dịch vụ DHCP:</span></b><span style="font-size:10.5pt;">&nbsp;</span><span style="color:inherit;">Dynamic Host Configuration Protocol</span><span style="color:inherit;">&nbsp;</span><span style="font-size:10.5pt;">là dịch vụ cấp phát địa chỉ IP động. Trong một hệ thống lớn có nhiều máy, thay vì chúng ta phải đi nhập IP bằng tay cho tất cả các máy thì chúng ta dùng DHCP cấp phát IP.</span></p><p><font size="1" style="font-weight:bold;">-&nbsp;</font><span style="font-size:10.5pt;"><span style="font-weight:bold;">Để dịch vụ DHCP hoạt động được nó phải có 2 thành phần: </span>DHCP Server và DHCP Client</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">DHCP Server dùng để cấp phát IP động sử dụng Port 67. Gửi IP hoặc nhận thông tin đều ở Port này.</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">DHCP Client dùng để nhận IP, xin cấp phát IP sử dụng Port 68. Xin IP hoặc nhận IP đều dùng ở Port này.</span></p><p><span style="font-weight:bold;"><span style="font-size:9.3333px;">-&nbsp;</span><span style="font-size:10.5pt;">Có 4 bản tin được sử dụng:</span></span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">Bản tin 1: là Discover&nbsp;&nbsp;</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">Bản tin 2: là Offer</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">Bản tin 3: là Request</span></p><p>&nbsp; &nbsp;&nbsp;<span style="font-size:10.5pt;">Bản tin 4: là ACK&nbsp;</span></p><p><b><span style="font-size:10.5pt;">2. Các bước hoạt động</span></b></p><p><span style="font-size:9.3333px;font-weight:bold;">-&nbsp;</span><span style="font-size:10.5pt;"><span style="font-weight:bold;">Bước 1:</span> DHCP Client sẽ gửi một bản tin Broadcast là Discover. Bản tin là thông tin yêu cầu xin địa chỉ IP. Bản tin sẽ được tầng Transport nhận bằng cổng 68 sau đó đóng gói bằng giao thức UDP&nbsp; rồi truyền xuống dưới. Tầng Network Access sẽ đóng địa chỉ MAC nguồn là máy mình và MAC đích là MAC Broadcast&nbsp; rồi chuyển ra đường truyền. Do có địa chỉ MAC là Broadcast nên tất cả các máy trong mạng đều nhận được, trong đó có máy DHCP Server.</span></p><p><span style="font-size:10.5pt;"><span style="font-weight:bold;">- Bước 2:</span> Sau khi DHCP Server nhận được gói tin nó sẽ được tầng Network Access sẽ chuyển lên bên trên để xử lý. Tầng Transport sẽ nhận thông tin rồi chuyển lên Port 67 cho tầng Application.</span></p><p><span style="font-size:10.5pt;"><span style="font-weight:bold;">- Bước 3:</span> Sau khi DHCP Server xử lý, Server sẽ gửi lại một bản tin Offer bao gồm thông tin địa chỉ IP cấp cho máy Client và thông tinh máy của mình như tên, IP. Rồi chuyển xuống cho tầng Transport đóng gói bằng cổng 67. Tầng Transport sẽ đóng bằng giao thức UDP và tiếp tục chuyển xuống đóng địa chỉ MAC nguồn MAC đích. Tiếp theo dữ liệu sẽ gửi xuống đường truyền.</span></p><p><span style="font-size:10.5pt;"><span style="font-weight:bold;">- Bước 4:</span> Client nhận dữ liệu từ Port 68 và đưa IP vào DHCP Client. Sau đó DHCP Client sẽ gửi lại một bản tin Request là đồng ý sử dụng IP đó để DHCP Server xác nhận</span></p><p><span style="font-size:10.5pt;"><span style="font-weight:bold;">- Bước 5:</span> DHCP Server nhận được thông tin từ DHCP Client sẽ gửi lại một bản tin ACK để xác nhận là quá trình đã thành công.</span></p><p><span style="font-size:7pt;">&nbsp;</span><span style="font-size:10.5pt;">Trên hệ thống mạng Client nào gửi gói tin tới DHCP tới trước sẽ nhận được. Lỗi hay xẩy ra sẽ xung đột DHCP nếu hệ thống có nhiều thiết bị cấp phát.</span></p><p><span style="font-weight:bold;"><span style="font-size:10.5pt;">3.&nbsp;</span><span style="font-size:14px;color:inherit;">Các thuật ngữ cần lưu ý</span></span></p><p><span style="font-weight:bold;">- DHCP client - Máy trạm DHCP:</span> là một thiết bị nối vào mạng và sử dụng giao thức DHCP để lấy các thông tin cấu hình như là địa chỉ mạng, địa chỉ máy chủ DNS.</p><p><span style="font-weight:bold;">- DHCP server - Máy chủ DHCP:</span> là một thiết bị nối vào mạng có chức năng trả về các thông tin cần thiết cho máy trạm DHCP khi có yêu cầu.</p><p><span style="font-weight:bold;">- BOOTP relay agents - Thiết bị chuyển tiếp BOOTP:</span> là một máy trạm hoặc một router có khả năng chuyển các thông điệp DHCP giữa DHCP server và DHCP client.</p><p><span style="font-weight:bold;">- Binding - Nối kết:</span> là một tập hợp các thông tin cấu hình trong đó có ít nhất một địa chỉ IP, được sử dụng bởi một DHCP client. Các nối kết được quản lý bởi máy chủ DHCP</p><p><span style="color:inherit;"></span><b><span style="font-size:10.5pt;"><br></span></b></p><p><b><span style="font-size:10.5pt;">II. Thực hành</span></b></p><p><b><span style="font-size:10.5pt;">1. Yêu cầu chuẩn bị</span></b></p><p><span style="font-size:10.5pt;">Một máy chủ Windows Server 2016</span></p><p><span style="font-size:10.5pt;">Một máy tính cài Windows 10, ping thông tới máy chủ&nbsp;</span></p><p><span style="font-size:10.5pt;">Một máy chủ chạy giả lập máy Fortinet</span></p><p><b><span style="font-size:10.5pt;">2. Nội dung công việc cần thực hiện</span></b></p><p><span style="font-size:10.5pt;">Cài đặt và cấu hình Multiscope DHCP trên Windows Server 2016</span></p><p><span style="font-size:10.5pt;">Cấu hình DHCP Relay trên Fortinet để cho phép cấp IP động từ Server DHCP sang các LAN</span></p><p><span style="font-size:10.5pt;">Cấu hình các Rule cho phép LAN ra ngoài Internet&nbsp; và LAN sang DMZ</span></p><p><span style="font-size:10.5pt;">-----&amp;-----&amp;-----</span></p><p><span><b><span style="font-size:10.5pt;">3. Video hướng dẫn</span></b></span></p><p style="margin-bottom:20px;"><span style="color:inherit;"></span></p><p>&nbsp;</p></div>
</div><div data-element-id="elm_yz0X9487gnhJJgIsWE9Vfw" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_yz0X9487gnhJJgIsWE9Vfw"].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="https://www.youtube.com/embed/3J08JMMbfH4" frameborder="0" allowfullscreen></iframe></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 00:54:40 +0700</pubDate></item></channel></rss>