PDA

View Full Version : Restore IOS. Help me.



cuibapcaca
12-05-2008, 11:28 AM
Em đang xài con router 2501. Mặc định thì con này không cho xóa flash (read-only). Em muốn xóa flash rồi load lại bằng TFTP. Em sữa thanh ghi cấu hình lại là 0x2100 rồi reload lại. Sau đó nó không vào chế độ Rommon mà như thế này:

Router(boot)>
Router(boot)>?
Exec commands:

connect Open a terminal connection
disconnect Disconnect an existing network connection
enable Turn on privileged commands
exit Exit from the EXEC
help Description of the interactive help system
login Log in as a particular user
logout Exit from the EXEC
name-connection Name an existing network connection
pad Open a X.29 PAD connection
ping Send echo messages
resume Resume an active network connection
show Show running system information
systat Display information about terminal lines
telnet Open a telnet connection
terminal Set terminal line parameters
traceroute Trace route to destination
where List active connections
x3 Set X.3 parameters on PAD

Em cố gắng reload lại và nhấn CTRL-Break thì như sau:
>
>
>?
$ Toggle cache state
B [filename] [TFTP Server IP address | TFTP Server Name]
Load and execute system image from ROM or from TFTP server
C [address] Continue execution [optional address]
D /S M L V Deposit value V of size S into location L with modifier M
E /S M L Examine location L with size S with modifier M
G [address] Begin execution
H Help for commands
I Initialize
K Stack trace
L [filename] [TFTP Server IP address | TFTP Server Name]
Load system image from ROM or from TFTP server, but do not
begin execution
O Show configuration register option settings
P Set the break point
S Single step next instruction
T function Test device (? for help)

>set
0: jmp @#0x10003A6
Trace trap at 0x10003A6 (PC)
>IP_ADDRESS=192.168.1.1

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>IP_SUBNET_MASK=255.255.255.0

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>DEFAULT_GATEWAY=192.168.1.2
Missing value
>I

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>
>


Set các thông số cho TFTP không được. Help me!

danghoangkhanh
12-05-2008, 11:58 AM
Hi,


Em cố gắng reload lại và nhấn CTRL-Break thì như sau:
>
>
>?
$ Toggle cache state
B [filename] [TFTP Server IP address | TFTP Server Name]
Load and execute system image from ROM or from TFTP server
C [address] Continue execution [optional address]
D /S M L V Deposit value V of size S into location L with modifier M
E /S M L Examine location L with size S with modifier M
G [address] Begin execution
H Help for commands
I Initialize
K Stack trace
L [filename] [TFTP Server IP address | TFTP Server Name]
Load system image from ROM or from TFTP server, but do not
begin execution
O Show configuration register option settings
P Set the break point
S Single step next instruction
T function Test device (? for help)

>set
0: jmp @#0x10003A6
Trace trap at 0x10003A6 (PC)
>IP_ADDRESS=192.168.1.1

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>IP_SUBNET_MASK=255.255.255.0

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>DEFAULT_GATEWAY=192.168.1.2
Missing value
>I

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>
>

==> chế độ này là đang ở rommon rồi mà bạn,

Bạn đừng load IOS kiểu này mà dùng lệnh tftpdnld sau đó copy sang notepad edit lại rồi paste lại vào router thử

cuibapcaca
12-05-2008, 03:47 PM
Sau 1 hồi vật lộn với nó cuối cùng cũng được.

Router(boot)#conf t
Router(boot)(config)#int e0
Router(boot)(config-if)#ip add 192.168.1.2 255.255.255.0
...

Sau đó copy IOS từ tftp vào flash bình thường. Đơn giản hơn! Tuy nhiên em vẫn chưa hiểu sự khác nhau giữa các chế độ với các dấu nhắc:
"Router(boot)#" và ">"
Cả 2 cái đều là mode Rommon? Sự khác nhau giữa chúng? Mode có dấu nhắc "Router(boot)>" em chưa thấy bao giờ?

cherish1982vn
12-05-2008, 04:38 PM
bạn đã ở ROMMON rồi thì phải set IP ADDRESS , TFTP Server IP....
Sau đó type tftpdnld thì sẽ tự down về thôi mà :)
Bạn có thể lên Cisco.com để search tài liệu. Rất dễ dàng để sử dụng.

cuibapcaca
12-05-2008, 05:02 PM
bạn đã ở ROMMON rồi thì phải set IP ADDRESS , TFTP Server IP....
Sau đó type tftpdnld thì sẽ tự down về thôi mà
Bạn có thể lên Cisco.com để search tài liệu. Rất dễ dàng để sử dụng.
Bạn đọc kĩ câu hỏi mình chứ. Chính vì không thể set các biến môi trường như cách của bạn trên con Router 2501 (xem Quote bên dưới) nên mới làm cách kia (con 2600 thì okie như trong tài liệu).


>set
0: jmp @#0x10003A6
Trace trap at 0x10003A6 (PC)
>IP_ADDRESS=192.168.1.1

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>IP_SUBNET_MASK=255.255.255.0

System Bootstrap, Version 5.2(8a), RELEASE SOFTWARE
Copyright (c) 1986-1995 by cisco Systems
2500 processor with 16384 Kbytes of main memory
>DEFAULT_GATEWAY=192.168.1.2
Missing value
Vấn đề mình muốn hỏi sự khác nhau giữa chế độ Rommon (có dấu nhắc ">") và chế độ có dấu nhắc "Router(boot)>"

danghoangkhanh
15-05-2008, 02:15 PM
Hi,

Chế độ rommon (Router<rommon>) là khi Router ko tìm thấy đc IOS trong flash, tức Router đã mất IOS.

Còn chế độ boot-rom [Router(boot)#] là Router có IOS nhưng do bạn can thiệp bằng cách đổi giá trị 2100. Vd như router bạn có 2 IOS thì bạn có thể vào boot-rom để boot IOS bạn cần. Dùng lệnh Router(boot)#boot system flash:tên IOS