思科(Cisco)交换机软件版本升级步骤

一、准备软件版本
在思科官方网站(思科官网传送门)下载你需要的系统版本文件,将软件版本准备好拷贝到U盘。
二、准备设备
将交换机加电启动,通过CRT- console进行连接,界面如下:
思科(Cisco)交换机软件版本升级步骤
三、将版本文件上传到设备
有两种上传方式
1、用设备USB接口上传
新出的设备支持USB上传方式(例如:C9200L等)
思科(Cisco)交换机软件版本升级步骤
将U盘插入USB接口
思科(Cisco)交换机软件版本升级步骤
【*Oct 19 05:26:25.954: %IOSD_INFRA-6-IFS_DEVICE_OIR: Device usbflash0 added】防止图片君走丢。
进入特权模式
Switch>en
查看系统所有文件信息
Switch#dir
思科(Cisco)交换机软件版本升级步骤
如果空间不够,可以进行删除操作
Switch#delete flash: 你想删除的文件名字
查看U盘里的系统版本文件
Switch#show usbflash0:
找到要上传的文件,输入上传命令
Switch#copy usbflash0:cat9k_lite_iosxe.16.12.04.SPA.bin flash:
等待上传结束,验证文件是否存在?检查字节数是否相同?
Switch#dir
2、用FTP/TFTP上传
准备FTP工具(这里用到的是3CD);
准备将PC与交换机进行连接,手动更改PC网卡IP地址(任意IP,这里用到:10.0.0.1/24),这也是FTP服务器IP;
交换机进行配置,使得PC与交换机可以互相通信(ping通);
就是配置VLAN,加IP将接口加入VLAN,进行ping操作,具体步骤如下(会操作的小伙伴可转到下一步):
Switch>en
Switch#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
Switch(config)#do show ip int brie
Interface IP-Address OK? Method Status Protocol
Vlan1 unassigned YES NVRAM up up
GigabitEthernet0/0 unassigned YES NVRAM administratively down down
GigabitEthernet1/0/1 unassigned YES unset up up
GigabitEthernet1/0/2 unassigned YES unset down down
Switch(config)#vlan 45
Switch(config-vlan)#
Switch(config-vlan)#nam
Switch(config-vlan)#name FTP
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#int vlan 45
Switch(config-if)#
*Oct 19 06:04:50.301: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan45, changed state to down
Switch(config-if)#ip address 10.0.0.10 255.255.255.0
Switch(config-if)#no sh
Switch(config-if)#
Switch(config-if)#do show run int vlan 45
Building configuration…

Current configuration : 60 bytes
!
interface Vlan45
ip address 10.0.0.10 255.255.255.0
end

Switch(config-if)#exit
Switch(config)#int g 1/0/1
Switch(config-if)#do show run int g1/0/1
Building configuration…

Current configuration : 38 bytes
!
interface GigabitEthernet1/0/1
end

Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 45
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#
Switch(config-if)#do show run int g1/0/1
*Oct 19 06:06:31.721: %LINK-3-UPDOWN: Interface Vlan1, changed state to down
*Oct 19 06:06:32.721: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1,int g 1/0/1
Switch(config-if)#int g 1/0/1
Switch(config-if)#do show run int g1/0/1
Building configuration…

Current configuration : 89 bytes
!
interface GigabitEthernet1/0/1
switchport access vlan 45
switchport mode access
end

Switch(config-if)#do ping 10.0.0.1
*Oct 19 06:07:02.732: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan45, changed state to up
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
.!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 1/1/4 ms
Switch(config-if)#
Switch(config-if)#do ping 10.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.0.0.1, timeout is 2 seconds:
!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
开始上传
Switch#copy tftp: flash:
Source filename [vlan.dat]?
Address or name of remote host []? 10.0.0.1
Destination filename [vlan.dat]?
!!
1516 bytes copied in 0.012 secs (126333 bytes/sec)

四、指定启动文件
进入全局模式
Switch>
Switch>en
Switch#conf
Switch#configure t
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#
指定启动文件
Switch(config)#boot system flash:cat9k_lite_iosxe.16.12.04.SPA.bin(文件名称)
Switch(config)#exit
保存,重启
Switch#write
Switch#reload
五、验证
Switch>show version
思科(Cisco)交换机软件版本升级步骤

相关文章: