<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.daihockhonggiay.com/blogs/tag/vlan-trunking/feed" rel="self" type="application/rss+xml"/><title>Đại học Không Giấy - Blog #VLAN Trunking</title><description>Đại học Không Giấy - Blog #VLAN Trunking</description><link>https://www.daihockhonggiay.com/blogs/tag/vlan-trunking</link><lastBuildDate>Wed, 10 Sep 2025 18:50:18 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Giới thiệu về VLAN]]></title><link>https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-vlan</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/vl.jpg"/>Bài viết này sẽ giới thiệu về VLAN, tầm quan trọng của VLAN và cách cấu hình VLAN cơ bản]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_JrScFpjtRL6wtW6vzuRXPQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_aIoCI25UQgqNrAYN3vakyw" data-element-type="row" class="zprow zprow-container zpalign-items- zpjustify-content- " data-equal-column=""><style type="text/css"></style><div data-element-id="elm_qxl_Xeq1TsC89nVF8IYtqQ" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"> [data-element-id="elm_qxl_Xeq1TsC89nVF8IYtqQ"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_QB2RTfWjS-yv0TgjLOlpdw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_QB2RTfWjS-yv0TgjLOlpdw"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">I. Tổng quan</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Tại sao phải chia VLAN (Virtual Local Area Network)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Xét hệ thống bình thường</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Một Công ty giáo dục thuê một tòa nhà có nhiều tầng. Tầng 1 là khối văn phòng có 1 Switch (đây gọi là mạng LAN khối văn phòng bao gồm cả nhân viên tư vấn). Tầng 2&nbsp; là phòng giám đốc đặt một Switch, Tầng 3 giảng viên đặt một Switch, tầng 4, 5 là của sinh viên. Tất cả các tầng đều nối ra Router và ra internet. Nhưng vào mùa tuyển sinh thì số lớp sẽ ít nhưng tư vấn viên cần nhiều (khối văn phòng chuyển lên một ít ở tầng 4 và 5). Phòng giám đốc cần thu hẹp lại để nhường phòng khác, nhưng phòng ban giám đốc lại chỉ có 3 hoặc 4 người thì thừa ra rất nhiều cổng. Hệ thống sẽ có sự tốn kém khi có thiết bị thay đổi.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Do cả tòa nhà cùng Router và đi ra internet nên cùng dùng một dải mạng, cùng một Broadcast domain. Hệ thống sẽ không có độ bảo mật cao giữa các phòng ban. Khi bị Virus thì cả hệ thống có thể bị lây lan. Khi có một người đứng trong mạng có thể bắt được hết tất cả gói tin toàn mạng đi qua Router.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trong một doanh nghiệp có sử dụng nhiều thành phần và ứng dụng vào hệ thống mạng như: dùng Voice IP, truy cập Web, Mail, truy cập dữ liệu trong hệ thống. Nếu bình thường thì không sao nhưng không may bị tắc nghẽn thì sẽ lỗi cả hệ thống.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Xét hệ thống có thiết bị hỗ trợ VLAN</span>&nbsp;(thiết bị này đã hỗ trợ từ trước năm 2000)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Vẫn các Switch như vậy nhưng khi dùng VLAN nó chỉ cần kéo một dây từ Router về một Switch nào đó, sau đó sẽ chia VLAN</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trên một Switch 24 cổng nếu hỗ trợ VLAN thì nó sẽ chia nhỏ khu vực một cách hợp lý: VLAN 1 có cổng từ 1-10, VLAN 2 có cổng từ 11-15, VLAN 3 có cổng từ 16-24.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chú ý: Cisco 2900 hỗ trợ 64 VLAN, 2950 hỗ trợ 255 VLAN, 4500 hỗ trợ 4000 VLAN</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Tìm hiểu về VLAN (VLAN là gì)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Có 2 cách nhìn về VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ Nhìn trên một Switch:</span>&nbsp;VLAN là một switch logical (ta có ổ cứng 80GB vật lý chia thành ổ C, D, E. Các ổ logical này là độc lập)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các VLAN độc lập sẽ không Forwarding sang VLAN khác.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">VLAN sẽ không có bảng MAC của riêng nó mà nó sử dụng chung bảng MAC của Switch vật lý. Switch vật lý sẽ xây dựng bảng MAC như sau:</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">MAC</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Cổng</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">MAC</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Cổng</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">MAC</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Cổng</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.0a</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.0n</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/11</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.n1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/16</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.05</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0b.0d</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/12</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.n2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/17</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.09</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.06</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/13</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.n3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/18</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.00</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/4</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.08</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/14</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">00.0c.n4</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">F0/19</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trên một Switch vật lý chia thành 3 VLAN là VLAN 1, VLAN 2, VLAN 3. Sau khi chia thì 3 VLAN sẽ tương ứng là 3 Switch độc lập. Trên một Switch 24 cổng ta có VLAN 1 có cổng từ 1-10, VLAN 2 có cổng từ 11-15, VLAN 3 có cổng từ 16-24. Các máy ở VLAN 1 sẽ không trao đổi được với các máy ở VLAN 3 vì 2 VLAN này tương ứng 2 Switch độc lập.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ Nhìn trên cả một hệ thống:</span>&nbsp;VLAN là một Boroadcast domain.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Xét trên 2 Switch vật lý:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Mỗi Switch chia thành 3 VLAN giống nhau. Nguyên tắc là VLAN 1 của SW1 thông VLAN 1 của SW2, VLAN 2 của SW1 thông VLAN 2 của SW2, VLAN 3 thông VLAN 3.</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">SW1</span></span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">SW2</span></span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN1</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN2</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN3</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Để VLAN 1 thông với nhau thì trên SW1 cắm dây vào một cổng VLAN 1 kết nối sang cổng thuộc VLAN 1 của SW2, tương tự với VLAN2 và 3.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Mỗi VLAN sẽ tương ứng một mạng độc lập nên gọi là một Broadcast domain.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cách áp dụng VLAN cho các phòng ban</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Các phòng ban không phải dịch chuyển: IT, Sale, Mar sẽ gán tương ứng VLAN 1, 2, 3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Các phòng ban có dịch chuyển: Sale mở rộng và thêm tầng khác thì trên Switch tầng đó chỉ cần khởi tạo VLAN 2 và cắm vào.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Có 2 kiểu kết nối Switch:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Kiểu một là sử dụng số lượng VLAN hạn chế, có 2 Switch kế nối với nhau, mỗi switch sẽ có VLAN 2, 3 kế nối trực tiếp với nhau gọi là Uplink (vd: VLAN 2 của Switch 1 kết nối VLAN 2 của SW2 bằng 1 dây thì các máy bên SW1 sẽ ping sang SW2).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Kiểu 2 là sử dụng số lượng VLAN nhiều trên một Switch thì phải sử dụng đường Trunking cho phép nhiều VLAN chạy qua giữa 2 Switch hoặc về Router (đường trunking chỉ sử dụng một dây).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Để các mạng LAN khác nhau truyền được dữ liệu thì phải có thiết bị định tuyến. Sử dụng Router định tuyến.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3. Các loại VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Xét 5 loại VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ Data VLAN:</span>&nbsp; là VLAN phổ biến nhất, được dùng cho các kết nối của người dùng.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Vd: ta tạo ra các VLAN dành cho người dùng tải file, truy cập web, mail,</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ Default VLAN:</span>&nbsp;là VLAN mặc định tất cả các Switch đều có và khởi tạo tất cả các cổng của Switch đều nằm trong VLAN này. VLAN mặc định của Switch Cisco là VLAN 1 và chúng ta không thể thay đổi tên hay xóa VLAN này.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ Native VLAN:</span>&nbsp;là VLAN duy nhất trên Switch mà Frame xuất phát từ nó khi đi qua đường truyền chung cho các VLAN (đường Trunk) không phải đóng gói thêm trường VLAN ID. Mặc định Native VLAN trên mỗi Switch cisco là VLAN1.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch thường và Switch Cisco trao đổi được thông tin khi SW Cisco để chế độ Native, khi SW Cisco cấu hình VLAN thì SW thường sẽ không hiểu được VLAN ID.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ VLAN quản lý:</span>&nbsp;là bất cứ VLAN nào mà chúng ta cấu hình địa chỉ IP cho interface VLAN tương ứng. Địa chỉ IP này được sử dụng để telnet tới Switch và điều hành hoạt động của Switch từ xa.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">+ VLAN voice:</span>&nbsp;là một VLAN có độ ưu tiên cao nhất vì Voice là một VLAN ứng dụng thời gian thực. (mạng nghẽn voice vẫn chạy được).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Xét 3 kiểu VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Từ 5 loại trên ta chia thành 3 kiểu</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Static VLAN: là VLAN tĩnh phân chia theo cổng. Cắm máy vào cổng nào thì nó sẽ theo VLAN đó.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Dynamic VLAN: quy định theo địa chỉ MAC, trên Switch gán MAC: 111111 là của PC1 thuộc VLAN 10 thì Pc1 có cắm vào bất kì cổng nào trên Switch nó vẫn thuộc VLAN 10. Để gán được MAC vào VLAN thì ta phải có một VMPS Server (VLAN Mangerment Policy Server)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Voice VLAN: chỉ dành riêng cho dữ liệu Voice.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chú ý: thông thường hay dùng Static VLAN.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4. VLAN Trunking</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. VLAN trunking trong công nghệ VLAN:</span>&nbsp;là đường truyền giữa 2 Switch được chia làm 2 loại:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ 1 là đường Access, cho phép các Frame thông thường đi qua</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ 2 là đường Trunking cho phép nhiều miền VLAN đi qua. Đường Trunk cho phép tối thiểu là 100Mbps trở lên.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cách thức hoạt động của đường Trunking</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Đường Trunking nhận diện frame: Khi frame đi vào đường Trunking sẽ được tạo đánh nhãn (taglink), còn khi ra khỏi thì Untrunking.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi Farme thuộc VLAN 2 đi vào đường Trunk sẽ được gán nhãn là số 2, khi ra khỏi đường Trunk nó thấy nhãn là số 2 sẽ tách ra và đưa vào VLAN 2.&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi máy các máy trao đổi thông tin thì các Frame này là nguyên bản. Các thông tin VLAN chỉ được gán thêm khi di chuyển qua đường Trunk.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Switch là Ethernet nên để đưa được thông tin vào trong Frame thì nó nhờ vào một trong 2 giao thức sau: là ISL và dot1Q</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISL là chạy mặc định trên Switch layer 3 (Inter Switch Link chỉ dành riêng cho thiết bị Cisco).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">dot1Q hộ trợ mặc định trên Switch layer 2 (IEEE 802.1Q).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Tìm hiểu về chuẩn dot1Q:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Xét 802.1Q header: ở chế độ bình thường</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Dest.Address</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Source Address</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Leg./Type</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Data</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">FCS</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Khi đi vào Trunking:</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Dest.Address</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Source Address</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Tag (new)</span></span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Len./Type</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Data</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">FCS</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Trong Tag có các thành phần dài 4byetes như sau:</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Type (16Bits, 0x8100)</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Priority (3Bits)</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Flag(1bit)</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">VLAN ID (12Bits)</span></span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- Chỉ trong dot1Q hỗ trợ Native VLAN. Native VLAN ở 2 đầu của đường Trunk phải thống nhất thông số vớ nhau. Bên SW1 là 1 thì bên SW2 cũng phải là 1.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Tìm hiểu về chuẩn ISL: Cisco ghép thêm 26 bytes và đầu header:</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">ISL Header 26 bytes</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Encapsulated Ethernet Frame</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">CRC 4bytes</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">- 26 bytes có các thành phần sau:</span></p><table style="text-align:left;"><tbody><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">DA</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Type</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">User</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">SA</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">LEN</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">AAA03</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">HSA</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">VLAN</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">BPDU</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">INDEX</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">RES</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Chú ý: đối với dòng 2900 thì nó hỗ trợ mặc định là 802.1Q còn dòng 3500 trở lên thì phải cấu hình rõ là ISL hay dot1Q</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Số hiệu VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chạy từ 0 tới 4095:&nbsp; riêng VLAN 0 và 4095 là không dùng</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">1 tới 1001 là VLAN thông thường</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">1002 tới 1005: dùng để giao tiếp với mạng kiểu cũ Tokenring</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">1006 tới 4094: dùng làm giải mở rộng sẽ cấu hình Transperent (học sau)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các VLAN mặc định sau không được sửa xóa: VLAN 1 là default, 1002 tới 1005. Ban đầu tất cả các cổng của Switch cisco mặc định là VLAN 1.&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">6. Cấu hình VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Đặt tên cho VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Vlan 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-vlan)# name IT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-vlan)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Gán cổng cho VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# interface&nbsp; range&nbsp; f0/1-5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if-range)#switchport access&nbsp; vlan 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Gán Trunking cho cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Đối với dòng 2900 nó hỗ trợ sẵn dot1Q nên không cần bật. Chỉ cần vào cổng bật Trunk lên là xong</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# interface f0/24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Đối với dòng 3500 trở lên phải vào bật dot1Q hay ISL nó mới chạy. Nếu không bật sẽ báo lỗi:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# interface f0/24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#switchport trunk encapsulation [dot1Q hay ISL]</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chú ý: thường gán cổng trunk chạy sang Switch khác hoặc về Router.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Gán Native VLAN vào VLAN quản lý</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Vlan 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-vlan)# name Managerment</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-vlan)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# interface f0/24 (phải có 2 lệnh)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#switchport access vlan 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#switchport native vlan 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)#interface vlan 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-if)#ip add 192.168.1.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">e. Cấu hình trên thực tế về VLAN1, VLAN NATIVE, VLAN DEFAULT trên cùn VLAN1 (đi làm cần phần này)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#interface vlan 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#ip add 11.0.0.254 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#interface vlan 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#ip add 11.0.0.253 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#interface f0/0.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-subif)#encapsulation dot1Q 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-subif)#ip add 11.0.0.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trên tất cả các thiết bị đều phải đặt mật khẩu</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#password abc</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#password abc</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trên PC dùng lệnh: telnet 11.0.0.x để truy cập từ xa</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">f. Các lệnh kiểm tra</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Show vlan</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Show vlan brief</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Show interfaces trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW(config)# Show mac-address-table</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">chú ý: file cấu hình VLAN đặt trong bộ nhớ flash là: vlan.dad. Không lưu trong file Running config</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">II. Thực hành</span></p><p style="margin-bottom:20px;"><span style="color:inherit;font-size:14px;font-weight:bold;">1. Cấu hình Vlan cơ bản</span><span style="font-weight:700;"><br></span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a.Yêu cầu chuẩn bị&nbsp;</span></p><p style="margin-bottom:20px;">1 router cisco 1941</p><p style="margin-bottom:20px;">1 PC</p><p style="margin-bottom:20px;">Dây cáp FastEthernet,Console</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b.Yêu cầu nội dung&nbsp;</span></p><p style="margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;">Cấu hình cơ bản cho Switch</p><p style="margin-bottom:20px;">Cấu hình trên các Interface</p><p style="margin-bottom:20px;">Kiểm tra kết nối giữa các thiết bị trong mạng</p><p style="text-align:center;"></p><p style="text-align:left;margin-bottom:20px;"><span style="color:inherit;"></span></p><p style="margin-bottom:20px;"><span><span style="font-weight:700;">c. Video hướng dẫn</span></span></p></div>
</div><div data-element-id="elm_nUsr7zpiBHuB7dt_LVqmmg" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_nUsr7zpiBHuB7dt_LVqmmg"].zpelem-video{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpvideo-container zpiframe-align-center zpiframe-mobile-align- zpiframe-tablet-align-"><iframe class="zpvideo " width="560" height="315" src="//www.youtube.com/embed/D_CttkYBKyo" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_4X47KnCJAlYquOWujKSmqg" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_4X47KnCJAlYquOWujKSmqg"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_4X47KnCJAlYquOWujKSmqg"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="margin-bottom:20px;"><span style="font-weight:700;">2.&nbsp;</span><span style="font-size:14px;color:inherit;font-weight:bold;">Cấu hình VLAN Trunking</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị&nbsp;</span></p><p style="margin-bottom:20px;">2 Switch cisco 2950-24</p><p style="margin-bottom:20px;">6 PC</p><p style="margin-bottom:20px;">Dây cáp FastEthernet</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung&nbsp;</span></p><p style="margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;">Cấu hình cơ bản cho Switch</p><p style="margin-bottom:20px;">Cấu hình trên các Interface</p><p style="margin-bottom:20px;">Cấu hình chia VLAN và gắn port trên Switch SW1 và SW2</p><p style="margin-bottom:20px;">Cấu hình trunk</p><p style="margin-bottom:20px;">Kiểm tra kết nối giữa các thiết bị trong mạng</p><p style="text-align:center;"></p><p><span style="color:inherit;"></span></p><p style="margin-bottom:20px;"><span><span style="font-weight:700;">c. Video hướng dẫn</span></span></p></div>
</div><div data-element-id="elm_mgqJaERzGClzFdIZMkrx_A" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_mgqJaERzGClzFdIZMkrx_A"].zpelem-video{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpvideo-container zpiframe-align-center zpiframe-mobile-align- zpiframe-tablet-align-"><iframe class="zpvideo " width="560" height="315" src="//www.youtube.com/embed/bqTBS3jjQJI" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_M1Vtg6NLfVYFI15vDd-ZYQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_M1Vtg6NLfVYFI15vDd-ZYQ"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_M1Vtg6NLfVYFI15vDd-ZYQ"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p><span style="font-weight:bold;font-size:14px;">3.&nbsp;</span><span style="font-size:14px;color:inherit;font-weight:bold;">Cấu hình hệ thống mạng, quản trị nhiều Switch trong một tòa nhà</span></p></div>
</div><div data-element-id="elm_M4p-pL0ra-WpUtsTYLoR5A" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_M4p-pL0ra-WpUtsTYLoR5A"].zpelem-video{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpvideo-container zpiframe-align-center zpiframe-mobile-align- zpiframe-tablet-align-"><iframe class="zpvideo " width="560" height="315" src="//www.youtube.com/embed/dpk4Mko_XjU" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_qZ-DPMG0d_6bm6bept89ow" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_qZ-DPMG0d_6bm6bept89ow"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_qZ-DPMG0d_6bm6bept89ow"].zpelem-text :is(h1,h2,h3,h4,h5,h6){ text-transform:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p><span><br></span></p><p><span><br></span></p><p><span>-----&amp;-----&amp;-----</span><br></p><p><span style="font-weight:bold;">Để quay về danh sách các bài phần Network các bạn chọn link sau</span></p><p><span style="color:inherit;"></span></p><p><a href="https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network" style="color:rgb(74, 43, 212);">https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network</a></p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 00:55:55 +0700</pubDate></item></channel></rss>