◽ L2 Switch(Cisco, …)
[Ubiquoss] 패스워드 변경, 시스템 기록 ( Common Command result )
kkk20000a
2022. 4. 20. 16:29
Ubiquoss
이 글은 단순히 시스템에 접속하여 간단한 명령어의 결과값을 좀 기록할 필요가 있어 기록하는 글이라. 개인적으로 보는 글이기 때문에 참조하는 글로는 적절하지 않을 수 있음.
1. Command - ?
지원하는 명령어이고 첫번째 인자값에만 올 수 있는 명령어들만 출력되고 있는 모습.
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
|
E4020-48-19#?
Exec commands:
boot Modify system boot parameters
calendar Manage the hardware calendar
clear Reset functions
clock Manage the system clock
configure Enter configuration mode
copy Copy from one file to another
debug Debugging functions (see also 'undebug')
diagnostic Diagnostic commands
disable Turn off privileged mode command
disconnect Close virtual terminal connection
dot1x IEEE 802.1X Port-Based Access Control
enable Turn on privileged mode command
erase Erase a file
exit End current mode and down to previous mode
factory-reset Restore Factory Setting
help Description of the interactive help system
ip IP information
logout Exit from the EXEC
more Display the contents of a file
no Negate a command or set its defaults
pager Pager configuration
ping Send echo messages
power Power configure
reload Halt and perform a cold restart
rename Rename a file
send Send a message to other tty lines
show Show running system information
ssh Open a secure shell client connection
tcpdump Dump traffic on a network
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
tunnel protocol-over-protocol tunneling
udld UDLD protocol commands
write Write running configuration to memory, file or terminal
|
cs |
2. Command - configure terminal
설정 터미널로 접속하는 명령어이다. 접속에 성공하면 Enter configuration commands라는 메시지를 볼 수 있다.
1
2
3
4
5
|
E4020-48-19#configure terminal
Thu Apr 21 2022 01:23:02 KST
Enter configuration commands, one per line. End with CNTL/Z.
E4020-48-19(config)#
|
cs |
3. Command - username {account} password
사용자 패스워드 변경 작업이다.
1
2
3
4
5
6
7
8
9
10
11
|
E4020-48-19(config)#username awhiteTest password
New password:
Retype new password:
% The length should be longer than 8.
E4020-48-19(config)#username awhiteTest password
New password:
Retype new password:
E4020-48-19(config)#
|
cs |
4. Command - show running-config
현재 설정을 볼 수 있는 명령어이다.
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
|
E4020-48-19(config)#show running-config
Thu Apr 21 2022 01:34:16 KST
Building configuration...
!
! Last configuration change at 01:29:36 Thu Apr 21 2022 by admin
! Startup config last updated at 05:55:53 Wed Apr 20 2022 by admin
!
!
!
hostname E4020-48-19
!
!
banner motd ^C
-----------------------------------------------------------------
The system is used to the official authorized users.
Personal privacy when using the system, Not guaranteed
All access, Using History Can be recorded and monitored,
agencies, or can be provided in the courtroom.
Using the system, Banner means for the implied consent !!
------------------------------------------------------------------
^C
!
boot system os1: UbiEnt.r257.bin
!
logging console debugging
logging monitor debugging
logging trap debugging
logging buffered debugging
logging flash debugging
!
ip ssh port 2022
!
no ip domain-lookup
!
service ssh
service timestamps log datetime localtime
!
aaa authentication login default tacacs+ local
aaa authorization exec default tacacs+ local
!
username: awhiteTest password: 0b17a292106311fb42cff9ddfbb7155bb469e8ded7abb53a5dc6ad67f508536b
!
clock timezone KST 9
!
ip option ssh-acl access-group 101
!
spanning-tree mode rstp-vlan-bridge
spanning-tree enable
!
tacacs-server host: 0.0.0.0 key: 7 test1231231231233
!
vlan database
vlan 209 name DATA
vlan 209 state enable
vlan 460 name VOICE
vlan 460 state enable
!
interface Giga0/1
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/2
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/3
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/4
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/5
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/6
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/7
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/8
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/9
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/10
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/11
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/12
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/13
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/14
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/15
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/16
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/17
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/18
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/19
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/20
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/21
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/22
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/23
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/24
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/25
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/26
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/27
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/28
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/29
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/30
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/31
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/32
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/33
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/34
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/35
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/36
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/37
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/38
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/39
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/40
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/41
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/42
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/43
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/44
speed 100
no shutdown
switchport access vlan 209
switchport voice vlan 460
spanning-tree portfast
!
interface Giga0/45
no shutdown
switchport access vlan 460
spanning-tree portfast
!
interface Giga0/46
no shutdown
switchport access vlan 460
spanning-tree portfast
!
interface Giga0/47
no shutdown
switchport access vlan 209
spanning-tree portfast
!
interface Giga0/48
no shutdown
switchport access vlan 209
spanning-tree portfast
!
interface Giga0/49
no shutdown
switchport access vlan 209
!
interface Giga0/50
no shutdown
switchport access vlan 209
!
interface Giga0/51
no shutdown
switchport access vlan 209
!
interface Giga0/52
no shutdown
switchport access vlan 209
!
interface Vlan1
no shutdown
!
interface Vlan209
ip address 0.1.1.1/24
no shutdown
!
interface Vlan460
no shutdown
!
interface eth0
ip address 192.168.1.203/22
!
ip route 0.0.0.0/0 192.168.0.1
!
snmp-server community: 3260b31c774bab2368dcbd583ecff245c2520a84e12511f994baee159022625f96252969738c70be7485c16ad322f738 RO 11
!
login on-success log
login on-failure log
!
ntp server 1.1.1.1
line con 0
exec-timeout 0 0
login
line vty 0 7
login
!
end
|
cs |
5. Command - write memory
설정값을 메모리에 적용시키는 명령어.
1
2
3
4
5
6
|
E4020-48-19#write memory
Overwrite 'config: 0 default.cfg'? [y/n]y
Building configuration...
[OK]
E4020-48-19#
|
cs |
참고 :
.