(Tiểu luận) đồ án cá nhân môn học mạng máy tính 2

23 3 0
(Tiểu luận) đồ án cá nhân môn học mạng máy tính 2

Đ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 DUY TÂN TRƯỜNG KHOA HỌC MÁY TÍNH KHOA KỸ THUẬT MẠNG MÁY TÍNH & TRUYỀN THƠNG  ĐỒ ÁN CÁ NHÂN MƠN HỌC: MẠNG MÁY TÍNH GIẢNG VIÊN HƯỚNG DẪN : ThS HOÀNG PHI CƯỜNG SINH VIÊN THỰC HIỆN : Hồng Bảo Qn MSSV : 27211235694 LỚP MƠN HỌC : CS 252 R LỚP SINH HOẠT : CS 252 R2 ĐIỂM SỐ ĐIỂM CHỮ Đà Nẵng, 06/2023 GIÁM KHẢO Lab 11 Cho X=0, 2, 3, 4, Sử dụng mạng 192.168.X.0/24 để chia subnet mạng router ĐN, HN, HCM I Cấu hình cho Router 1.Cấu hình router HN Router> enable Router# configure terminal Router(config)#hostname HN HN(config)# Bước 1: Cấu hình IP cho interface f0/0, s0/0/0, s0/0/1 & s0/1/0 HN(config)#interface f0/0 HN(config-if)#no shutdown HN(config-if)#ip address 192.168.3.1 255.255.255.0 HN(congif-if)#exit HN(config)# HN(config)#interface s0/0/0 HN(config-if)#no shutdown HN(config-if)#ip address 192.168.2.1 255.255.255.0 HN(config-if)#exit HN(config)# HN(config)#interface s0/0/1 HN(config-if)#no shutdown HN(config-if)#ip address 192.168.4.1 255.255.255.0 HN(config-if)#exit HN(config)# HN(config)#interface s0/1/0 HN(config-if)#no shutdown HN(config-if)#ip address 192.168.1.2 255.255.255.0 HN(config-if)#exit HN(config)# Bước 2: Đặt mật cho line vty, console, enable secret cho router HN HN(config)# enable secret TTG HN(config)# HN(config)# line console HN(config-line)# password TTG HN(config-line)# login HN(config-line)# exit HN(config)# line vty //cấu hình cho phép Telnet HN(config-line)# password TTG HN(config-line)# login HN(config-line)# exit HN(config)# Bước 3: Cấu hình RIPv2 để định tuyến HN(config)# router rip HN(config-router)# version HN(config-router)# network 192.168.2.0 HN(config-router)# network 192.168.3.0 HN(config-router)# network 192.168.4.0 HN(config-router)# network 192.168.1.0 HN(config-router)#no auto-summary HN(config-router)# exit HN(config)#exit HN# HN#write HN# //HN(config-router)#no auto-summary: tắt tính tự động tổng hợp đường Bước 4: Cấu hình cho phép ssh HN#configure terminal HN(config)# enable secret TTG HN(config)#ip domain-name dtu.vn HN(config)#username dtu1 password dtu123 HN(config)#crypo key generate rsa //Nhập 1024 HN(config)#ip ssh version HN(config)#line vty HN(config-line)#transport input ssh HN(config-line)#login local HN(config-line)#exit HN(config)#end HN#write HN# 2.Cấu hình router ĐN Router> enable Router# configure terminal Router(config)#hostname DN DN(config)# Bước 1: Cấu hình IP cho interface f0/0 & s0/0/1 DN(config)#interface f0/0 DN(config-if)#no shutdown DN(config-if)#ip address 192.168.0.1 255.255.255.0 DN(congif-if)#exit DN(config)# DN(config)#interface s0/0/1 DN(config-if)#no shutdown DN(config-if)#ip address 192.168.2.2 255.255.255.0 DN(config-if)#exit DN(config)# Bước 2: Đặt mật cho line vty, console, enable secret cho Router ĐN DN(config)# DN(config)# enable secret TTG DN(config)# DN(config)# line console DN(config-line)# password TTG DN(config-line)# login DN(config-line)# exit DN(config)# line vty //cấu hình cho phép Telnet DN(config-line)# password TTG DN(config-line)# login DN(config-line)# exit DN(config)# Bước 3: Cấu hình RIPv2 để định tuyến DN(config)# router rip DN(config-router)# version DN(config-router)# network 192.168.0.0 DN(config-router)# network 192.168.2.0 DN(config-router)#no auto-summary DN(config-router)# exit DN(config)# Bước 4: Định tuyến Router để kết nối đến Internet DN(config)#ip route 192.168.1.0 255.255.255.0 s0/0/1 DN(config)#end DN#show ip route DN# DN#write DN# Bước 5: Cấu hình cho phép ssh DN#configure terminal DN(config)# enable secret TTG DN(config)#ip domain-name dtu.vn DN(config)#username dtu2 password dtu456 DN(config)#crypo key generate rsa //Nhập 1024 DN(config)#ip ssh version DN(config)#line vty DN(config-line)#transport input ssh DN(config-line)#login local DN(config-line)#exit DN(config)#end DN#write DN# 3.Cấu hình router HCM Router> enable Router# configure terminal Router(config)#hostname HCM HCM(config)# Bước 1: Cấu hình IP cho interface f0/0 & s0/0/0 HCM(config)#interface f0/0 HCM(config-if)#no shutdown HCM(config-if)#ip address 192.168.5.1 255.255.255.0 HCM(congif-if)#exit HCM(config)# HCM(config)#interface s0/0/0 HCM(config-if)#no shutdown HCM(config-if)#ip address 192.168.4.2 255.255.255.0 HCM(config-if)#exit Document continues below Discover more from: tin ứng dụng cs 201 Trường Đại Học… 575 documents Go to course Tài liệu môn tin 31 Lecture notes 10 tin ứng dụng 98% (47) LÝ THUYẾT TIN ỨNG 101 DỤNG - hướng dẫn… tin ứng dụng 100% (10) BAI TAP Excel NANG CAO tin ứng dụng 91% (74) Cau hoi ngan tin học ứng dụng201 tin ứng dụng 93% (15) TIỂU LUẬN TRIẾT 26 HỌC MÁC Lênin tin ứng dụng 100% (6) HCM(config)# Báo Cáo Bài Tập Lớn Bước 2: Đặt mật cho line vty, console, enable secret router Mơn Lậpcho Trình Web… 47 HCM tin ứng dụng HCM(config)# enable secret TTG HCM(config)# HCM(config)# line console HCM(config-line)# password TTG HCM(config-line)# login HCM(config-line)# exit HCM(config)# line vty //cấu hình cho phép Telnet HCM(config-line)# password TTG HCM(config-line)# login HCM(config-line)# exit HCM(config)# Bước 3: Cấu hình RIPv2 để định tuyến HCM(config)# router rip HCM(config-router)# version HCM(config-router)# network 192.168.4.0 HCM(config-router)# network 192.168.5.0 HCM(config-router)#no auto-summary HCM(config-router)# exit HCM(config)# Bước 4: Định tuyến Router để kết nối đến Internet HCM(config)#ip route 192.168.1.0 255.255.255.0 s0/0/0 HCM(config)#end HCM#show ip route HCM# HCM#write HCM# Bước 5: Cấu hình cho phép ssh HCM#configure terminal HCM(config)# enable secret TTG 100% (5) HCM(config)#ip domain-name dtu.vn HCM(config)#username dtu3 password dtu789 HCM(config)#crypo key generate rsa //Nhập 1024 HCM(config)#ip ssh version HCM(config)#line vty HCM(config-line)#transport input ssh HCM(config-line)#login local HCM(config-line)#exit HCM(config)#end HCM#write HCM# 4.Cấu hình router Internet Router> enable Router# configure terminal Router(config)#hostname Internet Internet(config)# Bước 1: Cấu hình IP cho interface f0/0 & s0/0/0 Internet(config)#interface f0/0 Internet(config-if)#no shutdown Internetconfig-if)#ip address 203.11.1.1 255.255.255.0 Internet(congif-if)#exit Internet(config)# Internet(config)#interface s0/0/0 Internet(config-if)#no shutdown Internet(config-if)#ip address 192.168.1.1 255.255.255.0 Internet(config-if)#exit Internet(config)# Bước 2: Đặt mật cho line vty, console, enable secret cho router HCM Internet(config)# enable secret TTG Internet(config)# Internet(config)# line console Internet(config-line)# password TTG Internet(config-line)# login Internet(config-line)# exit Internet(config)# line vty Internet(config-line)# password TTG Internet(config-line)# login Internet(config-line)# exit Internet(config)# Bước 3: Định tuyến đến Router vs PC Internet(config)#ip route 192.168.2.0 255.255.255.0 s/0/0/0 Internet(config)#ip route 192.168.0.0 255.255.255.0 s/0/0/0 Internet(config)#ip route 192.168.3.0 255.255.255.0 s/0/0/0 Internet(config)#ip route 192.168.4.0 255.255.255.0 s/0/0/0 Internet(config)#ip route 192.168.5.0 255.255.255.0 s/0/0/0 Internet(config)#do write Internet(config)# Bước 4: Cấu hình cho phép ssh Internet(config)#ip domain-name dtu.vn Internet(config)#username dtu password dtuxyz Internet(config)#crypo key generate rsa //Nhập 1024 Internet(config)#ip ssh version Internet(config)#line vty Internet(config-line)#transport input ssh Internet(config-line)#login local Internet(config-line)#exit Internet(config)#end Internet#write Internet# II Cấu hình cho PC Server PCĐN IP Address: 192.168.0.2 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.0.1 - Telnet lên router PCDN Desktop Command Prompt gõ câu lệnh C:\>ping 192.168.2.1 - SSH lên router PCDN Desktop Command Prompt gõ câu lệnh C:\>ping 192.168.2.1 C:\>SSH –L dtu1 192.168.2.1 Password: 123 PCHN IP Address: 192.168.3.2 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.3.1 PCHCM IP Address: 192.168.5.2 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.5.1 Web Server IP Address: 203.11.1.2 Subnet Mask: 255.255.255.0 Default Gateway: 203.11.1.1 Lab 13 Gán địa ip cho thiết bị cho mơ hình PC1: -IP: 192.168.2.254/26 -Subnet mask: 255.255.255.192 -Default Gateway:192.168.2.193/26 PC2: -IP: 192.168.2.126/26 - Subnet mask: 255.255.255.192 -Default Gateway: 192.168.2.65/26 Web Server: -IP:209.165.200.253/27 -Subnet mask: 255.255.255.224 -Default Gateway: 209.165.200.225/27 Cấu hình Router HQ Router>enable Router#configure terminal Router(config)#hostname HQ HQ(config)# Bước 1: Cấu hình IP cho Interface f0/0, s0/0/0 & s0/0/1 HQ(config)#interface f0/0 HQ(config-if)#no shutdown HQ(config-if)#ip address 192.168.2.65 255.255.255.192 HQ(congif-if)#exit HQ(config)# HQ(config)#interface s0/0/0 HQ(config-if)#no shutdown HQ(config-if)#ip address 192.168.2.130 255.255.255.192 HQ(config-if)#exit HQ(config)# HQ(config)#interface s0/0/1 HQ(config-if)#no shutdown HQ(config-if)#ip address 209.165.201.2 255.255.255.252 HQ(config-if)#exit Bước 2: Cấm phân giải DNS: no ip domain lookup HQ(config)# HQ(config)#no ip domain-lookup HQ(config)# Bước 3: Cấu hình default route đến mạng chứa WebServer sử dụng địa next-hop HQ(config)#ip route 209.165.200.224 255.255.255.224 209.165.201.1 HQ(config)#exit Lưu ý: Sau định tuyến, ta kiểm tra cách hiển thị bảng định tuyến Router HQ(config)# HQ(config)#show ip route (chèn ảnh) HQ(config)# Bước 4: Cấu hình định tuyến tĩnh đến mạng chứa PC1 sử dụng exit interface HQ(config)# ip route 192.168.2.192 255.255.255.192 s0/0/0 HQ(config)#exit HQ(config)#show ip route HQ(config)# HQ(config)#exit HQ#write Cấu hình Router Branch Router>enable Router# Router#configure terminal Router(config)# Router(config)#hostname Branch Bước 1: Cấu hình IP cho Interface f0/0 & s0/0/0 Branch(config)#interface f0/0 Branch(config-if)#no shutdown Branch(config-if)#ip address 192.168.2.193 255.255.255.192 Branch(congif-if)#exit Branch(config)# Branch(config)#interface s0/0/0 Branch(config-if)#no shutdown Branch(config-if)#ip address 192.168.2.129 255.255.255.192 Branch(config-if)#exit Branch(config)# Bước 2: Cấm phân giải DNS: no ip domain lookup Branch(config)#no ip domain-lookup Branch(config)# Bước 3: Cấu hình default route ngồi sử dụng địa next-hop Branch(config)#ip route 192.168.2.64 255.255.255.192 192.168.2.130 Branch(config)#exit Branch(config)#show ip route Branch(config)#do write Branch(config)# Cấu hình Router ISP Router>enable Router#configure terminal Router(config)#hostname ISP ISP(config)# Bước 1: Cấu hình IP cho Interface f0/0 & s0/0/1 ISP(config)#interface f0/0 ISP(config-if)#no shutdown ISP(config-if)#ip address 209.165.200.225 255.255.255.224 ISP(congif-if)#exit ISP(config)# ISP(config)#interface s0/0/0 ISP(config-if)#no shutdown ISP(config-if)#ip address 209.165.201.1 255.255.255.252 ISP(config-if)#exit ISP(config)# Bước 2: Cấm phân giải DNS: no ip domain lookup ISP(config)#no ip domain-lookup ISP(config)#do write ISP(config)# Lab 18 ip route 192.168.10.128 255.255.255.224 serial0/0/0 => cần mạng 2^b >= b=3 Bước nhảy 2^32-24-3 =2^5 = 32 Subnet /24 + /3 = /27 255.255.255.224 Mạng 1: 192.168.10.0/27 (ID đầu: 192.168.1.1, ID cuối: 192.168.1.30) Mạng 2: 192.168.10.32/27 (ID đầu: 192.168.1.33, ID cuối: 192.168.1.62) Mạng 3: 192.168.10.64/27 (ID đầu: 192.168.1.65, ID cuối: 192.168.1.94) Mạng 4: 192.168.10.96/27 (ID đầu: 192.168.1.97, ID cuối: 192.168.1.126) Mạng 5: 192.168.10.128/27 (ID đầu: 192.168.1.129, ID cuối: 192.168.1.158) Mạng 6: 192.168.10.160/27 (ID đầu: 192.168.1.161, ID cuối: 192.168.1.190) Router R1 Router>enable Router#configure terminal Router(config)#interface serial0/0/0 Router(config-if)#ip address 192.168.10.1 255.255.255.224 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#interface serial0/0/1 Router(config-if)#ip address 192.168.10.33 255.255.255.224 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#hostname R1 R1(config)# R1(config)#interface fastethernet0/0 R1(config-if)#ip address 192.168.10.161 255.255.255.224 R1(config-if)#no shutdown R1(config-if)#exit R1(config)# Router R2 Router>enable Router#configure terminal Enter configuration commands, one per line End with CNTL/Z Router(config)#hostname R2 R2(config)#interface serial0/0/1 R2(config-if)#ip address 192.168.10.65 255.255.255.224 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface serial0/0/0 R2(config-if)#ip address 192.168.10.97 255.255.255.224 R2(config-if)#no shutdown R2(config-if)#exit R2(config)# R2(config)#interface fastethernet0/0 R2(config-if)#ip address 192.168.10.129 255.255.255.224 R2(config-if)#no shutdown R2(config-if)#exit Router R3 Router>enable Router#configure terminal Router(config)#interface serial0/0/0 Router(config-if)#ip address 192.168.10.2 255.255.255.224 Router(config-if)#no shutdown Router(config-if)#exit Router(config)#interface serial0/0/1 Router(config-if)#ip address 192.168.10.66 255.255.255.224 Router(config-if)#no shutdown Router(config)#hostname R3 R3(config)# Router R4 Router>enable Router#configure terminal Router(config)#hostname R4 R4(config)#interface serial0/0/1 R4(config-if)#ip address 192.168.10.98 255.255.255.224 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface serial0/0/1 R4(config-if)#ip address 192.168.10.34 255.255.255.224 R4(config-if)#no shutdown R4(config-if)#exit Định tuyến tĩnh R1 R1(config)#ip route 192.168.10.64 255.255.255.224 serial0/0/0 R1(config)#ip route 192.168.10.96 255.255.255.224 serial0/0/1 R1(config)#ip route 192.168.10.128 255.255.255.224 serial0/0/0 R3 ip route 192.168.10.32 255.255.255.224 serial0/0/0 ip route 192.168.10.96 255.255.255.224 serial0/0/1 ip route 192.168.10.160 255.255.255.224 serial0/0/0 ip route 192.168.10.128 255.255.255.224 serial0/0/1 R2 ip route 192.168.10.0 255.255.255.224 serial0/0/1 ip route 192.168.10.32 255.255.255.224 serial0/0/0 ip route 192.168.10.160 255.255.255.224 serial0/0/1 R4 ip route 192.168.10.0 255.255.255.224 serial0/0/1 ip route 192.168.10.64 255.255.255.224 serial0/0/0 ip route 192.168.10.160 255.255.255.224 serial0/0/1 More from: tin ứng dụng cs 201 Trường Đại Học… 575 documents Go to course 31 101 Tài liệu môn tin Lecture notes 10 tin ứng dụng 98% (47) LÝ THUYẾT TIN ỨNG DỤNG - hướng dẫ… tin ứng dụng 100% (10) BAI TAP Excel NANG CAO tin ứng dụng 91% (74) Cau hoi ngan tin học ứng dụng201 tin ứng dụng More from: Đồng Phạm 93% (15) 999+ Trường Đại Học Du… Discover more Final EXAM PHY101 2023F lý đại cương 100% (4) NỘI DUNG ÔN TẬP 15 MÔN TRIẾT HỌC… chủ nghĩa… 100% (3) Ôn trắc nghiẹm 14 fsdf lý đại cương 100% (1) BÀI TIỂU LUẬN TRIẾT HỌC - chủ nghĩa marx - lenin None Recommended for you 109 GIAO Trinh Listening Level 4… tin ứng dụng 100% (5) 71 197 Textbook Writing Level 4- SEND SS-… tin ứng dụng 100% (1) Learn Python The Hard Way, 3rd… tin ứng dụng 100% (1) Mid Term Test Reading - Phần ơn… tốn cao cấp c2 100% (1)

Ngày đăng: 19/12/2023, 15:19

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

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

Tài liệu liên quan