S5720-28X-SI-AC还原+升级

作者:waMoYu 发布时间: 2024-12-15 阅读量:86 评论数:0

S5270-28X-SI,版本V200R010C10

一、情况介绍

拿到一台华为S5720-28X-SI-AC交换机,需要上机当接入用,但是不知道console密码。所以先恢复密码然后还原配置,在升级一波后使用。

二、重置console密码

  1. 插入console线,连接后,交换机断电重启。

  2. 重启过程中按CTRL+B,进入boot界面。

    盒式交换机在V100R006C03之前的版本,BootROM/BootLoad默认密码为huawei;在V100R006C03及之后的版本,默认密码为Admin@huawei.com。

  3. 选择7,清空密码然后选择1重启。

  4. 重启后默认密码是admin@huawei.com

三、恢复出厂设置

3.1 清除堆叠配置

# 恢复堆叠优先级:<HUAWEI> system-view
[HUAWEI] stack slot 2 priority 100  //将2槽位号的优先级恢复为缺省值100

# 恢复槽位号:<HUAWEI> system-view
[HUAWEI] stack slot 2 renumber 0  //将设备槽位号修改为0

# 恢复堆叠保留VLAN:<HUAWEI> system-view
[HUAWEI] stack reserved-vlan 4093  //将堆叠保留VLAN恢复到缺省值4093

# 恢复系统MAC切换时间:<HUAWEI> system-view
[HUAWEI] undo stack timer mac-address switch-delay

# 清除堆叠口,按照实际的端口来删除
[HUAWEI] interface stack-port 0/1  
[HUAWEI-stack-port0/1] shutdown interface xgigabitethernet0/0/1
[HUAWEI-stack-port0/1] undo port interface xgigabitethernet0/0/1 enable

3.2 恢复出厂设置

<HUAWEI> reset factory-configuration
Warning: The command will delete all the configurations and files (except the startup, patch, module, and license files) from the device. Continue? [Y/N]:y  //输入y后,将清除设备上所有的配置和数据文件。                                                                                                       
Warning: The system will reboot after configurations and files are deleted. Continue? [Y/N]:y  //输入y后,设备将自动重新启动。

四、升级版本

  1. 下载需要升级的版本

  2. 查看升级指导书中有没有什么限制和特殊要求,比如当前版本能否直升最新版本。

  3. 将升级包上传到交换机

    tftp、web都行,上传后注意看看大小是否一致,有时候上传的文件会不完整。

    <HUAWEI> tftp tftp服务器IP get xxxx.cc
  4. 设置启动软件为新版本

    <HUAWEI> startup system-software xxxx.cc

评论