0
点赞
收藏
分享

微信扫一扫

交换机通过boot模式升级

柠檬的那个酸_2333 2023-11-25 阅读 64
镜像运维

配置步骤

1、交换机通过Console口连接配置PC机。通过MG口连接TFTP服务器,如果交换机上没有MG口则连接设备的1口。

2、在TFTP Server上运行服务端程序,配置TFTP Server的IP地址为 192.168.1.1/24 。将升级所需的文件放置在TFTP Server的根目录。

3、在配置PC上,打开超级终端程序,启动交换机。在超级终端中显示内存自检时按“Ctrl+B”键进入BootRom模式。

交换机启动后,在显示以下信息时输入“Ctrl+B”,一定得是手动按“Ctrl+B”进入的boot模式才能正常升级。

Testing RAM...
 268,435,456 RAM

显示下列信息时,代表已进入BootRom模式

U-Boot 2013.01-svn100209 (Jan 18 2016 - 10:05:43) Marvell version: 2014_T3.0p8

Map:   Code:                    0x1feb0000:0x1ff8d280
       BSS:                     0x1ffefdf4
       Stack:                   0x1f99fef0
       Heap:                    0x1f9a0000:0x1feb0000
       U-Boot Environment:      0x00180000:0x00190000 (SPI)

NAND:  mvNfcInit() failed.
0 MiB
MMC:   MRVL_MMC: 0
Using default environment

PCI-e 0: Detected No Link.
FPU initialized to Run Fast Mode.
USB2.0 0: Host Mode
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |   In-Band    |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1

Bootrom version: 7.4.11

Creation date: Jan 18 2016 - 10:10:42

Testing RAM...
0x10000000 RAM OK.

 [Boot]:                                      #显示已经入BootRom模式下

4、使用“setconfig”命令设置BootRom下的升级参数。本例中使用TFTP方式,TFTP Server的IP地址是192.168.1.1,交换机的IP地址是192.168.1.2

[Boot]: setconfig   //设置boot模式下配置

 Host IP Address: [10.1.1.1] 192.168.1.2      //'本地IP地址(交换机自已的地址)'
 Server IP Address: [10.1.1.2] 192.168.1.1    //'tftp地址(tftp服务主机电脑IP地址)'

5、根据设备型号,升级对应的boot.rom文件。

读取boot.rom文件:

[Boot]: load DCRS-5950-24(26)-6.0.220.128-boot.rom
 Loading...
 entry = 0x10010
 size = 0x726cd4

Loading file ok!

在BootROM模式下,执行命令write boot.rom。以下是对更新引导文件的保存:

[Boot]: write boot.rom

File exists, overwrite? (Y/N)[N] y

Writing flash:/boot.rom......

Write flash:/boot.rom OK.

以下是更新系统映像文件的配置:

(1) boot模式支持write命令时的升级方式

[Boot]: load nos.img

TFTP from server 192.168.1.66; our IP address is 192.168.1.2   //对应tftp-server地址
[Boot]: load CS6200-28X-EI(P)-10.11.160-vendor_7.4.3.0(R0003.0059)_nos.img
Using egiga1 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.2
Filename 'CS6200-28X-EI(P)-10.11.160-vendor_7.4.3.0(R0003.0059)_nos.img'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
         7.8 MiB/s
done
Bytes transferred = 14601478 (decd06 hex)
[Boot]:                                           //这里显示已成功

在BootROM模式下,执行命令write flash:/nos.img。以下是对更新系统映像文件的保存:

[Boot]: write nos.img

File exists, overwrite? (Y/N)[N] y

Writing flash:/nos.img

Write flash:/nos.img OK.

[Boot]:

升级交换机成功,在BootROM模式下,执行命令run或reboot,回到CLI配置界面。

[Boot]:run(或者reboot)

BootROM模式下的其他命令

(2) boot下不支持write命令时,请使用run命令升级

如果不能write,会有如下提示:

交换机通过boot模式升级_镜像

就得用run的方法直接从tftp服务器加载系统镜像文件启动

命令:run tftp:xx.nos.img //这个xx.nos.img就是系统镜像文件,以实际文件名为准

交换机通过boot模式升级_镜像_02

加载成功后,会自动启动:

交换机通过boot模式升级_镜像_03

DCR-5950系列

运行后设备将进入img模式,此时需要在img模式下使用copy命令再升级一次。

RUN启动后如果显示“Switch(license)>”字符,需要导入LIC后才能用COPY命令升级,提供show version信息以及设备具体型号和硬件版本号至DCN,待LIC生成后输入命令“license”回车把做好的LIC粘贴进去回车即可。

交换机通过boot模式升级_镜像_04

LIC导入成功后,输入enable进入特权模式,把网线接到通讯网口上,配置好对应interface vlan地址,在enable模式用 copy tftp://x.x.x.x/xxxxxx_nos.img nos.img待提示write ok时,reload设备完成升级。

交换机通过boot模式升级_镜像_05

注意:上传文件时不要断电以防损坏.nos文件

举报

相关推荐

0 条评论