Mục tiêu thực hành:
- Cấu hình dịch vụ SSH Server trên Router R1.
- Cấu hình dịch vụ SSH Server trên Cisco Switch.
Truy cập vào "Lab 2-1 - Cau hinh dia chi IP tren Interface VLAN cua Cisco Switch v1" tại Public Unetlab Server 24/7 để thực hành.
Cấu hình dịch vụ SSH Server trên Router R1.
- Kích hoạt dịch vụ SSH trên R1.
R1(config)# ip domain-name buiphaminstructor.blogspot.com
R1(config)#crypto key generate rsa modulus 1024The name for the keys will be: R1.buiphaminstructor.blogspot.com% The key modulus size is 1024 bits% Generating 1024 bit RSA keys, keys will be non-exportable...[OK] (elapsed time was 0 seconds)R1(config)#
R1(config)#ip ssh version 2R1(config)#username admin privilege 15 password admin@2021R1(config)#enable password mobile24h
R1(config)#line vty 0 4R1(config-line)#transport input sshR1(config-line)#login localR1(config-line)#endR1#
- Kiểm tra dịch vụ SSH trên R1.
R1#ssh -v 2 -l admin 172.16.0.254Password: admin@2021R1#
- Kiểm tra dịch vụ SSH từ vPC.
PC1> ip 172.16.0.3/24 172.16.0.254Checking for duplicate address...PC1 : 172.16.0.3 255.255.255.0 gateway 172.16.0.254PC1>
PC1> ping 172.16.0.254 -P 6 -p 22Connect 22@172.16.0.254 seq=1 ttl=255 time=1.088 msSendData 22@172.16.0.254 seq=1 ttl=255 time=5.305 msClose 22@172.16.0.254 timeout(38.973ms)Connect 22@172.16.0.254 seq=2 ttl=255 time=3.212 msSendData 22@172.16.0.254 seq=2 ttl=255 time=2.137 msClose 22@172.16.0.254 seq=2 ttl=255 time=100.170 msConnect 22@172.16.0.254 seq=3 ttl=255 time=1.023 msSendData 22@172.16.0.254 seq=3 ttl=255 time=1.063 msClose 22@172.16.0.254 timeout(9.523ms)Connect 22@172.16.0.254 seq=4 ttl=255 time=3.155 msSendData 22@172.16.0.254 seq=4 ttl=255 time=1.049 msClose 22@172.16.0.254 timeout(3.543ms)Connect 22@172.16.0.254 seq=5 ttl=255 time=3.185 msSendData 22@172.16.0.254 seq=5 ttl=255 time=1.061 msClose 22@172.16.0.254 timeout(47.565ms)PC1>
Cấu hình dịch vụ SSH Server trên Cisco Switch.
Thực hành thêm các bài Lab cơ bản khác tại hạng mục Học Network CCNA R&S thông qua các bài thực hành.
0 comments