2023年5月24日星期三

2960X救砖方法

 注意那个冒号和斜杠,还有空格,格式要绝对正确,在这个模式下tftp是单向的,只能下载,不能上传,还有,源文件名和目标文件名必须相同,血的教训阿。。。

Initialize the flash:
switch: flash_init

Initialize the management interface:(这一步好像没必要)
switch: mgmt_init

Then assign an IP address to the management interface:
switch: set IP_ADDR 10.1.100.2/255.255.255.0
switch: set DEFAULT_ROUTER 10.1.100.1

Then configure your TFTP server to have an IP on the same subnet and connect it to the management interface of the switch (ie 10.1.100.1/24)

Now to tell the switch to retrieve the firmware image:(这一步前有些机器要做 fsck flash:)
switch: copy tftp://10.1.100.1/c2960x-universalk9-mz.152-5b.E.bin flash:c2960x-universalk9-mz.152-5b.E.bin

The switch should then retrieve the image and save it flash.

Once the copy is complete boot from it with:

switch: boot flash:c2960x-universalk9-mz.152-5b.E.bin

然后可以直接重启,或者重新设定boot变量的值



没有评论:

发表评论

扩容/dev/mapper/pve-root

.执行 parted /dev/sdq 输入 print 找到要扩容的盘,应该是/dev/sdq3,检查大小 resizepart 3 100% quit 再检查大小 退出parted 更新物理卷的大小,当然这里前提是使用了LVM pvresize /dev/sda3 lvdis...