본문 바로가기

Network

10. Network : Switch telnet, ssh 접속 설정

1. telnet 접속

1.1. telnet 접속 설정

Switch>en
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#ena sec mhan
Switch(config)#int vl 1
Switch(config-if)#ip add 1.1.1.253 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#exit
Switch(config)#ip default-gateway 1.1.1.254
Switch(config)#do wr
Switch(config)#do sh r
Switch(config)#line vty 0 4
Switch(config-line)#password mhan1
Switch(config-line)#login
Switch(config-line)#do wr
Switch(config-line)#exit
Switch(config)#

1.2. telnet 접속 테스트

 


2. ssh 접속

2.1. 스위치 ssh 접속 설정

Switch(config)#hostname Seoul_S1
Seoul_S1(config)#int vl 1
Seoul_S1(config-if)#ip add 1.1.1.253 255.255.255.0
Seoul_S1(config-if)#no sh
Seoul_S1(config-if)#exit

Seoul_S1(config)#ena se mhan1
Seoul_S1(config)#ip domain-name mhan.xyz
Seoul_S1(config)#crypto key generate rsa
How many bits in the modulus [512]: 2048

Seoul_S1(config)#username root privilege 15 password mhan2
Seoul_S1(config)#ip ssh version 2
Seoul_S1(config)#line vty 0 4
Seoul_S1(config-line)#login local
Seoul_S1(config-line)#transport input ssh
Seoul_S1(config-line)#do wr

2.2. ssh 접속 테스트

 

2.3. 라우터 ssh 접속 설정

Seoul_R1(config)#ena se mhan1
Seoul_R1(config)#username root privilege 15 secret mhan2
Seoul_R1(config)#ip domain-name mhan.xyz
Seoul_R1(config)#crypto key generate rsa
How many bits in the modulus [512]: 2048

Seoul_R1(config)#ip ssh version 2
Seoul_R1(config)#line vty 0 4
Seoul_R1(config-line)#login local
Seoul_R1(config-line)#transport input ssh
Seoul_R1(config-line)#do wr
Seoul_R1(config-line)#exit

 

2.4. ssh 접속 테스트

'Network' 카테고리의 다른 글

12. Network : Routing Protocol - EIGRP  (0) 2022.04.26
11. Network : Routing Protocol - OSPF  (0) 2022.04.26
09. Network : Routing Protocol - RIP  (0) 2022.04.26
08. Network : Router 초기화 및 복구 작업  (0) 2022.04.26
07. Network : VTP  (0) 2022.04.26