Lab 2.2: (4) Cấu hình dịch vụ SSH trên Cisco Router vs Switch (Basic Configuration)

By , 0 View


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 1024         
The 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 2
R1(config)#username admin privilege 15 password admin@2021
R1(config)#enable password mobile24h

R1(config)#line vty 0 4
R1(config-line)#transport input ssh
R1(config-line)#login local
R1(config-line)#end
R1#

- Kiểm tra dịch vụ SSH trên R1.
R1#ssh -v 2 -l admin 172.16.0.254
Password: admin@2021

R1#

- Kiểm tra dịch vụ SSH từ vPC.
PC1> ip 172.16.0.3/24 172.16.0.254
Checking for duplicate address...
PC1 : 172.16.0.3 255.255.255.0 gateway 172.16.0.254

PC1> 

PC1> ping 172.16.0.254 -P 6 -p 22

Connect   22@172.16.0.254 seq=1 ttl=255 time=1.088 ms
SendData  22@172.16.0.254 seq=1 ttl=255 time=5.305 ms
Close     22@172.16.0.254 timeout(38.973ms)
Connect   22@172.16.0.254 seq=2 ttl=255 time=3.212 ms
SendData  22@172.16.0.254 seq=2 ttl=255 time=2.137 ms
Close     22@172.16.0.254 seq=2 ttl=255 time=100.170 ms
Connect   22@172.16.0.254 seq=3 ttl=255 time=1.023 ms
SendData  22@172.16.0.254 seq=3 ttl=255 time=1.063 ms
Close     22@172.16.0.254 timeout(9.523ms)
Connect   22@172.16.0.254 seq=4 ttl=255 time=3.155 ms
SendData  22@172.16.0.254 seq=4 ttl=255 time=1.049 ms
Close     22@172.16.0.254 timeout(3.543ms)
Connect   22@172.16.0.254 seq=5 ttl=255 time=3.185 ms
SendData  22@172.16.0.254 seq=5 ttl=255 time=1.061 ms
Close     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.

You Might Also Like

0 comments