前端开发入门到精通的在线学习网站

网站首页 > 资源文章 正文

irf设备版本升级(irf-port-configuration active)

qiguaw 2025-07-23 17:42:06 资源文章 4 ℃ 0 评论

//注:本次升级共有两台H3C 7506交换机做了IRF,每台交换机两块引擎板,总共4块引擎板上的IOS都要升级;

//注:本次升级业务已规避,可以一次性重启此两台H3c 7506交换机,不需要主备倒换。

//注:交换机的新版IOS到官网下载

1、将笔记本电脑与交换机的(直连)网络打通。

在要升级的交换机上新建一个未占用的网段并配置IP地址,启用一个未占用的端口连接笔记本;给笔记本配置相同网段IP地址,使电脑与交换机通过网线能直连通信(或是利用现有的网段也行)

[S-7506-IRF-1]inter Vlan-interface 3777

[S-7506-IRF-1-Vlan-interface3777]ip add 2.2.2.2 255.255.255.0

interface GigabitEthernet1/4/0/16

port link-mode bridge

port access vlan 3777

//注:笔记本IP配置2.2.2.1 255.255.255.0

//注:确保笔记本与交换机直连已通。

//注:在交换机上测试是否可以ping通笔记本的IP地址。

[S-7506-IRF-1-GigabitEthernet1/4/0/16]ping 2.2.2.1

Ping 2.2.2.1 (2.2.2.1): 56 data bytes, press CTRL_C to break

56 bytes from 2.2.2.1: icmp_seq=0 ttl=128 time=2.160 ms

56 bytes from 2.2.2.1: icmp_seq=1 ttl=128 time=1.749 ms

56 bytes from 2.2.2.1: icmp_seq=2 ttl=128 time=1.742 ms

56 bytes from 2.2.2.1: icmp_seq=3 ttl=128 time=1.785 ms

56 bytes from 2.2.2.1: icmp_seq=4 ttl=128 time=1.818 ms


2、查看交换机主引擎flash剩余空间是否足够(剩余空间要大于上传的ios大小)

<S-7506-IRF-1>dir

Directory of flash:

0 drw- - Sep 28 2017 23:46:31 diagfile

1 -rw- 11826 Jan 15 2021 00:27:32 ifindex.dat

2 -rw- 0 Jan 21 2021 09:23:55 lauth.dat

3 drw- - Dec 07 2016 13:39:47 license

4 drw- - Mar 19 2021 23:36:11 logfile

5 -rw- 32005120 Dec 07 2016 13:30:50 s7500e-cmw710-boot-r7184.bin

6 -rw- 231346176 Dec 07 2016 13:35:45 s7500e-cmw710-system-r7184.bin

7 drw- - Dec 07 2016 13:39:47 seclog

8 -rw- 49123 Jan 15 2021 00:27:35 startup.cfg

9 -rw- 1463474 Jan 15 2021 00:27:37 startup.mdb

10 drw- - Dec 07 2016 13:40:02 versionInfo

1048576 KB total (783312 KB free)


3、笔记本上用启FTP服务(可以使用3CDaemon软件,此软件运行即可,复制FTP用户名、默认无密码),笔记本端为服务器端;在交换机上连上FTP。

//注:2.2.2.1为笔记本配置的地址

<S-7506-IRF-1>ftp 2.2.2.1

Press CTRL+C to abort.

Connected to 2.2.2.1 (2.2.2.1).

220 3Com 3CDaemon FTP Server Version 2.0

User (2.2.2.1:(none)): anonymous

331 User name ok, need password

Password:

230-The response '' is not valid.

230-Next time, please use your email address as password.

230 User logged in

Remote system type is UNIX.

Using binary mode to transfer files.

ftp> binary

200 Type set to I.


4、先将交换机上的配置及文件拷贝下来。以下只拷了文件大小 >0 的文件。

//注:有哪些文件可以看上面“步骤2”用dir命令显示出来的结果

ftp> put startup.cfg

227 Entering passive mode (2,2,2,1,218,87)

125 Using existing data connection

226 Closing data connection; File transfer successful.

49123 bytes sent in 0.002 seconds (28.60 Mbytes/s)

ftp> put startup.mdb

227 Entering passive mode (2,2,2,1,218,106)

125 Using existing data connection

226 Closing data connection; File transfer successful.

1463474 bytes sent in 0.304 seconds (4.59 Mbytes/s)

ftp> put s7500e-cmw710-boot-r7184.bin

227 Entering passive mode (2,2,2,1,218,124)

125 Using existing data connection

226 Closing data connection; File transfer successful.

32005120 bytes sent in 16.138 seconds (1.89 Mbytes/s)

ftp> put s7500e-cmw710-system-r7184.bin

227 Entering passive mode (2,2,2,1,218,164)

125 Using existing data connection

226 Closing data connection; File transfer successful.

231346176 bytes sent in 122.971 seconds (1.79 Mbytes/s)


5、再次确认下主引擎的剩余空间,确认上传空间是否足够。

<S-7506-IRF-1>dir chassis1#slot0#flash:/

Directory of flash:

0 drw- - Sep 28 2017 23:46:31 diagfile

1 -rw- 11826 Jan 15 2021 00:27:32 ifindex.dat

2 -rw- 0 Jan 21 2021 09:23:55 lauth.dat

3 drw- - Dec 07 2016 13:39:47 license

4 drw- - Mar 19 2021 23:36:11 logfile

5 -rw- 32005120 Dec 07 2016 13:30:50 s7500e-cmw710-boot-r7184.bin

6 -rw- 231346176 Dec 07 2016 13:35:45 s7500e-cmw710-system-r7184.bin

7 drw- - Dec 07 2016 13:39:47 seclog

8 -rw- 49123 Jan 15 2021 00:27:35 startup.cfg

9 -rw- 1463474 Jan 15 2021 00:27:37 startup.mdb

10 drw- - Dec 07 2016 13:40:02 versionInfo

1048576 KB total (783312 KB free)

(以下4个引擎板卡都要看,确认剩余空间够不够)

<S-7506-IRF-1>dir chassis?

chassis1#slot0#flash:/ //这块是默认空间,即上面输入dir查看的空间。

chassis1#slot1#flash:/

chassis2#slot0#flash:/

chassis2#slot1#flash:/


6、将要升级的文件上传

//注:具体文件名以官网下载的名称为准

//以下以要升级的ios文件名为
S7500E-CMW710-SYSTEM-R7596P05.bin

S7500E-CMW710-BOOT-R7596P05.bin
为例

ftp> get S7500E-CMW710-SYSTEM-R7596P05.bin

227 Entering passive mode (2,2,2,1,201,71)

125 Using existing data connection

226 Closing data connection; File transfer successful.

352314368 bytes received in 528.886 seconds (650.53 Kbytes/s)

ftp> get S7500E-CMW710-BOOT-R7596P05.bin

227 Entering passive mode (2,2,2,1,202,87)

125 Using existing data connection

226 Closing data connection; File transfer successful.

40298496 bytes received in 59.650 seconds (659.75 Kbytes/s)

断开FTP连接

[ftp]bye

221 Service closing control connection

//确认文件上传是否成功;上面步骤不断开FTP连接,回不到交换机的命令界面,输不了交换机的命令。

<S-7506-IRF-1>dir

Directory of flash:

0 -rw- 40298496 Apr 01 2021 18:00:55 S7500E-CMW710-BOOT-R7596P05.bin

1 -rw- 352314368 Apr 01 2021 17:59:33 S7500E-CMW710-SYSTEM-R7596P05.bin

2 drw- - Sep 28 2017 23:46:31 diagfile

3 -rw- 11854 Apr 01 2021 17:28:51 ifindex.dat

4 -rw- 0 Jan 21 2021 09:23:55 lauth.dat

5 drw- - Dec 07 2016 13:39:47 license

6 drw- - Mar 19 2021 23:36:11 logfile

7 -rw- 32005120 Dec 07 2016 13:30:50 s7500e-cmw710-boot-r7184.bin

8 -rw- 231346176 Dec 07 2016 13:35:45 s7500e-cmw710-system-r7184.bin

9 drw- - Dec 07 2016 13:39:47 seclog

10 -rw- 51807 Apr 01 2021 17:28:53 startup.cfg

11 -rw- 1465428 Apr 01 2021 17:28:56 startup.mdb

12 drw- - Dec 07 2016 13:40:02 versionInfo

以下4个空间分别copy过去。

chassis1#slot0#flash:/ //这块是默认空间不用copy了,即dir查看的就是这块。

chassis1#slot1#flash:/

chassis2#slot0#flash:/

chassis2#slot1#flash:/

<S-7506-IRF-1>copy S7500E-CMW710-BOOT-R7596P05.bin chassis1#slot1#flash:/

Copy flash:/S7500E-CMW710-BOOT-R7596P05.bin to chassis1#slot1#flash:/S7500E-CMW710-BOOT-R7596P05.bin?[Y/N]:y

Copying file flash:/S7500E-CMW710-BOOT-R7596P05.bin to chassis1#slot1#flash:/S7500E-CMW710-BOOT-R7596P05.bin..................................................................... Done.

<S-7506-IRF-1>copy S7500E-CMW710-SYSTEM-R7596P05.bin chassis1#slot1#flash:/

Copy flash:/S7500E-CMW710-SYSTEM-R7596P05.bin to chassis1#slot1#flash:/S7500E-CMW710-SYSTEM-R7596P05.bin?[Y/N]:y

Copying file flash:/S7500E-CMW710-SYSTEM-R7596P05.bin to chassis1#slot1#flash:/S7500E-CMW710-SYSTEM-R7596P05.bin.................................................................................................................................. Done.

<S-7506-IRF-1>copy S7500E-CMW710-BOOT-R7596P05.bin chassis2#slot0#flash:/

过程省略.....

<S-7506-IRF-1>copy S7500E-CMW710-SYSTEM-R7596P05.bin chassis2#slot0#flash:/

过程省略.....

<S-7506-IRF-1>copy S7500E-CMW710-BOOT-R7596P05.bin chassis2#slot1#flash:/

过程省略.....

<S-7506-IRF-1>copy S7500E-CMW710-SYSTEM-R7596P05.bin chassis2#slot1#flash:/

过程省略.....


7、指定上传的文件为下次引导的文件。

<S-7506-IRF-1>boot-loader file boot flash:/S7500E-CMW710-BOOT-R7596P05.bin

system flash:/S7500E-CMW710-SYSTEM-R7596P05.bin chassis 1 slot 0 main

This command will set the main startup software images. Continue? [Y/N]:y

Verifying the file flash:/s7500e-cmw710-boot-r7596p05.bin on chassis 1 slot 0....................Done.

Verifying the file flash:/s7500e-cmw710-system-r7596p05.bin on chassis 1 slot 0..................................................................................................................................Done.

The images that have passed all examinations will be used as the main startup software images at the next reboot on chassis 1 slot 0.

<S-7506-IRF-1>boot-loader file boot chassis1#slot1#flash:/S7500E-CMW710-BOOT-R7596P05.bin system chassis1#slot1#flash:/S7500E-CMW710-SYSTEM-R7596P05.bin chassis 1 slot 1 main

过程省略.....

<S-7506-IRF-1>boot-loader file boot chassis2#slot0#flash:/S7500E-CMW710-BOOT-R7596P05.bin system chassis2#slot0#flash:/S7500E-CMW710-SYSTEM-R7596P05.bin chassis 2 slot 0 main

过程省略.....

<S-7506-IRF-1>boot-loader file boot chassis2#slot1#flash:/S7500E-CMW710-BOOT-R7596P05.bin system chassis2#slot1#flash:/S7500E-CMW710-SYSTEM-R7596P05.bin chassis 2 slot 1 main

过程省略.....

8、重启交换机

<S-7506-IRF-1>reboot

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表