(TIỂU LUẬN) QUẢN TRỊ MẠNG bài THỰC HÀNH số 1 cài đặt phần mềm cisco packet tracer giả lập việc cấu hình router

70 5 0
(TIỂU LUẬN) QUẢN TRỊ MẠNG bài THỰC HÀNH số 1 cài đặt phần mềm cisco packet tracer giả lập việc cấu hình router

Đ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

ĐẠI HỌC BÁCH KHOA HÀ NỘI TRƯỜNG CÔNG NGHỆ THÔNG TIN VÀ TRUYỀN THÔNG QUẢN TRỊ MẠNG Giảng viên hướng dẫn : TRẦN HOÀNG HẢI Học viên thực : BÙI ĐỨC KIÊN MSSV : 20180785 Lớp : IT-LTU17 HÀ NỘI, 12/7/2022 © 2022 – HUST – SOICT MỤC LỤC BÀI THỰC HÀNH SỐ 1.1 MỤC ĐÍCH VÀ NỘI DUNG 1.2 CHUẨN BỊ 1.3 NỘI DUNG CHI TIẾT BÀI THỰC HÀNH SỐ 2.1 MỤC ĐÍCH VÀ NỘI DUNG 2.2 CHUẨN BỊ 2.3 NỘI DUNG CHI TIẾT Kiểm tra kết nối 10 Tạo đặt tên VLANs 10 Gán cổng vào VLAN 10 10 Gán cổng vào VLAN 20 11 Hiển thị thông tin VLAN 11 Tạo trunk 11 Cấu hình router 12 Hiển thị router routing table 12 Kiểm tra VLANs trunk 13 Di chuyển hosts 13 2.3.2 XÂY DỰNG MỘT MẠNG INTER-VLAN VỚI MỘT ROUTER 13 Đồ hình mạng 13 Các bước thực 14 ĐỒ HÌNH MẠNG 17 CẤU HÌNH CÁC SWITCH 17 Cấu hình switch 3550 17 Cấu hình switch 2950 19 2.3.4 XÂY DỰNG INTER-VLAN NETWORK VỚI MỘT LAN SWITCH LAYER 21 Đồ hình mạng 21 Các bước thực 22 BÀI THỰC HÀNH SỐ .23 TÀI LI U H NG D N TH C HÀNH QU N TR M NG 3.1 MỤC ĐÍCH VÀ NỘI DUNG 23 3.2 CHUẨN BỊ 23 3.3 NỘI DUNG CHI TIẾT 24 3.3.1 CẤU HÌNH RIP V.1 24 ĐỒ HÌNH MẠNG 24 3.3.2 CẤU HÌNH RIP V.2 29 Các bước tiến hành 29 3.3.3 CẤU HÌNH OSPF 30 ĐỒ HÌNH MẠNG 30 CÁC BƯỚC THỰC HIỆN 30 3.3.4 CẤU HÌNH RIP, OSPF 41 TÀI LI U H NG D N TH C HÀNH QU N TR M NG BÀI THỰC HÀNH SỐ 1.1 MỤC ĐÍCH VÀ NỘI DUNG Giúp sinh viên: • Làm quen với thiết bị mạng: router, switch… • Hiểu biết cách cấu hình Router Cisco • Liên mạng cục dùng Router Cisco • Cấu hình định tuyến tĩnh 1.2 CHUẨN BỊ Cài đặt phần mềm Cisco Packet Tracer giả lập việc cấu hình router theo hình sau: 1.3 NỘI DUNG CHI TIẾT 1.3.1 Đăng nhập vào router - Ban đầu vừa kết nối vào router, vào user mode Trong chế độ user mode sử dụng số lệnh như: ping, traceroute, … Muốn cấu hình router vào chế độ privileged mode, cách sử dụng lệnh enable để vào privileged mode ( Router# ) Dùng lệnh logout, exit để thoát Các dấu nhắc Router: o Router # o Router (config) # o Router (config-if) # o o Router (config-subif) # Router (config-line) # o 1.3.2 Xem thông tin router Router (config-router) # - - ? : Xem lệnh thực chế độ command? : Xem lệnh có kí tự bắt đầu Command ?: Xem tham số lệnh show version : Xem version HĐH router TÀI LI U H NG D N TH C HÀNH QU N TR M NG - show running-config (sh run), show startup-config (sh start) o Xem cấu hình chạy router cấu hình router lưu NVRAM 1.3.3 Đặt password cho router Trong router có password để bảo vệ router Hai password để bảo vệ chế độ privileged mode, sử dụng lệnh enable Và password khác dùng để bảo vệ router người dùng đăng nhập từ console port, auxiliary port telnet (ở mức user mode) 1.3.3.1 Đặt password cho router - Config T - enable secret - enable password o Chú ý: Khi đặt 1.3.3.2 Password cho console port, auxiliary port Telnet - Sử dụng lệnh line để đặc password user mode cho cổng phụ như: Router(config)#line ? First Line number aux Auxiliary line console Primary terminal line vty Virtual terminal Trong đó: o o o - aux: config router qua modem console : config router thông qua console port vty : config router qua telnet (Nếu khơng đặt password khơng thể sử dụng Telnet để cấu hình router) Line [aux/console/vty] [0] Login Password 1.3.3.3 Mã hoá mật mã - Config t Service password-encryption Bắt đầu đặt password No service password-encryption 1.3.4 Cấu hình cho router Cài đặt câu thơng báo logon vào router - banner motd # Câu thông báo # Cấu hình giao tiếp router - interface (int) e0/ s0/ s1 / [fastethernet 0/0] no shutdown (no shut) ip address A.B.C.D subnetmask ip address A.B.C.D subnetmask secondary TÀI LI U H NG D N TH C HÀNH QU N TR M NG - description (desc) câu miêu tả Ví dụ: - Cấu hình cổng Fastethernet 0/0 với địa IP 172.16.10.2/24 Router(config)#int fa0/0 Router(config-if)#ip address 172.16.10.2 255.255.255.0 Router(config-if)#no shut Đặt Router hostname - t hostname Tên_của_router 1.3.5 Cấu hình liên mạng Đồ hình mạng Các bước thực - Kéo thả Switch, Router Host Kết nối Host đến Switch Thực khai báo Hostname thông tin IP cho Switch Host với vùng địa IP 192.168.1.0/24 192.168.2.0/24 Cấu hình Router Kiểm tra liên thông mạng thiết bị Yêu cầu: Sinh viên viết lệnh cấu hình kết tương ứng BAI LAM: Router>enable =>vao che privileged Router#config =>vao che global config mode Router(config)#interface GigabitEthernet0/0 => vao interface Giga0/0 Router(config-if)#ip address 192.168.2.1 255.255.255.0 => cong Giga0/0 co ip la 192.168.2.1 Router(config-if)#no shutdown => giu trang thai mo cho cong Router(config)#interface GigabitEthernet 0/1=> vao interface Giga0/1 Router(config-if)#ip address 192.168.1.1 255.255.255.0 =>cong Giga0/0 co ip la 192.168.1.1 Router(configif)#no shutdown => giu trang thai mo cho cong TÀI LI U H NG D N TH C HÀNH QU N TR M NG 3.3.5 Cấu hình định tuyến tĩnh TÀI LI U H NG D N TH C HÀNH QU N TR M NG QU N TR M NG 35 Sử dụng câu lệnh router-id để thay đổi router ID router R1 R1(config)#router ospf R1(config-router)#router-id 10.4.4.4 Nạp lại sử dụng câu lệnh “clear ip ospf process” R1#(config-router)#end R1# clear ip ospf process Reset ALL OSPF processes? [no]:yes R1# Sử dụng câu lệnh show ip ospf neighbor router R2 để kiểm tra xem router ID R1 thay đổi hay chưa R2#show ip ospf neighbor Neighbor ID 10.3.3.3 10.4.4.4 Gỡ bỏ router ID cấu với câu lệnh router-id R1(config)#router ospf R1(config-router)#no router-id 10.4.4.4 Nạp lại sử dụng câu lệnh “clear ip ospf process” Restart OSPF process dùng câu lệnh clear ip ospf process R1(config-router)#end R1# clear ip ospf process Reset ALL OSPF processes? [no]:yes R1# Bước Kiểm tra hoạt động OSPF Trên router, dùng câu lệnh show ip ospf neighbor để xem thông tin OSPF neighbor routers R2 R3 R1#show ip ospf neighbor Neighbor ID 10.2.2.2 R1# TÀI LI U H NG D N TH C HÀNH QU N TR M NG 36 Trên router R1, dùng câu lệnh show ip protocols để xem thông tin hoạt động giao thức định tuyến R1#show ip protocols Routing Protocol is "ospf 1" Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID 10.1.1.1 Number of areas in this router is 1 normal stub nssa Maximum path: Routing for Networks: 172.16.1.16 0.0.0.15 area 192.168.10.0 0.0.0.3 area 192.168.10.4 0.0.0.3 area Routing Information Sources: Gateway Distance Last Update 10.2.2.2 110 00:11:43 10.3.3.3 110 00:11:43 Distance: (default is 110) R1# Bước Kiểm tra OSPF routes routing tables Xem routing table router R1 Các routes OSPF routes ký hiệu “O” R1#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 10.0.0.0/8 is variably subnetted, subnets, masks TÀI LI U H NG D N TH C HÀNH © 2020 – HUST – SOICT QU N TR M NG 37 C 10.1.1.1/32 is directly connected, Loopback0 O 10.10.10.0/24 [110/65] via 192.168.10.2, 00:01:02, Serial0/0/0 172.16.0.0/16 is variably subnetted, subnets, masks C 172.16.1.16/28 is directly connected, FastEthernet0/0 O 172.16.1.32/29 [110/65] via 192.168.10.6, 00:01:12, Serial0/0/1 192.168.10.0/30 is subnetted, subnets C 192.168.10.0 is directly connected, Serial0/0/0 C 192.168.10.4 is directly connected, Serial0/0/1 O 192.168.10.8 [110/128] via 192.168.10.6, 00:01:12,Serial0/0/1 [110/128] via 192.168.10.2, 00:01:02, Serial0/0/0 R1# Bước Cấu hình OSPF cost Dùng câu lệnh show ip route router R1 để xem chi phí OSPF tới mạng 10.10.10.0/24 R1#show ip route 10.0.0.0/8 is variably subnetted, subnets, masks C 10.1.1.1/32 is directly connected, Loopback0 O 10.10.10.0/24 [110/65] via 192.168.10.2, 00:16:56, Serial0/0/0 172.16.0.0/16 is variably subnetted, subnets, masks C 172.16.1.16/28 is directly connected, FastEthernet0/0 O 172.16.1.32/29 [110/65] via 192.168.10.6, 00:17:06, Serial0/0/1 192.168.10.0/30 is subnetted, subnets C 192.168.10.0 is directly connected, Serial0/0/0 C 192.168.10.4 is directly connected, Serial0/0/1 O 192.168.10.8 [110/128] via 192.168.10.6, 00:17:06, Serial0/0/1 [110/128] via 192.168.10.2, 00:16:56, Serial0/0/0 R1# Dùng câu lệnh show interface serial 0/0/0 router R1 để xem bandwidth interface serial 0/0/0 TÀI LI U H NG D N TH C HÀNH QU N TR M NG R1#show interfaces serial0/0/0 © 2020 – HUST – SOICT 38 Serial0/0/0 is up, line protocol is up (connected) Hardware is HD64570 Internet address is 192.168.10.1/30 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, rely 255/255, load 1/255 Encapsulation HDLC, loopback not set, keepalive set (10 sec) Last input never, output never, output hang never Last clearing of "show interface" counters never Input queue: 0/75/0 (size/max/drops); Total output drops: Dùng lệnh bandwidth để thay đổi bandwidth serial interface R1 R2 routers thành bandwidth thật 64 kbps R1 router: R1(config)#interface serial0/0/0 R1(config-if)#bandwidth 64 R1(config-if)#interface serial0/0/1 R1(config-if)#bandwidth 64 R2 router: R2(config)#interface serial0/0/0 R2(config-if)#bandwidth 64 R2(config)#interface serial0/0/1 R2(config-if)#bandwidth 64 Dùng câu lệnh show ip ospf interface router R1 để kiểm tra cost serial links Cost 1562, kết tính tốn 108/64,000 bps R1#show ip ospf interface Serial0/0/0 is up, line protocol is up Internet address is 192.168.10.1/30, Area Process ID 1, Router ID 10.1.1.1, Network Type POINT-TOPOINT, Cost: 1562 Transmit Delay is sec, State POINT-TO-POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit TÀI LI U H NG D N TH C HÀNH QU N TR M NG © 2020 – HUST – SOICT 39 Hello due in 00:00:05 Index 2/2, flood queue length Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is Last flood scan time is msec, maximum is msec Neighbor Count is , Adjacent neighbor count is Adjacent with neighbor 10.2.2.2 Suppress hello for neighbor(s) Serial0/0/1 is up, line protocol is up Internet address is 192.168.10.5/30, Area Process ID 1, Router ID 10.1.1.1, Network Type POINT-TOPOINT, Cost: 1562 Transmit Delay is sec, State POINT-TO-POINT, Dùng lệnh ip ospf cost để cấu hình OSPF cost router R3 Dùng lệnh để thay đổi bandwidth serial interfaces R3 1562 R3(config)#interface serial0/0/0 R3(config-if)#ip ospf cost 1562 R3(config-if)#interface serial0/0/1 R3(config-if)#ip ospf cost 1562 Dùng lệnh show ip ospf interface R3 để kiểm tra xem cost 1562 chưa R3#show ip ospf interface Serial0/0/1 is up, line protocol is up Internet address is 192.168.10.10/30, Area Process ID 1, Router ID 10.3.3.3, Network Type POINT-TO-POINT, Cost: 1562 Transmit Delay is sec, State POINT-TO-POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit Hello due in 00:00:06 Index 2/2, flood queue length TÀI LI U H NG D N TH C HÀNH QU N TR M NG 40 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is Last flood scan time is msec, maximum is msec Neighbor Count is , Adjacent neighbor count is Adjacent with neighbor 10.2.2.2 Suppress hello for neighbor(s) Serial0/0/0 is up, line protocol is up Internet address is 192.168.10.6/30, Area Process ID 1, Router ID 10.3.3.3, Network Type POINT-TO-POINT, Cost: 1562 Transmit Delay is sec, State POINT-TO-POINT, Bước Quảng bá OSPF default route Cấu hình loopback address R1 để giả lập kết nối tới ISP R1(config)#interface loopback1 %LINK-5-CHANGED: Interface Loopback1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to up R1(config-if)#ip address 172.30.1.1 255.255.255.252 Cấu hình static default route R1 Sử dụng loopback address R1(config)#ip route 0.0.0.0 0.0.0.0 loopback1 R1(config)# Dùng lệnh default-information originate để đưa static route vào OSPF updates gửi từ Router R1 R1(config)#router ospf R1(config-router)#default-information originate R1(config-router)# Xem routing table R2 để kiểm tra static default route quảng bá OSPF hay chưa R2#show ip route Gateway of last resort is 192.168.10.1 to network 0.0.0.0 10.0.0.0/8 is variably subnetted, subnets, masks TÀI LI U H NG D N TH C HÀNH QU N TR M NG © 2020 – HUST – SOICT 41 C 10.2.2.2/32 is directly connected, Loopback0 C 10.10.10.0/24 is directly connected, FastEthernet0/0 172.16.0.0/16 is variably subnetted, subnets, masks O 172.16.1.16/28 [110/1563] via 192.168.10.1, 00:29:28, Serial0/0/0 O 172.16.1.32/29 [110/1563] via 192.168.10.10, 00:29:28, Serial0/0/1 192.168.10.0/30 is subnetted, subnets C 192.168.10.0 is directly connected, Serial0/0/0 O 192.168.10.4 [110/3124] via 192.168.10.10, 00:25:56, Serial0/0/1 [110/3124] via 192.168.10.1, 00:25:56, Serial0/0/0 C 192.168.10.8 is directly connected, Serial0/0/1 O*E2 0.0.0.0/0 [110/1] via 192.168.10.1, 00:01:11, Serial0/0/0 R2# 3.3.4 CẤU HÌNH RIP, OSPF Cho đồ hình mạng sau đây: - Cấu hình RIPv2 Cấu hình OSPF Yêu cầu sinh viên viết lệnh cấu hình kết tương ứng Các cấu hình ip address định sẵn Cấu hình RIPv2: R1(config)#router rip – cho phép tính rip R1(config-router)#version – cho phép ripv2 R1(config-router)#network R1(config-router)#network R1(config-router)#exit – trở chế độ cấu hình global TÀI LI U H NG D N TH C HÀNH QU N TR M NG 42 R2(config)#router rip – cho phép tính rip R2(config-router)#version – cho phép ripv2 R2(config-router)#network R2(config-router)#network R2(config-router)#exit– trở chế độ cấu hình global R3(config)#router rip– cho phép tính rip R3(config-router)#version 2– cho phép ripv2 R3(config-router)#network R3(config-router)#network R3(config-router)#exit– trở chế độ cấu hình global R4(config)#router rip– cho phép tính rip R4(config-router)#version – cho phép ripv2 R4(config-router)#network R4(config-router)#network R4(config-router)#exit– trở chế độ cấu hình global Cấu hình OSPF: R1(config)#router ospf 1- Starts OSPF process R1(config-router)#network network wildcard area -những interface với địa network đặt vào area R1(config-router)# end - trở chế độ privileged mode R1#copy running-config startup-config -Lưu cấu hình vào NVRAM R2(config)#router ospf 1- Starts OSPF process R2(config-router)#network network, wildcard area -những interface với địa network đặt vào area R2(config-router)# end - trở chế độ privileged mode R2#copy running-config startup-config -Lưu cấu hình vào NVRAM R3(config)#router ospf 1- Starts OSPF process R3(config-router)#network network, wildcard area -những interface với địa network đặt vào area R3(config-router)# end - trở chế độ privileged mode R3#copy running-config startup-config -Lưu cấu hình vào NVRAM R4(config)#router ospf 1- Starts OSPF process R4(config-router)#network network, wildcard area -những interface với địa network đặt vào area R4(config-router)# end -trở chế độ privileged mode TÀI LI U H NG D N TH C HÀNH QU N TR M NG 43 R4#copy running-config startup-config -Lưu cấu hình vào NVRAM TÀI LI U H NG D N TH C HÀNH QU N TR M NG ... mạng cục dùng Router Cisco • Cấu hình định tuyến tĩnh 1. 2 CHUẨN BỊ Cài đặt phần mềm Cisco Packet Tracer giả lập việc cấu hình router theo hình sau: 1. 3 NỘI DUNG CHI TIẾT 1. 3 .1 Đăng nhập vào router. .. tham số OSPF area-id R1(config -router) #network 17 2 .16 .1. 16 0.0.0 .15 area R1(config -router) # Cấu hình router quảng bá mạng 19 2 .16 8 .10 .0/30 tới cổng Serial0/0/0 R1(config -router) # network 19 2 .16 8 .10 .0... OSPF  Sinh viên cấu hình giao thức định tuyến động Cisco Router 3.2 CHUẨN BỊ Cài đặt phần mềm Cisco Packet Tracer giả lập việc cấu hình mạng theo mơ tả Mỗi thiết bị gồm: Router, router có cổng

Ngày đăng: 13/12/2022, 06:48

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

Tài liệu liên quan