Giáo trình Thực hành Mạng cisco cơ bản: Phần 1 - CĐ Kỹ Thuật Cao Thắng

57 49 1
Giáo trình Thực hành Mạng cisco cơ bản: Phần 1 - CĐ Kỹ Thuật Cao Thắng

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

(NB) Giáo trình Thực hành Mạng cisco cơ bản: Phần 1 với 4 bài học được sắp xếp từ dễ đến khó, mỗi bài học bao gồm: Hướng dẫn cấu hình cơ bản trên thiết bị cisco; Hướng dẫn cấu hình các chức năng nâng cao, cấu hình định tuyến tĩnh; Cấu hình định tuyến động sử dụng giao thức rip

BỘ CÔNG THƯƠNG TRƯỜNG CAO ĐẲNG KỸ THUẬT CAO THẮNG BỘ MÔN ĐIỆN TỬ VIỄN THÔNG THÁI NGỌC ANH KHÔI LẠI NGUYỄN DUY NGUYỄN ĐỨC ANH GIÁO TRÌNH THỰC HÀNH MẠNG CISCO CƠ BẢN (GIÁO TRÌNH DÙNG CHO HỆ CAO ĐẲNG NGÀNH CNKT ĐIỆN TỬ, TRUYỀN THƠNG) TP HỒ CHÍ MINH - 2019 NỘI QUY PHÒNG THỰC HÀNH ( ĐỐI VỚI HỌC SINH - SINH VIÊN) Đến giờ, mặc đồng phục, mang giày bảo hộ lao động theo qui định nhà trường, trễ 15 phút không vào phòng Mang theo sổ thực hành, tài liệu thực hành, dụng cụ liên quan đến buổi thực hành Thực nghiêm túc qui định an tòan lao động, qui định sử dụng dụng cụ đo kiểm thiết bị thực hành Để cặp sách, mũ, nón, vật dụng cá nhân chỗ quy định Không sử dụng, điều chỉnh thiết bị, tháo gở linh kiện chưa có cho phép giáo viên hướng dẫn (GVHD) Không mang thiết bị, dụng cụ khỏi phòng chưa có cho phép GVHD Khơng viết, vẽ bậy lên bàn, ghế, tường nhà Không đùa nghịch tùy tiện khỏi phòng Khơng làm việc riêng, không sử dụng điện thoại di động, không hút thuốc lá, khơng ăn uống phòng thực hành Có ý thức giữ gìn vệ sinh chung Lau chùi, bảo quản dụng cụ đo kiểm thiết bị thực hành Hoàn trả đầy đủ dụng cụ, thiết bị cho GVHD Làm vệ sinh phòng thực hành, xếp bàn ghế ngắn tắt đèn, quạt, cắt điện trước 10 Sinh viên không chấp hành qui định trên, không thực hành phải chịu hình thức kỷ luật theo qui định nhà trường MỤC LỤC BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO I MỤC ĐÍCH – YÊU CẦU 1 Mục đích Yêu cầu II NỘI DUNG THỰC HÀNH 1 Đăng nhập vào Router qua giao diện dòng lệnh 2 Cài đặt loại mật đăng nhập cho Router Các lệnh cấu hình Router BÀI 2: HƯỚNG DẪN CẤU HÌNH CÁC CHỨC NĂNG NÂNG CAO 10 I MỤC ĐÍCH – YÊU CẦU 10 Mục đích 10 Yêu cầu 10 II NỘI DUNG THỰC HÀNH 10 Chức Telnet 10 Chức Cisco Discovery Protocol 12 Chức DHCP 13 Chức khôi phục mật Cisco 2800 15 Nạp IOS cho Router chạy từ Flash qua TFTP Server 17 BÀI 3: CẤU HÌNH ĐỊNH TUYẾN TĨNH 19 I MỤC ĐÍCH – YÊU CẦU 19 Mục đích 19 Yêu cầu 19 II NỘI DUNG THỰC HÀNH 19 Cấu hình kết nối Router 21 Giao thức định tuyến tĩnh 24 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP 27 I MỤC ĐÍCH – YÊU CẦU 27 Mục đích 27 Yêu cầu 27 i II NỘI DUNG THỰC HÀNH 27 Giao thức định tuyến RIPv1 28 Giao thức định tuyến RIPv2 35 Cấu hình RIP sử dụng Passive Interface 45 BÀI 5: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC OSPF 54 I MỤC ĐÍCH – YÊU CẦU 54 Mục đích 54 Yêu cầu 54 II NỘI DUNG THỰC HÀNH 54 Cấu hình OSPF đơn vùng 55 Cấu hình OSPF đa vùng 61 Cấu hình kết hợp RIPv2 OSPF 66 BÀI 6: NETWORK ADDRESS TRANSLATION 72 I MỤC ĐÍCH – YÊU CẦU 72 Mục đích 72 Yêu cầu 72 II NỘI DUNG THỰC HÀNH 72 Ôn lại lý thuyết 72 Cấu hình NAT 75 Phương pháp NAT tĩnh 77 Phương pháp NAT động 78 Phương pháp PAT 79 BÀI 7: ACCESS CONTROL LIST 82 I MỤC ĐÍCH – YÊU CẦU 82 Mục đích 82 Yêu cầu 82 II NỘI DUNG THỰC HÀNH 82 Ôn lại lý thuyết 82 Cấu hình ACL 89 TÀI LIỆU THAM KHẢO 93 ii BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO BÀI HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Họ tên sinh viên: Ngày: Thời gian thực hiện: tiết Điểm Nhận xét Kỹ thuật (6đ): Thao tác (1đ): An toàn (1đ): Tổ chức nơi làm việc (1đ): Thời gian (1đ): I MỤC ĐÍCH - U CẦU Mục đích Trang bị cho người học: - Kỹ cấu hình thiết bị Cisco - Kỹ cài đặt thơng số máy tính - Kỹ lựa chọn kết nối thiết bị Cisco máy tính Yêu cầu Sau hoàn thành thực hành, người học cần đạt yêu cầu sau: - Cấu hình thành cơng chức - Cài đặt thơng số máy tính - Kiểm tra kết nối máy tính thiết bị II NỘI DUNG THỰC HÀNH ➢ Chuẩn bị: - Máy tính có hệ điều hành Windows - Thiết bị Cisco - Dây cáp kết nối Đăng nhập vào Router qua giao diện dòng lệnh Phần thực hành giúp người học làm quen với chế độ dòng lệnh vài lệnh hệ điều hành CISCO PC Router kết nối thông qua cáp Console BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Hình 1.1 Kết nối Router qua cáp Console Các bước thực hiện: Nối cáp Đăng nhập vào Router Xem thông tin Router Sử dụng Hyper Terminal Bước 1: Nối cáp Dùng cáp Console cắm vào cổng RJ45 Router RS232 PC Chú ý cắm cáp không bật nguồn cho Router Bước 2: Đăng nhập vào Router Khởi động Hyper Terminal Windows: Communications –> HyperTerminal Start Chọn tên biểu tượng tùy thích: Lựa chọn kết nối COM1 –> Program –>Accessories BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Sử dụng thiết lập mặc định: Hình 1.2 Thiết lập mặt định thông số Port BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Bắt đầu khởi động Router Các thông tin Router hiển thị hình: Hình 1.3 Giao diện Hyper Terminal Khi bắt đầu Router chế độ User mode, để chuyển sang chế độ Priviledge mode bạn dùng lệnh enable: Router> Router>enable Router# Để quay trở lại chế độ User mode, sử dụng lệnh exit disable Router#exit Để xem lệnh thuộc chế độ này, dùng lệnh dấu “ ?” Router>? Để xem phần lại câu lệnh show, bạn dùng cú pháp tương tự: Router>show ? Để chuyển sang chế độ Global configuration mode dùng lệnh Configuration terminal Bước 3: Xem thơng tin cấu hình Router Các lệnh thực chế độ Privilegdge mode: Router#show version Router#show flash Router#show interface Router#show running-config BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Router#show startup-config Router#show configuration Router#show clock Router#show user Router#show line Router#show ip route Router#show arp Router#show host Để xóa cấu hình Router sử dụng lúc khởi động, dùng lệnh: Router#erase startup-config Hoặc Router#write erase Bước 4: Sử dụng Hyper Terminal Để cấu hình nhanh Router Bạn sử dụng tập tin “kịch bản” Bạn mở notepad: soạn thảo câu lệnh theo trình tự, câu lệnh dòng, lưu tập tin lại đuôi txt Trên Hyper Terminal chọn Transfer -> Send Text File Một ý, cách làm không dùng cho câu lệnh cần xác nhận tham số, ví dụ nhập mật khẩu, Nhận xét: - Khi cấu hình cho thiết bị Router Cisco cần sử dụng loại cáp nào? - Router Cisco có chế độ (mode) nào? - Nhóm lệnh show thực chế độ (mode) nào? Cài đặt loại mật khẩu đăng nhập cho Router Phần thực hành giúp người học làm quen với cách đặt mật cho chế độ truy cập vào router Router kết nối tới PC thông qua cáp Console BÀI 1: HƯỚNG DẪN CẤU HÌNH CƠ BẢN TRÊN THIẾT BỊ CISCO Các bước thực hiện: Đặt mật truy cập vào chế độ Priviledge mode Đặt mật truy cập qua cổng AUX Router Đặt mật truy cập qua cổng Console Router Đặt mật truy cập Telnet Bước Đặt mật truy cập vào chế độ Priviledge mode Router(config)#enable secret matkhauuutien Router(config)#enable password matkhau Khi đặt mật này, mật secret ưu tiên sử dụng Mặc định, mật cấu hình dạng clear text tập tin cấu hình Bước Đặt mật truy cập Router thông qua cáp AUX: Router(config)#line aux Router(config-line)#password auxpassword Router(config-line)#login Bước 3: Đặt mật truy cập Router thông qua cáp Console: Router(config)#line console Router(config-line)#password consolepassword Router(config-line)#login Bước 4: Đặt mật truy cập Router thông qua Telnet: Router(config)#line vty Router(config-line)#password telnetpassword Router(config-line)#login Sau đặt địa IP cho Router, dùng chương trình Telnet để kết nối tới Router thay sử dụng cáp console Lưu ý: Câu lệnh login có tác dụng yêu cầu chứng thực truy cập Nếu khơng có câu lệnh này, Router khơng hỏi mật truy cập BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 92 packets input, 7687 bytes, no buffer Received 92 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 84 packets output, 6391 bytes, underruns output errors, collisions, interface resets More-Kiểm tra interface S0/1: RouterB#show interfaces S0/1 Serial0/1 is up, line protocol is up Hardware is GT96K Serial Internet address is 193.1.1.1/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) CRC checking enabled Last input 00:00:01, output 00:00:04, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec 39 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP minute output rate bits/sec, packets/sec 56 packets input, 4437 bytes, no buffer Received 56 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 84 packets output, 6142 bytes, underruns output errors, collisions, 16 interface resets More-Kiểm tra interface S0/0: RouterC#show interfaces s0/0 Serial0/0 is up, line protocol is up Hardware is GT96K Serial Internet address is 193.1.1.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) CRC checking enabled Last input 00:00:00, output 00:00:03, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 139 packets input, 9067 bytes, no buffer Received 139 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 68 packets output, 5354 bytes, underruns output errors, collisions, interface resets More 40 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Bước 5: Chạy giao thức định tuyến RIP Router RouterA(config)#router rip RouterA (config–router)#version RouterA(config-router)#network 10.0.0.0 RouterA(config-router)#network 148.1.0.0 RouterA(config-router)#network 192.1.1.0 RouterA(config-router)#no auto-summary RouterA(config-router)#end RouterB(config)#router rip RouterB (config–router)#version RouterB(config-router)#network 192.1.1.0 RouterB(config-router)#network 193.1.1.0 RouterB(config-router)#no auto-summary RouterB(config-router)#end RouterC(config)#router rip RouterC (config–router)#version RouterC(config-router)#network 152.1.0.0 RouterC(config-router)#network 193.1.1.0 RouterC(config-router)#no auto-summary RouterC(config-router)#end Bước 6: Kiểm tra bảng định tuyến lệnh show ip route RouterA#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type E1 - OSPF external type 1, E2 - OSPF external type i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set R 152.1.0.0/16 [120/2] via 192.1.1.2, 00:00:11, Serial0/1 41 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP 10.0.0.0/24 is subnetted, subnets C 10.1.1.0 is directly connected, Loopback0 R 193.1.1.0/24 [120/1] via 192.1.1.2, 00:00:11, Serial0/1 C 192.1.1.0/24 is directly connected, Serial0/1 148.1.0.0/24 is subnetted, subnets C 148.1.1.0 is directly connected, FastEthernet0/0 RouterA# Dùng lệnh show ip route rip muốn xem route học từ RIP RouterA#show ip route rip R 152.1.0.0/16 [120/2] via 192.1.1.2, 00:00:08, Serial0/1 R 193.1.1.0/24 [120/1] via 192.1.1.2, 00:00:08, Serial0/1 Từ Router ping tới địa mạng RouterC#ping 192.1.1.1 Sending 5, 100-byte ICMP Echos to 192.1.1.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/32/80 ms RouterC#ping 192.1.1.2 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.1.1.2, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 4/38/128 ms RouterA#ping 152.1.1.1 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 152.1.1.1, timeout is seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/36/96 ms RouterA#ping 192.1.1.2 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.1.1.2, timeout is seconds: 42 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 8/43/96 ms Ta xem trình cập nhật định tuyến RIP cách dùng lệnh debug ip rip Chú ý cổng serial0, RouterA không quảng bá network học từ RouterB (152.1.0.0 193.1.1.0) router lại network quảng bá Đây hoạt động chế split horizon: split horizon hoạt động, router không quảng bá route ngược lại nơi đến RouterA#debug ip rip RIP protocol debugging is on RouterA# RIP: sending v1 update to 255.255.255.255 via Serial0/1 (192.1.1.1) RIP: build update entries network 10.0.0.0 metric RouterA# RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1) RIP: build update entries network 152.1.0.0 metric network 192.1.1.0 metric network 193.1.1.0 metric RouterA# Khi debug chạy, router đưa thong tin định tuyến RIP, để ngừng debug dùng lệnh RouterA#undebug all Vơ hiệu hóa split horizon RouterA dùng lệnh interface mode RouterA(config)#inter s0/1 RouterA(config-if)#no ip split-horizon Lúc này, để kiểm tra thông tin định tuyến RouterA dùng lệnh debug ip rip Thông tin xuất (chú ý tất route quảng bá cổng serial, bao gồm route học từ RouterB RouterC) RouterA#debug ip rip RIP protocol debugging is on RouterA# RIP: received v1 update from 192.1.1.2 on Serial0/1 43 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP 152.1.0.0 in hops 193.1.1.0 in hops RouterA# RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1) RIP: build update entries network 152.1.0.0 metric network 192.1.1.0 metric network 193.1.1.0 metric RouterA# RIP: sending v1 update to 255.255.255.255 via Serial0/1 (192.1.1.1) RIP: build update entries network 10.0.0.0 metric network 152.1.0.0 metric subnet 192.1.1.0 metric network 193.1.1.0 metric Nhận xét: - Ưu điểm RIPv2 so với RIPv1? - Để cấu hình định tuyến động dừng RIPv2 cần sử dụng lệnh nào? - Cơ chế split horizon hoạt động nào? 44 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Bài tập: Sinh viên tiến hành cấu hình RIPv2 cho sơ đồ Cấu hình RIP sử dụng Passive Interface Phần thực hành gồm nội dung nâng cao, giúp người học nắm vững - Bài thực hành mô tả cách dùng lệnh passive interface; lệnh cho phép router có chạy RIP nhận, không gởi thông tin định tuyến ngồi cổng định - Các Router cấu hình RIP - Cổng S0/1 RouterA không gửi thông tin địn tuyến mà nhận thông tin định tuyến - Router B C quảng bá tất mạng nối trực tiếp Hình 4.3 Cấu hình định tuyến động RIP Các bước thực hiện: Đặt hostname, địa IP cho cổng FastEthernet Bước 1: Cấu hình RouterA Router>en Router#config terminal 45 Loopback, Serial, BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Router(config)#hostname RouterA RouterA(config)#interface loopback RouterA(config–if)# ip address 10.1.1.1 255.255.255.0 RouterA(config–if)#exit RouterA(config)#interface fastEthernet 0/0 RouterA(config–if)#ip address 148.1.1.1 255.255.255.0 RouterA(config–if)#no shutdown RouterA(config–if)#no keepalive ← Cho phép interface ethernet up không kết nối với HUB Switch RouterA(config–if)#exit RouterA(config)#interface serial 0/1 RouterA(config–if)#ip address 192.1.1.1 255.255.255.0 RouterA(config-if)#clock rate 64000 ← Hoạt động DCE cung cấp xung clock RouterA(config–if)#no shutdown RouterA(config–if)#end RouterA# Bước 2: Cấu hình RouterB Router>en Router#config terminal Router(config)#hostname RouterB RouterB(config)#interface serial 0/0 RouterB(config–if)#ip address 192.1.1.2 255.255.255.0 RouterB(config–if)#no shutdown RouterB(config–if)#exit RouterB(config)#interface serial 0/1 RouterB(config–if)#ip address 193.1.1.1 255.255.255.0 RouterB(config-if)#clock rate 64000 ← Hoạt động DCE cung cấp xung clock RouterB(config–if)#no shutdown RouterB(config–if)#end RouterB# Bước 3: Cấu hình RouterC Router>en 46 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Router#config terminal Router(config)#hostname RouterC RouterC(config)#interface serial 0/0 RouterC(config–if)#ip address 193.1.1.2 255.255.255.0 RouterC(config–if)#no shutdown RouterC(config–if)#exit RouterC(config)#interface fastEthernet 0/0 RouterC(config–if)#ip address 152.1.1.1 255.255.255.0 RouterC(config–if)#no shutdown RouterC(config–if)#no keepalive RouterC(config–if)#end RouterC# Bước 4: Kiểm tra hoạt động cổng Serial router lệnh [Type Number] Kiểm tra interfaces S0/0 Router A: RouterA#show interfaces S0/1 Serial0/1 is up, line protocol is up Hardware is GT96K Serial Internet address is 192.1.1.1/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) CRC checking enabled Last input 00:00:03, output 00:00:06, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 47 show interface BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP 71 packets input, 5445 bytes, no buffer Received 71 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 79 packets output, 6731 bytes, underruns output errors, collisions, interface resets More-Kiểm tra interfaces S0/0 Router B: RouterB#show interfaces S0/0 Serial0/0 is up, line protocol is up Hardware is GT96K Serial Internet address is 192.1.1.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) CRC checking enabled Last input 00:00:05, output 00:00:01, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 92 packets input, 7687 bytes, no buffer Received 92 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 84 packets output, 6391 bytes, underruns output errors, collisions, interface resets More 48 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Kiểm tra interfaces S0/1 Router B: RouterB#show interfaces S0/1 Serial0/1 is up, line protocol is up Hardware is GT96K Serial Internet address is 193.1.1.1/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set Keepalive set (10 sec) CRC checking enabled Last input 00:00:01, output 00:00:04, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 56 packets input, 4437 bytes, no buffer Received 56 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 84 packets output, 6142 bytes, underruns output errors, collisions, 16 interface resets More-Kiểm tra interfaces S0/0 Router C: RouterC#show interfaces s0/0 Serial0/0 is up, line protocol is up Hardware is GT96K Serial Internet address is 193.1.1.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set 49 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Keepalive set (10 sec) CRC checking enabled Last input 00:00:00, output 00:00:03, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/1/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 139 packets input, 9067 bytes, no buffer Received 139 broadcasts, runts, giants, throttles input errors, CRC, frame, overrun, ignored, abort 68 packets output, 5354 bytes, underruns output errors, collisions, interface resets More-Bước 5: Chạy giao thức định tuyến RIP router RouterA(config)#router rip RouterA(config-router)#version RouterA(config-router)#network 10.0.0.0 RouterA(config-router)#network 148.0.0.0 RouterA(config-router)#network 192.1.1.0 RouterA(config-router)#no auto-summary RouterA(config-router)#exit RouterB(config)#router rip RouterB(config-router)#version RouterB(config-router)#network 192.1.1.0 RouterB(config-router)#network 193.1.1.0 RouterB(config-router)#no auto-summary RouterB(config-router)#end 50 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP RouterC(config)#router rip RouterC(config-router)#version RouterC(config-router)#network 152.1.0.0 RouterC(config-router)#network 193.1.1.0 RouterC(config-router)#no auto-summary RouterC(config-router)#end Bước 6: Cấu hình Passive-interface RouterA(config)#router rip RouterA(config-router)#passive-interface Serial0/1 Bước 7: Kiểm tra Xem q trình gởi nhận thơng tin định tuyến lệnh debug ip rip routerA Chú ý: Cập nhật RIP gởi cổng FastEthernet0 Loopback0, Serial 0/1 nhận thông tin định tuyến RIP RouterA#debug ip rip RIP protocol debugging is on RA#RIP: sending v1 update to 255.255.255.255 via Loopback0 (10.1.1.1) RIP: build update entries network 148.1.0.0 metric network 152.1.0.0 metric network 192.1.1.0 metric network 193.1.1.0 metric RIP: sending v1 update to 255.255.255.255 via FastEthernet0/0 (148.1.1.1) RIP: build update entries network 10.0.0.0 metric network 152.1.0.0 metric network 192.1.1.0 metric network 193.1.1.0 metric Xem bảng định tuyến RouterA RouterC lệnh show ip route Chú ý: Router học tất route từ Router C, Router C route từ Router A RouterA#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 51 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 10.0.0.0/24 is subnetted, subnets C 10.1.1.0 is directly connected, Loopback0 148.1.0.0/24 is subnetted, subnets C 148.1.1.0 is directly connected, FastEthernet0/0 R 152.1.0.0/16 [120/2] via 192.1.1.2, 00:00:02, Serial0/1 C 192.1.1.0/24 is directly connected, Serial0/1 R 193.1.1.0/24 [120/1] via 192.1.1.2, 00:00:02, Serial0/1 RouterC#show ip route Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route Gateway of last resort is not set 152.1.0.0/24 is subnetted, subnets C 152.1.1.0 is directly connected, FastEthernet0/0 R 192.1.1.0/24 [120/1] via 193.1.1.1, 00:00:26, Serial0/0 C 193.1.1.0/24 is directly connected, Serial0/0 Nhận xét: - Mục đích việc sử dụng tính Passive Interface gì? - Sử dụng lệnh để kiểm tra q trình cập nhật thơng tin? 52 BÀI 4: CẤU HÌNH ĐỊNH TUYẾN ĐỘNG SỬ DỤNG GIAO THỨC RIP Bài tập: Tiến hành cấu hình định tuyến RIP sử dụng Passive Interface 53 ... N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type E1 - OSPF external type 1, E2 - OSPF external type i - IS-IS, su - IS-IS summary, L1 - IS-IS level -1 , L2 - IS-IS level-2 ia - IS-IS... type 1, E2 - OSPF external type i - IS-IS, su - IS-IS summary, L1 - IS-IS level -1 , L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic... type 1, E2 - OSPF external type i - IS-IS, su - IS-IS summary, L1 - IS-IS level -1 , L2 - IS-IS level-2 24 BÀI 3: CẤU HÌNH ĐỊNH TUYẾN TĨNH ia - IS-IS inter area, * - candidate default, U - per-user

Ngày đăng: 17/05/2020, 21:02

Từ khóa liên quan

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan