Thực hành mạng máy tính bài 2

29 625 1
Thực hành mạng máy tính bài 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

1. Từ địa chỉ đường mạng 192.133.219.024, ta mượn 4 bit để chia subnet, xác định: Số subnet có thể sử dụng được, số địa chỉ mạng có thể dùng được của mỗi subnet, địa chỉ đường mạng mỗi subnet, địa chỉ đầu và địa chỉ cuối của mỗi subnet, địa chỉ broadcast mỗi subnet. 2. Kết nối vật lí giữa các thiết bị lại với nhau

BÁO CÁO THỰC HÀNH MẠNG MÁY TÍNH BÀI 2: Cấu hình thiết bị cisco Họ Và Tên: MSSV: LỚP: Địa đường mạng 192.133.219.0/24 Mượn bit làm subnet => - số subnet sử dụng 24 = 16 - số địa mạng dùng subnet: 24 -2=14 - có 16 subnet: - Địa đường mạng: 192.133.219.0/28 Địa đầu subnet: 192.133.219.1/28 Địa cuối subnet: 192.133.219.14/28 Địa broadcast : 192.133.219.15/28 - Địa đường mạng : 192.133.219.16/28 Địa đầu subnet: 192.133.219.17/28 Địa cuối subnet: 192.133.219.30/28 Địa broadcast : 192.133.219.31/28 - Địa đường mạng: 192.133.219.32/28 Địa đầu subnet: 192.133.219.33/28 Địa cuối subnet: 192.133.219.46/28 Địa broadcast : 192.133.219.47/28 - - Địa đường mạng: 192.133.219.48/28 Địa đầu subnet: 192.133.219.49/28 Địa cuối subnet: 192.133.219.62/28 Địa broadcast : 192.133.219.63/28 Địa đường mạng: 192.133.219.64/28 Địa đầu subnet: 192.133.219.65/28 Địa cuối subnet: 192.133.219.78/28 Địa broadcast : 192.133.219.79/28 - Địa đường mạng: 192.133.219.80/28 Địa đầu subnet: 192.133.219.81/28 Địa cuối subnet: 192.133.219.94/28 Địa broadcast : 192.133.219.95/28 - Địa đường mạng: 192.133.219.96/28 Địa đầu subnet: 192.133.219.97/28 Địa cuối subnet: 192.133.219.110/28 Địa broadcast : 192.133.219.111/28 - Địa đường mạng: 192.133.219.112/28 Địa đầu subnet: 192.133.219.113/28 Địa cuối subnet: 192.133.219.126/28 Địa broadcast : 192.133.219.127/28 - Địa đường mạng: 192.133.219.128/28 Địa đầu subnet: 192.133.219.129/28 Địa cuối subnet: 192.133.219.142/28 Địa broadcast : 192.133.219.143/28 - Địa đường mạng: 192.133.219.144/28 Địa đầu subnet: 192.133.219.145/28 Địa cuối subnet: 192.133.219.158/28 Địa broadcast : 192.133.219.159/28 - Địa đường mạng: 192.133.219.160/28 Địa đầu subnet: 192.133.219.161/28 Địa cuối subnet: 192.133.219.174/28 Địa broadcast : 192.133.219.175/28 - Địa đường mạng: 192.133.219.176/28 Địa đầu subnet: 192.133.219.177/28 Địa cuối subnet: 192.133.219.190/28 Địa broadcast : 192.133.219.191/28 - Địa đường mạng: 192.133.219.192/28 Địa đầu subnet: 192.133.219.193/28 Địa cuối subnet: 192.133.219.206/28 Địa broadcast : 192.133.219.207/28 - Địa đường mạng: 192.133.219.208/28 Địa đầu subnet: 192.133.219.209/28 Địa cuối subnet: 192.133.219.222/28 Địa broadcast : 192.133.219.223/28 - Địa đường mạng: 192.133.219.224/28 Địa đầu subnet: 192.133.219.223/28 Địa cuối subnet: 192.133.219.238/28 Địa broadcast : 192.133.219.239/28 - Địa đường mạng: 192.133.219.240/28 Địa đầu subnet: 192.133.219.241/28 Địa cuối subnet: 192.133.219.254/28 Địa broadcast : 192.133.219.255/28 Kết nối vật lý giữ thiết bị với nhau:  Kết nối port console PC vào console router dây console  Kết nối card NIC PC với interface Fa0/0 router cáp chéo (Crossover)  Kết nối interface Fa0/1 router với interface Fa0/1 switch cáp thẳng  Kết nối card NIC PC với interface Fa0/2 switch cáp thẳng  Kết nối Card NIC PC với interface Fa0/3 switch cáp thẳng Thực kết nối từ PC đến router qua HyperTerminal , phần mền để truy cập vào thiết bị qua cổng console để cấu hình thiết bị  Click vào PC chọn desktop -> Terminal -> giữ nguyên thông số -> chọn Ok Sau truy cập ta vào mode cấu hình router -> chọn No -> Enter -> Enter   Ta vào mode User mode Router> Gõ lệnh enable -> Enter để chuyển sang mode privileged mode Router>enable  Router>enable Router# Cấu hình đặt tên router Router1 Vào mode Globle Configuration mode gõ lệnh hostname Router1  Vào Globle Configuration mode để thực đặt tên router Router>enable Router#configure terminal Enter configuration commands, one per line End with CNTL/Z Router(config)#  Trong Globle Configuration mode gõ lệnh hostname Router1 -> Enter Router>enable Router#configure terminal Enter configuration commands, one per line CNTL/Z Router(config)#hostname Router1 Router1(config)# End with Cấu hình cài banner MOTD cho Router với nội dung: “Wellcome Cisco Lab!!!” Router1>enable Router1#configure terminal Enter configuration commands, one per line End with CNTL/Z Router1(config)#banner motd # Chao mung den voi lab thuc hanh mang #  Kiểm tra lại banner ta gõ exit ->enter, exit ->enter Cấu hình password enable cho router với password “cisco”  Là loại password mà thiết bị yêu cầu người dùng nhập vào mode user chuyển sang mode privileged Router1>enable 10 Router1(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router1(config-if)#description Ket noi voi switch bang cap thang 12.Cấu hình địa IP cho PC1  Vào PC1 chọn IP configuration  Sử dụng địa IP đầu subnet 192.133.219.32/28 15 13.Cấu hình địa IP cho PC2 PC  Sử dụng địa thứ thứ subnet 192.133.219.48/28 16 14.Kiểm tra kết nối giữ thiết bị 17 Từ PC1 ping PC2 PC3 xem PC kết nối với chưa câu lệnh ping địa_chỉ _PC2 Router1>enable Password: Router1#ping 192.133.219.50  Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.133.219.50, timeout is seconds: !!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/17/70 ms Router1#ping 192.133.219.51 Type escape sequence to abort Sending 5, 100-byte ICMP Echos to 192.133.219.51, timeout is seconds: !!!! Success rate is 80 percent (4/5), round-trip min/avg/max = 0/1/5 ms 18 15 Lưu lại cấu hình router câu lệnh: coppy running-cofig startup-config Router1>enable Password: Router1#copy running-config startup-config Destination filename [startup-config]? Building configuration [OK] 19 16.Kiểm tra lại cấu hình thiết bị lần cách sử dụng lệnh telnet để cấu hình cho router switch từ Host 1, Host 2, Host  Từ PC1 thực telnet đến Router1 cách gõ lệnh “telnet 192.133.219.46”  Lệnh “show ip interface brief” để kiểm tra thông số interface cách ngắn gọn Router1>enable Password: Router1#telnet 192.133.219.46 Trying 192.133.219.46 Open User Access Verification Password: Router1>enable Password: Router1#show ip interface brief 20  Tư PC2 telnet đến Router1 Gõ lệnh “ telnet 192.133.219.50 ” 21   Tư PC3 telnet đến Router1 Gõ lệnh “telnet 192.133.219.46” Cấu hình password cho line vty đến với password “class” Switch>ena Password: Switch#conf t Enter configuration commands, one per line with CNTL/Z Switch(config)#line vty Switch(config-line)#password class Switch(config-line)#login Switch(config-line)# 22 End  Đặt IP cho Switch : Switch thiết bị lớp nên cổng Switch ta đặt IP để quản lý thiết bị từ xa, Cisco Switch ta làm điều cách đặt ip thông qua interface đặt biệt VLAN1 ( logical interface ) Switch>ena Password: Switch#conf t Enter configuration commands, one per line End with CNTL/Z Switch(config)#interface vlan Switch(config-if)#ip add 192.133.219.61 255.255.255.240 Switch(config-if)#no shutdown Switch(config-if)# %LINK-5-CHANGED: Interface Vlan1, changed state to up 23 %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up Switch(config-if)#ip default-gateway 192.133.219.62 - Để từ mạng khác quản lý switch cần khai báo thêm Gateway cho Switch Switch(config-if)#ip default-gateway 192.133.219.62 Với 192.133.219.62 địa gateway  Từ PC1 telnet đến Switch Để kiểm tra lại cấu hình interface Vlan 1, ta dùng lệnh“show interface vlan 1” 24 PC>telnet 192.133.219.61 Trying 192.133.219.61 Open User Access Verification Password: Switch>ena Password: Switch#show interface vlan Vlan1 is up, line protocol is up Hardware is CPU Interface, address is 0006.2a45.e310 (bia 0006.2a45.e310) Internet address is 192.133.219.61/28 MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, 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: fifo Output queue: 0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 1682 packets input, 530955 bytes, no buffer Received broadcasts (0 IP multicast) runts, giants, throttles input errors, CRC, frame, overrun, ignored 563859 packets output, bytes, underruns output errors, 23 interface resets output buffer failures, output buffers swapped out Switch# 25  Từ PC2 telnet đến Switch PC>telnet 192.133.219.61 Trying 192.133.219.61 Open User Access Verification Password: Switch>ena Password: Switch#show interface vlan Vlan1 is up, line protocol is up Hardware is CPU Interface, address is 0006.2a45.e310 (bia 0006.2a45.e310) Internet address is 192.133.219.61/28 MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, output hang never Last clearing of "show interface" counters never 26 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: Queueing strategy: fifo Output queue: 0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 1682 packets input, 530955 bytes, no buffer Received broadcasts (0 IP multicast) runts, giants, throttles input errors, CRC, frame, overrun, ignored 563859 packets output, bytes, underruns output errors, 23 interface resets output buffer failures, output buffers swapped out Switch#  Từ PC3 telnet đến Switch PC>telnet 192.133.219.61 Trying 192.133.219.61 Open 27 User Access Verification Password: Switch>ena Password: Switch#show interface vlan Vlan1 is up, line protocol is up Hardware is CPU Interface, address is 0006.2a45.e310 (bia 0006.2a45.e310) Internet address is 192.133.219.61/28 MTU 1500 bytes, BW 100000 Kbit, DLY 1000000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set ARP type: ARPA, ARP Timeout 04:00:00 Last input 21:40:21, output never, 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: fifo Output queue: 0/40 (size/max) minute input rate bits/sec, packets/sec minute output rate bits/sec, packets/sec 1682 packets input, 530955 bytes, no buffer Received broadcasts (0 IP multicast) runts, giants, throttles input errors, CRC, frame, overrun, ignored 563859 packets output, bytes, underruns output errors, 23 interface resets output buffer failures, output buffers swapped out Switch# 28 29 ... 1 92. 133 .21 9 .20 9 /28 Địa cuối subnet: 1 92. 133 .21 9 .22 2 /28 Địa broadcast : 1 92. 133 .21 9 .22 3 /28 - Địa đường mạng: 1 92. 133 .21 9 .22 4 /28 Địa đầu subnet: 1 92. 133 .21 9 .22 3 /28 Địa cuối subnet: 1 92. 133 .21 9 .23 8 /28 Địa... 1 92. 133 .21 9.1 92/ 28 Địa đầu subnet: 1 92. 133 .21 9.193 /28 Địa cuối subnet: 1 92. 133 .21 9 .20 6 /28 Địa broadcast : 1 92. 133 .21 9 .20 7 /28 - Địa đường mạng: 1 92. 133 .21 9 .20 8 /28 Địa đầu subnet: 1 92. 133 .21 9 .20 9 /28 ... broadcast : 1 92. 133 .21 9 .23 9 /28 - Địa đường mạng: 1 92. 133 .21 9 .24 0 /28 Địa đầu subnet: 1 92. 133 .21 9 .24 1 /28 Địa cuối subnet: 1 92. 133 .21 9 .25 4 /28 Địa broadcast : 1 92. 133 .21 9 .25 5 /28 Kết nối vật lý giữ thiết

Ngày đăng: 16/04/2017, 21:28

Từ khóa liên quan

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

Tài liệu liên quan