Professional Documents
Culture Documents
Упражнение 1
Упражнение 1
Router>enable
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname 1229118
1229118(config)#int f0/0
1229118(config-if)#ip address 192.168.1.1 255.255.255.0
1229118(config-if)#no shutdown
1229118(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
1229118(config-if)#exit
1229118(config)#enable secret cisco
1229118(config)#exit
1229118#
%SYS-5-CONFIG_I: Configured from console by console
1229118#show run
Building configuration...
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
1229118# exit
1229118#reload
Proceed with reload? [confirm]
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Initializing memory for ECC
..
C1841 processor with 524288 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
Router>enable
Router#show run
Building configuration...
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
1229118#show version
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1,
RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
1229118#config t
Enter configuration commands, one per line. End with CNTL/Z.
1229118(config)#int f0/0
1229118(config-if)#no shutdown
1229118(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
1229118(config-if)#exit
1229118(config)#enable secret CCNA
1229118(config)#exit
1229118#
%SYS-5-CONFIG_I: Configured from console by console
1229118#exit
1229118>enable
Password:
1229118#config t
Enter configuration commands, one per line. End with CNTL/Z.
1229118(config)#config-register 0x2102
1229118(config)#exit
1229118#
%SYS-5-CONFIG_I: Configured from console by console
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
1229118#reload
Proceed with reload? [confirm]
System Bootstrap, Version 12.3(8r)T8, RELEASE SOFTWARE (fc1)
Initializing memory for ECC
..
C1841 processor with 524288 Kbytes of main memory
Main memory is configured to 64 bit mode with ECC enabled
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
1229118>enable
Password:
1229118#show version
Cisco IOS Software, 1841 Software (C1841-ADVIPSERVICESK9-M), Version 12.4(15)T1,
RELEASE SOFTWARE (fc2)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2007 by Cisco Systems, Inc.
Compiled Wed 18-Jul-07 04:52 by pt_team
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
Стъпки :
1) Съединяваме компютър с емулация на терминал към конзолния порт на рутера.
2) Ако имаме достъп до рутера пишем: show version – така ще видим настройката на
конфигурационния регистър ( 0х2102 или 0х102 )
3) Ако не знаем паролата на рутера и нямаме достъп правим така нареченият “cold
restart” – рестартираме рутера с помощта на превключвателя на захранването.
4) В първите секунди след включването на рутера натискаме Ctrl + Break на терминала, с
цел да поставим рутера в ROMMON.
5) След като вече рутера е в ROMMON, в rommon 1> въвеждаме командата confreg 0x2142,
за да стартираме операционната система от Flash без да зареждаме конфигурацията.
6) В rommon 2> въвеждаме командата reset
7) По този начин рутерът се рестартира, но игнорира запазената си конфигурация.
8) На въпросите за настройка въвеждаме no.
9) След това в Router> въвеждаме командата enable
10) Вече сме влезли в enable режим и на Router # въвеждаме командата copy startup-config
running-config
11) Въвеждаме командата show running-config -> с тази команда ще видим конфигурацията
на рутера
12) Въвеждаме командата configure terminal, за да можем да правим промени
13) Въвеждаме enable secret <парола> за да променим паролата на enable secret
14) Въвеждаме командата no shutdown за всеки интерфейс, който се използва
15) Въвеждаме командата config-register 0x2102
16) Пишем end, за да излезем от конфигурационен режим
17) Въвеждаме командата copy running-config startup-config за да се запазят промените