Xmodem

0

今天本打算做SSO的某些feature实验,要用到3560。但现有3560的ios不支持OSPF,所以删了现有的IOS,但3560不小心被同事重启了,这下可麻烦了,3560在Rommon模式下还不支持tftp,看来只能用Xmodem来灌IOS了。

以下是Xmodem的操作过程:

switch: dir

List of filesystems currently registered:

flash[0]: (read-write)
xmodem[1]: (read-only)
null[2]: (read-write)
bs[3]: (read-only)

switch: help

? -- Present list of available commands
boot -- Load and boot an executable image
cat -- Concatenate (type) file(s)
copy -- Copy a file
delete -- Delete file(s)
dir -- List files in directories
flash_init -- Initialize flash filesystem(s)
format -- Format a filesystem
fsck -- Check filesystem consistency
help -- Present list of available commands
load_helper -- Load and initialize a helper image
memory -- Present memory heap utilization information
mkdir -- Create dir(s)
more -- Concatenate (display) file(s)
rename -- Rename a file
reset -- Reset the system
rmdir -- Delete empty dir(s)
set -- Set or display environment variables
set_bs -- Set attributes on a boot sector filesystem
set_param -- Set system parameters in flash
sleep -- Pause (sleep) for a specified number of seconds
trap -- Cause a software breakpoint to occur
type -- Concatenate (type) file(s)
unset -- Unset one or more environment variables
version -- Display boot loader version
switch:
switch:
switch:

switch:BAUD=115200
!—调整波特率,可以大大减少灌IOS的时间,如果是默认的9600,需要4小时,改后只需要30分钟左右,更改后屏幕出现乱码,需要重置CRT,而且调整波特率一致,然后重新连接。
switch:
switch:
switch: flash_init
Initializing Flash…
…The flash is already initialized.
Setting console baud rate to 115200…

switch: load_helper

switch: copy xmodem: flash:c3560-advipservicesk9-mz.122-44.SE2.bin
Begin the Xmodem or Xmodem-1K transfer now…
CC
!—出现C的时候就是等待你去通过Xmodem协议发送文件,此时在CRT上选择Transfer —>>> Send Xmodem —>>> 选择IOS文件
Starting xmodem transfer. Press Ctrl+C to cancel.
Transferring c3560-advipservicesk9-mz.122-44.SE2.bin…
100% 10182 KB 9 KB/s 00:18:21 0 Errors
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
……………………………………………………………………………………………………
File “xmodem:” successfully copied to “flash:c3560-advipservicesk9-mz.122-44.SE2.bin”

switch:
switch: BAUD=9600
!—灌完IOS后需要重新调整波特率,然后重置连接
switch: boot
!—此时可以直接boot,因为它可以自己去flash里查找可用ios,或者也可以通过set命令把boot正确的脚本写上。

参考文章:
Xmodem Console Download Procedure Using ROMmon

本文出自 Frank's Blog

版权声明:


本文链接:Xmodem
版权声明:本文为原创文章,仅代表个人观点,版权归 Frank Zhao 所有,转载时请注明本文出处及文章链接
你可以留言,或者trackback 从你的网站

评论关闭

blonde teen swallows load.xxx videos