1、配置IP地址:
Switch(config)#int f1
Switch(config-if)#ip add 10.1.1.1 255.255.255.0Switch(config-if)#no shuSwitch(config-if)#no shutdown Switch(config-if)#endSwitch#ping vrf mgmtVrf 10.1.1.2
Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 msSwitch(config)#ip tftp source-interface fastEthernet 1
2、开启TFTP Server并上传镜像到Switch:
Switch#copy tftp: bootflash:
Address or name of remote host [10.1.1.2]? Source filename [cat4500e-universalk9.SPA.03.04.05.SG.151-2.SG5.bin]? cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.binDestination filename [cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.bin]? Accessing tftp://10.1.1.2/cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.bin...Loading cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.bin from 10.1.1.2 (via FastEthernet1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK - 190251324 bytes]
3、验证MD5
Switch#verify /md5 bootflash:/cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.bin
..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................《Suppress》
..........................................................................................................................................Done!
verify /md5 (bootflash:/cat4500e-universalk9.SPA.03.08.08.E.152-4.E8.bin) = 9b481bd9c03fd8fdcd5e9db3fce2f397
4、思科官网镜像MD5值:
MD5 Checksum : | 9b481bd9c03fd8fdcd5e9db3fce2f397 |
验证一样。