<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>TrungNghia &#8211; Thegioifirewall</title>
	<atom:link href="https://thegioifirewall.com/author/micheal/feed/" rel="self" type="application/rss+xml" />
	<link>https://thegioifirewall.com</link>
	<description>Tường lửa bảo vệ doanh nghiệp, trung tâm thông tin và giá cả</description>
	<lastBuildDate>Thu, 29 Dec 2022 19:46:34 +0000</lastBuildDate>
	<language>vi</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://thegioifirewall.com/wp-content/uploads/vacif_icon-150x150.png</url>
	<title>TrungNghia &#8211; Thegioifirewall</title>
	<link>https://thegioifirewall.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Hướng dẫn triển khai mô hình Inter-VLAN Routing với tường lửa Palo Alto và Switch Cisco</title>
		<link>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-tuong-lua-palo-alto-va-switch-cisco/</link>
					<comments>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-tuong-lua-palo-alto-va-switch-cisco/#comments</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Fri, 14 Oct 2022 03:42:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình Firewall Palo Alto]]></category>
		<category><![CDATA[Hướng dẫn triển khai mô hình Inter-VLAN Routing với tường lửa Palo Alto và Switch Cisco]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=17107</guid>

					<description><![CDATA[1.Giới thiệu về Inter-VLAN Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Giới thiệu về Inter-VLAN</strong></h2>



<p class="wp-block-paragraph">Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi Router.</p>



<p class="wp-block-paragraph">Với Inter-VLAN Routing, Router nhận frame từ Switch với gói tin xuất phát từ một VLAN đã được tag. Nó liên kết các frame với các subinterface thích hợp và sau đó giải mã nội dung của frame (phần IP packet). Router sau đó thực hiện chức năng của Layer 3 dựa trên địa chỉ mạng đích có trong gói tin IP để xác định subinterface cần chuyển tiếp gói IP. Các IP packet bây giờ được đóng gói thành frame theo chuẩn dot1Q (hoặc ISL) để nhận dạng VLAN của subinterface chuyển tiếp và truyền đi trên đường trunk vào Switch.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="571" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-28-1024x571.png" alt="" class="wp-image-17108" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-28-1024x571.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing1-28-300x167.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing1-28-768x428.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-28-1536x856.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing1-28.png 1829w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có các thiết bị như sau:</p>



<ul class="wp-block-list"><li>Palo Alto Firewall là thiết bị dùng để thiết lập chính sách ra vào, cấp phát DHCP, VLAN.</li><li>Switch Core là thiết bị dùng để phân phối các IP và VLAN xuống cho các máy tính.</li><li>3 thiết bị có tên là PC1, PC2, PC3 chạy Windows 7.</li></ul>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện cấu hình Subinterface, DHCP, Virutal Router, chính sách cho phép giao tiếp giữa các VLAN trên thiết bị Palo Alto Firewall và Switch để khi các máy tính kết nối vào sẽ nhận được đúng IP từ VLAN theo như sơ đồ mạng.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<p class="wp-block-paragraph">Palo Alto Firewall:</p>



<ul class="wp-block-list"><li>Tạo Address Object.</li><li>Cấu hình Subinterface.</li><li>Tạo DHCP ứng với từng Subinterface.</li><li>Tạo Virtual Router</li><li>Tạo chính sách cho phép lớp mạng của các Subinterface giao tiếp với nhau.</li></ul>



<p class="wp-block-paragraph">Switch:</p>



<ul class="wp-block-list"><li>Tạo các VLAN và assign port vào VLAN.</li><li>Thực hiện trunk port.</li></ul>



<p class="wp-block-paragraph">Kiểm tra kết quả.</p>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Palo Alto Firewall</strong></h3>



<h4 class="wp-block-heading"><strong>5.1.1.Tạo Address Objects</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện định nghĩa các subnet của từng VLAN bằng cách tạo Address Object.</p>



<p class="wp-block-paragraph">Để tạo vào Object &gt; Addresses &gt; nhấn Add.</p>



<p class="wp-block-paragraph">Tạo Address Object cho subnet 10.145.41.0/24 của VLAN 10 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN10</li><li>Type: IP Netmask – 10.145.41.0/24</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="330" src="https://thegioifirewall.com/wp-content/uploads/1-115-1024x330.png" alt="" class="wp-image-17109" srcset="https://thegioifirewall.com/wp-content/uploads/1-115-1024x330.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-115-300x97.png 300w, https://thegioifirewall.com/wp-content/uploads/1-115-768x247.png 768w, https://thegioifirewall.com/wp-content/uploads/1-115-1536x494.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-115.png 1998w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo Address Object cho subnet 10.145.42.0/24 của VLAN 20 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN20</li><li>Type: IP Netmask – 10.145.42.0/24</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="327" src="https://thegioifirewall.com/wp-content/uploads/2-116-1024x327.png" alt="" class="wp-image-17110" srcset="https://thegioifirewall.com/wp-content/uploads/2-116-1024x327.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-116-300x96.png 300w, https://thegioifirewall.com/wp-content/uploads/2-116-768x246.png 768w, https://thegioifirewall.com/wp-content/uploads/2-116-1536x491.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-116.png 1998w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo Address Object cho subnet 10.145.43.0/24 của VLAN 30 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN30</li><li>Type: IP Netmask – 10.145.43.0/24</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="328" src="https://thegioifirewall.com/wp-content/uploads/3-112-1024x328.png" alt="" class="wp-image-17111" srcset="https://thegioifirewall.com/wp-content/uploads/3-112-1024x328.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-112-300x96.png 300w, https://thegioifirewall.com/wp-content/uploads/3-112-768x246.png 768w, https://thegioifirewall.com/wp-content/uploads/3-112-1536x493.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-112.png 1999w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Commit và OK để lưu các thay đổi cấu hình.</p>



<h4 class="wp-block-heading"><strong>5.1.2.Cấu hình Subinterface.</strong></h4>



<p class="wp-block-paragraph">Như sơ đồ mạng chúng ta có 3 VLAN là 10,20,30 nên chúng ta sẽ cần tạo 3 Subinterface và đặt IP cho nó theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Trên thiết bị tường lửa Palo Alto, để tạo được các Subinterface trên một cổng vật lý chúng ta cần phải thiết lập IP cho cổng vật lý đó trước tiên.</p>



<p class="wp-block-paragraph">Vì vậy theo như sơ đồ chúng ta sẽ thực hiện đặt IP 10.145.40.254/24 cho cổng ethernet1/2.</p>



<p class="wp-block-paragraph">Để thiết lập vào Network &gt; Interfaces &gt; Ethernet &gt; nhấn chuột trái vào tên của interface ethernet1/2 và cấu hình như sau.</p>



<p class="wp-block-paragraph">Tab Config:</p>



<ul class="wp-block-list"><li>Interface type: Layer3</li><li>Security Zone: LAN</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="461" src="https://thegioifirewall.com/wp-content/uploads/4-108-1024x461.png" alt="" class="wp-image-17112" srcset="https://thegioifirewall.com/wp-content/uploads/4-108-1024x461.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-108-300x135.png 300w, https://thegioifirewall.com/wp-content/uploads/4-108-768x346.png 768w, https://thegioifirewall.com/wp-content/uploads/4-108-1536x691.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-108.png 1847w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab IPv4:</p>



<ul class="wp-block-list"><li>Type: Static</li><li>Click Add và nhập IP 10.145.40.254/24 theo như sơ đồ mạng.</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="654" src="https://thegioifirewall.com/wp-content/uploads/5-105-1024x654.png" alt="" class="wp-image-17113" srcset="https://thegioifirewall.com/wp-content/uploads/5-105-1024x654.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-105-300x192.png 300w, https://thegioifirewall.com/wp-content/uploads/5-105-768x491.png 768w, https://thegioifirewall.com/wp-content/uploads/5-105-1536x981.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-105.png 1847w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để tạo Subinterface cho VLAN 10 trên port ethernet1/2 chúng ta vào Network &gt; Interfaces &gt; Ethernet &gt; nhấn chuột trái vào dòng có chứa cổng ethernet1/2 và nhấn Add Subinterface:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="521" src="https://thegioifirewall.com/wp-content/uploads/6-94-1024x521.png" alt="" class="wp-image-17114" srcset="https://thegioifirewall.com/wp-content/uploads/6-94-1024x521.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-94-300x153.png 300w, https://thegioifirewall.com/wp-content/uploads/6-94-768x391.png 768w, https://thegioifirewall.com/wp-content/uploads/6-94-1536x782.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-94-2048x1042.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab Config:</p>



<ul class="wp-block-list"><li>Interface Name: ethernet1/2.10</li><li>Tag: 10</li><li>Security Zone: LAN</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="489" src="https://thegioifirewall.com/wp-content/uploads/7-82-1024x489.png" alt="" class="wp-image-17115" srcset="https://thegioifirewall.com/wp-content/uploads/7-82-1024x489.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-82-300x143.png 300w, https://thegioifirewall.com/wp-content/uploads/7-82-768x367.png 768w, https://thegioifirewall.com/wp-content/uploads/7-82-1536x734.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-82.png 1748w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab IPv4:</p>



<ul class="wp-block-list"><li>Type: Static</li><li>Click Add và nhập IP 10.145.41.254/24 theo như sơ đồ mạng.</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="692" src="https://thegioifirewall.com/wp-content/uploads/8-79-1024x692.png" alt="" class="wp-image-17116" srcset="https://thegioifirewall.com/wp-content/uploads/8-79-1024x692.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-79-300x203.png 300w, https://thegioifirewall.com/wp-content/uploads/8-79-768x519.png 768w, https://thegioifirewall.com/wp-content/uploads/8-79-1536x1037.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-79.png 1747w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng tạo Subinterface cho VLAN 20 với các thông số sau:</p>



<p class="wp-block-paragraph">Tab Config:</p>



<ul class="wp-block-list"><li>Interface Name: ethernet1/2.20</li><li>Tag: 20</li><li>Security Zone: LAN</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="487" src="https://thegioifirewall.com/wp-content/uploads/9-76-1024x487.png" alt="" class="wp-image-17117" srcset="https://thegioifirewall.com/wp-content/uploads/9-76-1024x487.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-76-300x143.png 300w, https://thegioifirewall.com/wp-content/uploads/9-76-768x365.png 768w, https://thegioifirewall.com/wp-content/uploads/9-76-1536x731.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-76.png 1747w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab IPv4:</p>



<ul class="wp-block-list"><li>Type: Static</li><li>Click Add và nhập IP 10.145.42.254/24 theo như sơ đồ mạng.</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="693" src="https://thegioifirewall.com/wp-content/uploads/10-69-1024x693.png" alt="" class="wp-image-17118" srcset="https://thegioifirewall.com/wp-content/uploads/10-69-1024x693.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-69-300x203.png 300w, https://thegioifirewall.com/wp-content/uploads/10-69-768x520.png 768w, https://thegioifirewall.com/wp-content/uploads/10-69-1536x1039.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-69.png 1747w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng tạo Subinterface cho VLAN 30 với các thông số sau:</p>



<p class="wp-block-paragraph">Tab Config:</p>



<ul class="wp-block-list"><li>Interface Name: ethernet1/2.30</li><li>Tag: 30</li><li>Security Zone: LAN</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="488" src="https://thegioifirewall.com/wp-content/uploads/11-68-1024x488.png" alt="" class="wp-image-17119" srcset="https://thegioifirewall.com/wp-content/uploads/11-68-1024x488.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-68-300x143.png 300w, https://thegioifirewall.com/wp-content/uploads/11-68-768x366.png 768w, https://thegioifirewall.com/wp-content/uploads/11-68-1536x732.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-68.png 1749w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab IPv4:</p>



<ul class="wp-block-list"><li>Type: Static</li><li>Click Add và nhập IP 10.145.43.254/24 theo như sơ đồ mạng.</li><li>Nhấn OK</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="692" src="https://thegioifirewall.com/wp-content/uploads/12-62-1024x692.png" alt="" class="wp-image-17120" srcset="https://thegioifirewall.com/wp-content/uploads/12-62-1024x692.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-62-300x203.png 300w, https://thegioifirewall.com/wp-content/uploads/12-62-768x519.png 768w, https://thegioifirewall.com/wp-content/uploads/12-62-1536x1038.png 1536w, https://thegioifirewall.com/wp-content/uploads/12-62.png 1748w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Commit và OK để lưu những thay đổi cấu hình.</p>



<h4 class="wp-block-heading"><strong>5.1.3.Tạo DHCP ứng với từng Subinterface</strong></h4>



<p class="wp-block-paragraph">Tiếp theo chúng ta cần tạo DHCP để khi các máy tính kết nối vào sẽ tự động nhận được IP.</p>



<p class="wp-block-paragraph">Để tạo DHCP vào Network &gt; DHCP &gt; DHCP Server &gt; Add.</p>



<p class="wp-block-paragraph">Tạo DHCP cho Subinterface ethernet1/2.10 với các thông số sau:</p>



<p class="wp-block-paragraph">Tab Lease:</p>



<ul class="wp-block-list"><li>Interface: ethernet1/2.10</li><li>Mode: enabled</li><li>IP POOLS: Click Add và nhập vào dãy IP sẽ cấp phát 10.145.41.1 – 10.145.41.10</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="674" src="https://thegioifirewall.com/wp-content/uploads/13-53-1024x674.png" alt="" class="wp-image-17121" srcset="https://thegioifirewall.com/wp-content/uploads/13-53-1024x674.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-53-300x198.png 300w, https://thegioifirewall.com/wp-content/uploads/13-53-768x506.png 768w, https://thegioifirewall.com/wp-content/uploads/13-53-1536x1011.png 1536w, https://thegioifirewall.com/wp-content/uploads/13-53.png 1748w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab Options:</p>



<ul class="wp-block-list"><li>Gateway: nhập vào IP của cổng Subinterface ethernet1/2.10 là 10.145.41.254/24.</li><li>Subnet Mask: 255.255.255.0.</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="850" src="https://thegioifirewall.com/wp-content/uploads/14-50-1024x850.png" alt="" class="wp-image-17122" srcset="https://thegioifirewall.com/wp-content/uploads/14-50-1024x850.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-50-300x249.png 300w, https://thegioifirewall.com/wp-content/uploads/14-50-768x637.png 768w, https://thegioifirewall.com/wp-content/uploads/14-50-1536x1275.png 1536w, https://thegioifirewall.com/wp-content/uploads/14-50.png 1746w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo DHCP cho Subinterface ethernet1/2.20 theo các thông số sau:</p>



<p class="wp-block-paragraph">Tab Lease:</p>



<ul class="wp-block-list"><li>Interface: ethernet1/2.20</li><li>Mode: enabled</li><li>IP POOLS: Click Add và nhập vào dãy IP sẽ cấp phát 10.145.42.1 – 10.145.42.10</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="674" src="https://thegioifirewall.com/wp-content/uploads/17-41-1024x674.png" alt="" class="wp-image-17123" srcset="https://thegioifirewall.com/wp-content/uploads/17-41-1024x674.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-41-300x198.png 300w, https://thegioifirewall.com/wp-content/uploads/17-41-768x506.png 768w, https://thegioifirewall.com/wp-content/uploads/17-41-1536x1011.png 1536w, https://thegioifirewall.com/wp-content/uploads/17-41.png 1748w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab Options:</p>



<ul class="wp-block-list"><li>Gateway: nhập vào IP của cổng Subinterface ethernet1/2.20 là 10.145.42.254/24.</li><li>Subnet Mask: 255.255.255.0.</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="835" src="https://thegioifirewall.com/wp-content/uploads/16-45-1024x835.png" alt="" class="wp-image-17124" srcset="https://thegioifirewall.com/wp-content/uploads/16-45-1024x835.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-45-300x245.png 300w, https://thegioifirewall.com/wp-content/uploads/16-45-768x626.png 768w, https://thegioifirewall.com/wp-content/uploads/16-45-1536x1252.png 1536w, https://thegioifirewall.com/wp-content/uploads/16-45.png 1749w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo DHCP cho Subinterface ethernet1/2.30 theo các thông số sau:</p>



<p class="wp-block-paragraph">Tab Lease:</p>



<ul class="wp-block-list"><li>Interface: ethernet1/2.30</li><li>Mode: enabled</li><li>IP POOLS: Click Add và nhập vào dãy IP sẽ cấp phát 10.145.43.1 – 10.145.43.10</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="674" src="https://thegioifirewall.com/wp-content/uploads/18-41-1024x674.png" alt="" class="wp-image-17125" srcset="https://thegioifirewall.com/wp-content/uploads/18-41-1024x674.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-41-300x197.png 300w, https://thegioifirewall.com/wp-content/uploads/18-41-768x506.png 768w, https://thegioifirewall.com/wp-content/uploads/18-41-1536x1011.png 1536w, https://thegioifirewall.com/wp-content/uploads/18-41.png 1747w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tab Options:</p>



<ul class="wp-block-list"><li>Gateway: nhập vào IP của cổng Subinterface ethernet1/2.30 là 10.145.43.254/24.</li><li>Subnet Mask: 255.255.255.0.</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="849" src="https://thegioifirewall.com/wp-content/uploads/19-38-1024x849.png" alt="" class="wp-image-17126" srcset="https://thegioifirewall.com/wp-content/uploads/19-38-1024x849.png 1024w, https://thegioifirewall.com/wp-content/uploads/19-38-300x249.png 300w, https://thegioifirewall.com/wp-content/uploads/19-38-768x637.png 768w, https://thegioifirewall.com/wp-content/uploads/19-38-1536x1273.png 1536w, https://thegioifirewall.com/wp-content/uploads/19-38.png 1747w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Commit và OK để lưu những thay đổi cấu hình.</p>



<p class="wp-block-paragraph"><strong>5.1.4.Tạo Virtual Router</strong></p>



<p class="wp-block-paragraph">Để tạo Virutal Router chúng ta vào Network &gt; Virtual Routers &gt; nhấn Add.</p>



<p class="wp-block-paragraph">Tạo Virtual Router với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VR1</li><li>Tại bảng INTERFACES nhấn Add và thêm 3 Subinterface là ethernet1/2.10, ethernet1/2.20 và ethenet1/2.30.</li><li>Nhấn OK.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="639" src="https://thegioifirewall.com/wp-content/uploads/20-35-1024x639.png" alt="" class="wp-image-17127" srcset="https://thegioifirewall.com/wp-content/uploads/20-35-1024x639.png 1024w, https://thegioifirewall.com/wp-content/uploads/20-35-300x187.png 300w, https://thegioifirewall.com/wp-content/uploads/20-35-768x479.png 768w, https://thegioifirewall.com/wp-content/uploads/20-35-1536x959.png 1536w, https://thegioifirewall.com/wp-content/uploads/20-35.png 1996w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.5.Tạo chính sách cho phép lớp mạng của các Subinterface giao tiếp với nhau</strong></h4>



<p class="wp-block-paragraph">Để các máy tính thuộc các Suinterface khác nhau có thể giao tiếp với nhau, chúng ta cần tạo 1 policy cho phép điều này xảy ra.</p>



<p class="wp-block-paragraph">Để tạo vào Policies &gt; Secuirty &gt; nhấn Add và tạo với các thông số như hình sau.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="365" src="https://thegioifirewall.com/wp-content/uploads/21-32-1024x365.png" alt="" class="wp-image-17128" srcset="https://thegioifirewall.com/wp-content/uploads/21-32-1024x365.png 1024w, https://thegioifirewall.com/wp-content/uploads/21-32-300x107.png 300w, https://thegioifirewall.com/wp-content/uploads/21-32-768x274.png 768w, https://thegioifirewall.com/wp-content/uploads/21-32-1536x548.png 1536w, https://thegioifirewall.com/wp-content/uploads/21-32-2048x731.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="396" src="https://thegioifirewall.com/wp-content/uploads/22-26-1024x396.png" alt="" class="wp-image-17129" srcset="https://thegioifirewall.com/wp-content/uploads/22-26-1024x396.png 1024w, https://thegioifirewall.com/wp-content/uploads/22-26-300x116.png 300w, https://thegioifirewall.com/wp-content/uploads/22-26-768x297.png 768w, https://thegioifirewall.com/wp-content/uploads/22-26-1536x594.png 1536w, https://thegioifirewall.com/wp-content/uploads/22-26-2048x792.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="396" src="https://thegioifirewall.com/wp-content/uploads/23-26-1024x396.png" alt="" class="wp-image-17130" srcset="https://thegioifirewall.com/wp-content/uploads/23-26-1024x396.png 1024w, https://thegioifirewall.com/wp-content/uploads/23-26-300x116.png 300w, https://thegioifirewall.com/wp-content/uploads/23-26-768x297.png 768w, https://thegioifirewall.com/wp-content/uploads/23-26-1536x594.png 1536w, https://thegioifirewall.com/wp-content/uploads/23-26-2048x792.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="340" src="https://thegioifirewall.com/wp-content/uploads/24-28-1024x340.png" alt="" class="wp-image-17131" srcset="https://thegioifirewall.com/wp-content/uploads/24-28-1024x340.png 1024w, https://thegioifirewall.com/wp-content/uploads/24-28-300x100.png 300w, https://thegioifirewall.com/wp-content/uploads/24-28-768x255.png 768w, https://thegioifirewall.com/wp-content/uploads/24-28-1536x510.png 1536w, https://thegioifirewall.com/wp-content/uploads/24-28-2048x680.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.2.Switch</strong></h3>



<h4 class="wp-block-heading"><strong>5.2.1.Tạo các VLAN và assign port vào VLAN</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện tạo VLAN 10,20,30 và assign các port vào đúng VLAN theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Tạo VLAN 10 và assign port Gi0/1 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 10</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/1</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 10</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="925" height="210" src="https://thegioifirewall.com/wp-content/uploads/9-74.png" alt="" class="wp-image-17027" srcset="https://thegioifirewall.com/wp-content/uploads/9-74.png 925w, https://thegioifirewall.com/wp-content/uploads/9-74-300x68.png 300w, https://thegioifirewall.com/wp-content/uploads/9-74-768x174.png 768w" sizes="auto, (max-width: 925px) 100vw, 925px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 10 và assign port Gi0/2 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 20</p>



<p class="wp-block-paragraph">Switch(config-vlan)#interface gigabitEthernet 0/2</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 20</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="999" height="179" src="https://thegioifirewall.com/wp-content/uploads/10-67.png" alt="" class="wp-image-17028" srcset="https://thegioifirewall.com/wp-content/uploads/10-67.png 999w, https://thegioifirewall.com/wp-content/uploads/10-67-300x54.png 300w, https://thegioifirewall.com/wp-content/uploads/10-67-768x138.png 768w" sizes="auto, (max-width: 999px) 100vw, 999px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 30 và assign port Gi0/3 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 30</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/3</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 30</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="891" height="214" src="https://thegioifirewall.com/wp-content/uploads/11-66.png" alt="" class="wp-image-17029" srcset="https://thegioifirewall.com/wp-content/uploads/11-66.png 891w, https://thegioifirewall.com/wp-content/uploads/11-66-300x72.png 300w, https://thegioifirewall.com/wp-content/uploads/11-66-768x184.png 768w" sizes="auto, (max-width: 891px) 100vw, 891px" /></figure>



<h4 class="wp-block-heading"><strong>5.2.2.Thực hiện trunk port</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ cấu hình trunk cho port Gi0/0 bằng câu hình sau.</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/0</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport trunk encapsulation dot1Q</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode trunk</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="135" src="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png" alt="" class="wp-image-17030" srcset="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-61-300x39.png 300w, https://thegioifirewall.com/wp-content/uploads/12-61-768x101.png 768w, https://thegioifirewall.com/wp-content/uploads/12-61.png 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.3.Kiểm tra kết quả.</strong></h3>



<p class="wp-block-paragraph">PC 1 đã nhận được IP từ DHCP Pool của VLAN 10.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="515" src="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png" alt="" class="wp-image-17031" srcset="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-52-300x151.png 300w, https://thegioifirewall.com/wp-content/uploads/13-52-768x386.png 768w, https://thegioifirewall.com/wp-content/uploads/13-52.png 1344w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự PC 2 và PC 3 cũng nhận được IP từ DHCP Pool của VLAN 20 và VLAN 30.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="509" src="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png" alt="" class="wp-image-17032" srcset="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-49-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/14-49-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/14-49.png 1351w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="514" src="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png" alt="" class="wp-image-17033" srcset="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-46-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/15-46-768x385.png 768w, https://thegioifirewall.com/wp-content/uploads/15-46.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ kiểm tra khả năng giao tiếp giữa các VLAN bằng cách ping giữa các máy tính PC 1, PC 2 và PC 3.</p>



<p class="wp-block-paragraph">Kết quả ping từ PC 3 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="521" src="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png" alt="" class="wp-image-17034" srcset="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-44-300x153.png 300w, https://thegioifirewall.com/wp-content/uploads/16-44-768x391.png 768w, https://thegioifirewall.com/wp-content/uploads/16-44.png 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="511" src="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png" alt="" class="wp-image-17035" srcset="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/17-40-768x383.png 768w, https://thegioifirewall.com/wp-content/uploads/17-40.png 1335w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 3.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="512" src="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png" alt="" class="wp-image-17036" srcset="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/18-40-768x384.png 768w, https://thegioifirewall.com/wp-content/uploads/18-40.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả cho thấy các máy tính tại các vlan khác nhau đều có thể giao tiếp với nhau.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-tuong-lua-palo-alto-va-switch-cisco/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>Hướng dẫn triển khai mô hình Inter-VLAN Routing với Sophos Firewall và Switch Cisco</title>
		<link>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco-2/</link>
					<comments>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco-2/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Wed, 05 Oct 2022 03:01:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn chung]]></category>
		<category><![CDATA[Hướng dẫn triển khai mô hình Inter-VLAN Routing với Router và Switch Cisco]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=17040</guid>

					<description><![CDATA[1.Giới thiệu về Inter-VLAN Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Giới thiệu về Inter-VLAN</strong></h2>



<p class="wp-block-paragraph">Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi Router.</p>



<p class="wp-block-paragraph">Với Inter-VLAN Routing, Router nhận frame từ Switch với gói tin xuất phát từ một VLAN đã được tag. Nó liên kết các frame với các subinterface thích hợp và sau đó giải mã nội dung của frame (phần IP packet). Router sau đó thực hiện chức năng của Layer 3 dựa trên địa chỉ mạng đích có trong gói tin IP để xác định subinterface cần chuyển tiếp gói IP. Các IP packet bây giờ được đóng gói thành frame theo chuẩn dot1Q (hoặc ISL) để nhận dạng VLAN của subinterface chuyển tiếp và truyền đi trên đường trunk vào Switch.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="571" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-27-1024x571.png" alt="" class="wp-image-17041" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-27-1024x571.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing1-27-300x167.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing1-27-768x428.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-27-1536x856.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing1-27.png 1829w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có các thiết bị như sau:</p>



<ul class="wp-block-list"><li>Sophos Firewall là thiết bị dùng để thiết lập chính sách ra vào, cấp phát DHCP, VLAN.</li><li>Switch Core là thiết bị dùng để phân phối các IP và VLAN xuống cho các máy tính.</li><li>3 thiết bị có tên là PC1, PC2, PC3 chạy Windows 7.</li></ul>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện cấu hình interface VLAN, DHCP, chính sách cho phép giao tiếp giữa các VLAN trên thiết bị Sophos Firewall và Switch để khi các máy tính kết nối vào sẽ nhận được đúng IP từ VLAN theo như sơ đồ mạng.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<p class="wp-block-paragraph">Sophos Firewall:</p>



<ul class="wp-block-list"><li>Tạo IP Host.</li><li>Cấu hình interface VLAN.</li><li>Tạo DHCP ứng với từng interface VLAN.</li><li>Tạo chính sách cho phép các VLAN giao tiếp với nhau.</li></ul>



<p class="wp-block-paragraph">Switch:</p>



<ul class="wp-block-list"><li>Tạo các VLAN và assign port vào VLAN.</li><li>Thực hiện trunk port.</li></ul>



<p class="wp-block-paragraph">Kiểm tra kết quả.</p>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Sophos Firewall</strong></h3>



<h4 class="wp-block-heading"><strong>5.1.1.Tạo IP Host</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện định nghĩa các subnet của từng VLAN bằng cách tạo IP Host.</p>



<p class="wp-block-paragraph">Để tạo vào Hosts and services &gt; IP Host &gt; nhấn Add.</p>



<p class="wp-block-paragraph">Tạo IP Host cho subnet 10.145.41.0/24 của VLAN 10 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN10</li><li>IP version: IPv4</li><li>Type: Network</li><li>IP address/Subnet: 10.145.41.0/24.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="305" src="https://thegioifirewall.com/wp-content/uploads/1-114-1024x305.png" alt="" class="wp-image-17042" srcset="https://thegioifirewall.com/wp-content/uploads/1-114-1024x305.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-114-300x89.png 300w, https://thegioifirewall.com/wp-content/uploads/1-114-768x228.png 768w, https://thegioifirewall.com/wp-content/uploads/1-114-1536x457.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-114.png 1930w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo IP Host cho subnet 10.145.42.0/24 của VLAN 20 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN20</li><li>IP version: IPv4</li><li>Type: Network</li><li>IP address/Subnet: 10.145.42.0/24.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="306" src="https://thegioifirewall.com/wp-content/uploads/2-115-1024x306.png" alt="" class="wp-image-17043" srcset="https://thegioifirewall.com/wp-content/uploads/2-115-1024x306.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-115-300x90.png 300w, https://thegioifirewall.com/wp-content/uploads/2-115-768x229.png 768w, https://thegioifirewall.com/wp-content/uploads/2-115-1536x459.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-115.png 1926w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo IP Host cho subnet 10.145.43.0/24 của VLAN 30 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN30</li><li>IP version: IPv4</li><li>Type: Network</li><li>IP address/Subnet: 10.145.43.0/24.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="303" src="https://thegioifirewall.com/wp-content/uploads/3-111-1024x303.png" alt="" class="wp-image-17044" srcset="https://thegioifirewall.com/wp-content/uploads/3-111-1024x303.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-111-300x89.png 300w, https://thegioifirewall.com/wp-content/uploads/3-111-768x227.png 768w, https://thegioifirewall.com/wp-content/uploads/3-111-1536x454.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-111.png 1926w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.2.Cấu hình interface VLAN.</strong></h4>



<p class="wp-block-paragraph">Như sơ đồ mạng chúng ta có 3 VLAN là 10,20,30 nên chúng ta sẽ cần tạo 3 interface VLAN và đặt IP cho nó theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Để tạo interface VLAN cho VLAN 10 trên PortA chúng ta vào Network &gt; Interfaces &gt; Add interface &gt; Add VLAN và cấu hình theo các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN 10</li><li>Interface: PortA</li><li>Zone: LAN</li><li>VLAN ID : 10</li><li>IP assignment:&nbsp; Static</li><li>IPv4/netmask: 10.145.41.254/24</li><li>Nhấn Save</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="584" src="https://thegioifirewall.com/wp-content/uploads/4-107-1024x584.png" alt="" class="wp-image-17045" srcset="https://thegioifirewall.com/wp-content/uploads/4-107-1024x584.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-107-300x171.png 300w, https://thegioifirewall.com/wp-content/uploads/4-107-768x438.png 768w, https://thegioifirewall.com/wp-content/uploads/4-107-1536x876.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-107.png 1930w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng tạo interface VLAN cho VLAN 20 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN 20</li><li>Interface: PortA</li><li>Zone: LAN</li><li>VLAN ID : 20</li><li>IP assignment:&nbsp; Static</li><li>IPv4/netmask: 10.145.42.254/24</li><li>Nhấn Save</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="553" src="https://thegioifirewall.com/wp-content/uploads/5-103-1024x553.png" alt="" class="wp-image-17046" srcset="https://thegioifirewall.com/wp-content/uploads/5-103-1024x553.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-103-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/5-103-768x415.png 768w, https://thegioifirewall.com/wp-content/uploads/5-103-1536x829.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-103.png 1945w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng tạo interface VLAN cho VLAN 30 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: VLAN 30</li><li>Interface: PortA</li><li>Zone: LAN</li><li>VLAN ID : 30</li><li>IP assignment:&nbsp; Static</li><li>IPv4/netmask: 10.145.43.254/24</li><li>Nhấn Save</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="562" src="https://thegioifirewall.com/wp-content/uploads/6-93-1024x562.png" alt="" class="wp-image-17058" srcset="https://thegioifirewall.com/wp-content/uploads/6-93-1024x562.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-93-300x165.png 300w, https://thegioifirewall.com/wp-content/uploads/6-93-768x421.png 768w, https://thegioifirewall.com/wp-content/uploads/6-93-1536x843.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-93.png 1943w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.3.Tạo DHCP ứng với từng interface VLAN</strong></h4>



<p class="wp-block-paragraph">Tiếp theo chúng ta cần tạo DHCP để khi các máy tính kết nối vào sẽ tự động nhận được IP.</p>



<p class="wp-block-paragraph">Để tạo DHCP vào Network &gt; DHCP &gt; Add.</p>



<p class="wp-block-paragraph">Tạo DHCP cho interface VLAN 10 với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: DHCP_VLAN10</li><li>Interface: chọn VLAN10 – 10.145.41.254 từ danh sách thả xuống</li><li>Dynamic IP Lease: 10.145.41.1 – 10.145.41.10</li><li>Subnet mask: /24 [255.255.255.0]</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="565" src="https://thegioifirewall.com/wp-content/uploads/7-81-1024x565.png" alt="" class="wp-image-17047" srcset="https://thegioifirewall.com/wp-content/uploads/7-81-1024x565.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-81-300x166.png 300w, https://thegioifirewall.com/wp-content/uploads/7-81-768x424.png 768w, https://thegioifirewall.com/wp-content/uploads/7-81-1536x848.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-81.png 1938w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo DHCP cho interface VLAN 20 theo các thông số sau:</p>



<ul class="wp-block-list"><li>Name: DHCP_VLAN20</li><li>Interface: chọn VLAN20 – 10.145.42.254 từ danh sách thả xuống</li><li>Dynamic IP Lease: 10.145.42.1 – 10.145.42.10</li><li>Subnet mask: /24 [255.255.255.0]</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="561" src="https://thegioifirewall.com/wp-content/uploads/8-78-1024x561.png" alt="" class="wp-image-17050" srcset="https://thegioifirewall.com/wp-content/uploads/8-78-1024x561.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-78-300x164.png 300w, https://thegioifirewall.com/wp-content/uploads/8-78-768x421.png 768w, https://thegioifirewall.com/wp-content/uploads/8-78-1536x841.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-78.png 1950w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta tạo DHCP cho interface VLAN 20 theo các thông số sau:</p>



<ul class="wp-block-list"><li>Name: DHCP_VLAN30</li><li>Interface: chọn VLAN30 – 10.145.43.254 từ danh sách thả xuống</li><li>Dynamic IP Lease: 10.145.43.1 – 10.145.43.10</li><li>Subnet mask: /24 [255.255.255.0]</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="591" src="https://thegioifirewall.com/wp-content/uploads/9-75-1024x591.png" alt="" class="wp-image-17051" srcset="https://thegioifirewall.com/wp-content/uploads/9-75-1024x591.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-75-300x173.png 300w, https://thegioifirewall.com/wp-content/uploads/9-75-768x443.png 768w, https://thegioifirewall.com/wp-content/uploads/9-75-1536x887.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-75.png 1947w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.4.Tạo chính sách cho phép các VLAN giao tiếp với nhau</strong></h4>



<p class="wp-block-paragraph">Để các máy tính thuộc các VLAN khác nhau có thể giao tiếp với nhau, chúng ta cần tạo 1 policy cho phép điều này xảy ra.</p>



<p class="wp-block-paragraph">Để tạo vào Rules and policies &gt; Firewall rules &gt; nhấn Add firewall rule &gt; New firewall rule và tạo với các thông số như hình sau.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="348" src="https://thegioifirewall.com/wp-content/uploads/10-68-1024x348.png" alt="" class="wp-image-17052" srcset="https://thegioifirewall.com/wp-content/uploads/10-68-1024x348.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-68-300x102.png 300w, https://thegioifirewall.com/wp-content/uploads/10-68-768x261.png 768w, https://thegioifirewall.com/wp-content/uploads/10-68-1536x521.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-68.png 1983w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://thegioifirewall.com/wp-content/uploads/11-67-1024x576.png" alt="" class="wp-image-17053" srcset="https://thegioifirewall.com/wp-content/uploads/11-67-1024x576.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-67-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/11-67-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/11-67-1536x864.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-67.png 1986w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.2.Switch</strong></h3>



<h4 class="wp-block-heading"><strong>5.2.1.Tạo các VLAN và assign port vào VLAN</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện tạo VLAN 10,20,30 và assign các port vào đúng VLAN theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Tạo VLAN 10 và assign port Gi0/1 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 10</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/1</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 10</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="925" height="210" src="https://thegioifirewall.com/wp-content/uploads/9-74.png" alt="" class="wp-image-17027" srcset="https://thegioifirewall.com/wp-content/uploads/9-74.png 925w, https://thegioifirewall.com/wp-content/uploads/9-74-300x68.png 300w, https://thegioifirewall.com/wp-content/uploads/9-74-768x174.png 768w" sizes="auto, (max-width: 925px) 100vw, 925px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 10 và assign port Gi0/2 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 20</p>



<p class="wp-block-paragraph">Switch(config-vlan)#interface gigabitEthernet 0/2</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 20</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="999" height="179" src="https://thegioifirewall.com/wp-content/uploads/10-67.png" alt="" class="wp-image-17028" srcset="https://thegioifirewall.com/wp-content/uploads/10-67.png 999w, https://thegioifirewall.com/wp-content/uploads/10-67-300x54.png 300w, https://thegioifirewall.com/wp-content/uploads/10-67-768x138.png 768w" sizes="auto, (max-width: 999px) 100vw, 999px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 30 và assign port Gi0/3 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 30</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/3</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 30</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="891" height="214" src="https://thegioifirewall.com/wp-content/uploads/11-66.png" alt="" class="wp-image-17029" srcset="https://thegioifirewall.com/wp-content/uploads/11-66.png 891w, https://thegioifirewall.com/wp-content/uploads/11-66-300x72.png 300w, https://thegioifirewall.com/wp-content/uploads/11-66-768x184.png 768w" sizes="auto, (max-width: 891px) 100vw, 891px" /></figure>



<h4 class="wp-block-heading"><strong>5.2.2.Thực hiện trunk port</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ cấu hình trunk cho port Gi0/0 bằng câu hình sau.</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/0</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport trunk encapsulation dot1Q</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode trunk</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="135" src="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png" alt="" class="wp-image-17030" srcset="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-61-300x39.png 300w, https://thegioifirewall.com/wp-content/uploads/12-61-768x101.png 768w, https://thegioifirewall.com/wp-content/uploads/12-61.png 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.3.Kiểm tra kết quả.</strong></h3>



<p class="wp-block-paragraph">PC 1 đã nhận được IP từ DHCP Pool của VLAN 10.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="515" src="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png" alt="" class="wp-image-17031" srcset="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-52-300x151.png 300w, https://thegioifirewall.com/wp-content/uploads/13-52-768x386.png 768w, https://thegioifirewall.com/wp-content/uploads/13-52.png 1344w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự PC 2 và PC 3 cũng nhận được IP từ DHCP Pool của VLAN 20 và VLAN 30.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="509" src="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png" alt="" class="wp-image-17032" srcset="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-49-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/14-49-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/14-49.png 1351w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="514" src="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png" alt="" class="wp-image-17033" srcset="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-46-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/15-46-768x385.png 768w, https://thegioifirewall.com/wp-content/uploads/15-46.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ kiểm tra khả năng giao tiếp giữa các VLAN bằng cách ping giữa các máy tính PC 1, PC 2 và PC 3.</p>



<p class="wp-block-paragraph">Kết quả ping từ PC 3 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="521" src="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png" alt="" class="wp-image-17034" srcset="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-44-300x153.png 300w, https://thegioifirewall.com/wp-content/uploads/16-44-768x391.png 768w, https://thegioifirewall.com/wp-content/uploads/16-44.png 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="511" src="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png" alt="" class="wp-image-17035" srcset="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/17-40-768x383.png 768w, https://thegioifirewall.com/wp-content/uploads/17-40.png 1335w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 3.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="512" src="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png" alt="" class="wp-image-17036" srcset="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/18-40-768x384.png 768w, https://thegioifirewall.com/wp-content/uploads/18-40.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả cho thấy các máy tính tại các vlan khác nhau đều có thể giao tiếp với nhau.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hướng dẫn triển khai mô hình Inter-VLAN Routing với Router và Switch Cisco</title>
		<link>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco/</link>
					<comments>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Mon, 03 Oct 2022 03:34:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn chung]]></category>
		<category><![CDATA[Hướng dẫn triển khai mô hình Inter-VLAN Routing với Router và Switch Cisco]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=17017</guid>

					<description><![CDATA[1.Giới thiệu về Inter-VLAN Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Giới thiệu về Inter-VLAN</strong></h2>



<p class="wp-block-paragraph">Inter-VLAN là phương pháp được thiết lập có hiệu quả nhất bằng cách cung cấp một liên kết trunk duy nhất giữa Switch và Router mà có thể mang lưu lượng truy cập của nhiều VLAN và trong đó các lưu lượng ấy lần lượt có thể được định tuyến bởi Router.</p>



<p class="wp-block-paragraph">Với Inter-VLAN Routing, Router nhận frame từ Switch với gói tin xuất phát từ một VLAN đã được tag. Nó liên kết các frame với các subinterface thích hợp và sau đó giải mã nội dung của frame (phần IP packet). Router sau đó thực hiện chức năng của Layer 3 dựa trên địa chỉ mạng đích có trong gói tin IP để xác định subinterface cần chuyển tiếp gói IP. Các IP packet bây giờ được đóng gói thành frame theo chuẩn dot1Q (hoặc ISL) để nhận dạng VLAN của subinterface chuyển tiếp và truyền đi trên đường trunk vào Switch.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="571" src="https://thegioifirewall.com/wp-content/uploads/Drawing2-2-1024x571.png" alt="" class="wp-image-17018" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing2-2-1024x571.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing2-2-300x167.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing2-2-768x428.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing2-2-1536x856.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing2-2.png 1829w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có các thiết bị như sau:</p>



<ul class="wp-block-list"><li>Router R1 là thiết bị dùng để định tuyến, cấp phát DHCP, VLAN.</li><li>Switch Core là thiết bị dùng để phân phối các IP và VLAN xuống cho các máy tính.</li><li>3 thiết bị có tên là PC1, PC2, PC3 chạy Windows 7.</li></ul>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện cấu hình sub interface, DHCP, VLAN trên thiết bị Router và Switch để khi các máy tính kết nối vào sẽ nhận được đúng IP từ VLAN theo như sơ đồ mạng.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<p class="wp-block-paragraph">Router:</p>



<ul class="wp-block-list"><li>Cấu hình sub interface và đặt IP.</li><li>Cấu hình DHCP Pool và routing giữa các VLAN.</li></ul>



<p class="wp-block-paragraph">Switch:</p>



<ul class="wp-block-list"><li>Tạo các VLAN và assign port vào VLAN.</li><li>Thực hiện trunk port.</li></ul>



<p class="wp-block-paragraph">Kiểm tra kết quả.</p>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Router</strong></h3>



<h4 class="wp-block-heading"><strong>5.1.1.Cấu hình sub interface và đặt IP.</strong></h4>



<p class="wp-block-paragraph">Như sơ đồ mạng chúng ta có 3 VLAN là 10,20,30 nên chúng ta sẽ cần tạo 3 sub interface và đặt IP cho nó theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Để tạo sub interface cho VLAN 10 chúng ta sử dụng câu lệnh như sau.</p>



<p class="wp-block-paragraph">Router(config)#interface gigabitEthernet 0/0.10</p>



<p class="wp-block-paragraph">Router(config-subif)#encapsulation dot1Q 10</p>



<p class="wp-block-paragraph">Router(config-subif)#ip address 10.145.41.254 255.255.255.0</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="96" src="https://thegioifirewall.com/wp-content/uploads/1-113-1024x96.png" alt="" class="wp-image-17019" srcset="https://thegioifirewall.com/wp-content/uploads/1-113-1024x96.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-113-300x28.png 300w, https://thegioifirewall.com/wp-content/uploads/1-113-768x72.png 768w, https://thegioifirewall.com/wp-content/uploads/1-113-1200x113.png 1200w, https://thegioifirewall.com/wp-content/uploads/1-113.png 1211w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng sẽ tạo sub interface cho VLAN 20 và VLAN 30 như sau.</p>



<p class="wp-block-paragraph">VLAN 20.</p>



<p class="wp-block-paragraph">Router(config)#interface gigabitEthernet 0/0.20</p>



<p class="wp-block-paragraph">Router(config-subif)#encapsulation dot1Q 20</p>



<p class="wp-block-paragraph">Router(config-subif)#ip address 10.145.42.254 255.255.255.0</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="96" src="https://thegioifirewall.com/wp-content/uploads/2-114-1024x96.png" alt="" class="wp-image-17020" srcset="https://thegioifirewall.com/wp-content/uploads/2-114-1024x96.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-114-300x28.png 300w, https://thegioifirewall.com/wp-content/uploads/2-114-768x72.png 768w, https://thegioifirewall.com/wp-content/uploads/2-114-1200x114.png 1200w, https://thegioifirewall.com/wp-content/uploads/2-114.png 1218w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">VLAN 30.</p>



<p class="wp-block-paragraph">Router(config)#interface gigabitEthernet 0/0.30</p>



<p class="wp-block-paragraph">Router(config-subif)#encapsulation dot1Q 30</p>



<p class="wp-block-paragraph">Router(config-subif)#ip address 10.145.43.254 255.255.255.0</p>



<p class="wp-block-paragraph">Router(config-subif)#no shutdown</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="93" src="https://thegioifirewall.com/wp-content/uploads/3-110-1024x93.png" alt="" class="wp-image-17021" srcset="https://thegioifirewall.com/wp-content/uploads/3-110-1024x93.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-110-300x27.png 300w, https://thegioifirewall.com/wp-content/uploads/3-110-768x70.png 768w, https://thegioifirewall.com/wp-content/uploads/3-110-1200x110.png 1200w, https://thegioifirewall.com/wp-content/uploads/3-110.png 1211w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Cuối cùng để các sub interface hoạt động chúng ta cần vào cổng vật lý Gi0/0 và bật nó lên với câu lệnh sau.</p>



<p class="wp-block-paragraph">Router(config)#interface gigabitEthernet 0/0</p>



<p class="wp-block-paragraph">Router(config-if)#no shutdown</p>



<p class="wp-block-paragraph">Router(config-if)#</p>



<p class="wp-block-paragraph">*Oct&nbsp; 9 18:54:40.466: %LINK-3-UPDOWN: Interface GigabitEthernet0/0, changed state to up</p>



<p class="wp-block-paragraph">*Oct&nbsp; 9 18:54:41.466: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="160" src="https://thegioifirewall.com/wp-content/uploads/4-106-1024x160.png" alt="" class="wp-image-17022" srcset="https://thegioifirewall.com/wp-content/uploads/4-106-1024x160.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-106-300x47.png 300w, https://thegioifirewall.com/wp-content/uploads/4-106-768x120.png 768w, https://thegioifirewall.com/wp-content/uploads/4-106-1536x240.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-106.png 1589w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.2.Cấu hình DHCP Pool và routing giữa các VLAN</strong></h4>



<p class="wp-block-paragraph">Tiếp theo chúng ta cần tạo DHCP Pool để khi các máy tính kết nối vào sẽ tự động nhận được IP.</p>



<p class="wp-block-paragraph">Chúng ta sẽ tạo DHCP Pool cho VLAN 10 bằng câu lệnh như sau.</p>



<p class="wp-block-paragraph">Router(config)#ip dhcp pool VLAN10</p>



<p class="wp-block-paragraph">Router(dhcp-config)#network 10.145.41.0 255.255.255.0</p>



<p class="wp-block-paragraph">Router(dhcp-config)#default-router 10.145.41.254</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="103" src="https://thegioifirewall.com/wp-content/uploads/5-102-1024x103.png" alt="" class="wp-image-17023" srcset="https://thegioifirewall.com/wp-content/uploads/5-102-1024x103.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-102-300x30.png 300w, https://thegioifirewall.com/wp-content/uploads/5-102-768x77.png 768w, https://thegioifirewall.com/wp-content/uploads/5-102.png 1085w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự như VLAN 10 chúng ta sẽ tạo DHCP Pool cho VLAN 20 và 30 như sau.</p>



<p class="wp-block-paragraph">VLAN 20.</p>



<p class="wp-block-paragraph">Router(config)#ip dhcp pool VLAN20</p>



<p class="wp-block-paragraph">Router(dhcp-config)#network 10.145.42.0 255.255.255.0</p>



<p class="wp-block-paragraph">Router(dhcp-config)#default-router 10.145.42.254</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="103" src="https://thegioifirewall.com/wp-content/uploads/6-92-1024x103.png" alt="" class="wp-image-17024" srcset="https://thegioifirewall.com/wp-content/uploads/6-92-1024x103.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-92-300x30.png 300w, https://thegioifirewall.com/wp-content/uploads/6-92-768x77.png 768w, https://thegioifirewall.com/wp-content/uploads/6-92.png 1103w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">VLAN 30.</p>



<p class="wp-block-paragraph">Router(config)#ip dhcp pool VLAN30</p>



<p class="wp-block-paragraph">Router(dhcp-config)#network 10.145.43.0 255.255.255.0</p>



<p class="wp-block-paragraph">Router(dhcp-config)#default-router 10.145.43.254</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="101" src="https://thegioifirewall.com/wp-content/uploads/7-80-1024x101.png" alt="" class="wp-image-17025" srcset="https://thegioifirewall.com/wp-content/uploads/7-80-1024x101.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-80-300x30.png 300w, https://thegioifirewall.com/wp-content/uploads/7-80-768x76.png 768w, https://thegioifirewall.com/wp-content/uploads/7-80.png 1093w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tiếp theo để các VLAN có thể giao tiếp được với nhau chúng ta cần thực hiện lệnh sau.</p>



<p class="wp-block-paragraph">Router(config)#ip routing</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="717" height="76" src="https://thegioifirewall.com/wp-content/uploads/8-77.png" alt="" class="wp-image-17026" srcset="https://thegioifirewall.com/wp-content/uploads/8-77.png 717w, https://thegioifirewall.com/wp-content/uploads/8-77-300x32.png 300w" sizes="auto, (max-width: 717px) 100vw, 717px" /></figure>



<h3 class="wp-block-heading"><strong>5.2.Switch</strong></h3>



<h4 class="wp-block-heading"><strong>5.2.1.Tạo các VLAN và assign port vào VLAN</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện tạo VLAN 10,20,30 và assign các port vào đúng VLAN theo như sơ đồ mạng.</p>



<p class="wp-block-paragraph">Tạo VLAN 10 và assign port Gi0/1 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 10</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/1</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 10</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="925" height="210" src="https://thegioifirewall.com/wp-content/uploads/9-74.png" alt="" class="wp-image-17027" srcset="https://thegioifirewall.com/wp-content/uploads/9-74.png 925w, https://thegioifirewall.com/wp-content/uploads/9-74-300x68.png 300w, https://thegioifirewall.com/wp-content/uploads/9-74-768x174.png 768w" sizes="auto, (max-width: 925px) 100vw, 925px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 10 và assign port Gi0/2 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 20</p>



<p class="wp-block-paragraph">Switch(config-vlan)#interface gigabitEthernet 0/2</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 20</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="999" height="179" src="https://thegioifirewall.com/wp-content/uploads/10-67.png" alt="" class="wp-image-17028" srcset="https://thegioifirewall.com/wp-content/uploads/10-67.png 999w, https://thegioifirewall.com/wp-content/uploads/10-67-300x54.png 300w, https://thegioifirewall.com/wp-content/uploads/10-67-768x138.png 768w" sizes="auto, (max-width: 999px) 100vw, 999px" /></figure>



<p class="wp-block-paragraph">Tượng tự tạo VLAN 30 và assign port Gi0/3 vào bằng câu lệnh sau.</p>



<p class="wp-block-paragraph">Switch(config)#vlan 30</p>



<p class="wp-block-paragraph">Switch(config-vlan)#exit</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/3</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode access</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport access vlan 30</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="891" height="214" src="https://thegioifirewall.com/wp-content/uploads/11-66.png" alt="" class="wp-image-17029" srcset="https://thegioifirewall.com/wp-content/uploads/11-66.png 891w, https://thegioifirewall.com/wp-content/uploads/11-66-300x72.png 300w, https://thegioifirewall.com/wp-content/uploads/11-66-768x184.png 768w" sizes="auto, (max-width: 891px) 100vw, 891px" /></figure>



<h4 class="wp-block-heading"><strong>5.2.2.Thực hiện trunk port</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ cấu hình trunk cho port Gi0/0 bằng câu hình sau.</p>



<p class="wp-block-paragraph">Switch(config)#interface gigabitEthernet 0/0</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport trunk encapsulation dot1Q</p>



<p class="wp-block-paragraph">Switch(config-if)#switchport mode trunk</p>



<p class="wp-block-paragraph">Switch(config-if)#no shutdown</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="135" src="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png" alt="" class="wp-image-17030" srcset="https://thegioifirewall.com/wp-content/uploads/12-61-1024x135.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-61-300x39.png 300w, https://thegioifirewall.com/wp-content/uploads/12-61-768x101.png 768w, https://thegioifirewall.com/wp-content/uploads/12-61.png 1102w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.3.Kiểm tra kết quả.</strong></h3>



<p class="wp-block-paragraph">PC 1 đã nhận được IP từ DHCP Pool của VLAN 10.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="515" src="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png" alt="" class="wp-image-17031" srcset="https://thegioifirewall.com/wp-content/uploads/13-52-1024x515.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-52-300x151.png 300w, https://thegioifirewall.com/wp-content/uploads/13-52-768x386.png 768w, https://thegioifirewall.com/wp-content/uploads/13-52.png 1344w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự PC 2 và PC 3 cũng nhận được IP từ DHCP Pool của VLAN 20 và VLAN 30.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="509" src="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png" alt="" class="wp-image-17032" srcset="https://thegioifirewall.com/wp-content/uploads/14-49-1024x509.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-49-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/14-49-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/14-49.png 1351w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="514" src="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png" alt="" class="wp-image-17033" srcset="https://thegioifirewall.com/wp-content/uploads/15-46-1024x514.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-46-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/15-46-768x385.png 768w, https://thegioifirewall.com/wp-content/uploads/15-46.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ kiểm tra khả năng giao tiếp giữa các VLAN bằng cách ping giữa các máy tính PC 1, PC 2 và PC 3.</p>



<p class="wp-block-paragraph">Kết quả ping từ PC 3 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="521" src="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png" alt="" class="wp-image-17034" srcset="https://thegioifirewall.com/wp-content/uploads/16-44-1024x521.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-44-300x153.png 300w, https://thegioifirewall.com/wp-content/uploads/16-44-768x391.png 768w, https://thegioifirewall.com/wp-content/uploads/16-44.png 1331w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 2.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="511" src="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png" alt="" class="wp-image-17035" srcset="https://thegioifirewall.com/wp-content/uploads/17-40-1024x511.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/17-40-768x383.png 768w, https://thegioifirewall.com/wp-content/uploads/17-40.png 1335w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả ping từ PC 1 sang PC 3.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="512" src="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png" alt="" class="wp-image-17036" srcset="https://thegioifirewall.com/wp-content/uploads/18-40-1024x512.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-40-300x150.png 300w, https://thegioifirewall.com/wp-content/uploads/18-40-768x384.png 768w, https://thegioifirewall.com/wp-content/uploads/18-40.png 1336w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả cho thấy các máy tính tại các vlan khác nhau đều có thể giao tiếp với nhau.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-trien-khai-mo-hinh-inter-vlan-routing-voi-router-va-switch-cisco/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hướng dẫn triển khai giải pháp Sophos Zero Trust Network Access phần 2</title>
		<link>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-2/</link>
					<comments>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-2/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Tue, 28 Jun 2022 08:01:00 +0000</pubDate>
				<category><![CDATA[Sophos ZTNA]]></category>
		<category><![CDATA[Hướng dẫn triển khai giải pháp Sophos Zero Trust Network Access phần 2]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=16482</guid>

					<description><![CDATA[1.Mục đích bài viết Chuỗi bài viết này sẽ cung cấp cho các bạn chi tiết các bước cần thực hiện cũng như cách triển khai toàn diện giải pháp Sophos Zero Trust Network Access. 2.Sơ đồ mạng Chi tiết: Chúng ta sẽ thiết bị tường lửa Sophos được kết nối với internet tại Port [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Mục đích bài viết</strong></h2>



<p class="wp-block-paragraph">Chuỗi bài viết này sẽ cung cấp cho các bạn chi tiết các bước cần thực hiện cũng như cách triển khai toàn diện giải pháp Sophos Zero Trust Network Access.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="439" src="https://thegioifirewall.com/wp-content/uploads/Drawing3-1024x439.png" alt="" class="wp-image-16315" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing3-1024x439.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing3-300x129.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing3-768x329.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing3-1536x658.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing3-2048x878.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ thiết bị tường lửa Sophos được kết nối với internet tại Port 2 với IP WAN tĩnh là 115.78.x.x.</p>



<p class="wp-block-paragraph">Mạng nội bộ sẽ được cấu hình tại Port 1 của thiết bị Sophos Firewall với IP 172.16.31.1/24 và đã được cấu hình DHCP.</p>



<p class="wp-block-paragraph">Trong mạng nội bộ sẽ có một máy chủ chạy hạ tầng ảo hóa VMWware Esxi có IP 172.16.31.11/24 và có các máy ảo như sau:</p>



<ul class="wp-block-list"><li>Active Directory kiêm DNS server có hostname là pdc.valab.xyz với IP 172.16.31.250/24.</li><li>Sophos ZTNA Gateway có hostname là ztna.valab.xyz với IP 172.16.31.251/24.</li></ul>



<p class="wp-block-paragraph">Ở phía ngoài internet chúng ta sẽ có các thành phần dùng để triển khai Sophos ZTNA như sau:</p>



<ul class="wp-block-list"><li>Public domain: đang sử dụng domain của Mắt Bảo.</li><li>Identity Provider: Okta.</li><li>Sophos Central: nơi quản lý các policy, user, logs.</li><li>Hai máy tính Windows 10 với 1 máy đã được cài Agent và 1 máy không cài Agent.</li></ul>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Trong phần 2 của series này thegioifirewall sẽ hướng dẫn các bạn cấu hình thành phần còn lại là Sophos ZTNA Gateway và thực hiện kết nối với resource trong hệ thống bằng Sophos ZTNA với 2 phương thức là Agent và Agentless.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<p class="wp-block-paragraph">Sophos ZTNA Gateway:</p>



<ul class="wp-block-list"><li>Thực hiện NAT.</li><li>Khai báo thông số ZTNA Gateway trên Sophos Central.</li><li>Triển khai Sophos ZTNA Gateway trên VMWare Esxi.</li></ul>



<p class="wp-block-paragraph">Sophos Central:</p>



<ul class="wp-block-list"><li>Đồng bộ user từ Active Directory.</li></ul>



<p class="wp-block-paragraph">Tạo Policy và kiểm tra hoạt động:</p>



<ul class="wp-block-list"><li>Tạo Policy.</li><li>Khai báo resource.</li><li>Hoạt động với Agent.</li><li>Hoạt động với Agentless.</li><li>Kiểm tra Logs and Reports.</li></ul>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Sophos ZTNA Gateway</strong></h3>



<h4 class="wp-block-heading"><strong>5.1.1.Thực hiện NAT</strong></h4>



<h4 class="wp-block-heading"><strong>5.1.2.Khai báo thông số ZTNA Gateway trên Sophos Central.</strong></h4>



<p class="wp-block-paragraph">Bước đầu tiên chúng ta cần phải khai báo thông số về Sophos ZTNA Gateway như IP Address, Subnet Mask, Default Gateway, DNS Server, Wildcard Certificate, Identity Provider, hệ thống ảo hóa sẽ triển khai trên Sophos Central để nó đóng gói lại cho chúng ta thành file dùng để triển khai.</p>



<p class="wp-block-paragraph">Để khai báo chúng ta cần đăng nhập vào trang quản trị của Sophos Central với quyền admin.</p>



<p class="wp-block-paragraph">Vào My Products &gt; ZTNA &gt; Gateways &gt; nhấn Add gateway và khai báo các thông số như sau:</p>



<ul class="wp-block-list"><li>Name*: ztna.</li><li>FQDN*: ztna.valab.xyz.</li><li>Domain*: valab.xyz.</li><li>Platform type*: VMware ESXi.</li><li>Identity provider: okta.</li><li>Deployment mode*: chọn One-arm.</li><li>IP address*: chọn Static IP (phần dưới chúng ta sẽ khai báo thông số IP, Subnet Mask, … giống như trên sơ đồ mạng).</li><li>IP address*: 172.16.31.251.</li><li>Subnet mask: 255.255.255.0.</li><li>Gateway*: 172.16.31.1.</li><li>DNS server1*: 172.16.31.250.</li><li>Upload certificate*: nhấn Choose và chọn file wildcard certificate fullchain.pem mà chúng ta đã có từ phần 1.</li><li>Upload private key*: nhấn Choose và chọn file key privkey.key (lưu ý là file gốc sẽ có đuôi là privkey.pem, chúng ta cần đổi đuôi file là .key).</li><li>Nhấn Save and generate file.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="913" src="https://thegioifirewall.com/wp-content/uploads/1-112-1024x913.png" alt="" class="wp-image-16483" srcset="https://thegioifirewall.com/wp-content/uploads/1-112-1024x913.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-112-300x268.png 300w, https://thegioifirewall.com/wp-content/uploads/1-112-768x685.png 768w, https://thegioifirewall.com/wp-content/uploads/1-112-1536x1370.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-112.png 1920w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="296" src="https://thegioifirewall.com/wp-content/uploads/2-113-1024x296.png" alt="" class="wp-image-16484" srcset="https://thegioifirewall.com/wp-content/uploads/2-113-1024x296.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-113-300x87.png 300w, https://thegioifirewall.com/wp-content/uploads/2-113-768x222.png 768w, https://thegioifirewall.com/wp-content/uploads/2-113-1536x444.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-113.png 1915w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi hoàn thành việc khai báo thì ztna gateway đã được tạo thành công.</p>



<p class="wp-block-paragraph">Tiếp theo chúng ta sẽ cần download 2 file phục vụ cho quá trình cài đặt ở bước sau.</p>



<p class="wp-block-paragraph">Chúng ta nhấn chuột trái vào Download image (Ready for download) để download file iso về máy tính cá nhân.</p>



<p class="wp-block-paragraph">Đây là file chứa các thông tin như IP, Subnet Mask, DNS, Identity Provider,… m2 chúng ta đã khai báo phía trên và cũng dùng để thực hiện giao tiếp giữa ZTNA Gateway đã triển khai trong nội bộ và Sophos Central.</p>



<p class="wp-block-paragraph">Chúng ta nhấn tiếp tục nhấn chuột trái vào Download gateway VM &gt; Download Gateway VM image for VMware để download Sophos ZTNA đã được đóng gói sẵn bằng file ova dùng để triển khai trên VMWare ESXi.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="227" src="https://thegioifirewall.com/wp-content/uploads/3-109-1024x227.png" alt="" class="wp-image-16485" srcset="https://thegioifirewall.com/wp-content/uploads/3-109-1024x227.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-109-300x66.png 300w, https://thegioifirewall.com/wp-content/uploads/3-109-768x170.png 768w, https://thegioifirewall.com/wp-content/uploads/3-109-1536x340.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-109-2048x454.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="725" src="https://thegioifirewall.com/wp-content/uploads/4-105-1024x725.png" alt="" class="wp-image-16486" srcset="https://thegioifirewall.com/wp-content/uploads/4-105-1024x725.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-105-300x212.png 300w, https://thegioifirewall.com/wp-content/uploads/4-105-768x544.png 768w, https://thegioifirewall.com/wp-content/uploads/4-105-1536x1087.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-105.png 1584w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Đây là 2 file mà chúng ta đã download được.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="459" src="https://thegioifirewall.com/wp-content/uploads/24-27-1024x459.png" alt="" class="wp-image-16488" srcset="https://thegioifirewall.com/wp-content/uploads/24-27-1024x459.png 1024w, https://thegioifirewall.com/wp-content/uploads/24-27-300x135.png 300w, https://thegioifirewall.com/wp-content/uploads/24-27-768x345.png 768w, https://thegioifirewall.com/wp-content/uploads/24-27-1536x689.png 1536w, https://thegioifirewall.com/wp-content/uploads/24-27-2048x919.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.1.3.Triển khai Sophos ZTNA Gateway trên VMWare Esxi.</strong></h4>



<p class="wp-block-paragraph">Trước khi chúng ta triển khai Sophos ZTNA trên VMware ESXi chúng ta cần upload file iso mà chúng ta đã tải từ Sophos Central lên Datastore của VMware ESXi.</p>



<p class="wp-block-paragraph">Để upload chúng ta cần đăng nhập vào trang quản trị của VMware ESXi với quyền admin.</p>



<p class="wp-block-paragraph">Vào Storage và chọn datastore mà chúng ta sẽ upload, trong bài viết này chúng ta sẽ upload file iso lên datastore tên ISO Storage.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="544" src="https://thegioifirewall.com/wp-content/uploads/18-39-1024x544.png" alt="" class="wp-image-16489" srcset="https://thegioifirewall.com/wp-content/uploads/18-39-1024x544.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-39-300x159.png 300w, https://thegioifirewall.com/wp-content/uploads/18-39-768x408.png 768w, https://thegioifirewall.com/wp-content/uploads/18-39-1536x816.png 1536w, https://thegioifirewall.com/wp-content/uploads/18-39.png 1875w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Datastore browser.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="535" src="https://thegioifirewall.com/wp-content/uploads/19-37-1024x535.png" alt="" class="wp-image-16490" srcset="https://thegioifirewall.com/wp-content/uploads/19-37-1024x535.png 1024w, https://thegioifirewall.com/wp-content/uploads/19-37-300x157.png 300w, https://thegioifirewall.com/wp-content/uploads/19-37-768x402.png 768w, https://thegioifirewall.com/wp-content/uploads/19-37-1536x803.png 1536w, https://thegioifirewall.com/wp-content/uploads/19-37-2048x1071.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Upload.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="547" src="https://thegioifirewall.com/wp-content/uploads/20-34-1024x547.png" alt="" class="wp-image-16491" srcset="https://thegioifirewall.com/wp-content/uploads/20-34-1024x547.png 1024w, https://thegioifirewall.com/wp-content/uploads/20-34-300x160.png 300w, https://thegioifirewall.com/wp-content/uploads/20-34-768x411.png 768w, https://thegioifirewall.com/wp-content/uploads/20-34-1536x821.png 1536w, https://thegioifirewall.com/wp-content/uploads/20-34-2048x1095.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chọn file iso mà chúng ta đã download.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="611" src="https://thegioifirewall.com/wp-content/uploads/21-31-1024x611.png" alt="" class="wp-image-16492" srcset="https://thegioifirewall.com/wp-content/uploads/21-31-1024x611.png 1024w, https://thegioifirewall.com/wp-content/uploads/21-31-300x179.png 300w, https://thegioifirewall.com/wp-content/uploads/21-31-768x458.png 768w, https://thegioifirewall.com/wp-content/uploads/21-31-1536x916.png 1536w, https://thegioifirewall.com/wp-content/uploads/21-31-2048x1222.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta đã upload file iso lên datastore ISO Storage thành công.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="548" src="https://thegioifirewall.com/wp-content/uploads/22-25-1024x548.png" alt="" class="wp-image-16493" srcset="https://thegioifirewall.com/wp-content/uploads/22-25-1024x548.png 1024w, https://thegioifirewall.com/wp-content/uploads/22-25-300x160.png 300w, https://thegioifirewall.com/wp-content/uploads/22-25-768x411.png 768w, https://thegioifirewall.com/wp-content/uploads/22-25-1536x821.png 1536w, https://thegioifirewall.com/wp-content/uploads/22-25-2048x1095.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tiếp theo chúng ta sẽ thực hiện triển khai Sophos ZTNA Gateway.</p>



<p class="wp-block-paragraph">Trên trang quản trị của VMware ESXi nhấn phải chuột vào Virtual Machines &gt; Create/Register VM để tạo máy ảo mới.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="694" src="https://thegioifirewall.com/wp-content/uploads/5-101-1024x694.png" alt="" class="wp-image-16494" srcset="https://thegioifirewall.com/wp-content/uploads/5-101-1024x694.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-101-300x203.png 300w, https://thegioifirewall.com/wp-content/uploads/5-101-768x520.png 768w, https://thegioifirewall.com/wp-content/uploads/5-101-1536x1041.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-101.png 1923w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng New Virtual Machine xuất hiện, tại Select creation type chọn Deploy a virtual machine from an OVF or OVA file.</p>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="613" src="https://thegioifirewall.com/wp-content/uploads/6-91-1024x613.png" alt="" class="wp-image-16495" srcset="https://thegioifirewall.com/wp-content/uploads/6-91-1024x613.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-91-300x179.png 300w, https://thegioifirewall.com/wp-content/uploads/6-91-768x459.png 768w, https://thegioifirewall.com/wp-content/uploads/6-91-1536x919.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-91-2048x1225.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Select OVF and VMDK files:</p>



<ul class="wp-block-list"><li>Enter a name for the virtual machine: điền tên máy ảo là Sophos ZTNA Gateway.</li><li>Nhấn chuột trái vào Click to select files or drag/drop.</li><li>Sau đó chọn file OVA mà chúng ta đã download từ Sophos Central trước đó và nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="612" src="https://thegioifirewall.com/wp-content/uploads/7-79-1024x612.png" alt="" class="wp-image-16496" srcset="https://thegioifirewall.com/wp-content/uploads/7-79-1024x612.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-79-300x179.png 300w, https://thegioifirewall.com/wp-content/uploads/7-79-768x459.png 768w, https://thegioifirewall.com/wp-content/uploads/7-79-1536x918.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-79-2048x1224.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="614" src="https://thegioifirewall.com/wp-content/uploads/8-76-1024x614.png" alt="" class="wp-image-16497" srcset="https://thegioifirewall.com/wp-content/uploads/8-76-1024x614.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-76-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/8-76-768x461.png 768w, https://thegioifirewall.com/wp-content/uploads/8-76-1536x922.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-76-2048x1229.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Select storage chúng ta sẽ chọn nơi lưu máy ảo, trong bài viết này thegioifirewall sẽ lưu máy ảo tại VM Storage 3 và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="613" src="https://thegioifirewall.com/wp-content/uploads/9-73-1024x613.png" alt="" class="wp-image-16498" srcset="https://thegioifirewall.com/wp-content/uploads/9-73-1024x613.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-73-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/9-73-768x460.png 768w, https://thegioifirewall.com/wp-content/uploads/9-73-1536x919.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-73-2048x1226.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Deployment options, chúng ta sẽ chọn card mạng VM Network cho External (WAN) và Local cho Internal (LAN).</p>



<p class="wp-block-paragraph">Power on automatically: bỏ chọn.</p>



<p class="wp-block-paragraph">Lưu ý: card VM Network phải có kết nối internet.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="614" src="https://thegioifirewall.com/wp-content/uploads/10-66-1024x614.png" alt="" class="wp-image-16499" srcset="https://thegioifirewall.com/wp-content/uploads/10-66-1024x614.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-66-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/10-66-768x460.png 768w, https://thegioifirewall.com/wp-content/uploads/10-66-1536x921.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-66-2048x1227.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Ready to complete, review lại các cấu hình đã thiết lập và nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="612" src="https://thegioifirewall.com/wp-content/uploads/11-65-1024x612.png" alt="" class="wp-image-16500" srcset="https://thegioifirewall.com/wp-content/uploads/11-65-1024x612.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-65-300x179.png 300w, https://thegioifirewall.com/wp-content/uploads/11-65-768x459.png 768w, https://thegioifirewall.com/wp-content/uploads/11-65-1536x918.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-65-2048x1224.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Như vậy là chúng ta đã hoàn thành việc tạo máy ảo Sophos ZTNA Gateway từ file OVA.</p>



<p class="wp-block-paragraph">Tiếp theo chúng ta sẽ cần phải import file iso mà chúng ta đã upload từ trước vào máy ảo này để nó có thể thiết lập các thông số mà chúng ta đã khai báo trên Sophos Central cũng như giao tiếp với Sophos Central và tắt card Internal (LAN).</p>



<p class="wp-block-paragraph">Để thực hiện chúng ta nhấn phải chuột vào máy ảo Sophos ZTNA Gateway và chọn Edit settings.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="748" height="1024" src="https://thegioifirewall.com/wp-content/uploads/12-60-748x1024.png" alt="" class="wp-image-16501" srcset="https://thegioifirewall.com/wp-content/uploads/12-60-748x1024.png 748w, https://thegioifirewall.com/wp-content/uploads/12-60-219x300.png 219w, https://thegioifirewall.com/wp-content/uploads/12-60-768x1051.png 768w, https://thegioifirewall.com/wp-content/uploads/12-60-1123x1536.png 1123w, https://thegioifirewall.com/wp-content/uploads/12-60.png 1184w" sizes="auto, (max-width: 748px) 100vw, 748px" /></figure>



<p class="wp-block-paragraph">Tại CD/DVD Drive: chọn Datastore.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="659" src="https://thegioifirewall.com/wp-content/uploads/14-48-1024x659.png" alt="" class="wp-image-16503" srcset="https://thegioifirewall.com/wp-content/uploads/14-48-1024x659.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-48-300x193.png 300w, https://thegioifirewall.com/wp-content/uploads/14-48-768x495.png 768w, https://thegioifirewall.com/wp-content/uploads/14-48-1536x989.png 1536w, https://thegioifirewall.com/wp-content/uploads/14-48.png 1941w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng Datastore browser hiện ra chọn file iso và nhấn Select.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="712" src="https://thegioifirewall.com/wp-content/uploads/15-45-1024x712.png" alt="" class="wp-image-16505" srcset="https://thegioifirewall.com/wp-content/uploads/15-45-1024x712.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-45-300x209.png 300w, https://thegioifirewall.com/wp-content/uploads/15-45-768x534.png 768w, https://thegioifirewall.com/wp-content/uploads/15-45-1536x1068.png 1536w, https://thegioifirewall.com/wp-content/uploads/15-45.png 1787w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó tích chọn Connect tại CD/DVD Drive 1 và bỏ chọn Connect tại Network Adapter 2 (đây là card Internal (LAN) của Sophos ZTNA, do chúng ta triển khai theo mode One-arm nên chỉ cần 1 card External (WAN) có kết nối internet).</p>



<p class="wp-block-paragraph">Nhấn Save để lưu.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="661" src="https://thegioifirewall.com/wp-content/uploads/16-43-1024x661.png" alt="" class="wp-image-16504" srcset="https://thegioifirewall.com/wp-content/uploads/16-43-1024x661.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-43-300x194.png 300w, https://thegioifirewall.com/wp-content/uploads/16-43-768x496.png 768w, https://thegioifirewall.com/wp-content/uploads/16-43-1536x991.png 1536w, https://thegioifirewall.com/wp-content/uploads/16-43.png 1942w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó chúng ta thực hiện Start máy ảo Sophos ZTNA Gateway và nó sẽ hiện thị như hình sau.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="621" src="https://thegioifirewall.com/wp-content/uploads/17-39-1024x621.png" alt="" class="wp-image-16506" srcset="https://thegioifirewall.com/wp-content/uploads/17-39-1024x621.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-39-300x182.png 300w, https://thegioifirewall.com/wp-content/uploads/17-39-768x465.png 768w, https://thegioifirewall.com/wp-content/uploads/17-39-1536x931.png 1536w, https://thegioifirewall.com/wp-content/uploads/17-39.png 1838w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi khởi động và máy ảo đã hoạt động, chúng ta đợi khoảng vài phút để máy ảo thực hiện xác thực với Sophos Central.</p>



<p class="wp-block-paragraph">Sau khoảng vài phút chúng ta quay trở lại trang quản trị của Sophos Central.</p>



<p class="wp-block-paragraph">Vào MY PRODUCTS &gt; ZTNA &gt; Gateways.</p>



<p class="wp-block-paragraph">Chúng ta sẽ thấy chữ Approve tại cột Status của ztna mà chúng ta khai báo đã xuất hiện.</p>



<p class="wp-block-paragraph">Điều này cho chúng ta biết là máy ảo Sophos ZTNA Gateway trong nội bộ đã giao tiếp thành công với Sophos Central.</p>



<p class="wp-block-paragraph">Chúng ta nhấn vào Approve để hoàn tất quá trình triển khai.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="298" src="https://thegioifirewall.com/wp-content/uploads/23-25-1024x298.png" alt="" class="wp-image-16507" srcset="https://thegioifirewall.com/wp-content/uploads/23-25-1024x298.png 1024w, https://thegioifirewall.com/wp-content/uploads/23-25-300x87.png 300w, https://thegioifirewall.com/wp-content/uploads/23-25-768x223.png 768w, https://thegioifirewall.com/wp-content/uploads/23-25-1536x447.png 1536w, https://thegioifirewall.com/wp-content/uploads/23-25-2048x595.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.2.Sophos Central</strong></h3>



<h4 class="wp-block-heading"><strong>5.2.1.Đồng bộ user từ Active Directory.</strong></h4>



<h3 class="wp-block-heading"><strong>5.3.Tạo Policy và kiểm tra hoạt động</strong></h3>



<p class="wp-block-paragraph">Phần này chúng ta sẽ thực hiện việc tạo policy, định nghĩa các resource và phân quyền truy cập vào các resource này.</p>



<h4 class="wp-block-heading"><strong>5.3.1.Tạo Policy</strong></h4>



<p class="wp-block-paragraph">Do Sophos ZTNA hỗ trợ 2 hình thức truy cập là Agent và Agentless nên chúng ta sẽ tạo 2 policy.</p>



<p class="wp-block-paragraph">Để tạo đăng nhập vào trang quản trị của Sophos Central bằng tài khoản với quyền admin.</p>



<p class="wp-block-paragraph">Vào MY PRODUCTS &gt; ZTNA &gt; Policies &gt; Nhấn Add policy &gt; Chọn Agent.</p>



<p class="wp-block-paragraph">Lưu ý: với tùy chọn Agent, nó sẽ hỗ trợ kết hợp với phần mềm antivirus Sophos Intercept X Advanced để kiểm tra trạng thái bảo mật của máy trạm khi truy cập vào resource và hỗ trợ truy cập vào resource bằng nhiều protocol khác nhau như Remote Desktop, SSH, Telnet,… .</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="675" height="564" src="https://thegioifirewall.com/wp-content/uploads/25-25.png" alt="" class="wp-image-16508" srcset="https://thegioifirewall.com/wp-content/uploads/25-25.png 675w, https://thegioifirewall.com/wp-content/uploads/25-25-300x251.png 300w" sizes="auto, (max-width: 675px) 100vw, 675px" /></figure>



<p class="wp-block-paragraph">Tạo policy tên Agent với các thông số sau:</p>



<ul class="wp-block-list"><li>Policy name: Agent</li><li>Use condition to manage access: tích chọn (đây chính là lựa chọn sử dụng phần mềm antivirus Sophos Intercept X Advanced kiểm tra trạng thái của máy trạm khi truy cập vào máy trạm.</li><li>Tại Allow access: chọn green (lựa chọn này sẽ chỉ cho phép các máy trạm có trạng thái của phần mềm antivirus là green thì mới có thể truy cập vào resource bên trong).</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="477" src="https://thegioifirewall.com/wp-content/uploads/26-23-1024x477.png" alt="" class="wp-image-16509" srcset="https://thegioifirewall.com/wp-content/uploads/26-23-1024x477.png 1024w, https://thegioifirewall.com/wp-content/uploads/26-23-300x140.png 300w, https://thegioifirewall.com/wp-content/uploads/26-23-768x358.png 768w, https://thegioifirewall.com/wp-content/uploads/26-23-1536x715.png 1536w, https://thegioifirewall.com/wp-content/uploads/26-23.png 1546w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Policy enforced chúng ta nhớ bật policy lên.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="337" src="https://thegioifirewall.com/wp-content/uploads/27-24-1024x337.png" alt="" class="wp-image-16510" srcset="https://thegioifirewall.com/wp-content/uploads/27-24-1024x337.png 1024w, https://thegioifirewall.com/wp-content/uploads/27-24-300x99.png 300w, https://thegioifirewall.com/wp-content/uploads/27-24-768x253.png 768w, https://thegioifirewall.com/wp-content/uploads/27-24-1536x506.png 1536w, https://thegioifirewall.com/wp-content/uploads/27-24.png 1545w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng nhấn Add policy &gt; chọn Agentless.</p>



<p class="wp-block-paragraph">Lưu ý: với tùy chọn Agentless, nó sẽ không hỗ trợ kiểm tra trạng thái của phần mềm antivirus khi truy cập cũng như là chỉ hỗ trợ truy cập web resource.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="677" height="570" src="https://thegioifirewall.com/wp-content/uploads/28-24.png" alt="" class="wp-image-16511" srcset="https://thegioifirewall.com/wp-content/uploads/28-24.png 677w, https://thegioifirewall.com/wp-content/uploads/28-24-300x253.png 300w" sizes="auto, (max-width: 677px) 100vw, 677px" /></figure>



<p class="wp-block-paragraph">Tạo policy tên Agentless với các thông số sau:</p>



<ul class="wp-block-list"><li>Policy enforced: bật policy lên.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="441" src="https://thegioifirewall.com/wp-content/uploads/29-21-1024x441.png" alt="" class="wp-image-16512" srcset="https://thegioifirewall.com/wp-content/uploads/29-21-1024x441.png 1024w, https://thegioifirewall.com/wp-content/uploads/29-21-300x129.png 300w, https://thegioifirewall.com/wp-content/uploads/29-21-768x331.png 768w, https://thegioifirewall.com/wp-content/uploads/29-21-1536x662.png 1536w, https://thegioifirewall.com/wp-content/uploads/29-21.png 1543w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.2.Khai báo resource.</strong></h4>



<p class="wp-block-paragraph">Sau khi tạo policy chúng ta sẽ thực hiện khai báo các resource và phân quyền người dung nào sẽ được truy cập vào resource đó.</p>



<p class="wp-block-paragraph">Để khai báo chúng ta và MY PRODUCTS &gt; ZTNA &gt; Resources &amp; Access &gt; nhấn Add resource.</p>



<p class="wp-block-paragraph">Chúng ta sẽ khai báo các resource như sau:</p>



<ul class="wp-block-list"><li>Active Directory: sử dụng máy tính đã được cài Agent, truy cập bằng Remote Desktop và chỉ các user từ group TECHNICAL TEAM mới có thể truy cập.</li><li>Sophos Firewall: sử dụng máy tính đã được cài Agent, truy cập bằng trình duyệt web và chỉ các user từ group TECHNICAL TEAM mới có thể truy cập.</li><li>ESXI11: sử dụng máy tính không được cài Agent, truy cập bằng trình duyệt web và chỉ các user từ group TECHNICAL TEAM mới có thể truy cập.</li></ul>



<p class="wp-block-paragraph">Chúng ta sẽ tạo resource Active Directory với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: Active Directory.</li><li>Gateway: chọn ztna.</li><li>Access method: chọn Agent.</li><li>Resource type: chọn RDP.</li><li>External FQDN: nhập vào FQDN mà người dùng bên ngoài sử dụng để truy cập, đặt ngẫu nhiên bằng subdomain valab.xyz, trong bài lab này sẽ đặt là pdc.valab.xyz.</li><li>Internal FQDN/IP address: nhập vào IP của máy chủ AD trong nội bộ là 172.16.31.250.</li><li>Assign user group: chọn group TECHNICAL TEAM và nhấn “&gt;”.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="954" height="817" src="https://thegioifirewall.com/wp-content/uploads/30-18.png" alt="" class="wp-image-16513" srcset="https://thegioifirewall.com/wp-content/uploads/30-18.png 954w, https://thegioifirewall.com/wp-content/uploads/30-18-300x257.png 300w, https://thegioifirewall.com/wp-content/uploads/30-18-768x658.png 768w" sizes="auto, (max-width: 954px) 100vw, 954px" /></figure>



<p class="wp-block-paragraph">Tương tự nhấn Add resource và tạo resource Sophos Firewall với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: Sophos Firewall.</li><li>Gateway: chọn ztna.</li><li>Access method: chọn Agent.</li><li>Resource type: chọn Web Application.</li><li>External FQDN: nhập vào FQDN mà người dùng bên ngoài sử dụng để truy cập, đặt ngẫu nhiên bằng subdomain valab.xyz, trong bài lab này sẽ đặt là sf.valab.xyz.</li><li>Internal FQDN/IP address: nhập vào IP LAN của tường lửa Sophos Firewall trong nội bộ là 172.16.31.1.</li><li>Port: nhập 4444.</li><li>Assign user group: chọn group TECHNICAL TEAM và nhấn “&gt;”.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="959" height="822" src="https://thegioifirewall.com/wp-content/uploads/31-17.png" alt="" class="wp-image-16514" srcset="https://thegioifirewall.com/wp-content/uploads/31-17.png 959w, https://thegioifirewall.com/wp-content/uploads/31-17-300x257.png 300w, https://thegioifirewall.com/wp-content/uploads/31-17-768x658.png 768w" sizes="auto, (max-width: 959px) 100vw, 959px" /></figure>



<p class="wp-block-paragraph">Tạo resource ESXI11 với các thông tin sau:</p>



<ul class="wp-block-list"><li>Name: ESXI11.</li><li>Gateway: chọn ztna.</li><li>Access method: chọn Agentless.</li><li>External FQDN: nhập vào FQDN mà người dùng bên ngoài sử dụng để truy cập, đặt ngẫu nhiên bằng subdomain valab.xyz, trong bài lab này sẽ đặt là esxi11.valab.xyz.</li><li>Internal FQDN/IP address: nhập vào IP của máy chủ Vmware ESXi trong nội bộ là 172.16.31.11.</li><li>Assign user group: chọn group TECHNICAL TEAM và nhấn “&gt;”.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="956" height="818" src="https://thegioifirewall.com/wp-content/uploads/32-14.png" alt="" class="wp-image-16515" srcset="https://thegioifirewall.com/wp-content/uploads/32-14.png 956w, https://thegioifirewall.com/wp-content/uploads/32-14-300x257.png 300w, https://thegioifirewall.com/wp-content/uploads/32-14-768x657.png 768w" sizes="auto, (max-width: 956px) 100vw, 956px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.3.Hoạt động với Agent.</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ truy cập vào 2 resource Active Directory và Sophos Firewall bằng máy tính đã được cài sẵn Sophos Endpoint với 2 module Sophos Antivirus và Sophos ZTNA.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/37-1-1-1024x575.png" alt="" class="wp-image-16532" srcset="https://thegioifirewall.com/wp-content/uploads/37-1-1-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/37-1-1-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/37-1-1-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/37-1-1.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta mở phần mềm Remote Desktop Connection và nhập vào External FQDN của resource Active Directory mà chúng ta đã khai báo vào Computer sau đó nhấn Connect.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="608" height="380" src="https://thegioifirewall.com/wp-content/uploads/34-12.png" alt="" class="wp-image-16516" srcset="https://thegioifirewall.com/wp-content/uploads/34-12.png 608w, https://thegioifirewall.com/wp-content/uploads/34-12-300x188.png 300w" sizes="auto, (max-width: 608px) 100vw, 608px" /></figure>



<p class="wp-block-paragraph">Lúc này Sophos sẽ chuyển hướng người dùng sang Okta để xác thực bằng tài khoản.</p>



<p class="wp-block-paragraph">Nhập username và password sau đó nhấn Sign in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="704" src="https://thegioifirewall.com/wp-content/uploads/35-13-1024x704.png" alt="" class="wp-image-16517" srcset="https://thegioifirewall.com/wp-content/uploads/35-13-1024x704.png 1024w, https://thegioifirewall.com/wp-content/uploads/35-13-300x206.png 300w, https://thegioifirewall.com/wp-content/uploads/35-13-768x528.png 768w, https://thegioifirewall.com/wp-content/uploads/35-13-1536x1056.png 1536w, https://thegioifirewall.com/wp-content/uploads/35-13.png 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Một dòng thông báo chúng ta đã xác thực thành công hiện ra.</p>





<p class="wp-block-paragraph">Trở lại với Sophos Endpoint Dashboard chúng ta sẽ tên user đã được xác thực được hiện thị tạo Zero Trust Network Access.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="704" src="https://thegioifirewall.com/wp-content/uploads/38-11-1024x704.png" alt="" class="wp-image-16518" srcset="https://thegioifirewall.com/wp-content/uploads/38-11-1024x704.png 1024w, https://thegioifirewall.com/wp-content/uploads/38-11-300x206.png 300w, https://thegioifirewall.com/wp-content/uploads/38-11-768x528.png 768w, https://thegioifirewall.com/wp-content/uploads/38-11-1536x1056.png 1536w, https://thegioifirewall.com/wp-content/uploads/38-11.png 2000w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện remote desktop vào server và nhập username password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="964" height="1024" src="https://thegioifirewall.com/wp-content/uploads/39-11-964x1024.png" alt="" class="wp-image-16519" srcset="https://thegioifirewall.com/wp-content/uploads/39-11-964x1024.png 964w, https://thegioifirewall.com/wp-content/uploads/39-11-283x300.png 283w, https://thegioifirewall.com/wp-content/uploads/39-11-768x815.png 768w, https://thegioifirewall.com/wp-content/uploads/39-11-1447x1536.png 1447w, https://thegioifirewall.com/wp-content/uploads/39-11.png 1701w" sizes="auto, (max-width: 964px) 100vw, 964px" /></figure>



<p class="wp-block-paragraph">Nhấn Yes.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="935" src="https://thegioifirewall.com/wp-content/uploads/40-11-1024x935.png" alt="" class="wp-image-16520" srcset="https://thegioifirewall.com/wp-content/uploads/40-11-1024x935.png 1024w, https://thegioifirewall.com/wp-content/uploads/40-11-300x274.png 300w, https://thegioifirewall.com/wp-content/uploads/40-11-768x701.png 768w, https://thegioifirewall.com/wp-content/uploads/40-11.png 1044w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Kết quả là đã remote vào server Active Directory thành công.</p>





<p class="wp-block-paragraph">Tiếp theo chúng ta sẽ truy cập trang quản trị của Sophos Firewall thông qua FQDN mà chúng ta đã khai báo là sf.valab.xyz.</p>



<p class="wp-block-paragraph">Mở bất kì trình duyệt nào và nhập vào đường dẫn là <strong>https://sf.valab.xyz:4444</strong>.</p>



<p class="wp-block-paragraph">Và kết quả là chúng ta đã có thể truy cập vào trang quản trị của Sophos Firewall thông qua ZTNA.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/52-5-1024x575.png" alt="" class="wp-image-16521" srcset="https://thegioifirewall.com/wp-content/uploads/52-5-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/52-5-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/52-5-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/52-5-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/52-5-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Cuối cùng chúng ta sẽ thực hiện kiểm tra khả năng tự động ngắt kết nối của máy trạm tới máy chủ khi máy trạm bị nhiễm virus.</p>



<p class="wp-block-paragraph">Chúng ta remote desktop đến Active Diretory và sẽ giải nén một file virus như hình dưới và thấy được rằng Sophos Antivirus đã phát hiện ra nó.</p>



<p class="wp-block-paragraph">Sau đó trạng thái bảo mật của phần mềm antivirus trên máy tính đã chuyển sang màu cam và đồng nghĩa với việc Sophos ZTNA sẽ ngay lập tức ngắt kết nối từ máy trạm đến máy chủ Active Directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/42-1-1-1024x575.png" alt="" class="wp-image-16533" srcset="https://thegioifirewall.com/wp-content/uploads/42-1-1-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/42-1-1-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/42-1-1-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/42-1-1.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/43-1-1-1024x575.png" alt="" class="wp-image-16534" srcset="https://thegioifirewall.com/wp-content/uploads/43-1-1-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/43-1-1-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/43-1-1-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/43-1-1.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi Sophos antivirus xử lý thành công file virus, nó sẽ tự động chuyển trạng thái bảo mật sang màu xanh và lúc này Sophos ZTNA sẽ trả lại quyền truy cập đến máy chủ Active Directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/44-1-1-1024x575.png" alt="" class="wp-image-16535" srcset="https://thegioifirewall.com/wp-content/uploads/44-1-1-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/44-1-1-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/44-1-1-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/44-1-1.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/45-1-1-1024x575.png" alt="" class="wp-image-16536" srcset="https://thegioifirewall.com/wp-content/uploads/45-1-1-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/45-1-1-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/45-1-1-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/45-1-1.png 1500w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.4.Hoạt động với Agentless.</strong></h4>



<p class="wp-block-paragraph">Chúng ta sẽ cùng kiểm tra xem Agentless sẽ hoạt động như thế nào trong bài viết này.</p>



<p class="wp-block-paragraph">Với Agentless thì chúng ta có thể truy cập vào máy chủ VMware ESXi bằng trình duyệt web mà chúng ta đã khai báo ở phần trước.</p>



<p class="wp-block-paragraph">Để truy cập chúng ta mở bất kì một trình duyệt nào và nhập vào FQDN của Sophos ZTNA Gateway là <strong>https://ztna.valab.xyz</strong>.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/46-7-1024x575.png" alt="" class="wp-image-16522" srcset="https://thegioifirewall.com/wp-content/uploads/46-7-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/46-7-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/46-7-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/46-7-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/46-7-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó Sophos sẽ chuyển hướng người dùng sang trang Okta để xác thực.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/47-6-1024x575.png" alt="" class="wp-image-16523" srcset="https://thegioifirewall.com/wp-content/uploads/47-6-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/47-6-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/47-6-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/47-6-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/47-6-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi xác thực thành công người dùng sẽ truy cập vào 1 trang gọi là ZTNA Application Portal.</p>



<p class="wp-block-paragraph">Đây là trang liệt kê tất cả các resource mà user vừa xác thực được phép truy cập.</p>



<p class="wp-block-paragraph">Như chúng ta thấy trong danh sách là máy chủ VMware ESXI11.</p>



<p class="wp-block-paragraph">Chúng ta chỉ cần nhấp chuột trái vào máy chủ để truy cập.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/48-7-1024x575.png" alt="" class="wp-image-16526" srcset="https://thegioifirewall.com/wp-content/uploads/48-7-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/48-7-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/48-7-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/48-7-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/48-7-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Như chúng ta thấy là việc truy cập bị lỗi và lỗi gặp phải ở đây là lỗi DNS.</p>



<p class="wp-block-paragraph">Chúng ta cần lưu ý là mặc dù chúng ta đã khai báo resource cho máy chủ VMware ESXi với FQDN là esxi11.valab.xyz nhưng do chúng ta chưa trỏ DNS record FQDN này về IP WAN của Sophos Firewall nên khi chúng ta truy cập resource sẽ gặp lỗi này.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/49-6-1024x575.png" alt="" class="wp-image-16524" srcset="https://thegioifirewall.com/wp-content/uploads/49-6-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/49-6-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/49-6-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/49-6-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/49-6-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta cần vào trang quản trị của tên miền và tạo DNS record như hình dưới đây.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="589" src="https://thegioifirewall.com/wp-content/uploads/50-5-1024x589.png" alt="" class="wp-image-16525" srcset="https://thegioifirewall.com/wp-content/uploads/50-5-1024x589.png 1024w, https://thegioifirewall.com/wp-content/uploads/50-5-300x173.png 300w, https://thegioifirewall.com/wp-content/uploads/50-5-768x442.png 768w, https://thegioifirewall.com/wp-content/uploads/50-5-1536x884.png 1536w, https://thegioifirewall.com/wp-content/uploads/50-5-2048x1178.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Và sau đó quay trở lại ZTNA Application Portal và thử truy cập vào máy chủ VMware ESXi một lần nữa.</p>



<p class="wp-block-paragraph">Kết quả là chúng ta đã truy cập thành công.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="575" src="https://thegioifirewall.com/wp-content/uploads/51-5-1024x575.png" alt="" class="wp-image-16527" srcset="https://thegioifirewall.com/wp-content/uploads/51-5-1024x575.png 1024w, https://thegioifirewall.com/wp-content/uploads/51-5-300x169.png 300w, https://thegioifirewall.com/wp-content/uploads/51-5-768x432.png 768w, https://thegioifirewall.com/wp-content/uploads/51-5-1536x863.png 1536w, https://thegioifirewall.com/wp-content/uploads/51-5-2048x1151.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.2.5.Kiểm tra Logs and Reports.</strong></h4>



<p class="wp-block-paragraph">Do chúng ta đã thực hiện truy cập vào các resource bằng cả 2 phương thức là Agent và Agentless nên trong phần này chúng ta sẽ thực hiện review xem logs của Sophos ZTNA sẽ hiện thị như thế nào và có các loại log nào.</p>



<p class="wp-block-paragraph">Đầu tiên đó chính là log ghi lại việc các user nào đã xác thực và trạng thái là xác thực thành công hay không.</p>



<p class="wp-block-paragraph">Như chúng ta thấy tại hình dưới, log của Sophos ZTNA liệt kê rất chi tiết user nào đã xác thực, trạng thái xác thực, OS version mà máy tính người dùng đó dùng để xác thực, nếu là Agentless sẽ có thêm phần trình duyệt nào dùng để xác thực và version của trình duyệt đó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="507" src="https://thegioifirewall.com/wp-content/uploads/56-4-1024x507.png" alt="" class="wp-image-16529" srcset="https://thegioifirewall.com/wp-content/uploads/56-4-1024x507.png 1024w, https://thegioifirewall.com/wp-content/uploads/56-4-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/56-4-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/56-4-1536x761.png 1536w, https://thegioifirewall.com/wp-content/uploads/56-4-2048x1015.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nội dung thứ 2 mà Sophos ZTNA ghi log lại đó chính là danh sách các truy cập vào resource bị từ chối.</p>



<p class="wp-block-paragraph">Ở phần trên chúng ta có thực hiện giải nén file virus và bị ngắt kết nối vào máy chủ Active Directory.</p>



<p class="wp-block-paragraph">Như hình dưới chúng ta có thể thấy Sophos ZTNA đã ghi lại log rất chi tiết gồm các thông số ngày-giờ, tên resource, user dùng để truy cập, lý do bị từ chối.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="507" src="https://thegioifirewall.com/wp-content/uploads/55-5-1024x507.png" alt="" class="wp-image-16528" srcset="https://thegioifirewall.com/wp-content/uploads/55-5-1024x507.png 1024w, https://thegioifirewall.com/wp-content/uploads/55-5-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/55-5-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/55-5-1536x761.png 1536w, https://thegioifirewall.com/wp-content/uploads/55-5-2048x1015.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nội dung thứ 3 mà Sophos ghi log lại chính là ghi lại lượng băng thông được truy cập của các resource.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="507" src="https://thegioifirewall.com/wp-content/uploads/54-5-1024x507.png" alt="" class="wp-image-16530" srcset="https://thegioifirewall.com/wp-content/uploads/54-5-1024x507.png 1024w, https://thegioifirewall.com/wp-content/uploads/54-5-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/54-5-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/54-5-1536x761.png 1536w, https://thegioifirewall.com/wp-content/uploads/54-5-2048x1015.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Cuối cùng nội dung mà Sophos ghi log lại chính là băng thông được truy cập của Sophos ZTNA Gateway.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="507" src="https://thegioifirewall.com/wp-content/uploads/53-5-1024x507.png" alt="" class="wp-image-16531" srcset="https://thegioifirewall.com/wp-content/uploads/53-5-1024x507.png 1024w, https://thegioifirewall.com/wp-content/uploads/53-5-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/53-5-768x381.png 768w, https://thegioifirewall.com/wp-content/uploads/53-5-1536x761.png 1536w, https://thegioifirewall.com/wp-content/uploads/53-5-2048x1015.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-2/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hướng dẫn triển khai giải pháp Sophos Zero Trust Network Access phần 1</title>
		<link>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-1/</link>
					<comments>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-1/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Fri, 17 Jun 2022 04:11:00 +0000</pubDate>
				<category><![CDATA[Sophos ZTNA]]></category>
		<category><![CDATA[Hướng dẫn triển khai giải pháp Sophos Zero Trust Network Access phần 1]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=16314</guid>

					<description><![CDATA[1.Mục đích bài viết Chuỗi bài viết này sẽ cung cấp cho các bạn chi tiết các bước cần thực hiện cũng như cách triển khai toàn diện giải pháp Sophos Zero Trust Network Access. 2.Sơ đồ mạng Chi tiết: Chúng ta sẽ thiết bị tường lửa Sophos được kết nối với internet tại Port [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Mục đích bài viết</strong></h2>



<p class="wp-block-paragraph">Chuỗi bài viết này sẽ cung cấp cho các bạn chi tiết các bước cần thực hiện cũng như cách triển khai toàn diện giải pháp Sophos Zero Trust Network Access.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="439" src="https://thegioifirewall.com/wp-content/uploads/Drawing3-1024x439.png" alt="" class="wp-image-16315" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing3-1024x439.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing3-300x129.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing3-768x329.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing3-1536x658.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing3-2048x878.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ thiết bị tường lửa Sophos được kết nối với internet tại Port 2 với IP WAN tĩnh là 115.78.x.x.</p>



<p class="wp-block-paragraph">Mạng nội bộ sẽ được cấu hình tại Port 1 của thiết bị Sophos Firewall với IP 172.16.31.1/24 và đã được cấu hình DHCP.</p>



<p class="wp-block-paragraph">Trong mạng nội bộ sẽ có một máy chủ chạy hạ tầng ảo hóa VMWware Esxi có IP 172.16.31.11/24 và có các máy ảo như sau:</p>



<ul class="wp-block-list"><li>Active Directory kiêm DNS server có hostname là pdc.valab.xyz với IP 172.16.31.250/24.</li><li>Sophos ZTNA Gateway có hostname là ztna.valab.xyz với IP 172.16.31.251/24.</li></ul>



<p class="wp-block-paragraph">Ở phía ngoài internet chúng ta sẽ có các thành phần dùng để triển khai Sophos ZTNA như sau:</p>



<ul class="wp-block-list"><li>Public domain: đang sử dụng domain của Mắt Bảo.</li><li>Identity Provider: Okta.</li><li>Sophos Central: nơi quản lý các policy, user, logs.</li><li>Hai máy tính Windows 10 với 1 máy đã được cài Agent và 1 máy không cài Agent.</li></ul>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Trong phần 1 của series này thegioifirewall sẽ hướng dẫn các bạn cấu hình 3 thành phần đầu tiên của là khai báo record trên public domain trỏ FQDN của Sophos ZTNA Gateway về IP WAN của Sophos Firewall, cấu hình Wildcard certificate và cấu hình Okta.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<p class="wp-block-paragraph">Public Domain:</p>



<ul class="wp-block-list"><li>Tạo record.</li></ul>



<p class="wp-block-paragraph">Cấu hình Wildcard certificate:</p>



<ul class="wp-block-list"><li>Get wildcard certificate cho domain valab.xyz.</li></ul>



<p class="wp-block-paragraph">Identity Provider Okta:</p>



<ul class="wp-block-list"><li>Sync user từ Active Directory</li><li>Tạo Application cho Sophos ZTNA.</li><li>Tạo Authorization Server cho Sophos ZTNA.</li><li>Khai báo Identity Provider Okta trên Sophos Central.</li></ul>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Public Domain</strong></h3>



<h4 class="wp-block-heading"><strong>5.1.1.Tạo record.</strong></h4>



<p class="wp-block-paragraph">Do Sophos ZTNA hoạt động bằng tên miền nên thegioifirewall đã chuẩn bị sẵn một tên miền được mua từ Mắt Bảo là valab.xyz.</p>



<p class="wp-block-paragraph">Việc đầu tiên chúng ta cần làm với tên miền này là trỏ FQDN của Sophos ZTNA về IP WAN của Sophos Firewall.</p>



<p class="wp-block-paragraph">Để làm chúng ta cần đăng nhập vào trang quản trị DNS cho tên miền valab.xyz trên trang web của Mắt Bảo.</p>



<p class="wp-block-paragraph">Chúng ta sẽ tạo các record trỏ FQDN của Sophos ZTNA Gateway về IP WAN của Sophos Firewall như hình sau:</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="633" src="https://thegioifirewall.com/wp-content/uploads/1-110-1024x633.png" alt="" class="wp-image-16316" srcset="https://thegioifirewall.com/wp-content/uploads/1-110-1024x633.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-110-300x185.png 300w, https://thegioifirewall.com/wp-content/uploads/1-110-768x475.png 768w, https://thegioifirewall.com/wp-content/uploads/1-110-1536x949.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-110-2048x1265.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để kiểm tra xem record đã hoạt động chưa chúng ta bật Command Prompt trên máy tính.</p>



<p class="wp-block-paragraph">Nhập lệnh nslookup &gt; gõ vào tên miền ztna.valab.xyz và chúng ta sẽ thấy tên miền này sẽ được phân giải thành địa chỉ IP 115.78.x.x.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="507" src="https://thegioifirewall.com/wp-content/uploads/33-12-1024x507.png" alt="" class="wp-image-16317" srcset="https://thegioifirewall.com/wp-content/uploads/33-12-1024x507.png 1024w, https://thegioifirewall.com/wp-content/uploads/33-12-300x149.png 300w, https://thegioifirewall.com/wp-content/uploads/33-12-768x380.png 768w, https://thegioifirewall.com/wp-content/uploads/33-12.png 1064w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.2.Cấu hình Wildcard certificate</strong></h3>



<h4 class="wp-block-heading"><strong>5.2.1.Đăng kí wildcard certificate cho domain valab.xyz.</strong></h4>



<p class="wp-block-paragraph">Do giải pháp Sophos ZTNA sẽ sử dụng tất cả các subdomain của domain valab.xyz và kết nối mà nó sử dụng là https nên chúng ta cần phải có một wildcard certificate về https để áp dụng cho tất cả subdomain của domain valab.xyz.</p>



<p class="wp-block-paragraph">Trong bài viết này chúng ta sẽ đăng kí wildcard certificate miễn phí từ Let’s Encrypt.</p>



<p class="wp-block-paragraph">Đầu tiên chúng ta cần tải xuống phần mềm Certbot client về máy tính cá nhân.</p>



<p class="wp-block-paragraph">Vào link phía dưới để download.</p>



<p class="wp-block-paragraph"><a href="https://dl.eff.org/certbot-beta-installer-win32.exe">https://dl.eff.org/certbot-beta-installer-win32.exe</a></p>



<p class="wp-block-paragraph">Tiếp theo thực hiện cài đặt phần mềm certbot client vào máy và mở nó lên.</p>



<p class="wp-block-paragraph">Khi mở lên thì nó sẽ có giao diện như hình dưới đây.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="561" src="https://thegioifirewall.com/wp-content/uploads/52-4-1024x561.png" alt="" class="wp-image-16318" srcset="https://thegioifirewall.com/wp-content/uploads/52-4-1024x561.png 1024w, https://thegioifirewall.com/wp-content/uploads/52-4-300x164.png 300w, https://thegioifirewall.com/wp-content/uploads/52-4-768x420.png 768w, https://thegioifirewall.com/wp-content/uploads/52-4-1536x841.png 1536w, https://thegioifirewall.com/wp-content/uploads/52-4-2048x1121.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ nhập câu lệnh sau để đăng kí wild certificate cho tên miền valab.xyz.</p>



<p class="wp-block-paragraph">certbot certonly &#8211;manual &#8211;preferred-challenges=dns &#8211;server https://acme-v02.api.letsencrypt.org/directory &#8211;agree-tos &#8211;domain valab.xyz</p>



<p class="wp-block-paragraph">Sau khi chạy dòng lệnh certbot sẽ yêu cầu chúng ta tạo DNS TXT record trên domain valab.xyz với các thông số phía dưới.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="561" src="https://thegioifirewall.com/wp-content/uploads/53-4-1024x561.png" alt="" class="wp-image-16319" srcset="https://thegioifirewall.com/wp-content/uploads/53-4-1024x561.png 1024w, https://thegioifirewall.com/wp-content/uploads/53-4-300x164.png 300w, https://thegioifirewall.com/wp-content/uploads/53-4-768x420.png 768w, https://thegioifirewall.com/wp-content/uploads/53-4-1536x841.png 1536w, https://thegioifirewall.com/wp-content/uploads/53-4-2048x1121.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta cần đăng nhập vào trang quản trị của domain valab.xyz và thêm TXT record như sau.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="397" src="https://thegioifirewall.com/wp-content/uploads/54-4-1024x397.png" alt="" class="wp-image-16320" srcset="https://thegioifirewall.com/wp-content/uploads/54-4-1024x397.png 1024w, https://thegioifirewall.com/wp-content/uploads/54-4-300x116.png 300w, https://thegioifirewall.com/wp-content/uploads/54-4-768x298.png 768w, https://thegioifirewall.com/wp-content/uploads/54-4-1536x596.png 1536w, https://thegioifirewall.com/wp-content/uploads/54-4-2048x795.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó chúng ta vào <a href="https://toolbox.googleapps.com/apps/dig/#TXT/">https://toolbox.googleapps.com/apps/dig/#TXT/</a> để kiểm tra xem TXT record đã hoạt động hay chưa.</p>



<p class="wp-block-paragraph">Nhập _acme-challenge.valab.xyz vào ô và nhấn enter, chúng ta sẽ thấy kết quả là TXT record đã hoạt động.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="472" src="https://thegioifirewall.com/wp-content/uploads/55-4-1024x472.png" alt="" class="wp-image-16321" srcset="https://thegioifirewall.com/wp-content/uploads/55-4-1024x472.png 1024w, https://thegioifirewall.com/wp-content/uploads/55-4-300x138.png 300w, https://thegioifirewall.com/wp-content/uploads/55-4-768x354.png 768w, https://thegioifirewall.com/wp-content/uploads/55-4-1536x707.png 1536w, https://thegioifirewall.com/wp-content/uploads/55-4-2048x943.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay trở lại certbot client nhấn Enter để tiếp tục.</p>



<p class="wp-block-paragraph">Chúng ta thấy việc đăng kí wild certfificate đã thành công.</p>



<p class="wp-block-paragraph">Hai file certificate có tên là fullchain.pem và file key có tên là privkey.pem được lưu tại ổ C:/Certbot/Archive/valab.xyz-0001</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="561" src="https://thegioifirewall.com/wp-content/uploads/56-3-1024x561.png" alt="" class="wp-image-16322" srcset="https://thegioifirewall.com/wp-content/uploads/56-3-1024x561.png 1024w, https://thegioifirewall.com/wp-content/uploads/56-3-300x164.png 300w, https://thegioifirewall.com/wp-content/uploads/56-3-768x420.png 768w, https://thegioifirewall.com/wp-content/uploads/56-3-1536x841.png 1536w, https://thegioifirewall.com/wp-content/uploads/56-3-2048x1121.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="459" src="https://thegioifirewall.com/wp-content/uploads/57-3-1024x459.png" alt="" class="wp-image-16323" srcset="https://thegioifirewall.com/wp-content/uploads/57-3-1024x459.png 1024w, https://thegioifirewall.com/wp-content/uploads/57-3-300x135.png 300w, https://thegioifirewall.com/wp-content/uploads/57-3-768x345.png 768w, https://thegioifirewall.com/wp-content/uploads/57-3-1536x689.png 1536w, https://thegioifirewall.com/wp-content/uploads/57-3-2048x919.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Lưu ý: chúng ta cần giữ 2 file này để dùng cho việc triển khai Sophos ZTNA Gateway ở phần sau.</p>



<h3 class="wp-block-heading"><strong>5.3.Identity Provider Okta</strong></h3>



<h4 class="wp-block-heading"><strong>5.3.1.Sync user từ Active Directory</strong></h4>



<p class="wp-block-paragraph">Mục đích của việc sync user này là để Okta sẽ sử dụng trực tiếp user từ Active Directory cho bước xác thực người dùng.</p>



<p class="wp-block-paragraph">Hình dưới đây là danh sách các user và groups sẽ được sync lên Okta.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="619" src="https://thegioifirewall.com/wp-content/uploads/2-111-1024x619.png" alt="" class="wp-image-16324" srcset="https://thegioifirewall.com/wp-content/uploads/2-111-1024x619.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-111-300x181.png 300w, https://thegioifirewall.com/wp-content/uploads/2-111-768x464.png 768w, https://thegioifirewall.com/wp-content/uploads/2-111-1536x928.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-111-2048x1237.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để sync chúng ta truy cập vào trang quản trị của Okta.</p>



<p class="wp-block-paragraph">Vào Directory &gt; Directory Integrations &gt; nhấn Add Active Directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="540" src="https://thegioifirewall.com/wp-content/uploads/3-108-1024x540.png" alt="" class="wp-image-16325" srcset="https://thegioifirewall.com/wp-content/uploads/3-108-1024x540.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-108-300x158.png 300w, https://thegioifirewall.com/wp-content/uploads/3-108-768x405.png 768w, https://thegioifirewall.com/wp-content/uploads/3-108-1536x811.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-108-2048x1081.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Set Up Active Directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="791" height="1024" src="https://thegioifirewall.com/wp-content/uploads/4-104-791x1024.png" alt="" class="wp-image-16326" srcset="https://thegioifirewall.com/wp-content/uploads/4-104-791x1024.png 791w, https://thegioifirewall.com/wp-content/uploads/4-104-232x300.png 232w, https://thegioifirewall.com/wp-content/uploads/4-104-768x994.png 768w, https://thegioifirewall.com/wp-content/uploads/4-104.png 1081w" sizes="auto, (max-width: 791px) 100vw, 791px" /></figure>



<p class="wp-block-paragraph">Nhấn Download Agent.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="433" src="https://thegioifirewall.com/wp-content/uploads/5-99-1024x433.png" alt="" class="wp-image-16327" srcset="https://thegioifirewall.com/wp-content/uploads/5-99-1024x433.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-99-300x127.png 300w, https://thegioifirewall.com/wp-content/uploads/5-99-768x325.png 768w, https://thegioifirewall.com/wp-content/uploads/5-99-1536x650.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-99-2048x866.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ cài đặt file OktaADAgentSetup vừa tải vừa và chúng ta cần copy thông số Your Okta Orgnization URL để sử dụng cho quá trình cài đặt.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="767" src="https://thegioifirewall.com/wp-content/uploads/6-90-1024x767.png" alt="" class="wp-image-16328" srcset="https://thegioifirewall.com/wp-content/uploads/6-90-1024x767.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-90-300x225.png 300w, https://thegioifirewall.com/wp-content/uploads/6-90-768x575.png 768w, https://thegioifirewall.com/wp-content/uploads/6-90-1536x1151.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-90-2048x1534.png 2048w, https://thegioifirewall.com/wp-content/uploads/6-90-1200x900.png 1200w, https://thegioifirewall.com/wp-content/uploads/6-90-600x450.png 600w, https://thegioifirewall.com/wp-content/uploads/6-90-400x300.png 400w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="798" src="https://thegioifirewall.com/wp-content/uploads/7-78-1024x798.png" alt="" class="wp-image-16329" srcset="https://thegioifirewall.com/wp-content/uploads/7-78-1024x798.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-78-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/7-78-768x599.png 768w, https://thegioifirewall.com/wp-content/uploads/7-78.png 1242w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Install.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="800" src="https://thegioifirewall.com/wp-content/uploads/8-75-1024x800.png" alt="" class="wp-image-16330" srcset="https://thegioifirewall.com/wp-content/uploads/8-75-1024x800.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-75-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/8-75-768x600.png 768w, https://thegioifirewall.com/wp-content/uploads/8-75.png 1243w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Okta AD Agent sẽ tự động phát hiện được tên domain trên máy chủ Active Directory.</p>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="803" src="https://thegioifirewall.com/wp-content/uploads/9-72-1024x803.png" alt="" class="wp-image-16331" srcset="https://thegioifirewall.com/wp-content/uploads/9-72-1024x803.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-72-300x235.png 300w, https://thegioifirewall.com/wp-content/uploads/9-72-768x602.png 768w, https://thegioifirewall.com/wp-content/uploads/9-72.png 1240w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chọn Create or use the OktaService account (recommended), với lựa chọn này Okta Agent sẽ tạo ra một tài khoản với username OktaService chỉ dùng để chạy cho duy nhất dịch vụ của Okta.</p>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="800" src="https://thegioifirewall.com/wp-content/uploads/15-44-1024x800.png" alt="" class="wp-image-16332" srcset="https://thegioifirewall.com/wp-content/uploads/15-44-1024x800.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-44-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/15-44-768x600.png 768w, https://thegioifirewall.com/wp-content/uploads/15-44.png 1240w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta nhập password cho tài khoản OktaService và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="801" src="https://thegioifirewall.com/wp-content/uploads/16-42-1024x801.png" alt="" class="wp-image-16333" srcset="https://thegioifirewall.com/wp-content/uploads/16-42-1024x801.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-42-300x235.png 300w, https://thegioifirewall.com/wp-content/uploads/16-42-768x601.png 768w, https://thegioifirewall.com/wp-content/uploads/16-42.png 1241w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Next nếu chúng ta không sử dụng proxy trong hệ thống.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="798" src="https://thegioifirewall.com/wp-content/uploads/10-65-1024x798.png" alt="" class="wp-image-16334" srcset="https://thegioifirewall.com/wp-content/uploads/10-65-1024x798.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-65-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/10-65-768x599.png 768w, https://thegioifirewall.com/wp-content/uploads/10-65.png 1243w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Copy Okta Organization URL mà chúng ta đã lưu tại bước download Okta Agent vào ô Enter Organization URL.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="800" src="https://thegioifirewall.com/wp-content/uploads/11-64-1024x800.png" alt="" class="wp-image-16335" srcset="https://thegioifirewall.com/wp-content/uploads/11-64-1024x800.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-64-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/11-64-768x600.png 768w, https://thegioifirewall.com/wp-content/uploads/11-64.png 1242w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Một cửa sổ đăng nhập hiện ta, chúng ta cần đăng nhập tài khoản quản trị của Okta và nhấn Sign in.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="673" height="1024" src="https://thegioifirewall.com/wp-content/uploads/12-59-673x1024.png" alt="" class="wp-image-16336" srcset="https://thegioifirewall.com/wp-content/uploads/12-59-673x1024.png 673w, https://thegioifirewall.com/wp-content/uploads/12-59-197x300.png 197w, https://thegioifirewall.com/wp-content/uploads/12-59-768x1168.png 768w, https://thegioifirewall.com/wp-content/uploads/12-59.png 994w" sizes="auto, (max-width: 673px) 100vw, 673px" /></figure>



<p class="wp-block-paragraph">Nhấn Allow Access để cho phép các service cần thiết Okta Agent có thể hoạt động.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="992" height="643" src="https://thegioifirewall.com/wp-content/uploads/13-50.png" alt="" class="wp-image-16337" srcset="https://thegioifirewall.com/wp-content/uploads/13-50.png 992w, https://thegioifirewall.com/wp-content/uploads/13-50-300x194.png 300w, https://thegioifirewall.com/wp-content/uploads/13-50-768x498.png 768w" sizes="auto, (max-width: 992px) 100vw, 992px" /></figure>



<p class="wp-block-paragraph">Quá trình đăng kí Okta Agent và cài đặt sẽ diễn ra trong khoảng 5 giây.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="801" src="https://thegioifirewall.com/wp-content/uploads/14-47-1024x801.png" alt="" class="wp-image-16338" srcset="https://thegioifirewall.com/wp-content/uploads/14-47-1024x801.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-47-300x235.png 300w, https://thegioifirewall.com/wp-content/uploads/14-47-768x601.png 768w, https://thegioifirewall.com/wp-content/uploads/14-47.png 1243w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta nhấn Finish để hoàn thành việc cài đặt Okta Agent.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="799" src="https://thegioifirewall.com/wp-content/uploads/18-38-1024x799.png" alt="" class="wp-image-16339" srcset="https://thegioifirewall.com/wp-content/uploads/18-38-1024x799.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-38-300x234.png 300w, https://thegioifirewall.com/wp-content/uploads/18-38-768x599.png 768w, https://thegioifirewall.com/wp-content/uploads/18-38.png 1241w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay trở lại trang quản trị chúng ta sẽ tiếp tục phần cấu hình còn lại.</p>



<p class="wp-block-paragraph">Tại Basic Settings, chúng ta sẽ chọn OU mà chúng ta sẽ sync lên Okta.</p>



<p class="wp-block-paragraph">Ở đây chúng ta sẽ chọn OU valab vì đây là nơi chứa users và group.</p>



<p class="wp-block-paragraph">Tại Okta username format, chúng ta sẽ chọn Email Address và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="919" src="https://thegioifirewall.com/wp-content/uploads/19-36-1024x919.png" alt="" class="wp-image-16340" srcset="https://thegioifirewall.com/wp-content/uploads/19-36-1024x919.png 1024w, https://thegioifirewall.com/wp-content/uploads/19-36-300x269.png 300w, https://thegioifirewall.com/wp-content/uploads/19-36-768x689.png 768w, https://thegioifirewall.com/wp-content/uploads/19-36-1536x1379.png 1536w, https://thegioifirewall.com/wp-content/uploads/19-36.png 1883w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="846" height="397" src="https://thegioifirewall.com/wp-content/uploads/20-33.png" alt="" class="wp-image-16341" srcset="https://thegioifirewall.com/wp-content/uploads/20-33.png 846w, https://thegioifirewall.com/wp-content/uploads/20-33-300x141.png 300w, https://thegioifirewall.com/wp-content/uploads/20-33-768x360.png 768w" sizes="auto, (max-width: 846px) 100vw, 846px" /></figure>



<p class="wp-block-paragraph">Tại Build User Profile nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="897" src="https://thegioifirewall.com/wp-content/uploads/21-30-1024x897.png" alt="" class="wp-image-16342" srcset="https://thegioifirewall.com/wp-content/uploads/21-30-1024x897.png 1024w, https://thegioifirewall.com/wp-content/uploads/21-30-300x263.png 300w, https://thegioifirewall.com/wp-content/uploads/21-30-768x673.png 768w, https://thegioifirewall.com/wp-content/uploads/21-30-1536x1346.png 1536w, https://thegioifirewall.com/wp-content/uploads/21-30.png 1955w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Done để hoàn thành.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="305" src="https://thegioifirewall.com/wp-content/uploads/22-24-1024x305.png" alt="" class="wp-image-16343" srcset="https://thegioifirewall.com/wp-content/uploads/22-24-1024x305.png 1024w, https://thegioifirewall.com/wp-content/uploads/22-24-300x89.png 300w, https://thegioifirewall.com/wp-content/uploads/22-24-768x229.png 768w, https://thegioifirewall.com/wp-content/uploads/22-24-1536x457.png 1536w, https://thegioifirewall.com/wp-content/uploads/22-24.png 2012w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Vào Directory &gt; Directory Integrations và chúng ta sẽ thấy Okta đã kết nối với máy chủ Active Directory thành công.</p>



<p class="wp-block-paragraph">Tiếp theo chúng ta sẽ import users và groups lên Okta, để import chúng ta nhấn chuột trái vào Active Directory.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="412" src="https://thegioifirewall.com/wp-content/uploads/32-13-1024x412.png" alt="" class="wp-image-16345" srcset="https://thegioifirewall.com/wp-content/uploads/32-13-1024x412.png 1024w, https://thegioifirewall.com/wp-content/uploads/32-13-300x121.png 300w, https://thegioifirewall.com/wp-content/uploads/32-13-768x309.png 768w, https://thegioifirewall.com/wp-content/uploads/32-13-1536x617.png 1536w, https://thegioifirewall.com/wp-content/uploads/32-13-2048x823.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại tab Import nhấn Import Now.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="608" src="https://thegioifirewall.com/wp-content/uploads/24-26-1024x608.png" alt="" class="wp-image-16346" srcset="https://thegioifirewall.com/wp-content/uploads/24-26-1024x608.png 1024w, https://thegioifirewall.com/wp-content/uploads/24-26-300x178.png 300w, https://thegioifirewall.com/wp-content/uploads/24-26-768x456.png 768w, https://thegioifirewall.com/wp-content/uploads/24-26-1536x912.png 1536w, https://thegioifirewall.com/wp-content/uploads/24-26-2048x1216.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chọn Incremental import (fastest) và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1014" src="https://thegioifirewall.com/wp-content/uploads/25-24-1024x1014.png" alt="" class="wp-image-16347" srcset="https://thegioifirewall.com/wp-content/uploads/25-24-1024x1014.png 1024w, https://thegioifirewall.com/wp-content/uploads/25-24-300x297.png 300w, https://thegioifirewall.com/wp-content/uploads/25-24-150x150.png 150w, https://thegioifirewall.com/wp-content/uploads/25-24-768x760.png 768w, https://thegioifirewall.com/wp-content/uploads/25-24.png 1421w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quá trình import sẽ diễn ra trong vài giây.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="639" src="https://thegioifirewall.com/wp-content/uploads/26-22-1024x639.png" alt="" class="wp-image-16348" srcset="https://thegioifirewall.com/wp-content/uploads/26-22-1024x639.png 1024w, https://thegioifirewall.com/wp-content/uploads/26-22-300x187.png 300w, https://thegioifirewall.com/wp-content/uploads/26-22-768x479.png 768w, https://thegioifirewall.com/wp-content/uploads/26-22-1536x958.png 1536w, https://thegioifirewall.com/wp-content/uploads/26-22-2048x1277.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Okta đã scan thành công 7 user và 2 group.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="866" src="https://thegioifirewall.com/wp-content/uploads/27-23-1024x866.png" alt="" class="wp-image-16349" srcset="https://thegioifirewall.com/wp-content/uploads/27-23-1024x866.png 1024w, https://thegioifirewall.com/wp-content/uploads/27-23-300x254.png 300w, https://thegioifirewall.com/wp-content/uploads/27-23-768x650.png 768w, https://thegioifirewall.com/wp-content/uploads/27-23-1536x1300.png 1536w, https://thegioifirewall.com/wp-content/uploads/27-23.png 1943w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để import user lên Okta chúng ta tích chọn tất cả user và nhấn Confirm Assignments.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="940" height="1024" src="https://thegioifirewall.com/wp-content/uploads/28-23-940x1024.png" alt="" class="wp-image-16350" srcset="https://thegioifirewall.com/wp-content/uploads/28-23-940x1024.png 940w, https://thegioifirewall.com/wp-content/uploads/28-23-275x300.png 275w, https://thegioifirewall.com/wp-content/uploads/28-23-768x837.png 768w, https://thegioifirewall.com/wp-content/uploads/28-23-1410x1536.png 1410w, https://thegioifirewall.com/wp-content/uploads/28-23.png 1603w" sizes="auto, (max-width: 940px) 100vw, 940px" /></figure>



<p class="wp-block-paragraph">Tích chọn Auto-active users after confirmation và nhấn Confirm.</p>



<p class="wp-block-paragraph">Với việc tích chọn Auto-active users after confirmation thì sau khi confirm thành công Okta sẽ gửi email đến cho từng người dùng thông báo về việc tài khoản Okta của user đó đã được tạo và username và mật khẩu sẽ tương tự như của tài khoản domain mà user đang dùng.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="901" height="645" src="https://thegioifirewall.com/wp-content/uploads/29-20.png" alt="" class="wp-image-16351" srcset="https://thegioifirewall.com/wp-content/uploads/29-20.png 901w, https://thegioifirewall.com/wp-content/uploads/29-20-300x215.png 300w, https://thegioifirewall.com/wp-content/uploads/29-20-768x550.png 768w" sizes="auto, (max-width: 901px) 100vw, 901px" /></figure>



<p class="wp-block-paragraph">Email được gửi đến người dùng sẽ có nội dung như hình sau.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="488" src="https://thegioifirewall.com/wp-content/uploads/2-112-1024x488.png" alt="" class="wp-image-16353" srcset="https://thegioifirewall.com/wp-content/uploads/2-112-1024x488.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-112-300x143.png 300w, https://thegioifirewall.com/wp-content/uploads/2-112-768x366.png 768w, https://thegioifirewall.com/wp-content/uploads/2-112-1536x732.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-112-2048x976.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để xem danh sách user vừa được import vào Directory &gt; People, chúng ta sẽ thấy danh sách user đã được import như hình dưới đây.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="683" src="https://thegioifirewall.com/wp-content/uploads/30-17-1024x683.png" alt="" class="wp-image-16354" srcset="https://thegioifirewall.com/wp-content/uploads/30-17-1024x683.png 1024w, https://thegioifirewall.com/wp-content/uploads/30-17-300x200.png 300w, https://thegioifirewall.com/wp-content/uploads/30-17-768x512.png 768w, https://thegioifirewall.com/wp-content/uploads/30-17-1536x1024.png 1536w, https://thegioifirewall.com/wp-content/uploads/30-17-2048x1366.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để xem các group đã được import vào Directory &gt; Groups.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="615" src="https://thegioifirewall.com/wp-content/uploads/31-16-1024x615.png" alt="" class="wp-image-16356" srcset="https://thegioifirewall.com/wp-content/uploads/31-16-1024x615.png 1024w, https://thegioifirewall.com/wp-content/uploads/31-16-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/31-16-768x462.png 768w, https://thegioifirewall.com/wp-content/uploads/31-16-1536x923.png 1536w, https://thegioifirewall.com/wp-content/uploads/31-16-2048x1231.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.2.Tạo Application cho Sophos ZTNA</strong></h4>



<p class="wp-block-paragraph">Chúng ta cần tạo một Application cho Sophos ZTNA để khi người dùng truy cập và xác thực thì sẽ được chuyển hướng tới trang xác thực của Okta.</p>



<p class="wp-block-paragraph">Để tạo vào trang quản trị của Okta &gt; Applications &gt; Applications &gt; Create App Integration.</p>



<ul class="wp-block-list"><li>Sign-in method: chọn OIDC – OpenID Connect.</li><li>Application type: chọn Web Application.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="891" src="https://thegioifirewall.com/wp-content/uploads/34-11-1024x891.png" alt="" class="wp-image-16357" srcset="https://thegioifirewall.com/wp-content/uploads/34-11-1024x891.png 1024w, https://thegioifirewall.com/wp-content/uploads/34-11-300x261.png 300w, https://thegioifirewall.com/wp-content/uploads/34-11-768x668.png 768w, https://thegioifirewall.com/wp-content/uploads/34-11-1536x1336.png 1536w, https://thegioifirewall.com/wp-content/uploads/34-11-2048x1781.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">App integration name: Sophos ZTNA.</p>



<p class="wp-block-paragraph">Tại Grand type: tích chọn Client Credentials và Refresh Token.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="615" src="https://thegioifirewall.com/wp-content/uploads/35-12-1024x615.png" alt="" class="wp-image-16358" srcset="https://thegioifirewall.com/wp-content/uploads/35-12-1024x615.png 1024w, https://thegioifirewall.com/wp-content/uploads/35-12-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/35-12-768x461.png 768w, https://thegioifirewall.com/wp-content/uploads/35-12-1536x922.png 1536w, https://thegioifirewall.com/wp-content/uploads/35-12-2048x1230.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Sign-in redirect URIs chúng ta nhập vào đường dẫn, đây là đường dẫn mà người dùng sẽ được chuyển hướng tới để thực hiện xác thực.</p>



<p class="wp-block-paragraph">Đường dẫn này sẽ có định dạng là https://FQDN&lt;Sophos ZTNA Gateway&gt;/oauth2/callback.</p>



<p class="wp-block-paragraph">Ví dụ: FQDN của Sophos ZTNA Gateway sẽ được triển khai trong phần sau là ztna.valab.xyz =&gt; đường dẫn sẽ là https://ztna.valab.xyz/oauth2/callback.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="209" src="https://thegioifirewall.com/wp-content/uploads/36-10-1024x209.png" alt="" class="wp-image-16359" srcset="https://thegioifirewall.com/wp-content/uploads/36-10-1024x209.png 1024w, https://thegioifirewall.com/wp-content/uploads/36-10-300x61.png 300w, https://thegioifirewall.com/wp-content/uploads/36-10-768x156.png 768w, https://thegioifirewall.com/wp-content/uploads/36-10-1536x313.png 1536w, https://thegioifirewall.com/wp-content/uploads/36-10.png 1998w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Assignments chọn Skip group assignment for now và nhấn Save.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="322" src="https://thegioifirewall.com/wp-content/uploads/37-10-1024x322.png" alt="" class="wp-image-16360" srcset="https://thegioifirewall.com/wp-content/uploads/37-10-1024x322.png 1024w, https://thegioifirewall.com/wp-content/uploads/37-10-300x94.png 300w, https://thegioifirewall.com/wp-content/uploads/37-10-768x241.png 768w, https://thegioifirewall.com/wp-content/uploads/37-10-1536x482.png 1536w, https://thegioifirewall.com/wp-content/uploads/37-10.png 1997w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay lại Applications &gt; Applications chúng ta sẽ thấy Sophos ZTNA đã được tạo.</p>



<p class="wp-block-paragraph">Chúng ta sẽ cần assign group và điều chỉnh scope cho app Sophos ZTNA này.</p>



<p class="wp-block-paragraph">Để điều chỉnh nhấn chuột trái vào tên Sophos ZTNA.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="552" src="https://thegioifirewall.com/wp-content/uploads/38-10-1024x552.png" alt="" class="wp-image-16361" srcset="https://thegioifirewall.com/wp-content/uploads/38-10-1024x552.png 1024w, https://thegioifirewall.com/wp-content/uploads/38-10-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/38-10-768x414.png 768w, https://thegioifirewall.com/wp-content/uploads/38-10-1536x827.png 1536w, https://thegioifirewall.com/wp-content/uploads/38-10-2048x1103.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại tab General chúng ta sẽ cần phải nhấn vào biểu tượng copy tại Client ID và Client Secrets và lưu chúng lại để sử dụng ở phần khai báo Identity Okta trên Sophos Central.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="895" src="https://thegioifirewall.com/wp-content/uploads/39-10-1024x895.png" alt="" class="wp-image-16362" srcset="https://thegioifirewall.com/wp-content/uploads/39-10-1024x895.png 1024w, https://thegioifirewall.com/wp-content/uploads/39-10-300x262.png 300w, https://thegioifirewall.com/wp-content/uploads/39-10-768x671.png 768w, https://thegioifirewall.com/wp-content/uploads/39-10-1536x1342.png 1536w, https://thegioifirewall.com/wp-content/uploads/39-10.png 1807w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại tab Okta API Scopes chúng ta nhấn Grant tại okta.idps.read.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="792" src="https://thegioifirewall.com/wp-content/uploads/40-10-1024x792.png" alt="" class="wp-image-16363" srcset="https://thegioifirewall.com/wp-content/uploads/40-10-1024x792.png 1024w, https://thegioifirewall.com/wp-content/uploads/40-10-300x232.png 300w, https://thegioifirewall.com/wp-content/uploads/40-10-768x594.png 768w, https://thegioifirewall.com/wp-content/uploads/40-10-1536x1188.png 1536w, https://thegioifirewall.com/wp-content/uploads/40-10.png 1603w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại tab Assignments, nhấn Assign &gt; Assign to Groups để chỉ định các groups nào sẽ được sử dụng app Sophos ZTNA này.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="613" src="https://thegioifirewall.com/wp-content/uploads/41-10-1024x613.png" alt="" class="wp-image-16364" srcset="https://thegioifirewall.com/wp-content/uploads/41-10-1024x613.png 1024w, https://thegioifirewall.com/wp-content/uploads/41-10-300x180.png 300w, https://thegioifirewall.com/wp-content/uploads/41-10-768x460.png 768w, https://thegioifirewall.com/wp-content/uploads/41-10-1536x920.png 1536w, https://thegioifirewall.com/wp-content/uploads/41-10-2048x1226.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Assign Sophos ZTNA to Groups nhấn Assign 2 group SALE TEAM và TECHNICAL TEAM.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1019" src="https://thegioifirewall.com/wp-content/uploads/42-9-1024x1019.png" alt="" class="wp-image-16365" srcset="https://thegioifirewall.com/wp-content/uploads/42-9-1024x1019.png 1024w, https://thegioifirewall.com/wp-content/uploads/42-9-300x298.png 300w, https://thegioifirewall.com/wp-content/uploads/42-9-150x150.png 150w, https://thegioifirewall.com/wp-content/uploads/42-9-768x764.png 768w, https://thegioifirewall.com/wp-content/uploads/42-9.png 1374w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ thấy phía bên phải của 2 group hiện chữ Assigned tức đã chỉ định thành công.</p>



<p class="wp-block-paragraph">Nhấn Done.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1021" src="https://thegioifirewall.com/wp-content/uploads/43-8-1024x1021.png" alt="" class="wp-image-16366" srcset="https://thegioifirewall.com/wp-content/uploads/43-8-1024x1021.png 1024w, https://thegioifirewall.com/wp-content/uploads/43-8-300x300.png 300w, https://thegioifirewall.com/wp-content/uploads/43-8-150x150.png 150w, https://thegioifirewall.com/wp-content/uploads/43-8-768x766.png 768w, https://thegioifirewall.com/wp-content/uploads/43-8.png 1371w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay trở lại với trang quản trị tại Assignments &gt; Groups, chúng ta sẽ thấy 2 group mà chúng ta vừa Assign đã được liệt kê.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="648" src="https://thegioifirewall.com/wp-content/uploads/44-7-1024x648.png" alt="" class="wp-image-16367" srcset="https://thegioifirewall.com/wp-content/uploads/44-7-1024x648.png 1024w, https://thegioifirewall.com/wp-content/uploads/44-7-300x190.png 300w, https://thegioifirewall.com/wp-content/uploads/44-7-768x486.png 768w, https://thegioifirewall.com/wp-content/uploads/44-7-1536x972.png 1536w, https://thegioifirewall.com/wp-content/uploads/44-7-2048x1296.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại Assignments &gt; People chúng ta cũng sẽ thấy các các user thuộc 2 group đã được liệt kê.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="966" src="https://thegioifirewall.com/wp-content/uploads/45-7-1024x966.png" alt="" class="wp-image-16368" srcset="https://thegioifirewall.com/wp-content/uploads/45-7-1024x966.png 1024w, https://thegioifirewall.com/wp-content/uploads/45-7-300x283.png 300w, https://thegioifirewall.com/wp-content/uploads/45-7-768x724.png 768w, https://thegioifirewall.com/wp-content/uploads/45-7-1536x1448.png 1536w, https://thegioifirewall.com/wp-content/uploads/45-7.png 1737w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.3.Tạo Authorization Server cho Sophos ZTNA.</strong></h4>



<p class="wp-block-paragraph">Để tạo chúng ta truy cập trang quản trị Okta vào Security &gt; API &gt; Nhấn Add Authorization Server</p>



<p class="wp-block-paragraph">Bảng Add Authorization Server hiện ra, điền ZTNA vào Name và Audience và nhấn Save.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="477" src="https://thegioifirewall.com/wp-content/uploads/46-6-1024x477.png" alt="" class="wp-image-16369" srcset="https://thegioifirewall.com/wp-content/uploads/46-6-1024x477.png 1024w, https://thegioifirewall.com/wp-content/uploads/46-6-300x140.png 300w, https://thegioifirewall.com/wp-content/uploads/46-6-768x358.png 768w, https://thegioifirewall.com/wp-content/uploads/46-6-1536x716.png 1536w, https://thegioifirewall.com/wp-content/uploads/46-6.png 1554w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ thấy là Authorization Server ZTNA đã được tạo, chúng ta cần lưu lại thông tin Issuer URI để phục vụ cho việc khai báo Identity Provider Okta trên Sophos Central.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="416" src="https://thegioifirewall.com/wp-content/uploads/47-5-1024x416.png" alt="" class="wp-image-16370" srcset="https://thegioifirewall.com/wp-content/uploads/47-5-1024x416.png 1024w, https://thegioifirewall.com/wp-content/uploads/47-5-300x122.png 300w, https://thegioifirewall.com/wp-content/uploads/47-5-768x312.png 768w, https://thegioifirewall.com/wp-content/uploads/47-5-1536x625.png 1536w, https://thegioifirewall.com/wp-content/uploads/47-5-2048x833.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tiếp theo chúng ta nhấn vào tên ZTNA để điều chỉnh một vài thông số.</p>



<p class="wp-block-paragraph">Đầu tiên chúng ta cần tạo Scope tên làm customScope với mục đích duy nhất là kiểm tra kết nối giữa Okta và Sophos Central.</p>



<p class="wp-block-paragraph">Để tạo vào tab Scope &gt; nhấn Add Scope.</p>



<p class="wp-block-paragraph">Tại Name điền vào customScope và nhấn Save.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="915" src="https://thegioifirewall.com/wp-content/uploads/48-6-1024x915.png" alt="" class="wp-image-16371" srcset="https://thegioifirewall.com/wp-content/uploads/48-6-1024x915.png 1024w, https://thegioifirewall.com/wp-content/uploads/48-6-300x268.png 300w, https://thegioifirewall.com/wp-content/uploads/48-6-768x686.png 768w, https://thegioifirewall.com/wp-content/uploads/48-6-1536x1373.png 1536w, https://thegioifirewall.com/wp-content/uploads/48-6.png 1552w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Trên Claim tab, nhấn Add Claim. Một Claim cho phép ZTNA xem các nhóm để xác thực. Nhập các thông tin chi tiết như sau:</p>



<ul class="wp-block-list"><li>Name: groups.</li><li>Inlcude in token type: ID Token – Iserinfo / id_token request.</li><li>Value type: chọn Expression.</li><li>Value: Arrays.isEmpty(Arrays.toCsvString(Groups.startsWith(&#8220;active_directory&#8221;,&#8221;&#8221;,100))) ? Groups.startsWith(&#8220;OKTA&#8221;,&#8221;&#8221;,100) : Arrays.flatten(Groups.startsWith(&#8220;OKTA&#8221;,&#8221;&#8221;,100), Groups.startsWith(&#8220;active_directory&#8221;,&#8221;&#8221;,100))</li><li>Include in: chọn Any scope.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="813" src="https://thegioifirewall.com/wp-content/uploads/49-5-1024x813.png" alt="" class="wp-image-16372" srcset="https://thegioifirewall.com/wp-content/uploads/49-5-1024x813.png 1024w, https://thegioifirewall.com/wp-content/uploads/49-5-300x238.png 300w, https://thegioifirewall.com/wp-content/uploads/49-5-768x610.png 768w, https://thegioifirewall.com/wp-content/uploads/49-5-1536x1220.png 1536w, https://thegioifirewall.com/wp-content/uploads/49-5.png 1553w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để mà Sophos Central có thể kết nối đến customScope trên Okta chúng ta cần phải tạo policy cho phép.</p>



<p class="wp-block-paragraph">Tại tab Access Policies nhấn Add New Access Policy và cấu hình theo thông số sau:</p>



<ul class="wp-block-list"><li>Name: ZTNA.</li><li>Description: ZTNA.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="570" src="https://thegioifirewall.com/wp-content/uploads/50-4-1024x570.png" alt="" class="wp-image-16373" srcset="https://thegioifirewall.com/wp-content/uploads/50-4-1024x570.png 1024w, https://thegioifirewall.com/wp-content/uploads/50-4-300x167.png 300w, https://thegioifirewall.com/wp-content/uploads/50-4-768x427.png 768w, https://thegioifirewall.com/wp-content/uploads/50-4.png 1440w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h4 class="wp-block-heading"><strong>5.3.4.Khai báo Identity Provider Okta trên Sophos Central,</strong></h4>



<p class="wp-block-paragraph">Để khai báo chúng ta truy cập vào trang quản trị của Sophos Central bằng quyền admin.</p>



<p class="wp-block-paragraph">Vào ZTNA &gt; Identity Providers &gt; nhấn Add identity provider.</p>



<ul class="wp-block-list"><li>Name: Okta.0</li><li>Provider: Okta</li><li>Client ID: nhập vào Client ID đã copy ở bước tạo App Integration Sophos ZTNA.</li><li>Client secret: nhập vào Client secrets đã copy ở bước tạo App Integration Sophos ZTNA.</li><li>Issue URI: nhập vào Issue URI đã copy ở bước tạo Authorization Server ZTNA.</li><li>Scope: nhập vào customScope và nhấn Test connection để kiểm tra kết nối giữa Sophos Central và Okta.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="911" src="https://thegioifirewall.com/wp-content/uploads/51-4-1024x911.png" alt="" class="wp-image-16374" srcset="https://thegioifirewall.com/wp-content/uploads/51-4-1024x911.png 1024w, https://thegioifirewall.com/wp-content/uploads/51-4-300x267.png 300w, https://thegioifirewall.com/wp-content/uploads/51-4-768x683.png 768w, https://thegioifirewall.com/wp-content/uploads/51-4-1536x1367.png 1536w, https://thegioifirewall.com/wp-content/uploads/51-4.png 1915w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-trien-khai-giai-phap-sophos-zero-trust-network-access-phan-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Sophos Firewall V19: Hướng dẫn cách routing traffic truy cập internet của máy chủ thông qua IP WAN Alias chỉ định bằng SD-WAN</title>
		<link>https://thegioifirewall.com/sophos-firewall-v19-huong-dan-cach-routing-traffic-truy-cap-internet-cua-may-chu-thong-qua-ip-wan-alias-chi-dinh-bang-sd-wan/</link>
					<comments>https://thegioifirewall.com/sophos-firewall-v19-huong-dan-cach-routing-traffic-truy-cap-internet-cua-may-chu-thong-qua-ip-wan-alias-chi-dinh-bang-sd-wan/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Tue, 14 Jun 2022 03:54:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình Firewall Sophos XG]]></category>
		<category><![CDATA[Sophos Firewall V19: Hướng dẫn cách routing traffic truy cập internet của máy chủ thông qua IP WAN Alias chỉ định bằng SD-WAN]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=16305</guid>

					<description><![CDATA[1.Mục đích bài viết Trong bài viết này thegioifirewall sẽ hướng dẫn các bạn cách cấu hình routing traffic truy cập internet của máy chủ thông qua IP WAN Alias cố định. 2.Sơ đồ mạng Chi tiết sơ đồ mạng: Đường truyền internet được kết nối tại port 2 của thiết bị tường lửa Sophos [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Mục đích bài viết</strong></h2>



<p class="wp-block-paragraph">Trong bài viết này thegioifirewall sẽ hướng dẫn các bạn cách cấu hình routing traffic truy cập internet của máy chủ thông qua IP WAN Alias cố định.</p>



<h2 class="wp-block-heading"><strong>2.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="385" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-26-1024x385.png" alt="" class="wp-image-16306" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-26-1024x385.png 1024w, https://thegioifirewall.com/wp-content/uploads/Drawing1-26-300x113.png 300w, https://thegioifirewall.com/wp-content/uploads/Drawing1-26-768x289.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-26-1536x578.png 1536w, https://thegioifirewall.com/wp-content/uploads/Drawing1-26.png 1908w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Đường truyền internet được kết nối tại port 2 của thiết bị tường lửa Sophos XG Firewall có tên là ISP – Viettel IDC và có IP là 171.x.x.195.</p>



<p class="wp-block-paragraph">Ngoài ra cũng trên port 2 chúng ta sẽ có thêm 4 IP WAN Alias như sau:</p>



<ul class="wp-block-list"><li>Port 2 – WAN 1 (Alias IP): 171.x.x.200.</li><li>Port 2 – WAN 2 (Alias IP): 171.x.x.199.</li><li>Port 2 – WAN 3 (Alias IP): 171.x.x.198.</li><li>Port 2 – WAN 3 (Alias IP): 171.x.x.197.</li></ul>



<p class="wp-block-paragraph">Lớp mạng LAN được cấu hình tại port 1 của thiết bị tường lửa Sophos XG Firewall với IP 172.16.31.1/24 và được cấu hình DHCP Server để cấp phát IP cho các thiết bị kết nối vào.</p>



<p class="wp-block-paragraph">Cuối cùng là thiết bị máy chủ chạy database có IP 172.16.31.10/24 được kết nối vào port 1 và có tên là IMBX3850-DB-NEW.</p>



<h2 class="wp-block-heading"><strong>3.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Thegioifirewall sẽ thực hiện cấu hình routing traffic truy cập internet của máy chủ IBMX3850-DB-NEW thông qua Port 2 – WAN 1 với IP 171.x.x.200.</p>



<h2 class="wp-block-heading"><strong>4.Các bước thực hiện</strong></h2>



<ul class="wp-block-list"><li>Tạo Host profile.</li><li>Tạo SD-WAN Policy.</li><li>Tạo Firewall Rule và NAT Rule.</li><li>Kiểm tra kết quả.</li></ul>



<h2 class="wp-block-heading"><strong>5.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>5.1.Tạo Host profile.</strong></h3>



<p class="wp-block-paragraph">Vào&nbsp;<strong>Hosts and Services &gt; IP Host</strong>&nbsp;và nhấn&nbsp;<strong>Add</strong>&nbsp;để định nghĩa máy chủ với các thông số sau:</p>



<ul class="wp-block-list"><li>Name*: IBMX3850-DB-NEW.</li><li>IP version*: IPv4.</li><li>Type*: IP</li><li>IP address*: 172.16.31.10.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="273" src="https://thegioifirewall.com/wp-content/uploads/1-109-1024x273.png" alt="" class="wp-image-16307" srcset="https://thegioifirewall.com/wp-content/uploads/1-109-1024x273.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-109-300x80.png 300w, https://thegioifirewall.com/wp-content/uploads/1-109-768x205.png 768w, https://thegioifirewall.com/wp-content/uploads/1-109-1536x409.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-109-2048x546.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tương tự chúng ta cũng tạo một host profile cho Port 2 – WAN 1 với IP 171.x.x.200</p>



<ul class="wp-block-list"><li>Name*: 171.x.x.200.</li><li>IP version*: IPv4.</li><li>Type*: IP</li><li>IP address*: 171.x.x.200.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="271" src="https://thegioifirewall.com/wp-content/uploads/2-110-1024x271.png" alt="" class="wp-image-16308" srcset="https://thegioifirewall.com/wp-content/uploads/2-110-1024x271.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-110-300x79.png 300w, https://thegioifirewall.com/wp-content/uploads/2-110-768x203.png 768w, https://thegioifirewall.com/wp-content/uploads/2-110-1536x406.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-110-2048x541.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph"><strong>5.2.Tạo SD-WAN Policy</strong></p>



<p class="wp-block-paragraph">Vào CONFIGURE &gt; Routing &gt; SD-WAN routes và cấu hình với các thông số sau:</p>



<ul class="wp-block-list"><li>Name: test.</li><li>Source networks: chọn host profile IBMX3580-DB-NEW.</li><li>Destination networks: Any.</li><li>Services: Any.</li><li>Application objects: Any.</li><li>User or group: Any.</li><li>Primary gateway: chọn ISP – Viettel IDC.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="751" src="https://thegioifirewall.com/wp-content/uploads/3-71-1024x751.jpg" alt="" class="wp-image-16309" srcset="https://thegioifirewall.com/wp-content/uploads/3-71-1024x751.jpg 1024w, https://thegioifirewall.com/wp-content/uploads/3-71-300x220.jpg 300w, https://thegioifirewall.com/wp-content/uploads/3-71-768x563.jpg 768w, https://thegioifirewall.com/wp-content/uploads/3-71.jpg 1089w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>5.3.Tạo firewall và NAT rule.</strong></h3>



<p class="wp-block-paragraph">Để tạo vào PROTECT &gt; Rules and policies &gt; Firewall rules &gt; Add Firewall rule &gt; New firewall rule.</p>



<p class="wp-block-paragraph">Cấu hình theo các thông số sau:</p>



<ul class="wp-block-list"><li>Rule status: ON</li><li>Rule Name: IMBX3850-DB-NEW to WAN.</li><li>Action: chọn Accept.</li><li>Log firewall traffic: chọn.</li><li>Source zones: LAN.</li><li>Source networks and devices: chọn host profile IBMX3850-DB-NEW.</li><li>Destination zones: WAN.</li><li>Destination networks: Any.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="705" src="https://thegioifirewall.com/wp-content/uploads/3-1-1-1024x705.png" alt="" class="wp-image-16310" srcset="https://thegioifirewall.com/wp-content/uploads/3-1-1-1024x705.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-1-1-300x206.png 300w, https://thegioifirewall.com/wp-content/uploads/3-1-1-768x528.png 768w, https://thegioifirewall.com/wp-content/uploads/3-1-1-1536x1057.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-1-1-2048x1409.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Cũng tại phần cấu hình policy chúng ta nhấn Create linked NAT rule để tạo NAT rule với các thông sau:</p>



<ul class="wp-block-list"><li>Translated source (SNAT): chọn MASQ.</li><li>Tích chọn Override source translation (SNAT) for specific outbound interfaces.</li><li>Outbound interface: chọn Port 2 – WAN 1.</li><li>Translated source: chọn host profile 171.x.x.200.</li><li>Nhấn Save.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="784" src="https://thegioifirewall.com/wp-content/uploads/5-53-1024x784.jpg" alt="" class="wp-image-16311" srcset="https://thegioifirewall.com/wp-content/uploads/5-53-1024x784.jpg 1024w, https://thegioifirewall.com/wp-content/uploads/5-53-300x230.jpg 300w, https://thegioifirewall.com/wp-content/uploads/5-53-768x588.jpg 768w, https://thegioifirewall.com/wp-content/uploads/5-53.jpg 1030w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/sophos-firewall-v19-huong-dan-cach-routing-traffic-truy-cap-internet-cua-may-chu-thong-qua-ip-wan-alias-chi-dinh-bang-sd-wan/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Hướng dẫn xử lý lỗi không cài đặt được Sophos Endpoint</title>
		<link>https://thegioifirewall.com/huong-dan-xu-ly-loi-khong-cai-dat-duoc-sophos-endpoint/</link>
					<comments>https://thegioifirewall.com/huong-dan-xu-ly-loi-khong-cai-dat-duoc-sophos-endpoint/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Fri, 27 May 2022 06:17:00 +0000</pubDate>
				<category><![CDATA[Sophos Endpoint]]></category>
		<category><![CDATA[Hướng dẫn xử lý lỗi không cài đặt được Sophos Endpoint]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=15946</guid>

					<description><![CDATA[1.Tổng quan bài viết Bài viết này sẽ hướng dẫn cách xử lỗi không cài đặt được Sophos Endpoint mặc dù đã thực thi file cài đặt trên Windows 10. 2.Nguyên nhân. Nguyên nhân dẫn đến việc không thể cài đặt Sophos Endpoint mặc dù đã thực thi file cài đặt là do máy tính [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Tổng quan bài viết</strong></h2>



<p class="wp-block-paragraph">Bài viết này sẽ hướng dẫn cách xử lỗi không cài đặt được Sophos Endpoint mặc dù đã thực thi file cài đặt trên Windows 10.</p>



<h2 class="wp-block-heading"><strong>2.Nguyên nhân.</strong></h2>



<p class="wp-block-paragraph">Nguyên nhân dẫn đến việc không thể cài đặt Sophos Endpoint mặc dù đã thực thi file cài đặt là do máy tính Windows 10 thiếu một certificate tên là <strong>DigiCert Trusted Root G4.</strong></p>



<p class="wp-block-paragraph">Đây là một trong những certificate được yêu cầu để có thể cài đặt Sophos Endpoint. Nếu máy tính không có certificate này thì khi thực thi file cài đặt sẽ không xuất hiện cửa sổ cài đặt của Sophos Endpoint.</p>



<h2 class="wp-block-heading"><strong>3.Hướng dẫn sửa lỗi.</strong></h2>



<p class="wp-block-paragraph">Để sửa lỗi chúng ta cần tải DigiCert Trusted Root G4 và thêm certificate này vào máy tính hoặc chúng ta cần update các bản cập nhật Windows.</p>



<p class="wp-block-paragraph">Trong bài viết này thegioifirewall sẽ hướng dẫn các bạn tải và thêm certificate này vào máy.</p>



<p class="wp-block-paragraph">Để tải certificate này chúng ta vào trang <a href="https://www.digicert.com/kb/digicert-root-certificates.htm"><strong>https://www.digicert.com/kb/digicert-root-certificates.htm</strong></a><strong> </strong>và chọn đúng tên DigiCert Trusted Root G4 và nhấn Download DER/CRT để tải về.</p>



<p class="wp-block-paragraph">Sau đó chúng ta sẽ thực hiện thêm nó vào máy tính.</p>



<p class="wp-block-paragraph">Gõ vào thêm tìm kiếm Windows <strong>mmc </strong>và chọn Run as administrator.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1000" height="868" src="https://thegioifirewall.com/wp-content/uploads/1-1-4.png" alt="" class="wp-image-16009" srcset="https://thegioifirewall.com/wp-content/uploads/1-1-4.png 1000w, https://thegioifirewall.com/wp-content/uploads/1-1-4-300x260.png 300w, https://thegioifirewall.com/wp-content/uploads/1-1-4-768x667.png 768w" sizes="auto, (max-width: 1000px) 100vw, 1000px" /></figure>



<p class="wp-block-paragraph">Chọn File &gt; Add/Remove Snap-In…</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="535" src="https://thegioifirewall.com/wp-content/uploads/2-109-1024x535.png" alt="" class="wp-image-15947" srcset="https://thegioifirewall.com/wp-content/uploads/2-109-1024x535.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-109-300x157.png 300w, https://thegioifirewall.com/wp-content/uploads/2-109-768x402.png 768w, https://thegioifirewall.com/wp-content/uploads/2-109-1536x803.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-109-2048x1071.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chọn Certificate và nhấn Add &gt;.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="725" src="https://thegioifirewall.com/wp-content/uploads/3-107-1024x725.png" alt="" class="wp-image-15948" srcset="https://thegioifirewall.com/wp-content/uploads/3-107-1024x725.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-107-300x212.png 300w, https://thegioifirewall.com/wp-content/uploads/3-107-768x544.png 768w, https://thegioifirewall.com/wp-content/uploads/3-107-1536x1087.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-107.png 1684w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Do chúng ta thêm certificate cho computer nên cần chọn Computer account.</p>



<p class="wp-block-paragraph">Lưu ý: nếu không có tùy chọn Computer account tại bước này nguyên nhân là do chúng ta mở mmc với quyền không phải admin.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="765" src="https://thegioifirewall.com/wp-content/uploads/4-103-1024x765.png" alt="" class="wp-image-15949" srcset="https://thegioifirewall.com/wp-content/uploads/4-103-1024x765.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-103-300x225.png 300w, https://thegioifirewall.com/wp-content/uploads/4-103-768x573.png 768w, https://thegioifirewall.com/wp-content/uploads/4-103-400x300.png 400w, https://thegioifirewall.com/wp-content/uploads/4-103.png 1299w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="765" src="https://thegioifirewall.com/wp-content/uploads/5-98-1024x765.png" alt="" class="wp-image-15950" srcset="https://thegioifirewall.com/wp-content/uploads/5-98-1024x765.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-98-300x225.png 300w, https://thegioifirewall.com/wp-content/uploads/5-98-768x573.png 768w, https://thegioifirewall.com/wp-content/uploads/5-98-400x300.png 400w, https://thegioifirewall.com/wp-content/uploads/5-98.png 1299w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Lúc này chúng ta sẽ thấy Certificates (Local computer) đã chuyển từ bảng Available Snap-in sang Selected Snap-in, nhấn OK.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="725" src="https://thegioifirewall.com/wp-content/uploads/6-89-1024x725.png" alt="" class="wp-image-15951" srcset="https://thegioifirewall.com/wp-content/uploads/6-89-1024x725.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-89-300x212.png 300w, https://thegioifirewall.com/wp-content/uploads/6-89-768x544.png 768w, https://thegioifirewall.com/wp-content/uploads/6-89-1536x1087.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-89.png 1684w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại cửa sổ Console1, chúng ta vào Console Root &gt; Certificates &gt; Trusted Root Certificate Authorities &gt; nhấn chuột phải vào All Tasks &gt; Import để thêm certificate.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="535" src="https://thegioifirewall.com/wp-content/uploads/7-77-1024x535.png" alt="" class="wp-image-15952" srcset="https://thegioifirewall.com/wp-content/uploads/7-77-1024x535.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-77-300x157.png 300w, https://thegioifirewall.com/wp-content/uploads/7-77-768x402.png 768w, https://thegioifirewall.com/wp-content/uploads/7-77-1536x803.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-77-2048x1071.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng Certificate Import Wizard hiện ra nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1003" src="https://thegioifirewall.com/wp-content/uploads/8-74-1024x1003.png" alt="" class="wp-image-15953" srcset="https://thegioifirewall.com/wp-content/uploads/8-74-1024x1003.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-74-300x294.png 300w, https://thegioifirewall.com/wp-content/uploads/8-74-768x752.png 768w, https://thegioifirewall.com/wp-content/uploads/8-74.png 1337w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại File to import nhấn Browse…</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1003" src="https://thegioifirewall.com/wp-content/uploads/10-64-1024x1003.png" alt="" class="wp-image-15954" srcset="https://thegioifirewall.com/wp-content/uploads/10-64-1024x1003.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-64-300x294.png 300w, https://thegioifirewall.com/wp-content/uploads/10-64-768x752.png 768w, https://thegioifirewall.com/wp-content/uploads/10-64.png 1337w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau đó tìm đến nơi đang lưu trữ file DigiCert Trusted Root G4 vừa tải xuống và nhấn đúp chuột trái vào.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="642" src="https://thegioifirewall.com/wp-content/uploads/11-63-1024x642.png" alt="" class="wp-image-15955" srcset="https://thegioifirewall.com/wp-content/uploads/11-63-1024x642.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-63-300x188.png 300w, https://thegioifirewall.com/wp-content/uploads/11-63-768x482.png 768w, https://thegioifirewall.com/wp-content/uploads/11-63-1536x964.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-63.png 1884w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1003" src="https://thegioifirewall.com/wp-content/uploads/12-58-1024x1003.png" alt="" class="wp-image-15956" srcset="https://thegioifirewall.com/wp-content/uploads/12-58-1024x1003.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-58-300x294.png 300w, https://thegioifirewall.com/wp-content/uploads/12-58-768x752.png 768w, https://thegioifirewall.com/wp-content/uploads/12-58.png 1337w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1003" src="https://thegioifirewall.com/wp-content/uploads/13-49-1024x1003.png" alt="" class="wp-image-15957" srcset="https://thegioifirewall.com/wp-content/uploads/13-49-1024x1003.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-49-300x294.png 300w, https://thegioifirewall.com/wp-content/uploads/13-49-768x752.png 768w, https://thegioifirewall.com/wp-content/uploads/13-49.png 1337w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="1003" src="https://thegioifirewall.com/wp-content/uploads/14-46-1024x1003.png" alt="" class="wp-image-15958" srcset="https://thegioifirewall.com/wp-content/uploads/14-46-1024x1003.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-46-300x294.png 300w, https://thegioifirewall.com/wp-content/uploads/14-46-768x752.png 768w, https://thegioifirewall.com/wp-content/uploads/14-46.png 1337w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi hoàn thành việc thêm certificate, chúng ta sẽ thấy nó đã xuất hiện trong danh sách các certificate đã được thêm vào máy tính.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="535" src="https://thegioifirewall.com/wp-content/uploads/15-43-1024x535.png" alt="" class="wp-image-15959" srcset="https://thegioifirewall.com/wp-content/uploads/15-43-1024x535.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-43-300x157.png 300w, https://thegioifirewall.com/wp-content/uploads/15-43-768x402.png 768w, https://thegioifirewall.com/wp-content/uploads/15-43-1536x803.png 1536w, https://thegioifirewall.com/wp-content/uploads/15-43-2048x1071.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/huong-dan-xu-ly-loi-khong-cai-dat-duoc-sophos-endpoint/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware vSphere: Hướng dẫn migrate máy ảo từ host Esxi này sang host Esxi khác độc lập về datastore bằng vMotion</title>
		<link>https://thegioifirewall.com/vmware-vsphere-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-doc-lap-ve-datastore-bang-vmotion/</link>
					<comments>https://thegioifirewall.com/vmware-vsphere-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-doc-lap-ve-datastore-bang-vmotion/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Fri, 13 May 2022 04:34:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình VMware vSphere]]></category>
		<category><![CDATA[VMware vSphere: Hướng dẫn migrate máy ảo từ host Esxi này sang host Esxi khác độc lập về datastore bằng vMotion]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=15778</guid>

					<description><![CDATA[1.Tổng quan Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ host Esxi này sang host Esxi khác hoàn toàn độc lập về datastore bằng tính năng vMotion khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter. Trước khi đi vào phần cấu hình chúng ta cùng nhau xem [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Tổng quan</strong></h2>



<p class="wp-block-paragraph">Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ host Esxi này sang host Esxi khác hoàn toàn độc lập về datastore bằng tính năng vMotion khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter.</p>



<p class="wp-block-paragraph">Trước khi đi vào phần cấu hình chúng ta cùng nhau xem vMotion là gì và vMotion có các dạng nào.</p>



<h2 class="wp-block-heading"><strong>2.vMotion là gì?</strong></h2>



<p class="wp-block-paragraph">VMotion hay còn được gọi là live migration, là một tính năng của ESX / ESXi và vCenter Server cho phép một máy ảo đang chạy có thể được di chuyển từ một máy chủ vật lý này đến một máy chủ vật lý khác mà không cần phải tắt nguồn máy ảo.</p>



<p class="wp-block-paragraph">Sự di chuyển giữa hai máy chủ vật lý xảy ra không có thời gian chết và không làm mất kết nối mạng đến máy ảo. VMotion đáp ứng cho nhu cầu của một tổ chức nhằm duy trì SLA để đảm bảo tính sẵn sàng cho server.</p>



<p class="wp-block-paragraph">Quản trị viên có thể dễ dàng dùng VMotion để loại bỏ tất cả các máy ảo từ một máy chủ ESX /ESXi để thực hiện bảo trì. Sau khi bảo trì hoàn tất và máy chủ được đưa trở lại trực tuyến, VMotion một lần nữa có thể được sử dụng để trả các máy ảo đó về với máy chủ ban đầu.</p>



<p class="wp-block-paragraph">Ngay cả trong các hoạt động bình thường hàng ngày, VMotion có thể được sử dụng khi nhiều máy ảo trên cùng một máy chủ đang cạnh tranh tài nguyên. VMotion có thể giải quyết vấn đề bằng cách cho phép người quản trị di chuyển bất kì máy ảo đang chạy nào đang bị tranh chấp tài nguyên nhưng có nhu cầu sử dụng tài nguyên lớn hơn đến một máy chủ ESX/ESXi khác.</p>



<h2 class="wp-block-heading"><strong>3.Có bao nhiêu loại vMotion</strong></h2>



<p class="wp-block-paragraph">vMotion được chia làm 3 loại khác nhau tùy theo nhu cầu sử dụng của người dung như sau:</p>



<ul class="wp-block-list"><li>vSphere vMotion Migration: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host Esxi sang host Esxi khác và lưu ý rằng cả 2 host Esxi đều phải có chung datastore.</li><li>vSphere Storage vMotion: đây là dạng vMotion được sử dụng trong trường hợp người dung cần migration một hoặc nhiều máy ảo từ một datastore này sang một datastore khác và lưu ý rằng các máy ảo khi được migrate bằng tính năng này vẫn sẽ nằm trên host Esxi ban đầu và chỉ thay đổi datastore lưu trữ.</li><li>Both: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host esxi với datastore riêng biệt sang một host esxi khác độc lập hoàn toàn.</li></ul>



<p class="wp-block-paragraph">Sau khi đã tìm hiểu lý thuyết về vMotion chúng ta sẽ vào phần chính của bài viết đó là phần cấu hình.</p>



<h2 class="wp-block-heading"><strong>4.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="963" height="1024" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-25-963x1024.png" alt="" class="wp-image-15755" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-25-963x1024.png 963w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-282x300.png 282w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-768x816.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-1445x1536.png 1445w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-1927x2048.png 1927w" sizes="auto, (max-width: 963px) 100vw, 963px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có đường truyền internet được cấu hình tại Port 2 của thiết bị tường lửa Sophos Firewall.</p>



<p class="wp-block-paragraph">Lớp mạng LAN sẽ được cấu hình tại Port 1 của tường lửa Sophos Firewall với IP 172.20.10.10, đã được cấu hình DHCP để cấp phát IP và được kết nối xuống một switch access để kết nối các thiết bị.</p>



<p class="wp-block-paragraph">Chúng ta có 2 máy chủ vật lý chạy hệ thống ảo hóa VMware:</p>



<p class="wp-block-paragraph">Esxi01:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.51/24.</li><li>Đang chạy 3 máy ảo là Nghia01-2, Nghia01-3, Nghia01-4 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</li><li>Ngoài ra Vcenter cũng được cài đặt trên đây với IP 172.20.10.94/24 để quản trị cả 2 host Esxi01 và Esxi02.</li><li>Đang kết nối với 2 Datastore là Local-ESXi01 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.151/24.</li></ul>



<p class="wp-block-paragraph">Esxi02:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.52/24.</li><li>Đang kết nối với 2 Datastore là Local-ESXi02 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.152/24.</li></ul>



<h2 class="wp-block-heading"><strong>5.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Như có để cập ở phần chi tiết sơ đồ mạng thì cả 3 máy ảo Nghia01-2, Nghia01-3, Nghia01-4 đều đang chạy trên host Esxi01 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</p>



<p class="wp-block-paragraph">Trong bài viết này chúng ta sẽ sử dụng tính năng vMotion để chuyển hạ tầng ảo hóa (host Esxi01) cũng như datastore (Local-ESXi01 datastore) của máy ảo Nghia01-2 sang host Esxi02 với datastore là VMFS-01.</p>



<p class="wp-block-paragraph">Chúng ta cần chú ý là việc chuyển máy ảo từ host ESXi này sang host ESXi khác sẽ ảnh hưởng tới performance của kết nối mạng trong hệ thống vì vậy chúng ta cần phải thiết kế 1 kết nối mạng riêng biệt giữa hai host ESXi để chạy dịch vụ vMotion.</p>



<p class="wp-block-paragraph">Lưu ý: Để sử dụng tính năng này chúng ta cần có license ít nhất là Essential Plus cho host ESXi và bắt buộc phải có vCenter.</p>



<h2 class="wp-block-heading"><strong>6.Các bước cấu hình</strong></h2>



<ul class="wp-block-list"><li>Tạo kết nối mạng chạy dịch vụ vMotion.</li><li>Migrate máy ảo Nghia01-2 từ host Esxi01 sang host Esxi02.</li></ul>



<h2 class="wp-block-heading"><strong>7.Hướng dẫn cấu hình.</strong></h2>



<h3 class="wp-block-heading"><strong>7.1.Tạo kết nối mạng chạy dịch vụ vMotion</strong></h3>



<p class="wp-block-paragraph">Chúng ta cần sử dụng cáp kết nối 2 port vật lý của 2 máy chủ chạy 2 host Esxi01 và Esxi02.</p>



<p class="wp-block-paragraph">Sau đó chúng ta sẽ tạo 2 Vmkernel port để kết nối chúng lại.</p>



<p class="wp-block-paragraph">Để thực hiện chúng ta cần đăng nhập vào trang quản trị của vCenter bằng tài khoản với quyền admin.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="388" src="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png" alt="" class="wp-image-15756" srcset="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-107-300x114.png 300w, https://thegioifirewall.com/wp-content/uploads/1-107-768x291.png 768w, https://thegioifirewall.com/wp-content/uploads/1-107-1536x583.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-107-2048x777.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tiếp theo vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; Configure &gt; Networking &gt; Virtual Switches &gt; nhấn Add Networking…</p>



<p class="wp-block-paragraph">Bảng Add Networking hiện ra chúng ta sẽ cấu hình như sau.</p>



<p class="wp-block-paragraph">Tại 1.Select connection type: chọn VMkernel Network Adapter và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/2-107-1024x711.png" alt="" class="wp-image-15757" srcset="https://thegioifirewall.com/wp-content/uploads/2-107-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-107-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/2-107-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/2-107-1536x1066.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-107.png 1629w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 2.Select target device chọn New standard switch và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="716" src="https://thegioifirewall.com/wp-content/uploads/3-105-1024x716.png" alt="" class="wp-image-15758" srcset="https://thegioifirewall.com/wp-content/uploads/3-105-1024x716.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-105-300x210.png 300w, https://thegioifirewall.com/wp-content/uploads/3-105-768x537.png 768w, https://thegioifirewall.com/wp-content/uploads/3-105-1536x1074.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-105.png 1617w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại bước này chúng ta sẽ chọn card mạng vật lý trong vmware tương ứng port mà chúng ta đã cắm vào máy chủ ở bước đầu tiên.</p>



<p class="wp-block-paragraph">Nhấn vào dấu + để thêm.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="709" src="https://thegioifirewall.com/wp-content/uploads/4-101-1024x709.png" alt="" class="wp-image-15759" srcset="https://thegioifirewall.com/wp-content/uploads/4-101-1024x709.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-101-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/4-101-768x532.png 768w, https://thegioifirewall.com/wp-content/uploads/4-101-1536x1064.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-101.png 1632w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng Add Physical Adapter to the Swtich hiện ra, chúng ta sẽ chọn card vmnic3 và nhấn OK.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="732" src="https://thegioifirewall.com/wp-content/uploads/5-96-1024x732.png" alt="" class="wp-image-15760" srcset="https://thegioifirewall.com/wp-content/uploads/5-96-1024x732.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-96-300x214.png 300w, https://thegioifirewall.com/wp-content/uploads/5-96-768x549.png 768w, https://thegioifirewall.com/wp-content/uploads/5-96-1536x1097.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-96.png 1614w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay trở lại 3.Create a Standard Switch cần đảm bảo rằng card vmnic3 đã xuất hiện tại Active adapters.</p>



<p class="wp-block-paragraph">Nhấn Next để tiếp tục.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/6-87-1024x711.png" alt="" class="wp-image-15761" srcset="https://thegioifirewall.com/wp-content/uploads/6-87-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-87-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/6-87-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/6-87-1536x1067.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-87.png 1626w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 4.Port propertise chúng ta khai báo các thông số sau:</p>



<ul class="wp-block-list"><li>Network label: vMotion</li><li>Enabled services: tích chọn vMotion, tùy chọn này có nghĩa là port này chỉ dùng để chạy dịch vụ vMotion.</li><li>Nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="709" src="https://thegioifirewall.com/wp-content/uploads/7-75-1024x709.png" alt="" class="wp-image-15762" srcset="https://thegioifirewall.com/wp-content/uploads/7-75-1024x709.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-75-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/7-75-768x532.png 768w, https://thegioifirewall.com/wp-content/uploads/7-75-1536x1064.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-75.png 1627w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 5.IPv4 settings chọn Use static IPv4 settings và cấu hình các thông số sau:</p>



<ul class="wp-block-list"><li>IPv4 address: 172.20.10.151</li><li>Subnet mask: 255.255.255.0</li><li>Default gateway: 172.20.10.152 đây là IP của card vMotion trên host Esxi02.</li><li>Nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/8-72-1024x711.png" alt="" class="wp-image-15763" srcset="https://thegioifirewall.com/wp-content/uploads/8-72-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-72-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/8-72-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/8-72-1536x1067.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-72.png 1617w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 6.Ready to complete chúng ta sẽ review lại các tùy chọn và nếu không có thay đổi nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="708" src="https://thegioifirewall.com/wp-content/uploads/9-71-1024x708.png" alt="" class="wp-image-15764" srcset="https://thegioifirewall.com/wp-content/uploads/9-71-1024x708.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-71-300x207.png 300w, https://thegioifirewall.com/wp-content/uploads/9-71-768x531.png 768w, https://thegioifirewall.com/wp-content/uploads/9-71-1536x1062.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-71.png 1627w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để kiểm tra card vMotion đã được tạo thành công chưa chúng ta vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; Configure &gt; Networking &gt; Virtual Switches.</p>



<p class="wp-block-paragraph">Nhấn vào biểu tượng expand tại vSwitch2 và thấy rằng card vMotion đã được tạo và các traffic sẽ đi ra ngoài bằng card vật lý là card vmnic3 mà chúng ta đã khai báo.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="435" src="https://thegioifirewall.com/wp-content/uploads/10-63-1024x435.png" alt="" class="wp-image-15765" srcset="https://thegioifirewall.com/wp-content/uploads/10-63-1024x435.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-63-300x127.png 300w, https://thegioifirewall.com/wp-content/uploads/10-63-768x326.png 768w, https://thegioifirewall.com/wp-content/uploads/10-63-1536x652.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-63-2048x869.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>7.2.Migrate máy ảo Nghia01-2 từ host Esxi01 sang host Esxi02</strong></h3>



<p class="wp-block-paragraph">Trước khi migrate chúng ta sẽ kiểm tra lại thông tin về host và datastore mà máy ảo Nghia01-2 đang sử dụng.</p>



<p class="wp-block-paragraph">Để kiểm tra chúng ta vào trang quản trị của vCenter và đăng nhập bằng tài khoản với quyền admin.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="388" src="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png" alt="" class="wp-image-15756" srcset="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-107-300x114.png 300w, https://thegioifirewall.com/wp-content/uploads/1-107-768x291.png 768w, https://thegioifirewall.com/wp-content/uploads/1-107-1536x583.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-107-2048x777.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; nhấn chuột trái vào máy ảo Nghia01-2 &gt; tại Summary tab &gt; VM Hardware &gt; nhấn vào biểu tượng Expand tại Hard disk 1 &gt; chúng ta chú ý tại Location thì đây là nơi cho chúng ta biết folder chứa tệp tin chạy ảo hóa của máy ảo Nghia01-2 đang được chứa ở datastore nào.</p>



<p class="wp-block-paragraph">Như các bạn thấy folder chứa tệp tin chạy ảo hóa của máy ảo Nghia01-2 đang được chứa tại Local-ESXi01 datastore và máy ảo cũng đang chạy tại host Esxi01.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="418" src="https://thegioifirewall.com/wp-content/uploads/2-106-1024x418.png" alt="" class="wp-image-15741" srcset="https://thegioifirewall.com/wp-content/uploads/2-106-1024x418.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-106-300x123.png 300w, https://thegioifirewall.com/wp-content/uploads/2-106-768x314.png 768w, https://thegioifirewall.com/wp-content/uploads/2-106-1536x627.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-106-2048x836.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để migrate nhấn chuột phải vào máy ảo Nghia01-2 và chọn Migrate.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="916" height="1024" src="https://thegioifirewall.com/wp-content/uploads/11-62-916x1024.png" alt="" class="wp-image-15766" srcset="https://thegioifirewall.com/wp-content/uploads/11-62-916x1024.png 916w, https://thegioifirewall.com/wp-content/uploads/11-62-268x300.png 268w, https://thegioifirewall.com/wp-content/uploads/11-62-768x859.png 768w, https://thegioifirewall.com/wp-content/uploads/11-62.png 1284w" sizes="auto, (max-width: 916px) 100vw, 916px" /></figure>



<p class="wp-block-paragraph">Tại 1.Select migration type: chọn Change both compute resource and storage và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://thegioifirewall.com/wp-content/uploads/1-108-1024x556.png" alt="" class="wp-image-15779" srcset="https://thegioifirewall.com/wp-content/uploads/1-108-1024x556.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-108-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/1-108-768x417.png 768w, https://thegioifirewall.com/wp-content/uploads/1-108-1536x834.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-108-2048x1111.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 2.Select a compute resour… chọn host esxi02 và đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://thegioifirewall.com/wp-content/uploads/7-76-1024x554.png" alt="" class="wp-image-15781" srcset="https://thegioifirewall.com/wp-content/uploads/7-76-1024x554.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-76-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/7-76-768x416.png 768w, https://thegioifirewall.com/wp-content/uploads/7-76-1536x831.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-76-2048x1109.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 3.Select storage chọn VMFS-01 datastore và nhấn Next.</p>



<p class="wp-block-paragraph">Đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="555" src="https://thegioifirewall.com/wp-content/uploads/2-108-1024x555.png" alt="" class="wp-image-15780" srcset="https://thegioifirewall.com/wp-content/uploads/2-108-1024x555.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-108-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/2-108-768x416.png 768w, https://thegioifirewall.com/wp-content/uploads/2-108-1536x832.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-108-2048x1109.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 4.Select networks, nếu hạ tầng mạng và các virtual switch, port group tại 2 host là như nhau chúng ta chỉ cần chọn card mạng tương tự cho máy ảo sẽ được migrate.</p>



<p class="wp-block-paragraph">Ví dụ trong bài lab này hạ tầng mạng, virtual switch, port group của 2 host Esxi01 và Esxi02 là giống nhau hoàn toàn thì nếu tại host Esxi01 máy ảo Nghia01-2 đang chạy card mạng Production (cột Source Network) thì tại host Esxi02 chúng ta cũng chỉ cần khai báo card mạng Production tại Destination Network lúc đó khi migrate qua vMotion sẽ tự động gán card Production vào máy ảo này.</p>



<p class="wp-block-paragraph">Nếu hạ tầng mạng, virtual switch, port group trên host Esxi02 khác với Esxi01 chúng ta cần chọn card mạng tương ứng cho máy ảo mà chúng ta sẽ migrate.</p>



<p class="wp-block-paragraph">Ví dụ nếu tại host Exsi01 máy ảo Nghia01-2 đang chạy card Production và tại host Esxi02 cũng là card Production này nhưng chúng ta đặt khác tên thì chúng ta cần phải chọn đúng card tương ứng tại Destination Network.</p>



<p class="wp-block-paragraph">Đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://thegioifirewall.com/wp-content/uploads/3-106-1024x554.png" alt="" class="wp-image-15782" srcset="https://thegioifirewall.com/wp-content/uploads/3-106-1024x554.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-106-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/3-106-768x416.png 768w, https://thegioifirewall.com/wp-content/uploads/3-106-1536x831.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-106-2048x1108.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 5.Select vMotion priority chọn Schedule vMotion with high priority (recommended) và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="554" src="https://thegioifirewall.com/wp-content/uploads/4-102-1024x554.png" alt="" class="wp-image-15783" srcset="https://thegioifirewall.com/wp-content/uploads/4-102-1024x554.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-102-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/4-102-768x416.png 768w, https://thegioifirewall.com/wp-content/uploads/4-102-1536x832.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-102-2048x1109.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 6.Ready to complete chúng ta sẽ review lại các tùy chọn và nếu không có thay đổi nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="553" src="https://thegioifirewall.com/wp-content/uploads/5-97-1024x553.png" alt="" class="wp-image-15784" srcset="https://thegioifirewall.com/wp-content/uploads/5-97-1024x553.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-97-300x162.png 300w, https://thegioifirewall.com/wp-content/uploads/5-97-768x414.png 768w, https://thegioifirewall.com/wp-content/uploads/5-97-1536x829.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-97-2048x1105.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi nhấn Finish chúng ta chú ý tại Recent Tasks chúng ta thấy task migrate chúng ta đang được thực hiện với thanh % tại cột status thể hiện quá trình migrate đã được bao nhiêu %.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="407" src="https://thegioifirewall.com/wp-content/uploads/6-88-1024x407.png" alt="" class="wp-image-15785" srcset="https://thegioifirewall.com/wp-content/uploads/6-88-1024x407.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-88-300x119.png 300w, https://thegioifirewall.com/wp-content/uploads/6-88-768x305.png 768w, https://thegioifirewall.com/wp-content/uploads/6-88-1536x610.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-88-2048x813.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chờ một khoản thời gian chúng ta sẽ thấy xuất chữ Completed tại cột status ở task migrate trong Recent Tasks tức là quá trình migrate đã thành công.</p>



<p class="wp-block-paragraph">Và chúng ta nhìn vào Hosts and Clusters chúng ta sẽ thấy rằng máy ảo Nghia01-2 đã được migrate sang host Esxi02 và khi nhấn vào máy ảo Nghia01-2 tại bảng Summary các bạn cũng thấy rằng thông tin Host của máy ảo là Esxi02.</p>



<p class="wp-block-paragraph">Cũng tại bảng Summary &gt; VM Hardware &gt; nhấn vào biểu tượng Expand tại Hard disk 1 chúng ta sẽ thấy tại Location datastore nơi dùng để lưu folder chứa các tệp tin chạy ảo hóa của máy ảo Nghia01-2 đang là VMFS-01.</p>



<p class="wp-block-paragraph">Như vậy là chúng ta đã hoàn thành việc migrate máy ảo Nghia01-2 từ host Esxi01 với datastore Local-ESXi01 sang host Esxi02 với datastore là VMFS-01 bằng tính năng vMotion.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="407" src="https://thegioifirewall.com/wp-content/uploads/8-73-1024x407.png" alt="" class="wp-image-15786" srcset="https://thegioifirewall.com/wp-content/uploads/8-73-1024x407.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-73-300x119.png 300w, https://thegioifirewall.com/wp-content/uploads/8-73-768x305.png 768w, https://thegioifirewall.com/wp-content/uploads/8-73-1536x611.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-73-2048x814.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/vmware-vsphere-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-doc-lap-ve-datastore-bang-vmotion/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware vSphere: Hướng dẫn migrate máy ảo từ host ESXi này sang host ESXi khác nhưng cùng datastore bằng tính năng vSphere vMotion Migration</title>
		<link>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-nhung-cung-datastore-bang-tinh-nang-vsphere-vmotion-migration/</link>
					<comments>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-nhung-cung-datastore-bang-tinh-nang-vsphere-vmotion-migration/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Thu, 12 May 2022 04:23:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình VMware vSphere]]></category>
		<category><![CDATA[VMware vSphere: Hướng dẫn migrate máy ảo từ host ESXi này sang host ESXi khác nhưng cùng datastore bằng tính năng vSphere vMotion Migration]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=15754</guid>

					<description><![CDATA[1.Tổng quan Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ host ESXi này sang host ESXi khác nhưng cùng datastore bằng tính năng vSphere vMotion Migration khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter. Trước khi đi vào phần cấu hình chúng ta cùng nhau xem vMotion [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Tổng quan</strong></h2>



<p class="wp-block-paragraph">Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ host ESXi này sang host ESXi khác nhưng cùng datastore bằng tính năng vSphere vMotion Migration khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter.</p>



<p class="wp-block-paragraph">Trước khi đi vào phần cấu hình chúng ta cùng nhau xem vMotion là gì và vMotion có các dạng nào.</p>



<h2 class="wp-block-heading"><strong>2.vMotion là gì?</strong></h2>



<p class="wp-block-paragraph">VMotion hay còn được gọi là live migration, là một tính năng của ESX / ESXi và vCenter Server cho phép một máy ảo đang chạy có thể được di chuyển từ một máy chủ vật lý này đến một máy chủ vật lý khác mà không cần phải tắt nguồn máy ảo.</p>



<p class="wp-block-paragraph">Sự di chuyển giữa hai máy chủ vật lý xảy ra không có thời gian chết và không làm mất kết nối mạng đến máy ảo. VMotion đáp ứng cho nhu cầu của một tổ chức nhằm duy trì SLA để đảm bảo tính sẵn sàng cho server.</p>



<p class="wp-block-paragraph">Quản trị viên có thể dễ dàng dùng VMotion để loại bỏ tất cả các máy ảo từ một máy chủ ESX /ESXi để thực hiện bảo trì. Sau khi bảo trì hoàn tất và máy chủ được đưa trở lại trực tuyến, VMotion một lần nữa có thể được sử dụng để trả các máy ảo đó về với máy chủ ban đầu.</p>



<p class="wp-block-paragraph">Ngay cả trong các hoạt động bình thường hàng ngày, VMotion có thể được sử dụng khi nhiều máy ảo trên cùng một máy chủ đang cạnh tranh tài nguyên. VMotion có thể giải quyết vấn đề bằng cách cho phép người quản trị di chuyển bất kì máy ảo đang chạy nào đang bị tranh chấp tài nguyên nhưng có nhu cầu sử dụng tài nguyên lớn hơn đến một máy chủ ESX/ESXi khác.</p>



<h2 class="wp-block-heading"><strong>3.Có bao nhiêu loại vMotion</strong></h2>



<p class="wp-block-paragraph">vMotion được chia làm 3 loại khác nhau tùy theo nhu cầu sử dụng của người dung như sau:</p>



<ul class="wp-block-list"><li>vSphere vMotion Migration: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host Esxi sang host Esxi khác và lưu ý rằng cả 2 host Esxi đều phải có chung datastore.</li><li>vSphere Storage vMotion: đây là dạng vMotion được sử dụng trong trường hợp người dung cần migration một hoặc nhiều máy ảo từ một datastore này sang một datastore khác và lưu ý rằng các máy ảo khi được migrate bằng tính năng này vẫn sẽ nằm trên host Esxi ban đầu và chỉ thay đổi datastore lưu trữ.</li><li>Both: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host esxi với datastore riêng biệt sang một host esxi khác độc lập hoàn toàn.</li></ul>



<p class="wp-block-paragraph">Sau khi đã tìm hiểu lý thuyết về vMotion chúng ta sẽ vào phần chính của bài viết đó là phần cấu hình.</p>



<h2 class="wp-block-heading"><strong>4.Sơ đồ mạng</strong></h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="963" height="1024" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-25-963x1024.png" alt="" class="wp-image-15755" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-25-963x1024.png 963w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-282x300.png 282w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-768x816.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-1445x1536.png 1445w, https://thegioifirewall.com/wp-content/uploads/Drawing1-25-1927x2048.png 1927w" sizes="auto, (max-width: 963px) 100vw, 963px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có đường truyền internet được cấu hình tại Port 2 của thiết bị tường lửa Sophos Firewall.</p>



<p class="wp-block-paragraph">Lớp mạng LAN sẽ được cấu hình tại Port 1 của tường lửa Sophos Firewall với IP 172.20.10.10, đã được cấu hình DHCP để cấp phát IP và được kết nối xuống một switch access để kết nối các thiết bị.</p>



<p class="wp-block-paragraph">Chúng ta có 2 máy chủ vật lý chạy hệ thống ảo hóa VMware:</p>



<p class="wp-block-paragraph">Esxi01:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.51/24.</li><li>Đang chạy 3 máy ảo là Nghia01-2, Nghia01-3, Nghia01-4 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</li><li>Ngoài ra Vcenter cũng được cài đặt trên đây với IP 172.20.10.94/24 để quản trị cả 2 host Esxi01 và Esxi02.</li><li>Đang kết nối với 2 Datastore là Local-ESXi01 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.151/24.</li></ul>



<p class="wp-block-paragraph">Esxi02:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.52/24.</li><li>Đang kết nối với 2 Datastore là Local-ESXi02 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.152/24.</li></ul>



<h2 class="wp-block-heading"><strong>5.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Như có để cập ở phần chi tiết sơ đồ mạng thì cả 3 máy ảo Nghia01-2, Nghia01-3, Nghia01-4 đều đang chạy trên host Esxi01 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</p>



<p class="wp-block-paragraph">Trong bài viết này chúng ta sẽ sử dụng tính năng Vsphere vMotion Migration để chuyển hạ tầng ảo hóa mà các máy ảo đang chạy từ host Esxi01 sang host Esxi02 mà vẫn giữ nguyên datastore nơi mà các máy ảo này đang lưu trữ.</p>



<p class="wp-block-paragraph">Chúng ta có 2 điều cần chú ý điều đầu tiên là các máy ảo hiện tại đang lưu tại Local-ESXi01 datastore, đây là local datastore của host Esxi01 vì vậy chúng ta không thể migrate các máy ảo sang host Esxi02 được vì nếu muốn migrate chúng ta sẽ cần 2 host Esxi01 và Esxi02 đều phải sử dụng chung một datastore.</p>



<p class="wp-block-paragraph">Do cả 2 host Esxi01 và Esxi02 đều đang sử dụng chung datastore VMFS-01 nên chúng ta sẽ cần phải chuyển các folder chứa các tệp tin chạy ảo hóa của các máy ảo từ Local-ESXi01 datastore sang VMFS-01 datastore bằng tính năng vSphere Storage vMotion trước.</p>



<p class="wp-block-paragraph">Điều thứ 2 chúng ta cần chú ý là việc chuyển máy ảo từ host ESXi này sang host ESXi khác sẽ ảnh hưởng tới performance của kết nối mạng trong hệ thống vì vậy chúng ta cần phải thiết kế 1 kết nối mạng riêng biệt giữa hai host ESXi để chạy dịch vụ vMotion.</p>



<p class="wp-block-paragraph">Lưu ý: Để sử dụng tính năng này chúng ta cần có license ít nhất là Essential Plus cho host ESXi và bắt buộc phải có vCenter.</p>



<h2 class="wp-block-heading"><strong>6.Các bước thực hiện</strong></h2>



<ul class="wp-block-list"><li>Tạo kết nối mạng chạy dịch vụ vMotion.</li><li>Migrate các máy ảo sang VMFS-01 datastore bằng vSphere Storage vMotion.</li><li>Migrate các máy ảo từ Esxi01 host sang Esxi02 host</li></ul>



<h2 class="wp-block-heading"><strong>7.Hướng dẫn cấu hình</strong></h2>



<h3 class="wp-block-heading"><strong>7.1.Tạo kết nối mạng chạy dịch vụ vMotion</strong></h3>



<p class="wp-block-paragraph">Chúng ta cần sử dụng cáp kết nối 2 port vật lý của 2 máy chủ chạy 2 host Esxi01 và Esxi02.</p>



<p class="wp-block-paragraph">Sau đó chúng ta sẽ tạo 2 Vmkernel port để kết nối chúng lại.</p>



<p class="wp-block-paragraph">Để thực hiện chúng ta cần đăng nhập vào trang quản trị của vCenter bằng tài khoản với quyền admin.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="388" src="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png" alt="" class="wp-image-15756" srcset="https://thegioifirewall.com/wp-content/uploads/1-107-1024x388.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-107-300x114.png 300w, https://thegioifirewall.com/wp-content/uploads/1-107-768x291.png 768w, https://thegioifirewall.com/wp-content/uploads/1-107-1536x583.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-107-2048x777.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tiếp theo vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; Configure &gt; Networking &gt; Virtual Switches &gt; nhấn Add Networking…</p>



<p class="wp-block-paragraph">Bảng Add Networking hiện ra chúng ta sẽ cấu hình như sau.</p>



<p class="wp-block-paragraph">Tại 1.Select connection type: chọn VMkernel Network Adapter và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/2-107-1024x711.png" alt="" class="wp-image-15757" srcset="https://thegioifirewall.com/wp-content/uploads/2-107-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-107-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/2-107-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/2-107-1536x1066.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-107.png 1629w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 2.Select target device chọn New standard switch và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="716" src="https://thegioifirewall.com/wp-content/uploads/3-105-1024x716.png" alt="" class="wp-image-15758" srcset="https://thegioifirewall.com/wp-content/uploads/3-105-1024x716.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-105-300x210.png 300w, https://thegioifirewall.com/wp-content/uploads/3-105-768x537.png 768w, https://thegioifirewall.com/wp-content/uploads/3-105-1536x1074.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-105.png 1617w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại bước này chúng ta sẽ chọn card mạng vật lý trong vmware tương ứng port mà chúng ta đã cắm vào máy chủ ở bước đầu tiên.</p>



<p class="wp-block-paragraph">Nhấn vào dấu + để thêm.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="709" src="https://thegioifirewall.com/wp-content/uploads/4-101-1024x709.png" alt="" class="wp-image-15759" srcset="https://thegioifirewall.com/wp-content/uploads/4-101-1024x709.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-101-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/4-101-768x532.png 768w, https://thegioifirewall.com/wp-content/uploads/4-101-1536x1064.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-101.png 1632w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng Add Physical Adapter to the Swtich hiện ra, chúng ta sẽ chọn card vmnic3 và nhấn OK.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="732" src="https://thegioifirewall.com/wp-content/uploads/5-96-1024x732.png" alt="" class="wp-image-15760" srcset="https://thegioifirewall.com/wp-content/uploads/5-96-1024x732.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-96-300x214.png 300w, https://thegioifirewall.com/wp-content/uploads/5-96-768x549.png 768w, https://thegioifirewall.com/wp-content/uploads/5-96-1536x1097.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-96.png 1614w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Quay trở lại 3.Create a Standard Switch cần đảm bảo rằng card vmnic3 đã xuất hiện tại Active adapters.</p>



<p class="wp-block-paragraph">Nhấn Next để tiếp tục.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/6-87-1024x711.png" alt="" class="wp-image-15761" srcset="https://thegioifirewall.com/wp-content/uploads/6-87-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-87-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/6-87-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/6-87-1536x1067.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-87.png 1626w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 4.Port propertise chúng ta khai báo các thông số sau:</p>



<ul class="wp-block-list"><li>Network label: vMotion</li><li>Enabled services: tích chọn vMotion, tùy chọn này có nghĩa là port này chỉ dùng để chạy dịch vụ vMotion.</li><li>Nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="709" src="https://thegioifirewall.com/wp-content/uploads/7-75-1024x709.png" alt="" class="wp-image-15762" srcset="https://thegioifirewall.com/wp-content/uploads/7-75-1024x709.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-75-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/7-75-768x532.png 768w, https://thegioifirewall.com/wp-content/uploads/7-75-1536x1064.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-75.png 1627w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 5.IPv4 settings chọn Use static IPv4 settings và cấu hình các thông số sau:</p>



<ul class="wp-block-list"><li>IPv4 address: 172.20.10.151</li><li>Subnet mask: 255.255.255.0</li><li>Default gateway: 172.20.10.152 đây là IP của card vMotion trên host Esxi02.</li><li>Nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="711" src="https://thegioifirewall.com/wp-content/uploads/8-72-1024x711.png" alt="" class="wp-image-15763" srcset="https://thegioifirewall.com/wp-content/uploads/8-72-1024x711.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-72-300x208.png 300w, https://thegioifirewall.com/wp-content/uploads/8-72-768x533.png 768w, https://thegioifirewall.com/wp-content/uploads/8-72-1536x1067.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-72.png 1617w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 6.Ready to complete chúng ta sẽ review lại các tùy chọn và nếu không có thay đổi nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="708" src="https://thegioifirewall.com/wp-content/uploads/9-71-1024x708.png" alt="" class="wp-image-15764" srcset="https://thegioifirewall.com/wp-content/uploads/9-71-1024x708.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-71-300x207.png 300w, https://thegioifirewall.com/wp-content/uploads/9-71-768x531.png 768w, https://thegioifirewall.com/wp-content/uploads/9-71-1536x1062.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-71.png 1627w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để kiểm tra card vMotion đã được tạo thành công chưa chúng ta vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; Configure &gt; Networking &gt; Virtual Switches.</p>



<p class="wp-block-paragraph">Nhấn vào biểu tượng expand tại vSwitch2 và thấy rằng card vMotion đã được tạo và các traffic sẽ đi ra ngoài bằng card vật lý là card vmnic3 mà chúng ta đã khai báo.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="435" src="https://thegioifirewall.com/wp-content/uploads/10-63-1024x435.png" alt="" class="wp-image-15765" srcset="https://thegioifirewall.com/wp-content/uploads/10-63-1024x435.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-63-300x127.png 300w, https://thegioifirewall.com/wp-content/uploads/10-63-768x326.png 768w, https://thegioifirewall.com/wp-content/uploads/10-63-1536x652.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-63-2048x869.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading"><strong>7.2.</strong> <strong>Migrate các máy ảo sang VMFS-01 datastore bằng vSphere Storage vMotion</strong></h3>



<p class="wp-block-paragraph">Chúng ta sẽ chỉ thực hiện bước này nếu các folder chứa các tệp tin chạy ảo hóa của các máy ảo đang được lưu trên datastore local thứ mà host Esxi nơi chúng ta muốn chuyển đến không thể thấy được.</p>



<p class="wp-block-paragraph">Trong bài lab này do các folder chứa các tệp tin chạy ảo hóa của các máy ảo Nghia01-2, Nghia01-3, Nghia01-4 đang được lưu trên Local-ESXi01 datastore một datastore local mà host Esxi02 không thấy được nên chúng ta sẽ cần chuyển chúng sang một datastore mà cả hai host Esxi01 và Esxi02 đều có thể thấy đó là VMFS-01 datastore.</p>



<p class="wp-block-paragraph">Việc chuyển datastore cho các máy ảo đã được thực hiện thành công bằng tính năng vSphere Storage vMotion.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="422" src="https://thegioifirewall.com/wp-content/uploads/10-62-1024x422.png" alt="" class="wp-image-15749" srcset="https://thegioifirewall.com/wp-content/uploads/10-62-1024x422.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-62-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/10-62-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/10-62-1536x633.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-62-2048x844.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="422" src="https://thegioifirewall.com/wp-content/uploads/11-61-1024x422.png" alt="" class="wp-image-15750" srcset="https://thegioifirewall.com/wp-content/uploads/11-61-1024x422.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-61-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/11-61-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/11-61-1536x633.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-61-2048x844.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="408" src="https://thegioifirewall.com/wp-content/uploads/12-56-1024x408.png" alt="" class="wp-image-15751" srcset="https://thegioifirewall.com/wp-content/uploads/12-56-1024x408.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-56-300x120.png 300w, https://thegioifirewall.com/wp-content/uploads/12-56-768x306.png 768w, https://thegioifirewall.com/wp-content/uploads/12-56-1536x612.png 1536w, https://thegioifirewall.com/wp-content/uploads/12-56-2048x816.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Các bạn có thể xem hướng dẫn migrate máy ảo từ datastore này sang datastore khác tại <a href="https://www.thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-datastore-nay-sang-datastore-khac-bang-tinh-nang-vsphere-storage-vmotion/">đây</a>.</p>



<h3 class="wp-block-heading"><strong>7.3.Migrate các máy ảo từ Esxi01 host sang Esxi02 host</strong></h3>



<p class="wp-block-paragraph">Sau khi đã thỏa 2 điều kiện là các folder chứa tệp tin chạy ảo hóa của các máy ảo đã được lưu tại VMFS-01 datastore một datastore mà cả 2 host Esxi01 và Esxi02 đều sử dụng được và cũng đã có kết nối vMotion riêng biệt chúng ta thực hiện migrate các máy từ host Esxi01 sang Esxi02.</p>



<p class="wp-block-paragraph">Để migrate chúng ta nhấn chuột phải vào máy Nghia01-2 và nhấn Migrate.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="916" height="1024" src="https://thegioifirewall.com/wp-content/uploads/11-62-916x1024.png" alt="" class="wp-image-15766" srcset="https://thegioifirewall.com/wp-content/uploads/11-62-916x1024.png 916w, https://thegioifirewall.com/wp-content/uploads/11-62-268x300.png 268w, https://thegioifirewall.com/wp-content/uploads/11-62-768x859.png 768w, https://thegioifirewall.com/wp-content/uploads/11-62.png 1284w" sizes="auto, (max-width: 916px) 100vw, 916px" /></figure>



<p class="wp-block-paragraph">Bảng Migrate | Nghia01-2 hiện ra chúng ta sẽ cấu hình các thông số như sau.</p>



<p class="wp-block-paragraph">Tại bước 1.Select a migration type: chọn Change compute resource only và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://thegioifirewall.com/wp-content/uploads/12-57-1024x556.png" alt="" class="wp-image-15767" srcset="https://thegioifirewall.com/wp-content/uploads/12-57-1024x556.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-57-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/12-57-768x417.png 768w, https://thegioifirewall.com/wp-content/uploads/12-57-1536x835.png 1536w, https://thegioifirewall.com/wp-content/uploads/12-57-2048x1113.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 2.Select a compute resour… chọn host esxi02 và đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://thegioifirewall.com/wp-content/uploads/13-48-1024x556.png" alt="" class="wp-image-15768" srcset="https://thegioifirewall.com/wp-content/uploads/13-48-1024x556.png 1024w, https://thegioifirewall.com/wp-content/uploads/13-48-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/13-48-768x417.png 768w, https://thegioifirewall.com/wp-content/uploads/13-48-1536x833.png 1536w, https://thegioifirewall.com/wp-content/uploads/13-48-2048x1111.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 3.Select networks, nếu hạ tầng mạng và các virtual switch, port group tại 2 host là như nhau chúng ta chỉ cần chọn card mạng tương tự cho máy ảo sẽ được migrate.</p>



<p class="wp-block-paragraph">Ví dụ trong bài lab này hạ tầng mạng, virtual switch, port group của 2 host Esxi01 và Esxi02 là giống nhau hoàn toàn thì nếu tại host Esxi01 máy ảo Nghia01-2 đang chạy card mạng Production (cột Source Network) thì tại host Esxi02 chúng ta cũng chỉ cần khai báo card mạng Production tại Destination Network lúc đó khi migrate qua vMotion sẽ tự động gán card Production vào máy ảo này.</p>



<p class="wp-block-paragraph">Nếu hạ tầng mạng, virtual switch, port group trên host Esxi02 khác với Esxi01 chúng ta cần chọn card mạng tương ứng cho máy ảo mà chúng ta sẽ migrate.</p>



<p class="wp-block-paragraph">Ví dụ nếu tại host Exsi01 máy ảo Nghia01-2 đang chạy card Production và tại host Esxi02 cũng là card Production này nhưng chúng ta đặt khác tên thì chúng ta cần phải chọn đúng card tương ứng tại Destination Network.</p>



<p class="wp-block-paragraph">Đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="559" src="https://thegioifirewall.com/wp-content/uploads/14-45-1024x559.png" alt="" class="wp-image-15769" srcset="https://thegioifirewall.com/wp-content/uploads/14-45-1024x559.png 1024w, https://thegioifirewall.com/wp-content/uploads/14-45-300x164.png 300w, https://thegioifirewall.com/wp-content/uploads/14-45-768x419.png 768w, https://thegioifirewall.com/wp-content/uploads/14-45-1536x838.png 1536w, https://thegioifirewall.com/wp-content/uploads/14-45-2048x1118.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 4.Select vMotion priority chọn Schedule vMotion with high priority (recommended) và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="558" src="https://thegioifirewall.com/wp-content/uploads/15-42-1024x558.png" alt="" class="wp-image-15770" srcset="https://thegioifirewall.com/wp-content/uploads/15-42-1024x558.png 1024w, https://thegioifirewall.com/wp-content/uploads/15-42-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/15-42-768x418.png 768w, https://thegioifirewall.com/wp-content/uploads/15-42-1536x836.png 1536w, https://thegioifirewall.com/wp-content/uploads/15-42-2048x1115.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 5.Ready to complete chúng ta sẽ review lại các tùy chọn và nếu không có thay đổi nhấn Finish.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="556" src="https://thegioifirewall.com/wp-content/uploads/16-41-1024x556.png" alt="" class="wp-image-15771" srcset="https://thegioifirewall.com/wp-content/uploads/16-41-1024x556.png 1024w, https://thegioifirewall.com/wp-content/uploads/16-41-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/16-41-768x417.png 768w, https://thegioifirewall.com/wp-content/uploads/16-41-1536x834.png 1536w, https://thegioifirewall.com/wp-content/uploads/16-41-2048x1112.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi nhấn Finish chúng ta chú ý tại Recent Tasks chúng ta thấy task migrate chúng ta đang được thực hiện với thanh % tại cột status thể hiện quá trình migrate đã được bao nhiêu %.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://thegioifirewall.com/wp-content/uploads/17-38-1024x423.png" alt="" class="wp-image-15772" srcset="https://thegioifirewall.com/wp-content/uploads/17-38-1024x423.png 1024w, https://thegioifirewall.com/wp-content/uploads/17-38-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/17-38-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/17-38-1536x635.png 1536w, https://thegioifirewall.com/wp-content/uploads/17-38-2048x847.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chờ một khoản thời gian chúng ta sẽ thấy xuất chữ Completed tại cột status ở task migrate trong Recent Tasks tức là quá trình migrate đã thành công.</p>



<p class="wp-block-paragraph">Và chúng ta nhìn vào Hosts and Clusters chúng ta sẽ thấy rằng máy ảo Nghia01-2 đã được migrate sang host Esxi02 và khi nhấn vào máy ảo Nghia01-2 tại bảng Summary các bạn cũng thấy rằng thông tin Host của máy ảo là Esxi02.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="417" src="https://thegioifirewall.com/wp-content/uploads/18-37-1024x417.png" alt="" class="wp-image-15774" srcset="https://thegioifirewall.com/wp-content/uploads/18-37-1024x417.png 1024w, https://thegioifirewall.com/wp-content/uploads/18-37-300x122.png 300w, https://thegioifirewall.com/wp-content/uploads/18-37-768x313.png 768w, https://thegioifirewall.com/wp-content/uploads/18-37-1536x626.png 1536w, https://thegioifirewall.com/wp-content/uploads/18-37-2048x835.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Để chuyển 2 máy ảo còn lại chúng ta sẽ thực hiện lại phần 7.3.</p>



<p class="wp-block-paragraph">Kết quả là đã chuyển thành công.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="423" src="https://thegioifirewall.com/wp-content/uploads/19-35-1024x423.png" alt="" class="wp-image-15775" srcset="https://thegioifirewall.com/wp-content/uploads/19-35-1024x423.png 1024w, https://thegioifirewall.com/wp-content/uploads/19-35-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/19-35-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/19-35-1536x634.png 1536w, https://thegioifirewall.com/wp-content/uploads/19-35-2048x846.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-host-esxi-nay-sang-host-esxi-khac-nhung-cung-datastore-bang-tinh-nang-vsphere-vmotion-migration/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>VMware Vsphere: Hướng dẫn migrate máy ảo từ datastore này sang datastore khác bằng tính năng vSphere Storage vMotion</title>
		<link>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-datastore-nay-sang-datastore-khac-bang-tinh-nang-vsphere-storage-vmotion/</link>
					<comments>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-datastore-nay-sang-datastore-khac-bang-tinh-nang-vsphere-storage-vmotion/#respond</comments>
		
		<dc:creator><![CDATA[TrungNghia]]></dc:creator>
		<pubDate>Wed, 11 May 2022 03:12:00 +0000</pubDate>
				<category><![CDATA[Hướng dẫn cấu hình VMware vSphere]]></category>
		<category><![CDATA[VMware Vsphere: Hướng dẫn migrate máy ảo từ datastore này sang datastore khác bằng tính năng vSphere Storage vMotion]]></category>
		<guid isPermaLink="false">https://www.thegioifirewall.com/?p=15738</guid>

					<description><![CDATA[1.Tổng quan Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ datastore này sang datastore khác bằng tính năng vSphere Storage vMotion khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter. Trước khi đi vào phần cấu hình chúng ta cùng nhau xem vMotion là gì và vMotion có [&#8230;]]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading"><strong>1.Tổng quan</strong></h2>



<p class="wp-block-paragraph">Bài viết này sẽ hướng dẫn các bạn cách migrate máy ảo từ datastore này sang datastore khác bằng tính năng vSphere Storage vMotion khi các bạn sử dụng hạ tầng VMware Esxi và Vcenter.</p>



<p class="wp-block-paragraph">Trước khi đi vào phần cấu hình chúng ta cùng nhau xem vMotion là gì và vMotion có các dạng nào.</p>



<h2 class="wp-block-heading"><strong>2.vMotion là gì?</strong></h2>



<p class="wp-block-paragraph">VMotion hay còn được gọi là live migration, là một tính năng của ESX / ESXi và vCenter Server cho phép một máy ảo đang chạy có thể được di chuyển từ một máy chủ vật lý này đến một máy chủ vật lý khác mà không cần phải tắt nguồn máy ảo.</p>



<p class="wp-block-paragraph">Sự di chuyển giữa hai máy chủ vật lý xảy ra không có thời gian chết và không làm mất kết nối mạng đến máy ảo. VMotion đáp ứng cho nhu cầu của một tổ chức nhằm duy trì SLA để đảm bảo tính sẵn sàng cho server.</p>



<p class="wp-block-paragraph">Quản trị viên có thể dễ dàng dùng VMotion để loại bỏ tất cả các máy ảo từ một máy chủ ESX /ESXi để thực hiện bảo trì. Sau khi bảo trì hoàn tất và máy chủ được đưa trở lại trực tuyến, VMotion một lần nữa có thể được sử dụng để trả các máy ảo đó về với máy chủ ban đầu.</p>



<p class="wp-block-paragraph">Ngay cả trong các hoạt động bình thường hàng ngày, VMotion có thể được sử dụng khi nhiều máy ảo trên cùng một máy chủ đang cạnh tranh tài nguyên. VMotion có thể giải quyết vấn đề bằng cách cho phép người quản trị di chuyển bất kì máy ảo đang chạy nào đang bị tranh chấp tài nguyên nhưng có nhu cầu sử dụng tài nguyên lớn hơn đến một máy chủ ESX/ESXi khác.</p>



<p class="wp-block-paragraph"></p>



<h2 class="wp-block-heading"><strong>3.Có bao nhiêu loại vMotion</strong></h2>



<p class="wp-block-paragraph">vMotion được chia làm 3 loại khác nhau tùy theo nhu cầu sử dụng của người dùng như sau:</p>



<ul class="wp-block-list"><li>vSphere vMotion Migration: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host Esxi sang host Esxi khác và lưu ý rằng cả 2 host Esxi đều phải có chung datastore.</li><li>vSphere Storage vMotion: đây là dạng vMotion được sử dụng trong trường hợp người dung cần migration một hoặc nhiều máy ảo từ một datastore này sang một datastore khác và lưu ý rằng các máy ảo khi được migrate bằng tính năng này vẫn sẽ nằm trên host Esxi ban đầu và chỉ thay đổi datastore lưu trữ.</li><li>Both: đây là dạng vMotion được sử dụng trong trường hợp người dùng cần migration một hoặc nhiều máy ảo từ một host esxi với datastore riêng biệt sang một host esxi khác độc lập hoàn toàn.</li></ul>



<p class="wp-block-paragraph">Sau khi đã tìm hiểu lý thuyết về vMotion chúng ta sẽ vào phần chính của bài viết đó là phần cấu hình.</p>



<p class="wp-block-paragraph"><strong>4.Sơ đồ mạng</strong></p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="963" height="1024" src="https://thegioifirewall.com/wp-content/uploads/Drawing1-24-963x1024.png" alt="" class="wp-image-15739" srcset="https://thegioifirewall.com/wp-content/uploads/Drawing1-24-963x1024.png 963w, https://thegioifirewall.com/wp-content/uploads/Drawing1-24-282x300.png 282w, https://thegioifirewall.com/wp-content/uploads/Drawing1-24-768x816.png 768w, https://thegioifirewall.com/wp-content/uploads/Drawing1-24-1445x1536.png 1445w, https://thegioifirewall.com/wp-content/uploads/Drawing1-24-1927x2048.png 1927w" sizes="auto, (max-width: 963px) 100vw, 963px" /></figure>



<p class="wp-block-paragraph"><strong>Chi tiết sơ đồ mạng:</strong></p>



<p class="wp-block-paragraph">Chúng ta sẽ có đường truyền internet được cấu hình tại Port 2 của thiết bị tường lửa Sophos Firewall.</p>



<p class="wp-block-paragraph">Lớp mạng LAN sẽ được cấu hình tại Port 1 của tường lửa Sophos Firewall với IP 172.20.10.10, đã được cấu hình DHCP để cấp phát IP và được kết nối xuống một switch access để kết nối các thiết bị.</p>



<p class="wp-block-paragraph">Chúng ta có 2 máy chủ vật lý chạy hệ thống ảo hóa VMware:</p>



<p class="wp-block-paragraph">Esxi01:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.51/24.</li><li>Đang chạy 3 máy ảo là Nghia01-2, Nghia01-3, Nghia01-4 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</li><li>Ngoài ra Vcenter cũng được cài đặt trên đây với IP 172.20.10.94/24 để quản trị cả 2 host Esxi01 và Esxi02.</li><li>Đang kết nối với 2 Datastore là Local-ESXi01 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.151/24.</li></ul>



<p class="wp-block-paragraph">Esxi02:</p>



<ul class="wp-block-list"><li>Có IP là 172.20.10.52/24.</li><li>Đang kết nối với 2 Datastore là Local-ESXi02 và một datastore theo dạng sharing là iSCSI Datastore với tên là VMFS-01 và có IP 172.20.10.14/24.</li><li>Có một VMkernel port được cấu hình riêng để chạy dịch vụ vMotion với IP 172.20.10.152/24.</li></ul>



<h2 class="wp-block-heading"><strong>5.Tình huống cấu hình</strong></h2>



<p class="wp-block-paragraph">Như có để cập ở phần chi tiết sơ đồ mạng thì cả 3 máy ảo Nghia01-2, Nghia01-3, Nghia01-4 đều đang chạy trên host Esxi01 và các folder nơi mà chứa các tệp tin chạy ảo hóa của 3 máy ảo này đang được lưu tại Local-ESXi01 datastore.</p>



<p class="wp-block-paragraph">Trong bài viết này chúng ta sẽ sử dụng tính năng Vsphere Storage vMotion để chuyển các folder chứa các tệp tin chạy ảo hóa của 3 máy ảo này từ Local-ESXi01 datastore sang VMFS-01 datastore mà vẫn như nguyên host Esxi01 mà các máy ảo đang chạy.</p>



<p class="wp-block-paragraph">Lưu ý: Để sử dụng tính năng này chúng ta cần có license ít nhất là Essential Plus cho host ESXi và bắt buộc phải có vCenter.</p>



<h2 class="wp-block-heading"><strong>6.Hướng dẫn cấu hình</strong></h2>



<p class="wp-block-paragraph">Trước khi cấu hình Vsphere Storage vMotion để chuyển các folder chứa các tệp tin ảo hóa từ Local-ESXi01 sang VMFS-01 datastore chúng ta sẽ kiểm tra lại thông tin lưu trữ của 3 máy ảo.</p>



<p class="wp-block-paragraph">Để kiểm tra chúng ta vào trang quản trị của vCenter và đăng nhập bằng tài khoản với quyền admin.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="435" src="https://thegioifirewall.com/wp-content/uploads/1-106-1024x435.png" alt="" class="wp-image-15740" srcset="https://thegioifirewall.com/wp-content/uploads/1-106-1024x435.png 1024w, https://thegioifirewall.com/wp-content/uploads/1-106-300x127.png 300w, https://thegioifirewall.com/wp-content/uploads/1-106-768x326.png 768w, https://thegioifirewall.com/wp-content/uploads/1-106-1536x653.png 1536w, https://thegioifirewall.com/wp-content/uploads/1-106-2048x870.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Vào biểu tượng Hosts and Clusters &gt; esxi01 &gt; nhấn chuột trái vào máy ảo Nghia01-2 &gt; tại Summary tab &gt; VM Hardware &gt; nhấn vào biểu tượng Expand tại Hard disk 1 &gt; chúng ta chú ý tại Location thì đây là nơi cho chúng ta biết folder chứa tệp tin chạy ảo hóa của máy ảo Nghia01-2 đang được chứa ở datastore nào.</p>



<p class="wp-block-paragraph">Như các bạn thấy folder chứa tệp tin chạy ảo hóa của máy ảo Nghia01-2 đang được chứa tại Local-ESXi01 datastore.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="418" src="https://thegioifirewall.com/wp-content/uploads/2-106-1024x418.png" alt="" class="wp-image-15741" srcset="https://thegioifirewall.com/wp-content/uploads/2-106-1024x418.png 1024w, https://thegioifirewall.com/wp-content/uploads/2-106-300x123.png 300w, https://thegioifirewall.com/wp-content/uploads/2-106-768x314.png 768w, https://thegioifirewall.com/wp-content/uploads/2-106-1536x627.png 1536w, https://thegioifirewall.com/wp-content/uploads/2-106-2048x836.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Thực hiện các bước tương tự để kiểm tra nơi lưu các folder của 2 máy ảo Nghia01-3, Nghia4-01 và chúng ta sẽ thấy cả 2 cũng đang được lưu tại Local-ESXi01 datastore.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="469" src="https://thegioifirewall.com/wp-content/uploads/3-104-1024x469.png" alt="" class="wp-image-15742" srcset="https://thegioifirewall.com/wp-content/uploads/3-104-1024x469.png 1024w, https://thegioifirewall.com/wp-content/uploads/3-104-300x138.png 300w, https://thegioifirewall.com/wp-content/uploads/3-104-768x352.png 768w, https://thegioifirewall.com/wp-content/uploads/3-104-1536x704.png 1536w, https://thegioifirewall.com/wp-content/uploads/3-104-2048x939.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="436" src="https://thegioifirewall.com/wp-content/uploads/4-100-1024x436.png" alt="" class="wp-image-15743" srcset="https://thegioifirewall.com/wp-content/uploads/4-100-1024x436.png 1024w, https://thegioifirewall.com/wp-content/uploads/4-100-300x128.png 300w, https://thegioifirewall.com/wp-content/uploads/4-100-768x327.png 768w, https://thegioifirewall.com/wp-content/uploads/4-100-1536x655.png 1536w, https://thegioifirewall.com/wp-content/uploads/4-100-2048x873.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi kiểm tra xong chúng ta sẽ thực hiện migrate folder chứa các tệp tin chạy ảo hóa của máy ảo Nghia01-2 từ Local-ESXi01 datastore sang VMFS-01 datastore.</p>



<p class="wp-block-paragraph">Để migrate nhấn chuột phải vào máy ảo Nghia01-2 và chọn Migrate.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="755" src="https://thegioifirewall.com/wp-content/uploads/5-95-1024x755.png" alt="" class="wp-image-15744" srcset="https://thegioifirewall.com/wp-content/uploads/5-95-1024x755.png 1024w, https://thegioifirewall.com/wp-content/uploads/5-95-300x221.png 300w, https://thegioifirewall.com/wp-content/uploads/5-95-768x566.png 768w, https://thegioifirewall.com/wp-content/uploads/5-95-1536x1132.png 1536w, https://thegioifirewall.com/wp-content/uploads/5-95.png 1670w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Bảng Migrate | Nghia01-2 hiện ra chúng ta sẽ cấu hình các thông số như sau.</p>



<p class="wp-block-paragraph">Tại bước 1.Select a migration type: chọn Change storage only và nhấn Next.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="557" src="https://thegioifirewall.com/wp-content/uploads/6-86-1024x557.png" alt="" class="wp-image-15745" srcset="https://thegioifirewall.com/wp-content/uploads/6-86-1024x557.png 1024w, https://thegioifirewall.com/wp-content/uploads/6-86-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/6-86-768x418.png 768w, https://thegioifirewall.com/wp-content/uploads/6-86-1536x835.png 1536w, https://thegioifirewall.com/wp-content/uploads/6-86-2048x1114.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 2.Select storage:</p>



<ul class="wp-block-list"><li>Select virtual disk format: chúng ta chọn Thin Provision (với vMotion thì VMware hỗ trợ cả việc chuyển định dạng của hard disk mà ảo đang sử dụng).</li><li>VM Storage Policy: chọn VMFS-01 datastore.</li><li>Compatibility: chúng ta cần phải đảm bảo rằng thông báo Compatibility checks succeeded xuất hiện đều này đảm bảo quá trình migrate sẽ không xảy ra lỗi, nếu thông báo lỗi xuất hiện tại đây chúng ta cần troubleshoot theo nó.</li><li>Nhấn Next.</li></ul>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="557" src="https://thegioifirewall.com/wp-content/uploads/7-74-1024x557.png" alt="" class="wp-image-15746" srcset="https://thegioifirewall.com/wp-content/uploads/7-74-1024x557.png 1024w, https://thegioifirewall.com/wp-content/uploads/7-74-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/7-74-768x418.png 768w, https://thegioifirewall.com/wp-content/uploads/7-74-1536x836.png 1536w, https://thegioifirewall.com/wp-content/uploads/7-74-2048x1114.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Tại 3.Ready to complete chúng ta sẽ review lại các tùy chọn và nếu không chọn nhầm hoặc không có thay đổi nào thêm chúng ta nhấn Finish để hoàn thành quá trình khai báo cấu hình và bắt đầu quá trình migrate.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="558" src="https://thegioifirewall.com/wp-content/uploads/8-71-1024x558.png" alt="" class="wp-image-15747" srcset="https://thegioifirewall.com/wp-content/uploads/8-71-1024x558.png 1024w, https://thegioifirewall.com/wp-content/uploads/8-71-300x163.png 300w, https://thegioifirewall.com/wp-content/uploads/8-71-768x418.png 768w, https://thegioifirewall.com/wp-content/uploads/8-71-1536x836.png 1536w, https://thegioifirewall.com/wp-content/uploads/8-71-2048x1115.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Sau khi nhấn Finish chúng ta chú ý tại Recent Tasks chúng ta thấy task migrate chúng ta đang được thực hiện với thanh % tại cột status thể hiện quá trình migrate đã được bao nhiêu %.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="421" src="https://thegioifirewall.com/wp-content/uploads/9-70-1024x421.png" alt="" class="wp-image-15748" srcset="https://thegioifirewall.com/wp-content/uploads/9-70-1024x421.png 1024w, https://thegioifirewall.com/wp-content/uploads/9-70-300x123.png 300w, https://thegioifirewall.com/wp-content/uploads/9-70-768x316.png 768w, https://thegioifirewall.com/wp-content/uploads/9-70-1536x632.png 1536w, https://thegioifirewall.com/wp-content/uploads/9-70-2048x842.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chờ một khoản thời gian chúng ta sẽ thấy xuất chữ Completed tại cột status ở task migrate trong Recent Tasks tức là quá trình migrate đã thành công.</p>



<p class="wp-block-paragraph">Sau khi kiểm tra chúng ta sẽ kiểm tra lại nơi lưu trữ bằng các bước đã thực hiện ở đầu bài viết và thấy rằng tại Location nơi lưu của máy ảo bây giờ là VMFS-01 datastore chứ không còn là Local-ESXi01 datastore nữa.</p>



<p class="wp-block-paragraph">Và các bạn cũng thấy rằng việc migrate này cũng không yêu cầu chúng ta phải shutdown và khởi động lại máy.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="422" src="https://thegioifirewall.com/wp-content/uploads/10-62-1024x422.png" alt="" class="wp-image-15749" srcset="https://thegioifirewall.com/wp-content/uploads/10-62-1024x422.png 1024w, https://thegioifirewall.com/wp-content/uploads/10-62-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/10-62-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/10-62-1536x633.png 1536w, https://thegioifirewall.com/wp-content/uploads/10-62-2048x844.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">Chúng ta sẽ thực hiện lại các bước như trên để chuyển folder chứa tệp tin chạy ảo của 2 máy ảo Nghia01-3 và Nghia01-4 từ Local-ESXi01 datastore sang VMFS-01 datastore.</p>



<p class="wp-block-paragraph">Và kết quả là đã chuyển thành công.</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="422" src="https://thegioifirewall.com/wp-content/uploads/11-61-1024x422.png" alt="" class="wp-image-15750" srcset="https://thegioifirewall.com/wp-content/uploads/11-61-1024x422.png 1024w, https://thegioifirewall.com/wp-content/uploads/11-61-300x124.png 300w, https://thegioifirewall.com/wp-content/uploads/11-61-768x317.png 768w, https://thegioifirewall.com/wp-content/uploads/11-61-1536x633.png 1536w, https://thegioifirewall.com/wp-content/uploads/11-61-2048x844.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="408" src="https://thegioifirewall.com/wp-content/uploads/12-56-1024x408.png" alt="" class="wp-image-15751" srcset="https://thegioifirewall.com/wp-content/uploads/12-56-1024x408.png 1024w, https://thegioifirewall.com/wp-content/uploads/12-56-300x120.png 300w, https://thegioifirewall.com/wp-content/uploads/12-56-768x306.png 768w, https://thegioifirewall.com/wp-content/uploads/12-56-1536x612.png 1536w, https://thegioifirewall.com/wp-content/uploads/12-56-2048x816.png 2048w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://thegioifirewall.com/vmware-vsphere-7-x-huong-dan-migrate-may-ao-tu-datastore-nay-sang-datastore-khac-bang-tinh-nang-vsphere-storage-vmotion/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
