<?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/network/feed" rel="self" type="application/rss+xml"/><title>Đại học Không Giấy - Blog , NETWORK</title><description>Đại học Không Giấy - Blog , NETWORK</description><link>https://www.daihockhonggiay.com/blogs/network</link><lastBuildDate>Wed, 10 Sep 2025 07:26:51 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Danh sách các bài viết Network]]></title><link>https://www.daihockhonggiay.com/blogs/post/tong-hop-cac-bai-phan-network</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/gioi thieu mang may tinh-1.jpg"/>Danh mục bài Network giúp các tìm đọc và học tập thuận tiện hơn. Đồng thời để tự học bạn cứ học theo tuần tự các bài trong danh sách.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_5xLdJ8ULQQqbznvozNciLw" data-element-type="section" class="zpsection "><style type="text/css"> [data-element-id="elm_5xLdJ8ULQQqbznvozNciLw"].zpsection{ border-style:none; } </style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_jHNgJUn7SB6pjm_xdTrJRw" 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_weZr12L2S5-uvL3y18HMZg" 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_weZr12L2S5-uvL3y18HMZg"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_hTFuENv-Q5uecGSplNfWSQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_hTFuENv-Q5uecGSplNfWSQ"].zpelem-text { border-style:none; border-radius:1px; } </style><div class="zptext zptext-align-left " data-editor="true"><p><span style="font-weight:bold;">- Giới thiệu tổng quan về hệ thống mạng</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-mang-may-tinh" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(0, 0, 0);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-mang-may-tinh" rel="">/blogs/post/gioi-thieu-ve-mang-may-tinh</a></span></p><p><span style="font-weight:bold;">- Cấu hình tổng hợp hệ thống mạng&nbsp; </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-tong-hop-he-thong-mang" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-tong-hop-he-thong-mang" rel="">/blogs/post/cau-hinh-tong-hop-he-thong-mang</a></span></p><p><span style="font-weight:bold;">- Giới thiệu cơ bản về Router, đặt mật khẩu, khôi phục mật khẩu cho Router</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-co-ban-ve-router" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-co-ban-ve-router" rel="">/blogs/post/gioi-thieu-co-ban-ve-router</a></span></p><p><span style="font-weight:bold;">- Giới thiệu cơ bản về Switch Cisco&nbsp; </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/tong-hop-cau-hinh-switch-cisco" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/tong-hop-cau-hinh-switch-cisco" rel="">/blogs/post/tong-hop-cau-hinh-switch-cisco</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về nền tảng của truyền thông và giao thức TCP/IP </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/tcp-ip-hoat-dong-nhu-the-nao" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/tcp-ip-hoat-dong-nhu-the-nao" rel="">/blogs/post/tcp-ip-hoat-dong-nhu-the-nao</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về tầng Netwok Access </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-network-access" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-network-access" rel="">/blogs/post/gioi-thieu-ve-tang-network-access</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về công nghệ Ethernet</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-cong-nghe-ethernet" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-cong-nghe-ethernet" rel="">/blogs/post/gioi-thieu-ve-cong-nghe-ethernet</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về tầng Internet </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-network-layer" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-network-layer" rel="">/blogs/post/gioi-thieu-ve-network-layer</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về địa chỉ IP và VLSM </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dia-chi-ipv4" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dia-chi-ipv4" rel="">/blogs/post/gioi-thieu-ve-dia-chi-ipv4</a></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-chia-mang-con" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-chia-mang-con" rel="">/blogs/post/gioi-thieu-ve-chia-mang-con</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về tầng Transport </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-transport" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-transport" rel="">/blogs/post/gioi-thieu-ve-tang-transport</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về tầng Application </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-ung-dung" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-tang-ung-dung" rel="">/blogs/post/gioi-thieu-ve-tang-ung-dung</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về công nghệ VLAN </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-vlan" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-vlan" rel="">/blogs/post/gioi-thieu-ve-vlan</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về Inter-VLAN</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-inter-vlan" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-inter-vlan" rel="">/blogs/post/gioi-thieu-ve-inter-vlan</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về Scaling Networks</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-scaling-networks" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-scaling-networks" rel="">/blogs/post/gioi-thieu-ve-scaling-networks</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về VTP, STP </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/vtp" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/vtp" rel="">/blogs/post/vtp</a></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/lan-redundancy-stp" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/lan-redundancy-stp" rel="">/blogs/post/lan-redundancy-stp</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về công nghệ Etherchannel </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-ethernet-channel" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-ethernet-channel" rel="">/blogs/post/cong-nghe-ethernet-channel</a></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/etherchannel-fundamentals" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/etherchannel-fundamentals" rel="">/blogs/post/etherchannel-fundamentals</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về giao thức ACL </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/access-control-list" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/access-control-list" rel="">/blogs/post/access-control-list</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về giao thức NAT </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-giao-thuc-nat" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-giao-thuc-nat" rel="">/blogs/post/gioi-thieu-ve-giao-thuc-nat</a></span></p><p><span style="font-weight:bold;">- Tổng quan về định tuyến</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/tong-quan-ve-dinh-tuyen" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/tong-quan-ve-dinh-tuyen" rel="">/blogs/post/tong-quan-ve-dinh-tuyen</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về giao thức Định tuyến tĩnh </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dinh-tuyen-tinh" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dinh-tuyen-tinh" rel="">/blogs/post/gioi-thieu-ve-dinh-tuyen-tinh</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về giao thức định tuyến động: RIP, OSPF, EIGRP </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/giao-thuc-dinh-tuyen-rip-phien-ban-2" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/giao-thuc-dinh-tuyen-rip-phien-ban-2" rel="">/blogs/post/giao-thuc-dinh-tuyen-rip-phien-ban-2</a></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/link-state-ospf" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/link-state-ospf" rel="">/blogs/post/link-state-ospf</a></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-giao-thuc-eigrp" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(48, 4, 234);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-giao-thuc-eigrp" rel="">/blogs/post/gioi-thieu-ve-giao-thuc-eigrp</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về Redistribute</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/redistribute" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/redistribute" rel="">/blogs/post/redistribute</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về DHCP</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dhcp" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-dhcp" rel="">/blogs/post/gioi-thieu-ve-dhcp</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về VPN </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-mang-rieng-ao-vpn" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/gioi-thieu-ve-mang-rieng-ao-vpn" rel="">/blogs/post/gioi-thieu-ve-mang-rieng-ao-vpn</a></span></p><p><span style="font-weight:bold;">- Công nghệ mạng không dây</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-mang-khong-day" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-mang-khong-day" rel="">/blogs/post/cong-nghe-mang-khong-day</a></span></p><p><span style="font-weight:bold;">- Công nghệ WAN</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-wan" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cong-nghe-wan" rel="">/blogs/post/cong-nghe-wan</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về PPP </span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/ppp" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/ppp" rel="">/blogs/post/ppp</a></span></p><p><span style="font-weight:bold;">- Giới thiệu về Frame Relay</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/frame-relay" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/frame-relay" rel="">/blogs/post/frame-relay</a></span></p><p><span style="font-weight:bold;">- Route Map</span></p><p><span style="font-weight:bold;">&nbsp;&nbsp;</span><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-route-map-tren-switch-3750" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-route-map-tren-switch-3750" rel="">/blogs/post/cau-hinh-route-map-tren-switch-3750</a></span></p><p><span style="font-weight:bold;">- Qos</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/quality-of-service" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/quality-of-service" rel="">/blogs/post/quality-of-service</a></span></p><p><span style="font-weight:bold;">&nbsp;- Cấu hình Policy based Routing (PBR)</span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-policy-based-routing-pbr" rel="">https://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-policy-based-routing-pbr" rel="">/blogs/post/cau-hinh-policy-based-routing-pbr</a></span></p><p><span style="font-weight:bold;">- Cấu hình hệ thống mạng IPv6</span></p><p><span style="color:inherit;"></span></p><p>&nbsp;&nbsp;<a href="https://www.daihockhonggiay.com">h</a><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-he-thong-mang-ipv6" rel="">ttps://www.daihockhonggiay.com</a><span style="color:rgb(74, 43, 212);"><a href="https://www.daihockhonggiay.com/blogs/post/cau-hinh-he-thong-mang-ipv6" rel="">/blogs/post/cau-hinh-he-thong-mang-ipv6</a></span></p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 17 May 2019 16:49:40 +0700</pubDate></item><item><title><![CDATA[Cấu hình tổng hợp 3 giao thức RIPv2-OSPF-EIGRP]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-tong-hop-3-giao-thuc-ripv2-ospf-eigrp</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/15.jpg"/>Đây là bài tập xuyên suốt chương trình CCNA giúp các em tổng hợp các kiến thức. Những bạn mới học chỉ cần nhìn tài liệu và làm theo, sau này học lý thuyết sẽ được giải thích cụ thể theo từng mục tương ứng.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_7vmMELrGT6qqXUBe_lavKw" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_vOcpUFyKStalNWrIYrAegw" 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_kMyJqqMLRw-7iEuBPLto4w" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_Y3-30TQiTpyY3GwE32Svhg" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_Y3-30TQiTpyY3GwE32Svhg"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Sơ đồ hệ thống mạng kết nối 3 giao thức RIPv2, OSPF, EIGRP</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/20.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Cấu hình Ip cho PC và Server</span></span></p><table width="523" style="text-align:left;"><tbody><tr style="height:58px;"><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC5</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.1.10</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.5.10</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.1.1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.5.1</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 8.8.8.8</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 8.8.8.8</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC2</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC6</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.2.10</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.6.10</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.2.1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.6.1</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC3</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 8.8.8.8</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.3.10</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Server IP</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 8.8.8.8</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.3.1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">PC4</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:8.8.8.1</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 192.168.4.10</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 8.8.8.8</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:255.255.255.0</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Chỉnh DNS On</span></p></td></tr><tr><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:192.168.4.1</span></p></td><td><p style="margin-bottom:20px;"><span style="font-size:14px;">Name: google.com</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Cấu hình Switch 0</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản Switch</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)#hostname SW0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#ban motd &quot;XINCHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#vlan 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#name IT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#Vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#name Sale</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#interface range f0/1-10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#switchport access vlan 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#interface range f0/11-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#switchport access vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#int g0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0#wr (lưu lại cấu hình)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3. Cấu hình Router R1(Chưa cần đưa cổng WIC-2T)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname R1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#banner motd &quot;XINCHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình Sub interface (nhiều IP gateway trên một cổng)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/0.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#encapsulation dot1Q 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#ip address 192.168.1.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/0.20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#encapsulation dot1Q 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#ip address 192.168.2.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình IP cho cổng bên ngoài</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#ip address 10.0.0.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Cấu hình định tuyến động (RIPv2)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#router rip</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#version 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#network 10.0.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#no auto-summary</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#redistribute connected metric 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4. Cấu hình Router CORE (tắt công tắc đưa cổng NM-4E&nbsp; vào sau đó bật công tắc lên)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname CORE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#banner motd &quot;XIN CHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình IP cho các cổng và bật NAT trong cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip address 10.0.0.2 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip nat inside</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#interface s0/3/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip address 200.0.0.100 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#clock rate 64000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip nat outside</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#int e1/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip add 12.0.0.2 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip nat inside</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#int f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip nat inside</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ip add 11.0.0.2 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình đường định tuyến mặc định (Default Root)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#ip route 0.0.0.0 0.0.0.0 200.0.0.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Cấu hình định tuyến động (sử dụng RIPv2)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#router rip</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#version 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#network 10.0.0.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#no auto-summary</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#default-information originate</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute ospf 5 metirc 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute eigrp 10 metirc 1.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#exit</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 Access list và NAT</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#access-list 10 permit any</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#ip nat inside source list 10 interface s0/3/0 overload</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">f. Cấu hình định tuyến EIGRP</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#router eigrp 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#network 11.0.0.0 0.0.0.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#redistribute static</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute rip metric 100000 10 100 100 12000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute ospf 5 metric 100000 10 100 100 12000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">g. Cấu hình định tuyến OSPF</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#router ospf 5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#net 12.0.0.0 0.0.0.255 area 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#default-information originate</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute rip subnet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)# redistribute eigrp 10 subnet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Cấu hình Router ISP (tắt công tắc đưa cổng WIC-2T vào sau đó bật công tắc lên)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname ISP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#banner motd &quot;XIN CHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Đặt IP cho các cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#interface f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#ip address 8.8.8.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#interface s0/3/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#ip address 200.0.0.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP#wr</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 SW1</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;en</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch#conf t</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)#hostname SW1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#banner motd &quot;xin chao&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#vlan 30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-vlan)#name bai</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-vlan)#vlan 40</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-vlan)#name tap</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-vlan)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#interface range f0/1-10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#switchport access vlan 30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#interface range f0/11-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#switchport access vlan 40</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int g1/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">7. Cấu hình R3</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname R3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#banner motd &quot;XIN CHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình IP cho các cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-if)#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;">R3(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#interface f0/1.30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#encapsulation dot1Q 30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#ip address 192.168.3.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#interface f0/1.40</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#encapsulation dot1Q 40</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#ip add 192.168.4.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Bật định tuyến Eigrp</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config)#router eigrp 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-router)#network 11.0.0.0 0.0.0.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-router)#redistribute connected</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R3#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">8. Cấu hình SW2</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;en</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch#conf t</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)#hostname SW2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#passwordcisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#passwordcisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#banner mot</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#banner motd &quot;xin chao&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#vlan 50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-vlan)#name kiem</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-vlan)#vlan 60</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-vlan)#name tra</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-vlan)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#interface range f0/1-10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if-range)#switchport acc vlan 50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#interface range f0/11-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if-range)#switchport access vlan 60</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config)#int g1/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW2#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">9. Cấu hình R2</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch#conf t</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)#hostname R2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#line con 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)# passwordcisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)# passwordcisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#banner mot</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#banner motd &quot;thuong thoi&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình IP cho các cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#interface f0/0.50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#encapsulation dot1Q 50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#ip add 192.168.5.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#interface f0/0.60</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#encapsulation dot1Q 60</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#ip add 192.168.6.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#ip add 12.0.0.1 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình định tuyến OSPF</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#router ospf 5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-router)#network 12.0.0.0 0.0.0.255 area 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-router)#redistribute connected subnets</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">10. Một số lệnh chú ý</span></span></p><p style="text-align:left;"><span>Show ip route - Kiểm tra bảng định tuyến nhận đủ hay chưa</span></p><p style="text-align:left;"><span>Show run – Kiểm tra cấu hình</span></p><p style="text-align:left;"><span>Show vlan – Kiểm tra VLAN</span></p><p style="text-align:left;"><span>Show ip nat translations – Kiểm tra NAT đã thành công chưa</span></p><p style="text-align:left;"><span></span></p><p style="text-align:left;"><span><span style="color:inherit;font-size:14px;"><br></span></span></p><p style="text-align:left;"><span><span style="color:inherit;font-size:14px;">-----&amp;-----&amp;-----</span><br></span></p><p style="text-align:left;"><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 style="text-align:left;"><a href="https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network" style="text-decoration-line:underline;color:rgb(74, 43, 212);">https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network</a><br></p><ul></ul></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 04:53:54 +0700</pubDate></item><item><title><![CDATA[Giới thiệu về mạng riêng ảo VPN]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-tong-hop-3-giao-thuc-ripv2-ospf-eigrp1</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/Network/1/24.jpg"/>Đây là bài tập xuyên suốt chương trình CCNA giúp các em tổng hợp các kiến thức. Những bạn mới học chỉ cần nhìn tài liệu và làm theo, sau này học lý thuyết sẽ được giải thích cụ thể theo từng mục tương ứng.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_Jka3j0-oQo670m0AjoJImA" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_IIS-K5bfQTyD5jnlYFJ-QQ" 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_ZKBxki7KQcqIixPWXMq8Ag" 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_ZKBxki7KQcqIixPWXMq8Ag"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_B_gUcVU9QBmJrkwjYc3d0w" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_B_gUcVU9QBmJrkwjYc3d0w"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">I. Tổng quan</span></p><p style="margin-bottom:7.5pt;"><strong><span style="font-size:14px;">1. Giới thiệu mạng riêng ảo VPN</span></strong></p><p style="text-align:justify;margin-bottom:7.5pt;"><span style="font-size:14px;">Virtual Private Network (mạng riêng ảo) thường được gọi tắt là VPN là một kỹ thuật đã xuất hiện từ lâu, tuy nhiên nó thực sự bùng nổ và trở nên cạnh tranh khi xuất hiện công nghệ mạng thông minh với đà phát triển mạnh mẽ của Internet. Trong thực tế, người ta thường nói tới hai khái niệm VPN đó là: mạng riêng ảo kiểu tin tưởng (Trusted VPN) và mạng riêng ảo an toàn (Secure VPN).</span></p><p style="text-align:justify;margin-bottom:7.5pt;"><span style="font-size:14px;">Mạng riêng ảo kiểu tin tưởng được xem như một số mạch thuê của một nhà cung cấp dịch vụ viễn thông. Mỗi mạch thuê riêng hoạt động như một đường dây trong một mạng cục bộ. Tính riêng tư của trusted VPN thể hiện ở chỗ nhà cung cấp dịch vụ sẽ đảm bảo không có một ai sử dụng cùng mạch thuê riêng đó. Khách hàng của mạng riêng ảo loại này tin tưởng vào nhà cung cấp dịch vụ để duy trì tính toàn vẹn và bảo mật của dữ liệu truyền trên mạng. Các mạng riêng xây dựng trên các đường dây thuê thuộc dạng “trusted VPN”. Mạng riêng ảo an toàn là các mạng riêng ảo có sử dụng mật mã để bảo mật dữ liệu.</span></p><p style="text-align:justify;margin-bottom:7.5pt;"><span style="font-size:14px;">Dữ liệu ở đầu ra của một mạng được mật mã rồi chuyển vào mạng công cộng (ví dụ: mạng Internet) như các dữ liệu khác để truyền tới đích và sau đó được giải mã dữ liệu tại phía thu. Dữ liệu đã mật mã có thể coi như được truyền trong một đường hầm (tunnel) bảo mật từ nguồn tới đích. Cho dù một kẻ tấn công có thể nhìn thấy dữ liệu đó trên đường truyền thì cũng không có khả năng đọc được vì dữ liệu đã được mật mã. Mạng riêng ảo xây dựng dựa trên Internet là mạng riêng ảo kiểu an toàn, sử dụng cơ sở hạ tầng mở và phân tán của Internet cho việc truyền dữ liệu giữa các site của các công ty. Trọng tâm chính của đồ án tốt nghiệp này bàn về VPN dựa trên Internet. Khi nói đến mạng riêng ảo VPN phải hiểu là mạng riêng ảo dựa trên Internet.</span></p><p style="margin-bottom:7.5pt;"><strong><span style="font-size:14px;">2. Định nghĩa VPN</span></strong></p><p style="margin-bottom:7.5pt;"><span style="font-size:14px;">Mạng riêng ảo VPN được định nghĩa là một kết nối mạng triển khai trên cơ sở hạ tầng mạng công cộng (như mạng Internet) với các chính sách quản lý và bảo mật giống như mạng cục bộ.</span></p><p style="margin-bottom:7.5pt;"><span style="font-size:14px;"><br></span></p><p align="center" style="margin-bottom:7.5pt;text-align:center;"><img src="/Network/1/24.jpg"><br></p><p align="center" style="margin-bottom:7.5pt;text-align:center;"><br></p><p style="margin-bottom:7.5pt;"><strong><i><span style="font-size:14px;">Virtual</span></i></strong><span style="font-size:14px;">&nbsp;- nghĩa là kết nối là động, không được gắn cứng và tồn tại như một kết nối khi lưu lượng mạng chuyển qua. Kết nối này có thể thay đổi và thích ứng với nhiều môi trường khác nhau và có khả năng chịu đựng những khuyết điểm của mạng Internet. Khi có yêu cầu kết nối thì nó được thiết lập và duy trì bất chấp cơ sở hạ tầng mạng giữa những điểm đầu cuối.</span></p><p style="margin-bottom:7.5pt;"><strong><i><span style="font-size:14px;">Private</span></i></strong><span style="font-size:14px;">&nbsp;- nghĩa là dữ liệu truyền luôn luôn được giữ bí mật và chỉ có thể bị truy cập bởi những nguời sử dụng được trao quyền. Điều này rất quan trọng bởi vì giao thức Internet ban đầu TCP/IP- không được thiết kế để cung cấp các mức độ bảo mật. Do đó, bảo mật sẽ được cung cấp bằng cách thêm phần mềm hay phần cứng VPN.</span></p><p style="margin-bottom:7.5pt;"><strong><i><span style="font-size:14px;">Network</span></i></strong><span style="font-size:14px;">&nbsp;- là thực thể hạ tầng mạng giữa những người sử dụng đầu cuối, những trạm hay những node để mang dữ liệu. Sử dụng tính riêng tư, công cộng, dây dẫn, vô tuyến, Internet hay bất kỳ tài nguyên mạng dành riêng khác sẵn có để tạo nền mạng.</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="color:inherit;font-size:14px;"></span></p><p style="margin-bottom:7.5pt;"><span style="font-size:14px;">Khái niệm mạng riêng ảo VPN không phải là khái niệm mới, chúng đã từng được sử dụng trong các mạng điện thoại trước đây nhưng do một số hạn chế mà công nghệ VPN chưa có được sức mạnh và khả năng cạnh tranh lớn. Trong thời gian gần đây, do sự phát triển của mạng thông minh, cơ sở hạ tầng mạng IP đã làm cho VPN thực sự có tính mới mẻ. VPN cho phép thiết lập các kết nối riêng với những người dùng ở xa, các văn phòng chi nhánh của công ty và đối tác của công ty đang sử dụng chung một mạng công cộng.</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">II. Thực hành</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">1.&nbsp;</span><span style="color:inherit;text-align:center;font-weight:bold;">Cấu hình VPN IPv4</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">a. Yêu cầu chuẩn bị</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">3 Router Cisco 1941</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">2 Catalyst Switch Cisco 2690</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">2 PC</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Dây cáp</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">b. Yêu cầu nội dung</span></p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Cấu hình cơ bản cho Router</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Cấu hình Interface trên các Router</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Cấu hình GRE VPN Tunnel</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Cấu hình giao thức OSPF trên các Router</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);">Kiểm tra kết nối</p><p style="margin-bottom:20px;color:rgb(34, 34, 34);background-color:rgb(255, 255, 255);"><span style="font-weight:700;">c. Video hướng dẫn</span></p></div>
</div><div data-element-id="elm_iIwlCd4dQwFxGr3nVzTCvQ" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_iIwlCd4dQwFxGr3nVzTCvQ"].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/yWaV1qZU-mo" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_YIS2JkrfkA9Ruq-uaUTlWA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_YIS2JkrfkA9Ruq-uaUTlWA"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_YIS2JkrfkA9Ruq-uaUTlWA"].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 VPN Site to Site IPv6</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị</span></p><p style="margin-bottom:20px;">3 Router Cisco 2691</p><p style="margin-bottom:20px;">2 PC</p><p style="margin-bottom:20px;">Dây cáp Serial&nbsp;</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung</span></p><p style="margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="margin-bottom:20px;">Cấu hình cơ bản cho Router</p><p style="margin-bottom:20px;">Cấu hình địa chỉ IPv6</p><p style="margin-bottom:20px;">Cấu hình VPN Site to Site lần lượt trên Router HN và HCM</p><p style="margin-bottom:20px;">Cấu hình Static Route giữa LAN HN, LAN HCM với IPv6 Tunnel</p><p style="margin-bottom:20px;">Kiểm tra cấu hình trên Router HN, HCM</p><p style="margin-bottom:20px;">Kiểm tra kết nối</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_WB1m9LzM7AjUm78sXBDUEw" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_WB1m9LzM7AjUm78sXBDUEw"].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/UYZac0IA5ig" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_NsM7mktGtrdRbKdGzvRuHA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_NsM7mktGtrdRbKdGzvRuHA"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_NsM7mktGtrdRbKdGzvRuHA"].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>-----&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 04:53:54 +0700</pubDate></item><item><title><![CDATA[ Cấu hình hệ thống mạng IPv6]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-he-thong-mang-ipv6</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/ip.jpg"/>Để làm quen với IPv các em luyện trước bài này, IPv6 sẽ ứng dụng rất mạnh trong tương lai]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_VFiHc_3UTP6nJAFMkRAh_w" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_vxGuo0H8T2q7--KXzOwykA" 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_tf3r-Z3dQBeKXn0tDDRVCQ" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_d7IzoSa_QIeuvn3HeqxqXw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_d7IzoSa_QIeuvn3HeqxqXw"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Sơ đồ hệ thống mạng giả lập chạy IPv6</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/18.jpg" style="width:774.09px;height:278px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Cấu hình IP cho 2 PC và Server</span></span></p><table width="624" style="text-align:left;"><tbody><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">PC0</span></span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Server IP</span></span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 2000::A</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 2008::8</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:96</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:96</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:2000::1</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway: 2008::1</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 2008::8</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 2008::8</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">PC1</span></span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Chỉnh DNS On</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">IP Address: 2001::B</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Resource RecodeName: google.com</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Subnet Mask:96</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Address: 2008::8</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Default Getway:2001::1</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">Chọn Add</span></p></td></tr><tr><td style="width:329px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">DNS Server: 2008::8</span></p></td><td style="width:279px;"><p style="margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Cấu hình Switch&nbsp;</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản Switch</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)#hostname SW0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#ban motd &quot;XINCHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình VLAN</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#vlan 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#name IT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#Vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#name Sale</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-vlan)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#interface range f0/1-10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#switchport access vlan 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#interface range f0/11-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#switchport access vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config)#int f1/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0(config-if)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW0#wr (lưu lại cấu hình)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3. Cấu hình Router R1 (Chưa cần đưa cổng WIC-2T)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Continue with configuration dialog? [yes/no]: n</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname R1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#banner motd &quot;XINCHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình Sub interface (nhiều IP gateway trên một cổng)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#<span style="font-weight:700;">ipv6 unicast-routing</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/0.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#encapsulation dot1Q 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#ip address 2000::1/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/0.20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#encapsulation dot1Q 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#ip address 2001::1/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình định tuyến động (RIPng)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#ipv6 router rip R1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-rtr)#redistribute connected metric 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-router)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1#wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Cấu hình IP cho cổng bên ngoài</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#ip address 2002::1/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# ipv6 rip R1 enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4. Cấu hình Router CORE</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Continue with configuration dialog? [yes/no]: n</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname CORE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#banner motd &quot;XIN CHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#<span style="font-weight:700;">ipv6 unicast-routing</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình định tuyến động (RIPng)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE (config)#ipv6 router rip CORE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE (config-router)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE #wr</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. cấu hình IP cho các cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#int f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ipv6 address 2002::2/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ipv6 rip CORE enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)# ipv6 rip CORE default-information originate</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#ipv6 address 2006::A/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Cấu hình đường định tuyến mặc định (Default Root)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">CORE(config)#ipv6 route ::/0 2006::1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Cấu hình Router ISP</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. cấu hình cơ bản</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Continue with configuration dialog? [yes/no]: n</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router&gt;enable</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router#configure terminal</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Router(config)#hostname ISP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#line console 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#line vty 0 4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#password cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#login</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-line)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#banner motd &quot;XIN CHAO&quot;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#enable secret cisco</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">ISP(config)# ipv6 unicast-routing</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. đặt IP cho các cổng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#interface f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#ipv6 address 2006::1/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#interface f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#no shutdown</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)# ipv6 address 2008::1/96</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config-if)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình đường định tuyến tĩnh</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#ipv6 route 2000::/96 2006::A</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#ipv6 route 2001::/96 2006::A</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP(config)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ISP#wr</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Dùng lệnh Show vlan để kiểm tra vlan trên Switch</span></li><li style="text-align:left;"><span style="font-size:14px;">Dùng lệnh Show run để xem những cấu hình sai</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">-----&amp;-----&amp;-----</span></p><p><span style="color:inherit;font-size:14px;"></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Video cấu hình IPv6</span></p></div>
</div><div data-element-id="elm_LsqReOyesuNEJcwKtAb-eA" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_LsqReOyesuNEJcwKtAb-eA"].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/m2f67Zyp4RY" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_b-nOYBVKo7kW_OoAqfaIBw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_b-nOYBVKo7kW_OoAqfaIBw"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_b-nOYBVKo7kW_OoAqfaIBw"].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>-----&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 02:34:22 +0700</pubDate></item><item><title><![CDATA[TCP/IP hoạt động như thế nào?]]></title><link>https://www.daihockhonggiay.com/blogs/post/tcp-ip-hoat-dong-nhu-the-nao</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/tcp.jpg"/>Đây là bài giải thích quá trình truyền tin bằng giao thức TCP/IP. Qua các bước truyền chúng ta sẽ hình dung được quá trình máy tính Client truy cập ra Google, Facebook, Youtube.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_ZCSfPCtLQveD_D21HyqxKg" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_iCMcTD_NRE2vkITz_0aDfA" 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_84-LCfr_TPe8K9Dwwpx-Jw" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_-XrBie8rTzqST0Gy0CC8aA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_-XrBie8rTzqST0Gy0CC8aA"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Nền tảng của truyền thông</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các máy tính và các thiết bị trong mạng truyền thông được với nhau thì hệ thống mạng phải có phần cứng và phần mềm. Từ phần cứng và phần mềm ta chia thành 4 thành phần:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Thiết bị đầu cuối: máy tính, laptop, Server, điện thoại…. Các thiết bị này đều phải cài đặt Hệ điều hành hoặc phần mềm.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Đường truyền: dây, Switch, Router, Modem được kết nối lại với nhau. Để kết nối gần ta dùng dây cáp đồng, kết nối xa thì dùng dây cáp quang hoặc dùng sóng vệ tinh.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Thông tin: nội dung website, thư điện tử, nội dung chat... Dữ liệu này này sẽ được chia thành các mảnh để đưa vào đường truyền gọi là Segment. Để trao đổi được thông tin thì phải có người gửi và người nhận.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giao thức (rule): cho phép truy cập tới dịch vụ gì, được đi theo đường nào, dữ liệu được tải ra sao, giao thức nào được áp dụng là gì. Vd: truyền theo Web phải sử dụng theo port 80 hoặc 443.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Các bước truyền thông qua mạng:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Xét trường hợp cụ thể là truy cập vào trang Google.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 1.</span>&nbsp;mở trình duyệt IE hoặc Firefox trên máy tính gõ :&nbsp;<a href="http://google.com/">http://google.com</a>. Do IE là phần mềm sử dụng giao thức http, https (port 80, 443). Bộ giao thức này nằm ở tầng Application. Ai muốn viết phần mềm hoặc lập trình web thì phải tuân thủ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 2.</span>&nbsp;yêu cầu được nhập vào là ký tự trên bàn phím, máy tính sẽ chuyển đổi ra tín hiệu nhị phân (bit 0, 1) để cho máy tính hiểu. Để chuyển đổi được thì máy tính có hẳn riêng một bộ phận làm phiên dịch là tầng Presentation.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 3.</span>&nbsp;Trước yêu cầu được truyền đi máy tính sẽ có một bộ phận đàm phán phiên để truyền gọi là Session. Session ở đây nó sẽ tạo ra một kết nối trực tiếp tới Server google, được Server google đồng ý nó mới truyền yêu cầu. Sau khi kết thúc phiên nó sẽ đóng kết nối.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 4.</span>&nbsp;Để yêu cầu đi được (yêu cầu là dữ liệu) thì phải có bộ phận đóng gói dữ liệu đó là tầng Transport. Transport sẽ nhận dữ liệu từ Port 80 của giao thức http đi từ tầng Application xuống rồi đóng thêm giao thức để truyền thông là TCP hay UDP để truyền. Giao thức TCP ở tầng Transport có nhiệm vụ băm nhỏ dữ liệu ra thành các Segment (data và header). Trong header có cổng nguồn và cổng đích. Các Segment sẽ chuyển xuống tầng Network để xử lý (dữ liệu từ tầng này trở lên là độc lập với đường truyền).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 5.</span>&nbsp;Tầng Network sẽ sử dụng IPv4 và IPv6 nhưng chủ yếu là IPv4. Khi các Segment đưa xuống sẽ đóng vào gói Data lớn hơn. Trong này sẽ có IP nguồn và IP đích (địa chỉ máy gửi là máy mình và địa chỉ máy nhận là địa chỉ Server Google). Sau đó sẽ đưa xống bên dưới là tầng Data Link.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 6.</span>&nbsp;Data link đóng vào địa chỉ MAC ( MAC nguồn và MAC đích). MAC của máy PC1 và MAC cổng Gateway. Data link sẽ đóng vào đầu là Header và cuối là Trailer. Sau đó đưa xuống đường vật lí (physical).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 7.&nbsp;</span>Đường vật lí là tín hiệu điện 0,1 được gửi đi (tín hiệu điện này khác với tín hiệu điện dữ liệu)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 8.&nbsp;</span>Sau khi gửi ra Router thì nó sẽ nhận các tín hiệu và đóng gói rồi phân tích địa chỉ MAC. Router sẽ xem địa chỉ MAC đích là ai nếu đúng nó sẽ xác định để xử lý. Nếu đúng nó tách ra và đưa lên tầng Network để xác định địa chỉ IP của đích tới. Sau khi xác định xong sẽ đóng gói lại và chuyển ra cổng bên ngoài. Router sẽ sử dụng bảng định tuyến để gửi ra đúng cổng cần chuyển. Tương tự các thiết bị Router kế tiếp sẽ nhận và gửi đi sau đó gửi tới đích là Server Google.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 9.</span>&nbsp;Sau khi xử lý Server sẽ gửi lại dữ liệu yêu cầu vào đường truyền.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 10.</span>&nbsp;Sau khi dữ liệu tới đích nó sẽ gửi lên cửa sổ IE và kết thúc quá trình truyền thông.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3. Cách thức làm việc của mạng LAN, WAN, Internet trong truyền thông:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trong mạng LAN: Các PC, Switch, Router giao tiếp với nhau bằng địa chỉ MAC.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Dữ liệu từ mạng LAN đi ra ngoài internet phải thông qua Modem hoặc Router.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Từ Router ở công ty sẽ gửi tới router của nhà cung cấp dịch vụ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các nhà cung cấp dịch vụ sẽ liên kết Router lại với nhau để chuyển đi quốc tế.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trên Các Router có bảng định tuyến để định đúng đường đi.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4 .Tìm hiểu về giao thức (Protocol) trong truyền thông</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Để hệ thống mạng truyền thông được chúng ta phải dùng và tuân thủ theo giao thức TCP/IP. Giao thức TCP/IP có 4 tầng: Application, Transport, Internet, Network Access</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giao thức dùng để định dạng cấu trúc của gói tin. Gói tin đi theo Web thì phải theo định dạng của Web, Mail định dạng theo Mail... Do đó trên tầng ứng dụng có thể dùng cùng lúc nhiều dịch vụ mà không sợ xung đột nhau.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cho phép truy cập tới đâu: thông qua giao thức chúng ta có thể điều hướng người dùng truy cập tới Server trong công ty hay truy cập ra Server bên ngoài internet. Truy cập tới dịch vụ này hay tới dịch vụ khác.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Được tải những phần dữ liệu nào: trong hệ thống có nhiều phòng ban, dựa vào giao thức ta có thể phân quyền truy cập tài nguyên. Người dùng có thể copy dữ liệu trên phòng ban của mình hoặc cả phòng ban khác.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cho phép truyền hoặc tải bao nhiêu dữ liệu qua đường truyền: đường truyền là 100Mbps/s chúng ta có thể giới hạn tải xuống 20Mbps hoặc 50Mbps.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Tại sao phải phân lớp? Mô hình OSI là gì?</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Mô hình OSI là:</span>&nbsp;Open System Interconnection, tạm dịch là Mô hình tham chiếu kết nối các hệ thống mở, là một mô hình phân lớp nổi tiếng. Được phát thảo vào năm 1971 và hoàn thiện vào năm 1984. Mô hình này chia thành 7 lớp: Application, Presentation, Session, Transport, Network, Data link, Physical.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/19.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Application:</span>&nbsp;Tầng ứng dụng là tầng gần với người sử dụng nhất. Nó cung cấp phương tiện cho người dùng truy nhập các thông tin và dữ liệu trên mạng thông qua chương trình ứng dụng. Tầng này là giao diện chính để người dùng tương tác với chương trình ứng dụng. Một số ví dụ về các ứng dụng trong tầng này bao gồm: Web, Mail, FTP, Telnet...</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Presentation:</span>&nbsp;Tầng trình diễn nó thực hiện các tác vụ như chuyển đổi dữ liệu, mã hóa dữ liệu, nén dữ liệu. Chẳng hạn: chuyển đổi tệp văn bản sang mã ASCII hay ngược lại. Presentation sẽ chuyển đổi dữ liệu ra tín hiệu nhị phân (bit 0, 1) để cho máy tính hiểu rồi chuyển lại để người dùng xem được.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Session:</span>&nbsp;Tầng phiên kiểm soát các (phiên) hội thoại giữa các máy tính. Tầng này thiết lập, quản lý và kết thúc các kết nối giữa trình ứng dụng trong mạng và trình ứng dụng ở xa. Mô hình OSI cho phép tầng này kết nối hoặc ngắt các phiên giao dịch và trách nhiệm kiểm tra và phục hồi phiên.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Transport:</span>&nbsp;là tầng quản lý kết nối đầu cuối. Nó không quan tâm tới đường đi thế nào vì có các tầng Network, Data link, Physical làm nhiệm vụ. Ở đây nó chỉ quan tâm tới dữ liệu của người dùng truyền thông thế nào. Đảm bảo dữ liệu truyền an toàn. Tầng Transprot nó xem 2 máy sau khi thiết lập là làm việc trực tiếp với nhau kể cả khoảng cách xa như ở Việt Nam và Mỹ. Tầng này là nơi các thông điệp được chuyển sang thành các gói tin TCP hoặc UDP. Ở tầng Transport này địa chỉ được đánh là address ports, thông qua address ports để phân biệt được ứng dụng trao đổi.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Network:</span>&nbsp;dùng để định danh địa chỉ nguồn và địa chỉ đích. Chọn ra đường đi tốt nhất tới đích dựa vào giao thức định tuyến. Chúng sử dụng địa chỉ IP để định địa chỉ. Network sẽ lấy dữ liệu từ tầng Data link để kiểm tra địa chỉ, nếu khi tách ra đúng địa chỉ của nó sẽ chuyển lên tầng bên trên để xử lý. Khi dữ liệu từ bên trên chuyển xuống nó sẽ đóng IP của máy mình và IP máy đích rồi chuyển xuống tầng Data link.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Data link:</span>&nbsp;là lớp liên kết dữ liệu. Dùng để điều khiển việc đưa dữ liệu vào đường truyền và lấy dữ liệu từ đường truyền chuyển lên bên trên là tầng Network xử lý. Data link cung cấp tính năng dò lỗi dữ liệu khi truyền, đảm bảo dữ liệu truyền đến đích phải đủ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Physical:</span>&nbsp;Chức năng là truyền một dòng bit qua đường truyền vật lý. Nó định nghĩa ra về đường truyền, tín hiệu truyền, thiết bị cần áp dụng. Giữa PC và Switch phải đấu nối thế nào, theo cáp đồng hay cáp quang, cự ly truyền là bao xa. Nói chung đường truyền vật lý liên quan tới cơ, điện, quang để đưa bit nhị phân đi tới đích.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Tại sao phải phân lớp:</span>&nbsp;để truyền thông được chúng ta phải xây dựng một hệ thống mạng. Trong hệ thống mạng bao gôm thiết bị vật lý, đường truyền, dữ liệu và các giao thức. Một công ty không thể sản xuất và thiết kế được hết bấy nhiêu chức năng, nên người ta phải phân ra các lớp công việc để phát triển phù hợp.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các ưu điểm khi phân lớp:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giảm tải độ phức tạp của hệ thống khi truyền dữ liệu. Khi phân lớp người ta không phải sản xuất từ trên xuống dưới mà chỉ cần làm một phần công việc. Sản phẩm sẽ tốt hơn, tương thích với nhiều thành phần của các dòng sản phẩm khác nhau.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trong mô hình OSI người ta phân ra thành các lớp chuẩn. Người sản xuất phải dựa vào chuẩn đó để xây dựng và phát triển. Do đó các lớp sẽ giao tiếp được với nhau. Từ đó tạo ra sự chuẩn hóa của các dòng sản phẩm</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Do có sự chuẩn hóa về sản phẩm nên nó sẽ tương thích về công nghệ. Ngày này máy IBM có thể truyền tới máy HP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Thúc đẩy kỹ thuật module hóa: ai mạnh về lớp nào sẽ sản suất chuyên môn lớp đó.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Thúc đẩy phát triển của công nghệ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Người dùng dễ học hơn: không phải học hết cả 7 lớp một lúc mà học lần lượt đều được.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">6. Địa chỉ mạng là:</span>&nbsp;trong hệ thống mạng chúng ta có 2 loại địa chỉ là địa chỉ IP và địa chỉ MAC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Địa chỉ IP(Internet Protocol): là chỉ của một máy tính khi tham gia vào mạng nhằm giúp cho các máy tính có thể chuyển thông tin cho nhau một cách chính xác, tránh thất lạc. Có thể coi địa chỉ IP trong mạng máy tính giống như địa chỉ nhà của bạn để nhân viên bưu điện có thể đưa thư đúng cho bạn chứ không phải một người nào khác.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chú ý: địa chỉ IP khác với giao thức IP.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Địa chỉ MAC (Media Access Control): là địa chỉ vật lý của thiết bị. Mỗi thiết bị MAC là duy nhất. Cho phép các trạm cuối (terminal) hoặc các nút mạng liên lạc với nhau trong một mạng, điển hình là mạng LAN.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chú ý: địa chỉ MAC khác với giao thức MAC.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">-----&amp;-----&amp;-----</span></p><p><span style="color:inherit;font-size:14px;"></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Video tham khảo</span></p></div>
</div><div data-element-id="elm_o0RvkgoiGWP4iDxiZ-mdDw" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_o0RvkgoiGWP4iDxiZ-mdDw"].zpelem-video{ border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } </style><div class="zpvideo-container zpiframe-align-center zpiframe-mobile-align- zpiframe-tablet-align-"><iframe class="zpvideo " width="560" height="315" src="//www.youtube.com/embed/RvIYPoeRNgU" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_-Knun60pwT8ueAvgF59nyw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_-Knun60pwT8ueAvgF59nyw"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_-Knun60pwT8ueAvgF59nyw"].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>-----&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 02:23:47 +0700</pubDate></item><item><title><![CDATA[ Cấu hình Policy based Routing (PBR)]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-policy-based-routing-pbr</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/pbr.jpg"/>Bài viết này sẽ hướng dẫn các bạn cấu hình Policy based Routing]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_xWqLVHq9TjGQg3uTQUyqmA" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_0pnVpUBLRXOYtuq8QGp2vQ" 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_VQfA0lb-RSucCEyoWRysKg" 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_VQfA0lb-RSucCEyoWRysKg"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_rTuUEjfFSPqDj0LwDoWODQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_rTuUEjfFSPqDj0LwDoWODQ"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-center " data-editor="true"><p style="text-align:left;"><span style="font-weight:700;">I. Nội dung</span></p><p style="text-align:left;"><span style="font-size:14px;">PBR là 1 giải pháp giúp người quản trị mạng có thể điều khiển đường đi của gói tin bằng cách quy định các chính sách. Từ đó giúp cho người quản trị có thể phân luồng dữ liệu tốt hơn trong quá trình hoạt động. PBR có thể chuyển tiếp gói tin mà không cần quan tâm tới địa chỉ mạng đích của gói tin, thậm chí thông tin về đường đi đến mạng đích đó không có trong bảng định tuyến.</span></p><p style="text-align:left;"><span style="font-size:14px;">Khi sử dụng PBR quá trình chuyển tiếp gói tin theo ip đích sẽ bị chèn bởi chính sách định tuyến của PBR. Điều kiện của PBR sẽ được kiểm tra trước so với bảng định tuyến, nếu gói tin đáp ứng thì thực thi chính sách của PBR, trong trường hợp gói tin đó không đáp ứng, gói tin sẽ được định tuyến dựa trên bảng định tuyến của router như bình thường.</span></p><p style="text-align:left;"><span style="color:inherit;font-size:14px;"></span></p><p style="text-align:left;"><span style="font-size:14px;">PBR lựa chọn tuyến đường đi cho gói tin bằng cách sử dụng một bộ lọc với các điều kiện được thiếp lập thông qua Route map. Một route map được định nghĩa bằng các câu lệnh match để thiết lập điều kiện sau đó thực thi các chính sách bằng câu lệnh set. Sau khi tạo ra route map, nó sẽ được gán với 1 interface của router, và bất cứ gói tin nào đi vào interce đó đều sẽ được kiểm tra và so sánh với các điều kiện của route map.</span></p><p><span></span></p><h1 style="margin-bottom:10px;"><div style="text-align:left;"><span style="font-size:14px;color:rgb(0, 0, 0);font-weight:bold;">II. Cấu hình</span></div><p style="margin-bottom:20px;"><img src="/Network/5/17.jpg"><br></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;color:rgb(0, 0, 0);">Ví dụ: &nbsp;PC1 PC3 đi ra Internet qua đường R2 -&gt; ISP-Viettel và PC2 PC4 đi ra Internet bằng đường R3 -&gt; ISP-VNPT</span></div><span style="font-size:14px;"><span style="color:rgb(0, 0, 0);"><div style="text-align:left;">Khi R2 ISP-Viettel đứt PC1 PC3 đi Internet bằng đường R3 -&gt; ISP-VNPT, khi phục hồi, sẽ đi như cũ.</div></span><p></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Khi R3 ISP-VNPT đứt PC2 PC4 đi Internet bằng đường R2 -&gt; ISP-Viettel, khi phục hồi, sẽ đi như cũ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Các bước làm:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Đặt địa chỉ ip cho các PC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1 cấu hình sub interface cho vlan 10, vlan 20, địa chỉ ip cho cổng</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Cấu hình static route cho R1: Định tuyến đến R2, R3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">172.16.16.2: R2 f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">172.16.17.2: R3 f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.16.2 250</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#ip route 0.0.0.0 0.0.0.0 172.16.17.2 254</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Chỉ số 250, 254 là distance metric, là khoảng cách từ router hiện tại đến IP đích, giá trị có ý nghĩa so sánh, 250 nhỏ hơn vậy R1 sẽ ưu tiên đi theo ISP Viettel trước.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R2 cấu hình địa chỉ ip cho cổng, cấu hình nat, access-list</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Cấu hình static route cho R2: Định tuyến đến ISP Viettel và về R1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">172.16.16.1: R1 f0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R2(config)#ip route 0.0.0.0 0.0.0.0 192.168.43.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R2(config)#ip route 10.123.10.0 255.255.255.0 172.16.16.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R2(config)#ip route 10.123.20.0 255.255.255.0 172.16.16.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R3 cấu hình địa chỉ ip cho cổng, cấu hình nat, access-list</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Cấu hình static route cho R3: Định tuyến đến ISP VNPT và về R1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">172.16.17.1: R1 f1/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R3(config)#ip route 10.123.10.0 255.255.255.0 172.16.17.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R3(config)#ip route 10.123.20.0 255.255.255.0 172.16.17.1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Cấu hình để PC2, PC4 đi internet theo ISP-VNPT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Tạo access-list permit 2 PC:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#access-list 24 permit host 10.123.10.12</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#access-list 24 permit host 10.123.20.14</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Tạo route-map và gán với access-list: IP next-hop là địa chỉ đầu ngoài f0/1 của R3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#route-map pc24 permit 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-route-map)#match ip address 24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-route-map)#set ip default next-hop 172.16.17.2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-route-map)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Gắn policy route map cho cổng: Theo vlan 10, vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#int f0/1.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-subif)#ip policy route-map pc24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-subif)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config)#int f0/1.20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">R1(config-subif)#ip policy route-map pc24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">PC1, PC3 sẽ đi theo default route tới ISP Viettel, PC2, PC4 sẽ đi theo route map, còn nếu bị đứt ở R1-R2 thì PC1, PC3 sẽ đi theo default route còn lại tới ISP VNPT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Trường hợp R1 R3 bị đứt, route map sẽ không có tác dụng và PC2, PC4 đi theo định tuyến cơ bản</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Nếu set ip default next-hop, sẽ xét bảng định tuyến, nếu ko có route, mới xử lí PBR</span></p><p style="text-align:left;margin-bottom:20px;"><span style="color:rgb(0, 0, 0);">Nếu set ip next-hop, router sẽ xét PBR trước</span></p><p style="color:rgb(0, 0, 0);text-align:left;"><span style="color:inherit;"><br></span></p><p style="color:rgb(0, 0, 0);text-align:left;"><span style="color:inherit;">-----&amp;-----&amp;-----</span><br></p><p style="color:rgb(0, 0, 0);text-align:left;"><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 style="color:rgb(0, 0, 0);text-align:left;"><a href="https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network" style="text-decoration-line:underline;color:rgb(74, 43, 212);">https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network</a></p></span></h1></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 02:16:08 +0700</pubDate></item><item><title><![CDATA[Cấu hình route-map trên switch 3750]]></title><link>https://www.daihockhonggiay.com/blogs/post/cau-hinh-route-map-tren-switch-3750</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/3-1.jpg"/>Bài viết này sẽ hướng dẫn các bạn cấu hình route-map trên switch 3750]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_JnLjq2vdRP-3akIkIryoBQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_phlYCj_qSEGw2h0115___g" 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_UFcLCpg3Ra-upIqX8IV4ug" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_7zt3HREtR4-83C0L4v4h0Q" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_7zt3HREtR4-83C0L4v4h0Q"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-left " data-editor="true"><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/16.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Khởi tạo vlan và access vlan</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">1&nbsp; default&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active&nbsp; Gi1/0/3, Gi1/0/5, Gi1/0/11, Gi1/0/12, Gi1/0/14, Gi1/0/16, Gi1/0/17</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">10&nbsp; DMZ&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">20&nbsp; Code&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;active&nbsp; Gi1/0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">22&nbsp; Data&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;active&nbsp; Gi1/0/9</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">30&nbsp; KinhDoanh&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active&nbsp; Gi1/0/18</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">40&nbsp; WIFI_HeThong&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">50&nbsp; WIFI_KHACH&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;active&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">101&nbsp; FPT&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;active&nbsp; Gi1/0/22</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">102&nbsp; CMC&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; active&nbsp; Gi1/0/23</span></p><p style="text-align:left;margin-bottom:20px;"><br></p><p style="text-align:left;margin-bottom:20px;">Trunking: g1/0/3, g1/0/4, g1/0/7, g1/0/8</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">G1/0/11: allowed vlan 20,22,30,101,102,103</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">G1/0/7: Cắm vào wifi1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">G1/0/8: Cắm vào wifi2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">G1/0/4: Cắm ra server DC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">G1/0/3: Cắm ra server</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Bước 2: Cấu hình DHCP cho 3 phòng ban Code, data, KinhDoanh</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp excluded-address 192.168.4.1 192.168.4.50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp excluded-address 192.168.8.1 192.168.8.50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp excluded-address 192.168.12.1 192.168.12.50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp excluded-address 10.0.1.1 10.0.1.20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp pool LanCode</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">network 192.168.4.0 255.255.254.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">dns-server 8.8.8.8 8.8.4.4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">default-router 192.168.4.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp pool LanData</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">network 192.168.8.0 255.255.254.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">default-router 192.168.8.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">dns-server 8.8.8.8 8.8.4.4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip dhcp pool LanKinhDoanh</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">network 10.0.1.0 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">dns-server 8.8.8.8 8.8.4.4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">default-router 10.0.1.10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 3: Khởi tạo access-list</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Code_to_DC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.4.0 0.0.1.255 172.22.0.0 0.0.255.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Code_to_Local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.4.0 0.0.1.255 192.168.100.0 0.0.1.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Code_to_internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.4.0 0.0.1.255 any</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Data_to_DC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.8.0 0.0.1.255 172.22.1.0 0.0.0.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Data_to_Internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.8.0 0.0.1.255 any</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Data_to_Local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.8.0 0.0.1.255 192.168.4.0 0.0.1.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.8.0 0.0.1.255 192.168.100.0 0.0.1.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended KinhDoanh_to_internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 10.0.1.0 0.0.0.255 any</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip access-list extended Server_to_Local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">permit ip 192.168.100.0 0.0.1.255 192.168.4.0 0.0.1.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Bước 4: Khởi tạo route map</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map server permit 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Server_to_Local</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Server chỉ có 1 đường định tuyến tới Local</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Code permit 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Code_to_Local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Code permit 21</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Code_to_DC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Code permit 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Code_to_internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set ip next-hop 192.168.200.1</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Phòng ban Code có 3 đường đi, tới Local, DC và internet</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Data permit 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Data_to_Local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Data permit 21</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Data_to_DC</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map Data permit 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address Data_to_internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set ip next-hop 192.168.200.1</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Phòng ban Data có 3 đường đi, tới Local, DC và internet</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">route-map KinhDoanh permit 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">match ip address KinhDoanh_to_internet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set ip next-hop 10.0.0.1</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Phòng ban KinhDoanh chỉ ra internet</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Bước 5: Đặt default gateway cho Vlan và gán route map tương ứng</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">description This is intergace Vlan 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip address 192.168.100.10 255.255.254.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip policy route-map server</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip address 192.168.4.10 255.255.254.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip policy route-map Code</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan22</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip address 192.168.8.10 255.255.254.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip policy route-map Data</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip address 10.0.1.10 255.255.255.0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">ip policy route-map KinhDoanh</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p><span style="color:inherit;font-size:14px;"></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">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 02:12:13 +0700</pubDate></item><item><title><![CDATA[ Quality of Service (QoS)]]></title><link>https://www.daihockhonggiay.com/blogs/post/quality-of-service</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/q.jpg"/>Thông thường, hệ thống mạng hoạt động trên cơ sở phân phối tốt nhất, có nghĩa là tất cả gói tin trên mạng đều có mức độ ưu tiên ngang nhau và có cơ hội được chuyển đến đích một cách kịp thời. Khi tắc nghẽn xảy ra, tất cả các gói tin đều có khả năng bị tắc nghẽn.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_t0oZscc6T3afifcc5O04bg" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_5GxdNEMZRwm7U3qIZA9R8g" 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_nUNMYta0TYyHR5pxMdhANQ" 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_nUNMYta0TYyHR5pxMdhANQ"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_wekoCmr8SLC2vUKXiP9gcA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_wekoCmr8SLC2vUKXiP9gcA"].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;">Thông thường, hệ thống mạng hoạt động trên cơ sở phân phối tốt nhất, có nghĩa là tất cả gói tin trên mạng đều có mức độ ưu tiên ngang nhau và có cơ hội được chuyển đến đích một cách kịp thời. Khi tắc nghẽn xảy ra, tất cả các gói tin đều có khả năng bị tắc nghẽn. Nếu không có QoS, Switch sẽ cung cấp dịch vụ tốt nhất cho tất cả các gói, bất kể nội dung gói hay kích cỡ. Nó sẽ gửi các gói tin mà không có bất kỳ sự đảm bảo về độ tin cậy, giới hạn độ trễ hoặc thông lượng nào.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi ta sử dụng tính năng QoS, ta có thể chọn một dạng gói tin cụ thể, ưu tiên nó theo tầm quan trọng tương đối của nó và sử dụng kỹ thuật quản lý tắc nghẽn và tránh tắc nghẽn để cung cấp ưu đãi. Việc triển khai QoS trong mạng làm cho hiệu năng mạng dễ dự đoán hơn và sử dụng băng thông hiệu quả hơn.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">II. Cơ chế hoạt động</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">-Việc thực hiện QoS được dựa trên kiến ​​trúc dịch vụ phân biệt (Diff-Serv), kiến trúc này chỉ định rằng mỗi gói tin được phân loại khi nhập vào mạng. Các gói tin sẽ được đánh dấu như Class of Service (CoS), DSCP, IP Precedence… Nên đánh dấu gói tin càng sớm càng tốt, khi được ưu tiên sớm thì luồng đi qua thiết bị tiếp theo sẽ trơn tru.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1, Giá trị IP Precedence và DSCP (Differentiated Service Code Point)</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">&nbsp;Layer 3</span></span></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;">IP Precedence và DSCP là hai trường được sử dụng nhiều nhất để đánh dấu. Các công cụ QoS sử dụng chúng bởi vì header của gói tin IP tồn tại ở mọi nơi trên mạng.</span></div><div style="text-align:left;">Trong IP header của mỗi gói tin có chứa một trường gọi là ToS (Type of Service). Trường Type of Service có giá trị 1 byte. Và 3 bits đầu tiên (P2 đến P0) dùng để quy định các giá trị đánh dấu độ ưu tiên của packet và các giá trị này được gọi là IP Precedence.</div><div style="text-align:left;"><br></div><p></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/1.jpg"><br></p><p style="text-align:center;margin-bottom:20px;"><span style="font-size:14px;"><em>IP Precedence hoặc DSCP</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/2.jpg"><br></p><p style="text-align:center;margin-bottom:20px;"><span style="font-size:14px;"><em>Cấu trúc trường Type of Service</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giá trị IP precedence nằm trong khoảng từ 0 đến 7.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Tại sao lại có các khoảng giá trị trên, cụ thể như sau:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">3 bits đầu tiên (P2 đến P0): IP Precedence. Do sử dụng 3 bits nên sẽ có 8 giá trị (000 đến 111) định ra độ ưu tiên của gói tin từ thấp đến cao. Giúp router xử lý các gói tin này theo chất lượng dịch vụ. Ví dụ, gói tin được đánh dấu với giá trị IP Precedence là 7 (111) sẽ có độ ưu tiên về bandwidth, được ra khỏi hàng đợi trước… hơn so với các gói tin được đánh dấu với giá trị IP Precedence là 3 (011).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">3 bits tiếp theo (T2 đến T0):</span></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp;bit T2 (T2=1): Yêu cầu truyền gấp.</span></div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;bit T1 (T1=1): Yêu cầu truyền với đường truyền chất lượng cao.</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;bit T0 (T0=1): Yêu cầu truyền đảm bảo.</div><p></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">2 bit cuối (CU1-CU2): Không dùng tới (Currently and Unused).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Tuy nhiên, hiện nay không dùng các giá trị của IP Precedence để đánh dấu gói tin. Với mục đích làm tăng hiệu quả chất lượng dịch vụ thì các công cụ QoS sẽ dùng các giá trị được gọi là điểm mã dịch vụ phân biệt DSCP (Differentiated Service Code Point) để tiến hành đánh dấu gói tin. 3 bits IP Precedence sẽ kết hợp với 3 bits tiếp theo (từ T2 đến T0) tạo thành 6 bits thể hiện các giá trị của DSCP. Do đó các giá trị DSCP nằm trong khoảng từ 0 đến 63.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các bits này được ánh xạ như sau:</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/3.jpg"><br></p><p style="text-align:center;margin-bottom:20px;"><span style="color:inherit;"></span></p><p align="center"><i><span style="font-size:14px;">Giá trị IP Precedence có thể được ánh xạ đến trường DSCP</span></i></p><p align="center" style="text-align:center;"><i><span style="font-size:13pt;"><br></span></i></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">6 bits DiffServ (DS) từ DS5 đến DS0 được dùng để đánh dấu gói tin và chỉ ra cách thức mỗi router xử lý gói tin như thế nào. Với 6 bits có thể tạo ra đến 64 class dịch vụ.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/4.jpg"><br></p><p style="text-align:center;margin-bottom:20px;"><span style="color:inherit;"></span></p><p align="center"><i><span style="font-size:14px;">IP Header trước và sau đánh dấu DSCP</span></i></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;">Lựa chọn giá trị DSCP phải tương thích với thứ tự IP Precedence. Nói cách khác là phải so trùng khớp giá trị của 3 bits đầu tiên. Mọi sự thay đổi đều phải chú ý đến sự trùng khớp này.</span></div><div style="text-align:left;">Ví dụ: giá trị IP Precedence là 5 (101) thì giá trị DSCP có thể là 101 000.</div><p></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/5.jpg" style="width:579.48px;height:423px;"><br></p><p style="text-align:left;"><span style="font-size:14px;">Có các kiểu chuyển tiếp gói tin trong DSCP là AF (assured forwarding: đảm bảo đẩy gói) và EF (expedited forwarding: xúc tiến đẩy gói), chọn lớp (Class Selector) và mặc định (Default).</span></p><p style="text-align:center;"><img src="/Network/5/6.jpg" style="width:554.86px;height:543px;"><br></p><p style="text-align:center;"><span style="color:inherit;"></span></p><p align="center"><em><span style="font-size:14px;">Ánh xạ giữa PHB và DSCP</span></em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Với EF: độ trễ, độ biến động trễ, tỉ lệ mất gói thấp, băng thông được đảm bảo, và dịch vụ ở đầu cuối phải thông qua miền DiffServ. EF được sử dụng cho những luồng có độ ưu tiên rất cao.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Với AF: định rõ những dịch vụ khác nhau sẽ được đảm bảo chuyển tiếp, thông qua miền DiffServ. AF được chia làm 4 lớp (class) đảm bảo đẩy gói khác nhau với 3 mức độ ưu tiên loại bỏ gói (drop precedence) xác định khác nhau. AFxy, x (chỉ số lớp) càng cao thì xếp vào hàng đợi tốt hơn, x càng nhỏ thì càng dễ bị loại bỏ, y càng cao thì gói tin càng dễ bị loại bỏ. Vậy AF41 là gói tin được ưu tiên tốt nhất, đến AF42, AF43,… &nbsp;AF13 dễ bị loại bỏ nhất</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/7.jpg" style="width:570.84px;height:156px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2, Gía trị cos (class of service) Layer 2</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos: Class of service: Các lớp dịch vụ (0 đến 7)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Trường CoS chỉ tồn tại bên trong Ethernet frame khi các đường trunk 802.1Q và ISL được sử dụng. Có thể sử dụng trường này để thiết lập 8 giá trị nhị phân khác nhau mà có thể dùng cho chức năng phân loại của công cụ QoS như IP Precedence và DSCP. Giá trị Cos càng cao thì gói tin frame càng được ưu tiên.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/8.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 7: Không sử dụng (reserved)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 6: Không sử dụng (reserved)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 5: Dữ liệu voice (voice bearer)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 4: Dữ liệu video conferencing</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 3: Call signalling</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 2: High priority data</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 1: Medium priority data</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos 0: best effort data</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/9.jpg" style="width:385.5px;height:314px;"><br></p><p style="text-align:center;margin-bottom:20px;"><span style="font-size:14px;"><em>Hình 2: Ví dụ cụ thể về gán giá trị CoS và DSCP</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;">Theo hình 2, minh hoạ một LAN switch thực hiện chức năng QoS dựa trên CoS. R3 đọc các frame đi vào trên một cổng (ví dụ F0/9), đánh dấu giá trị DSCP dựa trên các thông số CoS. Thêm vào đó R3 đọc các giá trị DSCP cho các gói tin đang đi ra cổng F0/0 về SW2, gán giá trị trong 802.1Q header. Giá trị thực sự trên cổng F0/0 của R3 cho quá trình phân loại và đánh dấu như sau:</span></div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các frame đi vào với giá trị CoS 5 sẽ được gán giá trị DSCP EF (mức ưu tiên lớn nhất)</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các frame đi vào với giá trị CoS 1 sẽ được gán giá trị AF11.</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các frame đi vào với bất kỳ giá trị CoS nào sẽ được gán DSCP 0.</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các frame đi ra với giá trị DSCP EF sẽ được gán CoS 5.</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các gói đi ra với DSCP AF11 sẽ được gán Cos 1</div><div style="text-align:left;">&nbsp; &nbsp; &nbsp;Các gói tin đi ra với bất kỳ giá trị DSCP nào sẽ được gán CoS 0</div><p></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3, Mô hình Qos</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/10.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Phân loại (classification): Phân loại một gói tin bằng cách liên kết nó với nhãn QoS. Bộ chuyển đổi ánh xạ CoS hoặc DSCP trong gói tới nhãn QoS để phân biệt một loại lưu lượng truy cập với một loại khác. Kiểm tra gói và xác định nhãn qos dựa trên ACL hoặc cấu hình.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Chính sách và đánh dấu (policing and marking):</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Sau khi gói được phân loại và có nhãn QoS dựa trên DSCP hoặc dựa trên CoS được gán cho nó.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Policing liên quan đến việc tạo ra một policer xác định giới hạn băng thông cho lưu lượng truy cập. Các gói vượt quá giới hạn nằm ngoài cấu hình hoặc không phù hợp. Mỗi policer quyết định trên cơ sở packet-by-packet cho dù gói tin phù hợp hay không phù hợp và chỉ định các hành động trên gói. Những hành động này, được thực hiện bởi marker, bao gồm đi qua gói tin mà không sửa đổi, bỏ gói tin, hoặc sửa đổi (đánh dấu xuống) DSCP được chỉ định của gói và cho phép gói đi qua.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Hàng đợi (queue):</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Hàng đợi đánh giá nhãn QoS và giá trị DSCP hoặc CoS tương ứng để chọn thành hai hàng đợi nhập vào để đặt gói tin. Xếp hàng được tăng cường với thuật toán weighted tail drop (WTD), một cơ chế tránh tắc nghẽn. Nếu vượt quá ngưỡng, gói tin sẽ bị loại bỏ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Lập kế hoạch dịch vụ các hàng đợi dựa trên shaped round robin (SRR) được định cấu hình của chúng. Một trong các hàng đợi xâm nhập là hàng đợi ưu tiên, và SRR dịch vụ nó cho chia sẻ được cấu hình của nó trước khi phục vụ hàng đợi khác</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4. Cấu hình Standard Qos trên Switch layer 3</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Khởi tạo Qos trên switch 3750 catalyst (mặc định disable)</em></span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Sw(config) mls qos&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;no mls qos</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Show mls qos</span></p><p style="text-align:left;margin-bottom:20px;"><em style="font-weight:700;">Khởi tạo qos dựa trên vlan</em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Int g0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Sw(config) mls qos vlan-based&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; no mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Show mls qos int g0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Cấu hình qos trên các cổng tin cậy (mặc địch không tin cậy)</em></span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Sw(config) int g0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Mls qos trust [cos | dscp | ip-precedence]&nbsp; no mls qos trust int g0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Cấu hình giá trị cos, dscp, ip pre cho gói tin cấu hình class-map:</em></span></span></p><p style="margin-bottom:20px;"></p><div style="text-align:left;"><span style="font-size:14px;">Câu lệnh class-map: dùng để phân loại lưu lượng dữ liệu theo ý muốn của người sử dụng, có thể sử dụng kết hợp với nhiều công cụ phân loại như ACL hay dùng cơ chế NBAR.</span></div><div style="text-align:left;">Câu lệnh policy-map: dùng để quy định cách hành xử cho từng loại lưu lượng đã được phân loại, cách hành xử có thể đơn giản là phân loại dữ liệu, có thể là đánh dấu hay sử dụng trong các cơ chế QoS khác, chú ý là luôn tồn tại 1 loại cấu hình class-map tên là class-default nhằm phân loại tất cả các lưu lượng chưa được phân loại bởi những class-map trước.</div><p></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><em><span style="font-weight:700;">&nbsp;&nbsp;</span></em>SW (config) # class-map&nbsp;<em>name</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match access-group {access-list-number | Name access-list-name}</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match cos&nbsp;<em>cos-value</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match dscp&nbsp;<em>dscp-value-1</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match ip precedence&nbsp;<em>ip-precedence-value-1</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Hoặc</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config)#policy-map&nbsp;<em>name</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-pmap)#class&nbsp;<em>name</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-pmap-c)#set ip precedence&nbsp;<em>ip-precedence-value-1</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-pmap-c)#set dscp&nbsp;<em>dscp-value-1</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-pmap-c)#set cos &nbsp;<em>cos-value</em></span></p><p style="text-align:left;margin-bottom:20px;">Ta có:</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # class-map (match-any | match-all)&nbsp;<em>name</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match access-group name test</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW (config-cmap) # match int f0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Mặc định là sẽ match-all, là thỏa mãn cả tất cả điều kiện. Nếu là match-any, chỉ cần 1 trong nhiều điều kiện.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/11.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ví dụ: Cấu hình trên SWC sao cho PC0, PC1 lượng traffic mail được ưu tiên hơn với web, và traffic còn lại của server local</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Tạo 2 access list mail (pop3) vs web (http https)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#ip access-list extended&nbsp;<em>mail</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-ext-nacl)#permit tcp any host 2.2.2.2 eq 110</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-ext-nacl)#ex</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#ip access-list extended&nbsp;<em>web</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-ext-nacl)#permit tcp any host 2.2.2.2 eq 80</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-ext-nacl)#permit tcp any host 2.2.2.2 eq 443</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 2: Tạo 2 class map tương ứng với access-list</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#class-map&nbsp;<em>mail</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-cmap)#match access-group name&nbsp;<em>mail</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-cmap)#ex</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#class-map&nbsp;<em>web</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWCconfig-cmap)#match access-group name&nbsp;<em>web</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-cmap)#ex</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 3: Tạo policy map và gán giá trị ip precedence, class-default là lượng traffic còn lại.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#policy-map&nbsp;<em>abc</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap)#class&nbsp;<em>mail</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#set ip precedence 3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#ex</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap)#class&nbsp;<em>web</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#set ip precedence 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#ex</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap)#class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#set ip precedence 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config-pmap-c)#end</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 4: Gán policy-map vào cổng</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)#int range f0/1-2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SWC(config)# service-policy input&nbsp;<em>abc</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;Vậy ở đây chúng ta đã ưu tiên các gói tin theo mail với giá trị ip predence cao hơn nên&nbsp; đi trước, do đó sẽ truy cập nhanh hơn so với web và luồng tin còn lại.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Gán giá trị cos-to-dscp</em></span>: Bạn sử dụng CoS-to-DSCP để ánh xạ các giá trị CoS trong các gói dữ liệu đến một giá trị DSCP mà QoS sử dụng trong nội bộ để biểu thị mức độ ưu tiên của lưu lượng truy cập.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#mls qos map ?</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">cos-dscp cos-dscp map: eight dscp values for cos 0-7</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#mls qos map cos-dscp 0 8 16 24 32 46 48 56</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1#show mls qos maps cos-dscp</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cos-dscp map: cos: 0 1 2 3 4 5 6 7&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dscp: 0 8 16 24 32 46 48 56</span></p><p style="text-align:left;margin-bottom:20px;">Vậy tất cả giá trị cos từ 0 đến 7 được gán giá trị DSCP theo thứ tự: 0, 8, 16, 24, 32, 46, 48, 56</p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;"><em>Ánh xạ giá trị dcsp-to-dscp mutation map</em></span>: Nếu hai miền QoS có DSCP khác nhau, hãy sử dụng DSCP-to-DSCP mutation map để dịch một bộ giá trị DSCP để phù hợp với định nghĩa của miền khác.</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giá trị DSCP mới sẽ ghi đè lên một gói trong gói và QoS xử lý gói với giá trị mới này. Công tắc sẽ gửi gói tin ra khỏi cổng với giá trị DSCP mới.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bạn có thể cấu hình nhiều DSCP-to-DSCP mutation map trên cổng vào.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/12.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#mls qos map dscp-mutation&nbsp;<em>DEMO</em>&nbsp;24 26 28 30 to 24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#interface gig 1/0/8</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#mls qos trust dscp</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#mls qos dscp-mutation</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">DEMO SW1(config-if)#do show mls qos maps dscp-mutation</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Dscp-dscp mutation map:</span></p><p style="text-align:left;margin-bottom:20px;"><img src="/Network/5/13.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các giá trị dscp 24 26 28 30 đã ánh xạ thành 24</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Cấu hình qos bằng policy map và class map</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Cấu hình với 1 luồng đường đi</em></span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Tạo class-map kết hợp với access-list, chúng ta có thể dùng access-list theo từng host PC, hoặc theo từng dịch vụ như web, mail.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# access-list 1 permit 10.1.0.0 0.0.0.255</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 2: Tạo policy-map kết hợp với class-map ở trên, sau đó cấu hình để tăng giảm băng thông, 1000000: Băng thông giới hạn bps, 8000: Tốc độ burst Bytes</span></p><p style="text-align:left;margin-bottom:20px;">Switch(config)# class-map&nbsp;<em>ipclass1</em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-cmap)# match access-group 1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-cmap)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# policy-map&nbsp;<em>flow1t</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-pmap)# class&nbsp;<em>ipclass1</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-pmap-c)# trust dscp</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-pmap-c)# police 1000000 8000 exceed-action policed-dscp-transmit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-pmap-c)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-pmap)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Bước 3: Cấu hình gán dịch vụ policy vào cổng vật lí, input hoặc output</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# interface gigabitethernet g0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config-if)# service-policy input&nbsp;<em>flow1t</em></span></p><p style="text-align:left;margin-bottom:20px;">Ở đây chúng ta có hình cấu hình qos trên SW 3560 để tăng giảm băng thông cho vùng mạng Lan, tuy nhiên tùy thuộc vào lượng băng thông mà ISP cấp cho. Ngoài ra có thể cấu hình qos trên Router ISP.</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Cấu hình với nhiều luồng đường đi</em></span>:</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/14.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Sử dụng chính sách aggregate</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Tạo aggregate-police với 320000 là băng thông, 8000 là tốc độ burst.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#mls qos aggregate-police&nbsp;<em>Web-telnet&nbsp;</em>320000 8000 exceed-action drop</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 2: Tạo 2 access-list, tạo 2 class-map gán với 2 access-list đó</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#access-list 100 permit tcp&nbsp; 192.168.1.0&nbsp; 0.0.0.255&nbsp; 192.168.20.6&nbsp; 0.0.0.0&nbsp; eq 80</span></p><p style="text-align:left;margin-bottom:20px;">SW1(config)#access-list 2 permit 192.168.2.0 0.0.0.255</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#class-map&nbsp;<em>web</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#match access-group name 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#class-map&nbsp;<em>telnet</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#match access-group name 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">+ Bước 3: Tạo policy-map AGGREGATE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#policy-map AGGREGATE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#class web</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#police aggregate&nbsp;<em>Web-telnet</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#class telnet</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#police aggregate&nbsp;<em>Web-telnet</em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 4: Gán service policy vào cổng vật lí</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#interface f0/1-2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#service-policy input AGGREGATE</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Vậy thì PC0 sẽ truy cập web và PC1 telnet đến server local, với lượng băng thông chung đã cấu hình là 3,2Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Policing a Switched Virtual Interface:</em></span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Cấu hình tin cậy vlan-based trên cổng vật lí.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int range f0/1-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if-range)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 2: Tạo access-list, tạo 1 class-map tương ứng, tạo 1 class-map gán với cổng vật lí.</span></p><p style="text-align:left;margin-bottom:20px;">SW1(config)#access-list 100 permit udp any any range 16384 32767</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#class-map RTP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#match access-group 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#class-map PORTS</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#match input-interface f0/1-20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-cmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 3: Tạo 1 policy-map để giới hạn băng thông (child policy map), tạo 1 policy map (parent policy map) để gán giá trị dscp, gán them child policy-map ở trên</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#policy-map PORT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#class PORTS</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#police 256000 8000 exceed-action drop</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#policy-map VLAN</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#class RTP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#set dscp 46</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#service-policy PORT</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap-c)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-pmap)#exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int vlan 100</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#service-policy input VLAN</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Cấu hình này giới hạn lưu lượng dịch vụ RTP Cổng f0/1-20 với băng thông 256 kbps và đánh dấu lưu lượng RTP (đi với access-list 100 cho phép giao thức udp) với Giá trị DSCP = 46.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Dưới dây là 1 ví dụ khác: Đây là những vlan đã có và yêu cầu là cấp băng thông, đặt giá trị ip precedence cho từng loại dịch vụ. Ta sẽ cấu hình trên sw 3560</span></p><p style="text-align:left;margin-bottom:20px;">VLAN ID&nbsp; &nbsp; &nbsp; VLAN NAME&nbsp; &nbsp; &nbsp; BANDWIDTH&nbsp; &nbsp; &nbsp; &nbsp;PRECEDENCE</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">--------------------------------------------------------------------------------</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">10&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IPMux&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;16 Mbps&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">20&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Cameras&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;2 Mbps&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;7&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">30&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Scada&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6 Mbps&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;6</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/5/15.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 1: Khởi tạo qos</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 2: Tạo policy map:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ví dụ: policy-map bw6M (child policy map) để giới hạn băng thông, policy-map vlan 30 (parent policy-map)&nbsp; để đặt giá trị ip precedence</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;">policy-map bw6M</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">description ***************&nbsp; VLAN 30 Scada&nbsp; ***************</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">police 6000000 8000 exceed-action drop</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">policy-map VLAN30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set precedence 6</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy bw6M</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">policy-map bw2M</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">description ***************&nbsp; VLAN 20 Cameras&nbsp; ***************</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">police 2000000 8000 exceed-action drop</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">policy-map VLAN20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set precedence 7</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy bw2M</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">policy-map bw16M</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">description ***************&nbsp; VLAN 10 IPMux&nbsp; ***************</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">police 16000000 8000 exceed-action drop</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">policy-map VLAN10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">class class-default</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">set precedence 5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy bw16M</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 3: Cấu hình trên cổng: access vlan và qos cho vlan</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface FastEthernet0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport mode access</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface FastEthernet0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport access vlan 10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport mode access</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface FastEthernet0/2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport access vlan 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport mode access</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface FastEthernet0/3</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport access vlan 30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport mode access</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 4: Cấu hình trunking</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface GigabitEthernet0/1</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport trunk encapsulation dot1q</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">switchport mode trunk</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">mls qos vlan-based</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bước 5: Assign the policy maps to the SVIs: Gán policy-map vào vlan</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">no ip address</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy input VLAN10</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">no ip address</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy input VLAN20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">interface Vlan30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">no ip address</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">service-policy input VLAN30</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">!</span></p><p style="text-align:left;margin-bottom:20px;"><em style="font-weight:700;">Congestion Management</em><span style="font-weight:700;">:&nbsp;</span><em style="font-weight:700;">Quản lí tắc nghẽn</em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Bạn có thể ưu tiên lưu lượng bằng cách đặt các gói có DSCP hoặc CoS vào các hàng đợi nhất định và điều chỉnh ngưỡng hàng đợi để các gói có mức độ ưu tiên thấp hơn bị loại bỏ</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em><u>Ánh xạ giá trị cos hoặc dscp tới hàng đợi (queue) và ngưỡng (threshold</u></em></span><em><u>)</u></em></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Theo mặc định, các giá trị DSCP 0–39, 48–63 được ánh xạ tới queue 1 và threshold 1. Các giá trị DSCP 40–47 được ánh xạ tới queue 2 và threshold 1.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Theo mặc định, giá trị CoS 0–4, 6 và 7 được ánh xạ tới queue 1 và threshold 1. Giá trị CoS 5 được ánh xạ tới queue 2 và threshold 1.</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Queue: từ 1 đến 2.</span></li><li style="text-align:left;"><span style="font-size:14px;">Threshold: 1 đến 3..</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Gán hai tỷ lệ ngưỡng WTD cho (threshold 1 và 2) vào hàng đợi nhập. Mặc định, cả hai ngưỡng được đặt thành 100%.</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Đối với ngưỡng tỷ lệ phần trăm ngưỡng1, phạm vi từ 1 đến 100. Tách mỗi giá trị bằng khoảng trắng.</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Mỗi giá trị ngưỡng là phần trăm của tổng số bộ mô tả hàng đợi được phân bổ cho hàng đợi.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">VD:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# mls qos srr-queue input dscp-map queue 1 threshold 1 0 1 2 3 4 5 6</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# mls qos srr-queue input dscp-map queue 1 threshold 2 20 21 22 23 24 25 26</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# mls qos srr-queue input threshold 1 50 70</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ví dụ này cho thấy cách ánh xạ giá trị DSCP 0 đến 6 để nhập hàng đợi 1 (queue)&nbsp; và đến ngưỡng 1 (threshold) với ngưỡng giảm 50%. Nó ánh xạ các giá trị DSCP từ 20 đến 26 để nhập hàng đợi 1 và đến ngưỡng 2 với ngưỡng giảm 70%. Trong ví dụ này, các giá trị DSCP (0 đến 6) được gán ngưỡng WTD là 50% và sẽ bị loại bỏ sớm hơn giá trị DSCP (20 đến 26) được gán cho ngưỡng WTD là 70%.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ngoài ra có thể ánh xạ giá trị cos</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Switch(config)# mls qos srr-queue input cos-map queue&nbsp;<em>queue-id</em>&nbsp;threshold&nbsp;<em>threshold-id cos1...cos8</em></span></p><p style="text-align:left;margin-bottom:20px;"><em style="font-weight:700;">Shaped Round Robin (SRR):</em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SRR có 2 chế độ hoạt động</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;"><em>Shaped</em></span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp;Chỉ có sẵn trên hàng đợi đi ra.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp;Hàng đợi nhận được một phần dự trữ một phần của một cổng băng thông và không còn nữa.</span></p><p style="text-align:left;margin-bottom:20px;"><em style="font-weight:700;">Shared</em></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp;Có sẵn trên hàng đợi vào và ra.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp;Hàng đợi được đảm bảo một phần của cổng băng thông.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Bandwidth Allocation for Input Queues (shared mod):&nbsp;</span>Gắn băng thông vào hàng đợi đầu vào (queue)</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#mls qos srr-queue input bandwidth 30 70</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">30% băng thông cho queue 1 và 70% cho queue 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Bandwidth Allocation for Output Queues (shared mod):&nbsp;</span>Gán băng thông cho hàng đợi đầu ra.</p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int gig 1/0/4</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#speed 1000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#srr-queue bandwidth share 10 25 35 50</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Determine the amount of bandwidth available to each output queue on interface Gigabit Ethernet 1/0/4.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q1: [10/(10+25+35+50)] * 1000 Mbps = 83.3 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q2: [25/(10+25+35+50)] * 1000 Mbps = 208.3 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q3: [35/(10+25+35+50)] * 1000 Mbps = 291.7 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q4: [50/(10+25+35+50)] * 1000 Mbps = 416.7 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Bandwidth Allocation for Output Queues (Shaped Mode): Băng thông giới hạn</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int gig 1/0/5</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#speed 1000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#srr-queue bandwidth shape 30 0 0 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Determine the amount of bandwidth limits applied to the output queues on interface Gigabit Ethernet 1/0/5.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q1: 1/30 * 1000 Mbps = 33.3 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q2: No limit applied</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q3: No limit applied</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q4: No limit applied</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">Example:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config)#int gig 1/0/6</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#speed 1000</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#srr-queue bandwidth share 100 100 40 20</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#srr-queue bandwidth shape 50 50 0 0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q1 (Mbps): (1/50) * 1000 = 20 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW Limit for Q2 (Mbps): (1/50) * 1000 = 20 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q3: [40/(40+20)] * (1000-20-20) Mbps = 640 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">BW for Q4: [20/(40+20)] * (1000-20-20) Mbps = 320 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Total Bandwidth (Mbps) = 20 + 20 + 640 + 320 = 1000 Mbps</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">Limiting Bandwidth on an Output Interface:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">SW1(config-if)#srr-queue bandwidth limit 85</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">The interface’s outbound bandwidth is limited to 85 percent of the interface speed</span></p><p><span style="color:inherit;font-size:14px;"></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"></span><span style="font-size:14px;"></span><span style="font-size:14px;"></span><span style="font-size:14px;"></span><span style="font-size:14px;"></span></p><p style="text-align:left;"><span style="color:inherit;"><br></span></p><p style="text-align:left;"><span style="color:inherit;">-----&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 02:07:50 +0700</pubDate></item><item><title><![CDATA[ Etherchannel Fundamentals]]></title><link>https://www.daihockhonggiay.com/blogs/post/etherchannel-fundamentals</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/ef.jpg"/>EtherChannel Concepts and Deployment]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_8d5g4x4CQQecxqJ7nb6P-g" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_3ws0LIM2TDSYx8gbM1GOqg" 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_HO7CMjI9ThiLkmFeiaVygQ" 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_HO7CMjI9ThiLkmFeiaVygQ"].zpelem-col{ border-style:none; } </style><div data-element-id="elm_H3IJcdXnQlydmDkME376TA" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_H3IJcdXnQlydmDkME376TA"].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;">The ability to bundle ports together to achieve higher bandwidth is described as&nbsp;<span style="font-weight:700;"><em>link aggregation</em></span>. Aggregating ports on Ethernet switches is referenced under<span style="font-weight:700;"><em>EtherChannel</em></span>&nbsp;configuration and operation. The need to aggregate links occurs when interconnecting switches together and when interconnecting other devices to a switch. An example might be connecting a switch to a server with multiple network adaptors or when interconnecting two distribution switches. In the following diagram assume all the links are gigabit. To improve performance the distribution layer switches leverage EtherChannel to connect to the campus core. The EtherChannel bundles may or may not be configured to trunk depending on the design. In the diagram each distribution switch has three unique EtherChannel bundles.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/3/3.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">EtherChannel improves operation when multiple physical interfaces are needed to interconnect switches. Normal operation would result in spanning-tree blocking and only one physical link being usedto carry user traffic.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/14.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">It is possible to design layer-2 so that traffic from different VLAN’s are carried over different links. The links also might be converted to Dot1q trunks where the VLAN traffic can be better distributed with careful design of spanning-tree priorities and root placement. However leveraging EtherChannel makes the design simpler and EtherChannel dynamically maintains the interconnection reducing the reliance on spanning-tree timers. If a physical link in the group goes down the EtherChannel only loses the bandwidth that link supplied. If the physical link comes back up it is dynamically added back into the EtherChannel. Spanning-tree treats the EtherChannel bundle as a single switchport and adjusts the spanning-tree cost to reflect the increased bandwidth.</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/15.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">EtherChannel loads shares (load balances) across all the physical ports in the EtherChannel group. The default method of load sharing has an algorithm look atthe source MAC address in a frame to be sent across the EtherChannel. The algorithm calculates a numeric value which in turn selects one of the links in the EtherChannel. Frames from different sources are sent out different ports but all frames from one source will be sent out the same port. Destination MAC address load sharing is another method that can be activated. An important concept is that Ethernet frames are not fragmented or split apart on EtherChannel – an Ethernet frame is sent out one selected port and traverses the link intact.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">We aggregate multiple physical Ethernet ports together using a&nbsp;<span style="font-weight:700;"><em>channel group</em></span>&nbsp;command. A single logical interface is created called a&nbsp;<span style="font-weight:700;"><em>port</em>-<em>channel</em></span><em>.&nbsp;</em>On the Cisco Catalyst switches we can aggregate up to eight 10/100 ports together creating a port-channel with 800 Mbps bandwidth (literature may indicate 1600 Mbps as the bundle has full-duplex operation). On our Catalyst 2960 lab switches we can also aggregate the two gigabit ports together to create a 2 Gbps bandwidth port-channel.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">EtherChannel has specific requirements and additional platform (hardware) related requirements. A partial list is:</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">EtherChannel can have a maximum of eight physical interfaces per port-channel</span></li><li style="text-align:left;"><span style="font-size:14px;">All interfaces within the port-channel must have the same speed and duplex settings</span></li><li style="text-align:left;"><span style="font-size:14px;">An EtherChannel does not form if one interface is a Switch Port Analyzer (SPAN) port</span></li><li style="text-align:left;"><span style="font-size:14px;">An interface within a port-channel cannot be configured as a secure port (do not activate port security)</span></li><li style="text-align:left;"><span style="font-size:14px;">All interfaces within a port-channel must be assigned to the same access VLAN or if they are Dot1q trunks they must be assigned the same native VLAN</span></li><li style="text-align:left;"><span style="font-size:14px;">If interfaces are trunking then they must all have the same allowed range of VLANs</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Catalyst 2960 switches can leverage a protocolto dynamically establish and maintain the EtherChannel bundle. The&nbsp;<span style="font-weight:700;"><em>channel-group mode</em></span>&nbsp;command allows you to decide if the EtherChannel group uses&nbsp;<span style="font-weight:700;"><em>Port aggregation Protocol</em></span>&nbsp;(PAgP),<span style="font-weight:700;"><em>Link Aggregation Protocol</em></span>&nbsp;(LACP), or to simply force the interface to channel without PAgP or LACP. Forcing interfaces to channel may create problems if any interfaces have dissimilar configurations.&nbsp; PAgP allows the switches to learn the capabilities of each interface assigned to an EtherChannel bundle and reliably activates interfaces of similar configuration to form a port-channel. PAgP transmits and receives messages on all interfaces in the EtherChannel bundle and restricts the PAgP traffic to the native VLAN if the ports are in trunking mode. LACP is similar in operation to PAgP and standards based while PAgP is Cisco proprietary.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Other local link protocols such as DTP, VTP, CDP, and STP still transmit and receive frames over a port-channel. STP only sends frames out the first interface in the port-channel and views the port-channel as a single physical port. Cisco uses&nbsp;<span style="font-weight:700;"><em>Per-VLAN Spanning-Tree</em></span>&nbsp;(PVST) and if the port-channel is a Dot1q trunk then multiple STP messages might require transmission(with appropriate Dot1q tags).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Spanning-tree reflects the increased bandwidth provided by EtherChannel. The default cost for a 100 Mbps link is 19 and if a port-channel is created that has only two 100 Mbps links the spanning-tree cost will be 9. If more physical ports are assigned to the port-channel the cost decreases. Note: the spanning-tree cost does not dynamically change when links go down or when a link is brought back up within the port-channel; the cost is calculated based on the number of ports assigned to the port-channel.</span></p><p style="text-align:center;margin-bottom:20px;"><span style="color:inherit;"></span></p><table border="1" cellspacing="0" cellpadding="0"><tbody><tr style="height:10px;"><td><p style="text-align:center;"><span>Number of 100 Mbps physical ports assigned to EtherChannel bundle</span></p></td><td><p style="text-align:center;"><span>Spanning-tree cost assigned to the bundle no matter how many ports have link status</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>2</span></p></td><td><p align="center" style="text-align:center;"><span>9</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>3</span></p></td><td><p align="center" style="text-align:center;"><span>8</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>4</span></p></td><td><p align="center" style="text-align:center;"><span>7</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>5</span></p></td><td><p align="center" style="text-align:center;"><span>6</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>6</span></p></td><td><p align="center" style="text-align:center;"><span>5</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>7</span></p></td><td><p align="center" style="text-align:center;"><span>5</span></p></td></tr><tr><td><p align="center" style="text-align:center;"><span>8</span></p></td><td><p align="center" style="text-align:center;"><span>5</span></p></td></tr></tbody></table><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Note: STP costs for port-channels vary according to how many ports are assigned to the bundle, not how many are active within the bundle. Channel-group mode<span style="font-weight:700;">on</span>&nbsp;will automatically add the port-channel to STP even without link status while PAgP and LACP require at least one interface in the bundle to have link status before they dynamically add the port-channel to STP.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">EtherChannel Configuration</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; Switch(config)#&nbsp;<span style="font-weight:700;">interface range fa0/1 – 4</span>&nbsp;{we can use the range or single interface}</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch(config-if)#&nbsp;<span style="font-weight:700;">channel-group [1 – 6] mode [auto | desirable | on | active | passive]</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">This port-channel can be customized via the CLI:</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; Switch(config)#<span style="font-weight:700;">interface port-channel[1 – 6]</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch(config-if)#<span style="font-weight:700;">switchport mode trunk</span>&nbsp;{an example only}</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Configuring Load Balancing Using Port Channels</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch# configure terminal&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch (config)#&nbsp;<span style="font-weight:700;">port-channel load-balance ethernet source-ip</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Enabling LACP (LACP is disabled by default; you must enable LACP before you begin LACP configuration.)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch# configure terminal&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch (config)#&nbsp;<span style="font-weight:700;">feature lacp</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">However if we wish to view the operation we use the term “etherchannel”.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; Switch#<span style="font-weight:700;">show interface etherchannel</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Switch#&nbsp;<span style="font-weight:700;">show etherchannel [summary | load balance | port-channel]</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Summary</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">EtherChannel aggregates similarly configured physical links into a logical bundle called a channel. A switch creates a new virtual interface called a port-channel that provides the IOS with a placeholder for interface commands and identification. A port-channel can be an access port or it can be a trunk port. Multilayer switches are capable of layer-3 channels. A number of commands are used to place an interface or interface range into channel mode and to verify etherchannel operation. EtherChannel can have up to eight similar ports in a bundle and a switch can have multiple port-channels. Proper EtherChannel creation requires all ports within the bundle to be configured similarly and to have similar operation status. Both ends of an EtherChannel require similar configuration as well. A channeling protocol dynamically adds and removes ports from a port-channel based on information they receive from the switches providing reliable operation. Using a channeling protocol such as PAgP or LACP is recommended. Spanning-tree treats an EtherChannel bundle as one single port and adjusts its cost for the port based on the number of physical ports in the bundle.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;"><span style="color:inherit;font-size:14px;"></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 02:02:05 +0700</pubDate></item><item><title><![CDATA[Frame Relay]]></title><link>https://www.daihockhonggiay.com/blogs/post/frame-relay</link><description><![CDATA[<img align="left" hspace="5" src="https://www.daihockhonggiay.com/r.jpg"/>Bài viết này sẽ giúp các bạn có góc nhìn tổng quan về Frame Relay và cách cấu hình Frame Relay]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_FoR4FiczTLmeoJRhhnIqhQ" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_C-vjayMeSE6Yzhl_FI_CZQ" 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_ZsYrn4oBQuCGzochJLv46g" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- "><style type="text/css"></style><div data-element-id="elm_ujVcVFmJSBOCugVBlTouSw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_ujVcVFmJSBOCugVBlTouSw"].zpelem-text { border-style:none; } </style><div class="zptext zptext-align-center " 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&nbsp;</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">1. Giới thiệu về Frame Relay</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi một doanh nghiệp có nhiều chi nhánh nằm cách xa nhau cần phải kết nối thì ta có thể thuê các đường Leased-Line sử dụng công nghệ PPP. Đường Leased-Line có ưu điểm là một đường vật lý riêng biệt cho chúng ta, nhưng chi phí cao và đắt.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Ngoài công nghệ PPP người ta còn sử dụng công nghệ Frame Relay, ATM để đấu nối WAN.</span></p><p style="text-align:center;"><img src="/Network/4/9.jpg" style="width:437.64px;height:234px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Frame Relay là một dạng công nghệ mở rộng LAN vào trong mạng WAN.</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Frame Relay hoạt động ở tầng 2 của mô hình OSI.</span></li><li style="text-align:left;"><span style="font-size:14px;">Khi kết nối nhiều mạng chi nhánh lại ta chỉ cần một đường vật lý từ Switch chạy Frame Relay. Từ một đường vậy lý này Swich chạy Frame Relay sẽ chạy tạo ra nhiều đường kết nối ảo (Virtual Circuits).</span></li><li style="text-align:left;"><span style="font-size:14px;">Các gói tin này sẽ được đóng theo dạng Frame Relay.</span></li><li style="text-align:left;"><span style="font-size:14px;">Frame Relay trên Switch sẽ thiết lập trước các đường đi. Đảm bảo độ tin cậy cho truyền tin.</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">2. Thuật ngữ của công nghệ Frame Relay</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/10.jpg" style="width:432.64px;height:276px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Xét các Router kết nối các mạng của một doanh nghiệp</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Nếu sử dụng đường Leased-Line thì 4 Router phải mất 12 đường vật lý kết nối.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Nếu sử dụng Frame Relay thì 4 Router chỉ mất 4 đường vật lý kết nối tới Swich chạy Frame Relay của nhà cung cấp dịch vụ.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Các thuật ngữ</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Đường vật lý kết nối các router về Switch Frame Relay gọi là Local Access Loop.</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Đường Local Access Loop có tốc độ bằng một đường T1 = 1,544 Mbps/s</span></li><li style="text-align:left;"><span style="font-size:14px;">Tốc độ truy nhập của đường Local Access Loop được gọi là Access Rate, nó chỉ nằm ở phần truy cập từ Router tới nhà cung cấp dịch vụ ISP mà thôi.</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Các Router trao đổi thông tin với Switch Frame Relay bằng các bản tin LMI (Local Management Interface):</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">LMI dùng để theo dõi kết nối từ Router khách hàng lên Frame Relay Switch.</span></li><li style="text-align:left;"><span style="font-size:14px;">Các giá trị trong LMI là DLCI (Data Link connection Identifier). DLCI dùng để định danh các đường mạch ảo thường trực PVC (Permanent Virtual Circuits). Bốn đường ảo sẽ có 4 DLCI khác nhau.</span></li><li style="text-align:left;"><span style="font-size:14px;">DLCI chỉ có giá trị trong nội bộ một đường vật lý (từ Switch Frame Relay về Router). Sang đường vật lý khác có thể điền giá trị DLCI giống nhau.</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Đường PVC (Permanent Virtual Circuits): là đường mạch ảo thường trực, nó được thiết kế liên tục ổn định. Khi các Router không trao đổi dữ liệu đường này vẫn tồn tại.</span></p><ul><li style="text-align:left;"><span style="font-size:14px;">Khi thuê đường PVC thì chúng ta sẽ có cam kết với nhà cung cấp dịch vụ về tốc độ đường truyền, được gọi là CIR</span></li><li style="text-align:left;"><span style="font-size:14px;">CIR (committed information rate): là tốc độ thực sự của đường PVC đơn vị là (bps). Nếu người dùng gửi quá tốc độ cho phép của CIR thì sẽ có bít DE bật lên xử lý.</span></li><li style="text-align:left;"><span style="font-size:14px;">Bit DE (Discard Eligibility): khi người dùng gửi các Frame vào lớn hơn tốc độ cho phép thì sẽ được đánh dấu bằng bit DE, bình thường truyền sẽ không sao nhưng khi có sự nghẽn mạng thì những Frame này sẽ bị hủy bỏ.</span></li><li style="text-align:left;"><span style="font-size:14px;">Bit FECN (Forward Explicit Congestion Notification): là bit chỉ báo đang có nghẽ. Khi frame đi vào sẽ được đánh bit này. Khi bị nghẽn nó sẽ chuyển lên các tầng bên trên cho các giao thức TCP/UDP xử lý để truyền chậm lại</span></li><li style="text-align:left;"><span style="font-size:14px;">Bit BECN (Backward Explicit Congestion Notification): là báo nghẽn chiều ngược lại (FECN là chiều gói tin đi, BECN là chiều về)</span></li></ul><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Đường SVC (switched virtual circuits): có tính chất quay số. Khi Router gửi dữ liệu thì được thiết lập. Khi Router gửi xong thì ngắt kết nối.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">3. Các kiểu sơ đồ đấu nối Frame Relay</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/11.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Kiểu Full Mesh: Các Router có các đường kết nối dùng để backup cho nhau</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Kiểu Star (Hub-and-Spoke): Các Router có một đường kết nối tới một Router chính. Khả năng dự phòng không cao (giống mạng LAN của chúng ta nhưng thay bằng Router. Nhưng giá thành thuê đường truyền lại thấp hơn nhiều so với Full Mesh</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Kiểu Partial-Mesh: Một số node nào quan trọng thì cho kết nối backup, cái nào không quan trọng thì bỏ qua.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Môi trường Frame Relay: là môi trường đa truy nhập. Nó không thể gửi gói tin Broadcast từ các Router này tới Router kia được.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">4. Frame Relay Subinterfaces</span></span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/12.jpg"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giả sử sau khi các Router chạy định tuyến với nhau bằng giao thức Distance Vector nào đó (RIP, EIGRP). Thì&nbsp; Router R thấy được mạng A, R thấy được B, R thấy được C. Nhưng các Router sẽ không thấy được mạng của nhau vì nó sử dụng tính năng Split Horizon. Tính năng Split Horizone sẽ không gửi quảng bá những bảng định tuyến nó đã học trở về cổng đó.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Giải pháp khắc phục là người ta chia Subinterfaces: Chia Subinterface trên cổng S0/0 tương ứng với 3 đường. Ở đây chia Subinterface trên cổng WAN.</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">5. Frame Relay Address Mapping</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi đưa dữ liệu xuống đóng thì cần phải tương quan giữa lớp 3 và lớp 2</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Số DLCI sẽ gán cho các đường PVC kết nối tới Router</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">Khi chuyển gói tin tương quan giữa IP đầu xa và DLCI đầu gần sẽ sử dụng 2 cơ chế: Inverse ARP (tự động map) hoặc Frame Relay Map (điền bằng tay)</span></p><p style="text-align:center;margin-bottom:20px;"><img src="/Network/4/13.jpg" style="width:408.48px;height:245px;"><br></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">6. Cấu hình Frame Relay</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">a. Cấu hình cơ bản:</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)# int s0/0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# ip add 10.0.0.1 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# encapsulation Frame-Relay&nbsp; (không dùng câu lệnh này nó sẽ đóng gói theo HDLC)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# no Frame-relay IARP</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# Frame-relay map IP 10.0.0.2 102&nbsp; broadcast (Frame relay không gửi broadcast nên nó phải giả broadcast).</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">b. Cấu hình Point to Point</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)# int s0/0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# encapsulation Frame-Relay</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface serial 0/0/0&nbsp; 102&nbsp; point-to-point</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#ip address 10.0.0.1 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# frame-relay interface-dlci&nbsp; 102</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)#interface serial 0/0/0&nbsp; 103&nbsp; point-to-point</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)#ip address 10.0.0.1 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# frame-relay interface-dlci&nbsp; 103</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)# int s0/0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# encapsulation Frame-Relay</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#interface serial 0/0/0&nbsp; 201&nbsp; point-to-point</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#ip address 10.0.0.2 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# frame-relay interface-dlci&nbsp; 201</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config)#interface serial 0/0/0&nbsp; 103&nbsp; point-to-point</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)#ip address 10.0.0.2 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R2(config-if)# frame-relay interface-dlci&nbsp; 203</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">c. Cấu hình Multipoint</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config)# int s0/0/0</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# no shut</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1(config-if)# encapsulation Frame-Relay</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config-if)# exit</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config)#interface s0/0/0.102&nbsp; multipoint</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config-if)#ip address 10.17.0.1 255.255.2550</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config-if)# frame-relay map ip 10.17.0.2&nbsp; 120&nbsp; broadcast</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config-if)# frame-relay map ip 10.17.0.3&nbsp; 130&nbsp; broadcast</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">=&gt; R1(config-if)# frame-relay map ip 10.17.0.4&nbsp; 140&nbsp; broadcast</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">&nbsp;</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;"><span style="font-weight:700;">d. Các lệnh kiểm tra</span></span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1# show interface s0/0/0 (kiểm tra Frame relay trên cổng)</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1# show frame-relay LMI</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-size:14px;">R1# Show frame-relay map</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;color:inherit;text-align:center;">II. Thực hành</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;color:inherit;text-align:center;">1.&nbsp;</span><span style="font-size:14px;color:inherit;text-align:center;font-weight:bold;">Cấu hình Frame Relay cơ bản</span></p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;color:inherit;text-align:center;">a. Yêu cầu chuẩn bị</span></p><span style="color:inherit;"><p style="text-align:left;margin-bottom:20px;">3 Router Cisco 2691</p><p style="text-align:left;margin-bottom:20px;">Dây cáp</p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung</span></p><p style="text-align:left;margin-bottom:20px;">Đấu nối thiết bị như sơ đồ</p><p style="text-align:left;margin-bottom:20px;">Cấu hình cơ bản cho Router</p><p style="text-align:left;margin-bottom:20px;">Cấu hình Router làm Frame Relay Switch&nbsp;</p><p style="text-align:left;margin-bottom:20px;">Cấu hình Interface trên các Router A và B</p><p style="text-align:left;margin-bottom:20px;">Cấu hình giao thức RIP trên các Router A và B</p><p style="text-align:left;margin-bottom:20px;">Kiểm tra kết nối</p><p style="text-align:left;margin-bottom:20px;"><span style="font-weight:700;">c. Video hướng dẫn</span></p></span></div>
</div><div data-element-id="elm_FnSRI87Cas6QWrPNQB5XvQ" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_FnSRI87Cas6QWrPNQB5XvQ"].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/74rjw3SmDCk" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_cUm8tRVK9VLSSWeV5XPz1g" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_cUm8tRVK9VLSSWeV5XPz1g"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_cUm8tRVK9VLSSWeV5XPz1g"].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 Frame Relay Static Mapping</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị</span></p><p style="margin-bottom:20px;">3 Router Cisco 2691</p><p style="margin-bottom:20px;">Dây cáp</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung</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 Router</p><p style="margin-bottom:20px;">Cấu hình Router làm Frame Relay Switch&nbsp;</p><p style="margin-bottom:20px;">Cấu hình Interface trên các Router 1 và 2</p><p style="margin-bottom:20px;">Cấu hình giao thức RIP trên các Router 1 và 2</p><p style="margin-bottom:20px;">Cấu hình giao thức&nbsp;Frame Relay Static Mapping</p><p style="margin-bottom:20px;">Kiểm tra kết nối</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_NdLKMTmXO1FiiBoEEKjyow" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_NdLKMTmXO1FiiBoEEKjyow"].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/jxriy-4Ybmc" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_QM6lqj61xb_-5A34Q1jWKQ" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_QM6lqj61xb_-5A34Q1jWKQ"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_QM6lqj61xb_-5A34Q1jWKQ"].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;">3.&nbsp;</span><span style="font-size:14px;color:inherit;font-weight:bold;">Cấu hình Frame Replay subinterface PPP</span></p><p style="margin-bottom:20px;"><span style="font-weight:700;">a. Yêu cầu chuẩn bị</span></p><p style="margin-bottom:20px;">4 Router Cisco 2691</p><p style="margin-bottom:20px;">Dây cáp</p><p style="margin-bottom:20px;"><span style="font-weight:700;">b. Yêu cầu nội dung</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 Router</p><p style="margin-bottom:20px;">Cấu hình Router làm Frame Relay Switch&nbsp;</p><p style="margin-bottom:20px;">Cấu hình Interface và&nbsp; Sub-Interface trên các Router R1, R2, R3</p><p style="margin-bottom:20px;">Cấu hình giao thức EIGRP trên các Router R1, R2, R3</p><p style="margin-bottom:20px;">Cấu hình Sub-Interface Point-to-point</p><p style="margin-bottom:20px;">Kiểm tra kết nối</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_Pn7FAZxYjStGyiIRkkvKzg" data-element-type="video" class="zpelement zpelem-video "><style type="text/css"> [data-element-id="elm_Pn7FAZxYjStGyiIRkkvKzg"].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/1tddEz1m6aY" frameborder="0" allowfullscreen></iframe></div>
</div><div data-element-id="elm_0Y697_nWgeqevbd_jU1xRw" data-element-type="text" class="zpelement zpelem-text "><style> [data-element-id="elm_0Y697_nWgeqevbd_jU1xRw"].zpelem-text { text-transform:none; border-style:none; border-radius:1px; box-shadow:0px 0px 0px 0px #000000; } [data-element-id="elm_0Y697_nWgeqevbd_jU1xRw"].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>-----&amp;-----&amp;-----</span><br></p><p><span style="font-weight:bold;">Để quay về danh sách các bài phần Network các bạn chọn link sau</span></p><p><span style="color:inherit;"></span></p><p><a href="https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network" style="color:rgb(74, 43, 212);">https://www.quantrimangdn.com/blogs/post/tong-hop-cac-bai-phan-network</a></p></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Fri, 03 May 2019 01:59:20 +0700</pubDate></item></channel></rss>