◽ L2 Switch(Cisco, …)

[Cisco] Console Terminal passowrd 설정하기


Console Terminal

 

  보통 L2 장비에서는 직접 붙어서 사용하는 터미널과 SSH터미널 서비스(?) 터미널이 따로 나뉘어있는데, enable모드와 serialport로 붙을 때에는 다른 패스워드를 요구한다. 이 패스워드 설정은 다행히도 ssh 서비스로도 설정이 가능하다. 그래서 서 아래에 간단히 정리하려고 한다.


 

먼저 configuration terminal에 진입한 뒤 

#line con 0

#password {password}

#login

#end

로 아래와 같이 작업을 해준다.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
!
!
!
snmp-server community public RO
!
!
line con 0
 password dhlee
 logging synchronous
 login
 stopbits 1
line aux 0
 stopbits 1
line vty 0 4
 password dsm1234
 login local
 transport input telnet ssh
line vty 5 15
 password cisco
 login
!
wsma agent exec
 profile httplistener
 profile httpslistener
!
wsma agent config
 profile httplistener
 profile httpslistener
!
wsma agent filesys
 profile httplistener
 profile httpslistener
!
wsma agent notify
 profile httplistener
 profile httpslistener
!
!
wsma profile listener httplistener
 transport http
!
wsma profile listener httpslistener
 transport https
!
ap group default-group
end
 
Switch#conf
Switch#configure ter
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#line con 0
Switch(config-line)#password dhlee2
Switch(config-line)#login
Switch(config-line)#end
Switch#wr
Building configuration...
Compressed configuration from 4424 bytes to 1987 bytes[OK]
Switch#
 
cs

 

 

 

 

 

 

변경된 후 아래그림 참조.

이제 시리얼포트(콘솔)로 직접 붙게되면 패스워드를 요구하는데 아래의 그림과 같이 "dhlee2"로 입력하고 접속해주면 된다.

 


참고 :

https://www.cisco.com/c/ko_kr/support/docs/ios-nx-os-software/ios-software-releases-110/45843-configpasswords.html


 

푸터바