(完整word版)CISCO 交换机 IOS 升级步骤
3750交换机IOS升级方法
Catalyst 3750 Software Upgrade in a Stack Configuration with Use of the Command−Line InterfaceDocument ID: 64898IntroductionPrerequisitesRequirementsComponents UsedConventionsFind the Software Version and Feature SetDecide Which Files to UseFlash File System and Memory Requirements3750 Series Switch Stack IOS Upgrade − Automatic (.tar image)Step−by−Step Instructions3750 Series Switch Stack IOS Upgrade − Manual (.tar image)Step−by−Step Instructions3750 Series Switch Stack IOS Upgrade − Manual (.bin Image)Step−by−Step InstructionsVerifyTroubleshootImage Transfer from TFTP Server Fails or Corrupted IOS imageYou Receive the Error_Bad_Mzip Error Message%Error opening flash:update/info (No such file or directory)Switches in the Stack do not Boot the New Image (Version Mismatch)NetPro Discussion Forums − Featured ConversationsRelated InformationIntroductionThis document explains the step−by−step procedure to use the command−line interface (CLI) in order to upgrade the software image on Cisco Catalyst 3750 series switches that have a multiswitch stack configuration.PrerequisitesRequirementsBefore you download software, refer to these sections of Release Notes for the Catalyst 3750, 3560, and 2970 Switches, Cisco IOS Release 12.2(25)SEB and Later for important information:•Finding the Software Version and Feature Set•Deciding Which Files to Use•Upgrading a Switch by Using the Device Manager or Network AssistantUpgrading a Switch by Using the CLI••Recovering from a Software FailureComponents UsedThe information in this document is based on these hardware versions:•WS−C3750G−12S switches•WS−C3750G−24TS switchesNote: You can substitute any stackable Catalyst 3750 series switch.The information in this document was created from the devices in a specific lab environment. All of the devices used in this document started with a cleared (default) configuration. If your network is live, make sure that you understand the potential impact of any command.ConventionsRefer to the Cisco Technical Tips Conventions for more information on document conventions.Find the Software Version and Feature SetA directory that has the Cisco IOS® Software release name stores the Cisco IOS image as a bin file. The directory stores the image on the system board flash device (flash:). A subdirectory contains the files that you need for web management.You can use the show version privileged EXEC command in order to see the software version that runs on your switch. The second line of the display shows the version.Note: Although the show version output always shows the software image that runs on the switch, the model name that appears at the end of this display is the factory configuration. This image is either the IP base image, formerly known as the standard multilayer image (SMI), or the IP services image, formerly known as the enhanced multilayer image (EMI). This name does not change if you upgrade the software image.You can also use the dir filesystem: privileged EXEC command. This command shows the directory names of any other software images that you have stored in flash memory.Before you decide the Cisco IOS Software release to which you want to upgrade the switches, you should:Read the Release Notes of the particular Cisco IOS Software release. Refer to Cisco Catalyst 3750•Series Switches − Release Notes.•Make sure the Cisco IOS Software release does have any defects which can affect any of the existing functionality. Refer to the Bug Toolkit ( registered customers only) and Cisco Catalyst 3750 SeriesSwitches − Field Notices.Decide Which Files to UseThe software download center for Catalyst 3750 contains two sets of IOS images for every feature set and versions. One set contains only the IOS image file which has the extension .bin. The other set contains the IOS image plus the web−based device manager which has the extension .tar.This document explains the upgrade procedure with the .tar image as well as with the .bin image. The .tar file contains the Cisco IOS image file and the files that you need for the embedded device manager. You must use the combined tar file in order to upgrade the switch through the device manager.Cisco IOS Software Release 12.2(25)SEA and earlier referred to the image that provides Layer 2+ features and basic Layer 3 routing as the SMI. These software releases referred to the image that provides full Layer 3 routing and advanced services as the EMI.Cisco IOS Software Release 12.2(25)SEB and later refer to the SMI as the IP base image and the EMI as the IP services image.Table 1 lists the different file−naming conventions for releases earlier than and later than Cisco IOS Software Release 12.2(25)SEB.Cisco IOS Software Release 12.2(25)SEA and earlierCisco IOS Software Release 12.2(25)SEB and laterc3750−i9−mz (SMI)c3750−ipbase−mzc3750−i9k91−mz (SMI)c3750−ipbasek9−mzc3750−i5−mz (EMI)c3750−ipservices−mzc3750−i5k91−mz (EMI)c3750−ipservicesk9−mzTable 2 lists the file names for this software release.File NameDescriptionc3750−ipbase−tar.122−25.SEB.tarCatalyst 3750 IP base image and device manager filesThis image has Layer 2+ and basic Layer 3 routing features.c3750−ipservices−tar.122−25.SEB.tarCatalyst 3750 IP services image and device manager filesThis image has both Layer 2+ and full Layer 3 routing features.c3750−ipbasek9−tar.122−25.SEB.tarCatalyst 3750 IP base cryptographic image and device manager filesThis image has the Kerberos, SSH1, Layer 2+, and basic Layer 3 routing features.c3750−ipservicesk9−tar.122−25.SEB.tarCatalyst 3750 IP services cryptographic image and device manager filesThis image has the Kerberos, SSH, Layer 2+, and full Layer 3 features.c3750−advipservicesk9−tar.122−25.SEB.tarCatalyst 3750 advanced IP services image, cryptographic file, and device manager filesThis image has all the IP services image features and the capability for unicast routing of IPv62 packets.1 SSH = Secure Shell2 IPv6 = IP version 6The Sofware Advisor ( registered customers only) tool helps to determine the feature set required for the funtionalities needed in the network.Flash File System and Memory RequirementsFlash File SystemThe 3750 ships from the factory with the installation of a web−based device manager (.tar file) in the flash: directory. The extraction process that takes place with a .tar file creates a Cisco IOS image directory. The image directory has the same name as the Cisco IOS image (.bin file), but without the file extension. This directory stores the Cisco IOS image (.bin file) along with an HTML subdirectory that contains the device manager files.Issue the dir flash: command in order to view the 3750 Flash file system. Here is a sample command output: 3750#dir flash:Directory of flash:/2 −rwx 5684228 Mar 12 1993 08:13:57 +00:00 c3750−ipbase−mz.122−25.SEC2.bin3 −rwx 2105 Mar 1 1993 00:02:16 +00:00 config.text4 d rwx 192 Mar 12 1993 08:11:00 +00:00 c3750−ipbase−mz.122−25.SEB45 −rwx 5 Mar 1 1993 00:02:16 +00:00 private−config.text6 −rwx 856 Mar 1 1993 00:04:40 +00:00 vlan.dat364 −rwx 105 Mar 12 1993 08:11:00 +00:00 info15998976 bytes total (3201536 bytes free)!−−− Notice the "d" in the permissions statement.!−−− It indicates that c3750−ipbase−mz.122−25.SEB4 is a directory.!−−− This directory is the location of both the Cisco IOS image (.bin file)!−−− and the HTML subdirectory.Refer to these sections in this document in order to upgrade the 3750 switch to a Cisco IOS Software release with a web−based device manager:•3750 Series Switch Stack IOS Upgrade − Automatic (.tar image)•3750 Series Switch Stack IOS Upgrade − Manual (.tar image)Refer to the 3750 Series Switch Stack IOS Upgrade − Manual (.bin Image) section in order to upgrade the switch with just a Cisco IOS Software release.DRAM MemoryAll models of 3750 series switches have a DRAM configuration of 128 MB. There are no minimum DRAM requirements to consider before you upgrade software on the 3750.Flash MemoryThe internal Flash memory shipped with the 3750 switches are either 16 MB or 32 MB based on the model of the Catalyst 3750 switch. Refer to the Cisco Catalyst 3750 Data Sheet for more information.There is a limit to the number of images that you can store in Flash. Always check the size, in bytes, of the image in the Downloads − Switches ( registered customers only) before you upgrade software. Issue the dir flash: command in order to compare the size of this image with the free space in Flash. Here is a sample command output:3750#dir flash:Directory of flash:/2 −rwx 6221372 Mar 1 1993 00:23:06 +00:00 c3750−ipbase−mz.122−25.SED1.bin3 −rwx 2105 Mar 1 1993 00:02:16 +00:00 config.text4 −rwx 5684228 Mar 1 1993 01:17:34 +00:00 c3750−ipbase−mz.122−25.SEC2.bin5 −rwx 5 Mar 1 1993 00:02:16 +00:00 private−config.text6 −rwx 856 Mar 1 1993 00:04:40 +00:00 vlan.dat15998976 bytes total (4087296 bytes free)3750#If necessary, issue the delete flash:file_name command in order to delete a single Cisco IOS image (.bin file). Or issue the delete /force /recursive flash:dir_name command in order to delete a directory and all the filesin the directory.Here is a sample command output to delete a Cisco IOS image (.bin file):3750#delete flash:c3750−ipbase−mz.122−25.SED1.binDelete filename [c3750−ipbase−mz.122−25.SED1.bin]?!−−− Press Return or Enter.Delete flash:c3750−ipbase−mz.122−25.SED1.bin? [confirm]!−−− Press Return or Enter.3750#dir flash:Directory of flash:/3 −rwx 2105 Mar 1 1993 00:02:16 +00:00 config.text4 −rwx 5684228 Mar 1 1993 01:17:34 +00:00 c3750−ipbase−mz.122−25.SEC2.bin5 −rwx 5 Mar 1 1993 00:02:16 +00:00 private−config.text6 −rwx 856 Mar 1 1993 00:04:40 +00:00 vlan.dat15998976 bytes total (10309120 bytes free)Here is a sample command output to delete a Cisco IOS image with a web−based device manager (directory):3750#dir flash:Directory of flash:/2 −rwx 5684228 Mar 12 1993 08:13:57 +00:00 c3750−ipbase−mz.122−25.SEC2.bin3 −rwx 2105 Mar 1 1993 00:02:16 +00:00 config.text4 drwx 192 Mar 12 1993 08:11:00 +00:00 c3750−ipbase−mz.122−25.SEB45 −rwx 5 Mar 1 1993 00:02:16 +00:00 private−config.text6 −rwx 856 Mar 1 1993 00:04:40 +00:00 vlan.dat364 −rwx 105 Mar 12 1993 08:11:00 +00:00 info15998976 bytes total (3201536 bytes free)3750#delete /force /recursive flash:c3750−ipbase−mz.122−25.SEB4Delete filename [c3750−ipbase−mz.122−25.SEB4]?!−−− Press Return or Enter.3750#dir flash:Directory of flash:/2 −rwx 5684228 Mar 12 1993 08:13:57 +00:00 c3750−ipbase−mz.122−25.SEC2.bin3 −rwx 2105 Mar 1 1993 00:02:16 +00:00 config.text5 −rwx 5 Mar 1 1993 00:02:16 +00:00 private−config.text6 −rwx 856 Mar 1 1993 00:04:40 +00:00 vlan.dat364 −rwx 105 Mar 12 1993 08:11:00 +00:00 info15998976 bytes total (10308608 bytes free)An upgrade can require you to free up even more space. The requirement depends on how many images you have stored in Flash. You can delete more old images/directory to free up this space.3750 Series Switch Stack IOS Upgrade − Automatic (.tar image)In this section, you are presented with the information to configure the features described in this document.The procedure in this section copies the combined tar file to the switch. You copy the file to the switch from a TFTP server and extract the files. You can download an image file and replace the current image, or you can keep the current image.Note: For switch stacks, the archive download−sw and archive upload−sw privileged EXEC commands can only be used through the stack master. Software images downloaded to the stack master are automatically downloaded to the rest of the stack members. Thus, you must be logged on to the master switch to performthis upgrade.Step−by−Step InstructionsIn order to download software, complete these steps:Step 1Use the Decide Which Files to Use section of this document in order to identify the type of image and feature set that you want to download.Step 2Refer to Software Download − Cisco Catalyst 3750 Software ( registered customers only) and find the imagethat you want to download.In order to download older versions of the IP services image or IP base image files for a Catalyst 3750 switch, click Archived Catalyst 3750 Software. In order to obtain authorization and to download the cryptographic software files, click Catalyst 3750 Strong Cryptographic (3DES) Software.Note: Cisco IOS Software releases earlier than Cisco IOS Software Release 12.1(19)EA1c include a bootloader upgrade. The bootloader can take up to 1 minute to upgrade the first time that you load the new software. Do not power cycle the switch during the bootloader upgrade.Step 3Copy the image to the appropriate TFTP directory on the workstation, and make sure that the TFTP server has the proper configuration.For more information, refer to Appendix B of the software configuration guide for this release.Step 4Log in to the switch through the console port or a Telnet session, and enter enable mode.Step 5In order to view the current version, issue the show version command.3750#show versionCisco Internetwork Operating System SoftwareIOS (tm) C3750 Software (C3750−I5−M), Version 12.1(19)EA1d, RELEASE SOFTWARE (fc1)Copyright (c) 1986−2004 by cisco Systems, Inc.Compiled Mon 05−Apr−04 22:06 by antoninoImage text−base: 0x00003000, data−base: 0x009206D8ROM: Bootstrap program is C3750 boot loaderBOOTLDR: C3750 Boot Loader (C3750−HBOOT−M) Version 12.1(14)EA1, RELEASE SOFTWARE (fc1) 3750 uptime is 4 days, 19 hours, 43 minutesSystem returned to ROM by power−onSystem image file is "flash:c3750−i5−mz.121−19.EA1d.bin"cisco WS−C3750G−12S (PowerPC405) processor (revision A0) with 118776K/12288K bytes of memory.Processor board ID CAT0732R0JULast reset from power−onBridging software.5 Virtual Ethernet/IEEE 802.3 interface(s)40 Gigabit Ethernet/IEEE 802.3 interface(s)The password−recovery mechanism is enabled.512K bytes of flash−simulated non−volatile configuration memory.Base ethernet MAC Address : 00:0D:BD:5C:16:80Motherboard assembly number : 73−8307−06Power supply part number : 341−0048−01Motherboard serial number : CAT073205SUPower supply serial number : DTH073004USModel revision number : A0Motherboard revision number : A0Model number : WS−C3750G−12S−ESystem serial number : CAT0732R0JUTop Assembly Part Number : 800−23419−01Top Assembly Revision Number : A0Hardware Board Revision Number : 0x06Switch Ports Model SW Version SW Image−−−−−− −−−−− −−−−− −−−−−−−−−− −−−−−−−−−−1 28 WS−C3750G−24TS 12.1(19)EA1d C3750−I5−M* 2 12 WS−C3750G−12S 12.1(19)EA1d C3750−I5−MSwitch 01Step 6Issue the dir flash: command on the 3750 in order to verify the amount of free memory that you have for the upgrade.Here is a sample command output:3750#dir flash:Directory of flash:/2 −rwx 1516 Mar 01 1993 00:01:28 vlan.dat3 −rwx 4050902 Mar 01 1993 00:03:32 c3750−i5−mz.121−19.EA1d.bin4 −rwx 4273 Mar 05 1993 19:22:44 config.text84 −rwx 5 Mar 05 1993 19:22:44 private−config.text15998976 bytes total (11940352 bytes free)Step 7In order to verify connectivity to the TFTP server, ping its IP address.3750#ping 11.11.11.11Type escape sequence to abort.Sending 5, 100−byte ICMP Echos to 11.11.11.11, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round−trip min/avg/max = 1/1/1 msStep 8There are several options for the download of the image. You can use the command−line options that appear in this section to have a new image overwrite the old image or leave the old image in flash.The example uses the archive download−sw command in order to retain the old image on the device. For acomplete description of the commands available, refer to the archive download−sw section of Catalyst 3750 Switch Cisco IOS Commands.Here are the options available for the archive download−sw command:3750#archive download−sw ?/destination−system specify destination system to receive software/force−reload Unconditionally reload system after successful swupgrade/imageonly Load only the IOS image(s)/leave−old−sw Leave old sw installed after successful sw upgrade/no−set−boot Don't set BOOT −− leave existing boot config alone/no−version−check skip version check that prevents incompatible imageinstall/only−system−type specify individual system type to be updated/overwrite OK to overwrite an existing image/reload Reload system (if no unsaved config changes) aftersuccessful sw upgrade/safe Always load before deleting old versionflash1: Image fileflash2: Image fileflash: Image fileftp: Image filercp: Image filetftp: Image fileThis example shows the command in use and the switch output during the upload process:3750#archive download−sw /leave−old−sw tftp://11.11.11.11/c3750−i5−tar.122−20.SE.tar Loading c3750−i5−tar.122−20.SE.tar .from 11.11.11.11 (via GigabitEthernet1/0/4):!!!!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK − 8488960 bytes]Loading c3750−i5−tar.122−20.SE.tar .from 11.11.11.11 (via GigabitEthernet1/0/4):!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!examining image...extracting info (98 bytes)extracting c3750−i5−mz.122−20.SE/info (435 bytes)extracting info (98 bytes)Stacking Version Number: 1.4System Type: 0x00000000Ios Image File Size: 0x004BA200Total Image File Size: 0x00818A00Minimum Dram required: 0x04000000Image Suffix: i5−122−20.SEImage Directory: c3750−i5−mz.122−20.SEImage Name: c3750−i5−mz.122−20.SE.binImage Feature: LAYER_3|MIN_DRAM_MEG=64Old image for switch 1: unknownOld image for switch 2: unknownExtracting images from archive into flash on switch 1...c3750−i5−mz.122−20.SE/ (directory)c3750−i5−mz.122−20.SE/html/ (directory)extracting c3750−i5−mz.122−20.SE/html/cms_boot.jar (154860 bytes)extracting c3750−i5−mz.122−20.SE/html/err.html (152 bytes)extracting c3750−i5−mz.122−20.SE/html/cms_splash.gif (22131 bytes)extracting c3750−i5−mz.122−20.SE/html/cms_13.html (510 bytes)extracting c3750−i5−mz.122−20.SE/html/custom_cms.html (2441 bytes)extracting c3750−i5−mz.122−20.SE/html/not_supported.html (1392 bytes)extracting c3750−i5−mz.122−20.SE/html/cluster.html (2822 bytes)extracting c3750−i5−mz.122−20.SE/html/start.html (576 bytes)extracting c3750−i5−mz.122−20.SE/html/test.htm (2301 bytes)extracting c3750−i5−mz.122−20.SE/html/xhome.htm (25035 bytes)extracting c3750−i5−mz.122−20.SE/html/stylesheet.css (3364 bytes)extracting c3750−i5−mz.122−20.SE/html/back−exp.htm (182 bytes)extracting c3750−i5−mz.122−20.SE/html/sitewide.js (10627 bytes)extracting c3750−i5−mz.122−20.SE/html/tools.htm (21818 bytes)extracting c3750−i5−mz.122−20.SE/html/appsui.js (3092 bytes)extracting c3750−i5−mz.122−20.SE/html/forms.js (11521 bytes)extracting c3750−i5−mz.122−20.SE/html/doc.htm (22332 bytes)extracting c3750−i5−mz.122−20.SE/html/express−setup.htm (61957 bytes)extracting c3750−i5−mz.122−20.SE/html/troubleshooting_Browser.htm (3704 bytes) extracting c3750−i5−mz.122−20.SE/html/troubleshooting_OS.htm (2851 bytes) extracting c3750−i5−mz.122−20.SE/html/net_report.htm (21107 bytes)!−−− Output suppressed.Installing (renaming): `flash1:update/c3750−i5−mz.122−20.SE' −>`flash1:c3750−i5−mz.122−20.SE'New software image installed in flash1:c3750−i5−mz.122−20.SEInstalling (renaming): `flash:update/c3750−i5−mz.122−20.SE' −>`flash:c3750−i5−mz.122−20.SE'New software image installed in flash:c3750−i5−mz.122−20.SEAll software images installed.!−−− Installation of the image and supporting files is now complete!−−− in the flash of all switches in the stack. In this example, installation!−−− is complete in both switches.Step 9The image copy is complete, and you are ready for the reboot. In order to verify that the current state of the switches is Ready, issue the show switch detail command.Here is an example:3750#show switch detailCurrentSwitch# Role Mac Address Priority State−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−1 Slave 000c.30ae.4f00 9 Ready*2 Master 000d.bd5c.1680 15 ReadyStack Port Status NeighborsSwitch# Port 1 Port 2 Port 1 Port 2−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−1 Ok Ok2 22 Ok Ok 1 1Step 10In order to verify that the new image is in flash for the stack members, issue the dir flash: command and the dir flash 1: command. In this example, there are two switch stack members. If the stack configuration includes additional switches in the stack, issue the dir flash#: command for each additional switch in the stack.Issue the show version command in order to verify that the old image is still the current operation system image. Issue the show boot command in order to verify that the new image is now the image in the BOOT path−list that will load at the next switch reload.3750#dir flash:Directory of flash:/2 −rwx 1516 Mar 01 1993 00:01:28 vlan.dat3 −rwx 4050902 Mar 01 1993 00:03:32 c3750−i5−mz.121−19.EA1d.bin4 −rwx 4273 Mar 05 1993 19:22:44 config.text6 drwx 192 Mar 05 1993 19:40:16 c3750−i5−mz.122−20.SE84 −rwx 5 Mar 05 1993 19:22:44 private−config.text!−−− Notice the "d" in the permissions statement. The "d" indicates a directory.15998976 bytes total (3491328 bytes free)3750#dir flash1:Directory of flash1:/2 −rwx 4050902 Mar 01 1993 00:35:58 c3750−i5−mz.121−19.EA1d.bin3 −rwx 1516 Mar 01 1993 00:01:33 vlan.dat4 −rwx 4273 Mar 05 1993 19:22:44 config.text5 −rwx 5 Mar 05 1993 19:22:44 private−config.text7 drwx 192 Mar 05 1993 19:37:40 c3750−i5−mz.122−20.SE15998976 bytes total (3491328 bytes free)3750#show versionCisco Internetwork Operating System SoftwareIOS (tm) C3750 Software (C3750−I5−M), Version 12.1(19)EA1d, RELEASE SOFTWARE (fc1) Copyright (c) 1986−2004 by cisco Systems, Inc.Compiled Mon 05−Apr−04 22:06 by antoninoImage text−base: 0x00003000, data−base: 0x009206D8ROM: Bootstrap program is C3750 boot loaderBOOTLDR: C3750 Boot Loader (C3750−HBOOT−M) Version 12.1(14)EA1, RELEASE SOFTWARE (fc1) 3750 uptime is 4 days, 19 hours, 43 minutesSystem returned to ROM by power−onSystem image file is "flash:c3750−i5−mz.121−19.EA1d.bin"cisco WS−C3750G−12S (PowerPC405) processor (revision A0) with118776K/12288K bytes of memory.Processor board ID CAT0732R0JULast reset from power−onBridging software.5 Virtual Ethernet/IEEE 802.3 interface(s)40 Gigabit Ethernet/IEEE 802.3 interface(s)The password−recovery mechanism is enabled.512K bytes of flash−simulated non−volatile configuration memory.Base ethernet MAC Address : 00:0D:BD:5C:16:80Motherboard assembly number : 73−8307−06Power supply part number : 341−0048−01Motherboard serial number : CAT073205SUPower supply serial number : DTH073004USModel revision number : A0Motherboard revision number : A0Model number : WS−C3750G−12S−ESystem serial number : CAT0732R0JUTop Assembly Part Number : 800−23419−01Top Assembly Revision Number : A0Hardware Board Revision Number : 0x06Switch Ports Model SW Version SW Image−−−−−− −−−−− −−−−− −−−−−−−−−− −−−−−−−−−−1 28 WS−C3750G−24TS 12.1(19)EA1d C3750−I5−M* 2 12 WS−C3750G−12S 12.1(19)EA1d C3750−I5−MSwitch 01!−−− When you issue the show boot command, it now reads the new code revision!−−− that will load at the next reboot.3750#show bootBOOT path−list : flash:c3750−i5−mz.122−20.SE/c3750−i5−mz.122−20.SE.binConfig file : flash:/config.textPrivate Config file : flash:/private−config.textEnable Break : noManual Boot : no。
两台思科路由器互相升级IOS过程Word版
两台思科路由器互相升级IOS过程我有一台2501路由器的IOS是坏的(cisocB),另外一台2501路由器IOS是好的(ciscoA),好的IOS在我的PC上面己经没有了,但是通过在PC上面做一个TFTP,把好的传到PC上面,再传到坏的上面就太浪费时间了,。
后来想到一个办法,直接把好的路由器配置成TFTP 服务器。
我的连接方式是两台路由器是通过E0口连接的,我先是在好的路由器上面(cisocA)把E0口配置好IP是192.168.10.90(IP地址随便配置,只要两个E0口都能互相PING通就行)再到配置模式下面输入tftp-server c2500-js-l.122-7a.bin(这是你好的IOS里面的IOS文件名,用show version 来查看你的IOS文件名这台A己经配置好了以后,再到B这台来配置,首先让这台启动到BOOT模式,在全局配置模式下面输入config-register 0x2101 再重启路由器,启动到BOOT模式以后,同样配置你的E口,到了BOOT模式以后,输入copy tftp flash ,提示你输入TFTP服务器,再输入文件名,就可以了,具体操作步骤如下:cisocA#conf tcisocA(config)#tftp-server c2500-js-l.122-7a.bincisocA(config)#int e0cisocA(config-if)#ip add 192.168.10.90 255.255.255.0cisocA(config-if)#no shutciscoB(config)#conf tciscoB(config)#config-register 0x2101ciscoB(config)#endciscoB#reloadSystem configuration has been modified. Save? [yes/no]: yciscoB(boot)>enableciscoB(boot)#conf terminalciscoB(boot)(config)#int e0ciscoB(boot)(config-if)#ip add 192.168.10.80 255.255.255.0ciscoB(boot)(config-if)#no shutciscoB(boot)(config-if)#endciscoB(boot)#erase flashSystem flash directory:File Length Name/status1 15533612 c2500-js-l.122-7a.bin[15533676 bytes used, 1243540 available, 16777216 total]Erase flash device? [confirm]Are you sure? [yes/no]: yAddress or name of remote host [192.168.10.80]? 192.168.10.90Source file name? c2500-js-l.122-7a.binDestination file name [c2500-js-l.122-7a.bin]?Erase flash device before writing? [confirm](回车)Copy 'c2500-js-l.122-7a.bin' from serveras 'c2500-js-l.122-7a.bin' into Flash WITH erase? [yes/no]y输入Y以后,程序就自动COPY IOS,等成功以后,你再如下配置ciscoB(config)#config-register 0x2102ciscoB(config)#reload步骤就完成了。
(完整word版)CISCO交换机IOS升级步骤
IOS 升级在介绍CISCO 路由器IOS 升级方法前,有必要对Cisco 路由器的存储器的相关知识作以简单介绍。
路由器与计算机相似,它也有内存和操作系统。
在Cisco 路由器中,其操作系统叫做互连网操作系统(Internetwork Operating System),常简称为IOS 。
路由器的存储器主要有:ROM:只读存储器包含路由器正在使用的IOS的一份副本;RAM:IOS 将随机访问存储器分成共享和主存。
主要用来存储运行中的路由器配置和与路由协议有关的IOS 数据结构;FLASH (闪存):用来存储IOS 软件映像文件,闪存是可以擦除内存,它能够用IOS 的新版本覆写,IOS 升级主要是闪存中的IOS 映像文件进行更换。
NVRAM :非易失性随机访问存储器,用来存储系统的配置文件。
交换机的IOS 升级主要是闪存中的IOS 映像文件进行更换,现将CISCO 2950 交换机IOS 升级的步骤描述如下:一、前期准备1、准备进行IOS 升级的Cisco2950 交换机一台;2、电脑一台(台式机、笔记本均可)需要用串口,或者用USB 转串口,用于对交换机进行配置操作和作为TFTP 服务器.3、直连网线一根(即两段线序一致),用于向交换机传输IOS 文件;4、交换机配置线一根;5、TFTP 服务器软件一套,本次使用的是“ tftpd32 v3.33 ”;6、IOS 升级文件一份。
二、开始升级1、用配置线连接交换机的Console 口与电脑的COM1 口(或USB 口,依据配置线不同而定),网线连接交换机F0/1 口与电脑的以太网口。
电脑IP设为192.168.0.1 。
2、将电脑作为TFTP 服务器,打开TFTP 服务器软件,并将其根目录设为IOS 文件所在目录。
3、为使交换机能与TFTP 服务器相互通信,我们需要为交换机设置IP 地址。
使用Windows 自带的超级终端软件,将交换机F0/1 的地址设为与电脑的IP 地址同网段。
思科MDS光纤交换机IOS升级步骤
CN_setx#[/]powermt display
Symmetrix logical device count=0
CLARiiON logical device count=4
==============================================================================
43620221 Jan 01 00:03:11 1980 m9100-s1ek9-mz.1.3.4a.bin
44270742 Nov 11 08:44:49 2005 m9100-s1ek9-mz.2.0.4a.bin
Usage for bootflash://sup-local
### HW Path Summary Total Dead IO/Sec Q-IOs Errors
==============================================================================
1 loader 1.2(2) 1.2(2) no
Do you want to continue with the installation (y/n)? [n] y
安装完成后光纤交换机重起
14 0/6/1/0.225.1.239.0 optimal 4 0 - 0 0
以上是在有一台已经升级好了的情况
CN_setx#[/]powermt display
Symmetrix logical device count=0
------ ---------- -------------------- -------------------- ------------
CISCO IOS升级详细步骤汇总
一、以3750为例:(适用于大部分接入层网络设备,TFTP最好使用tftp32,可以支持大文件)1、查看3750IOS信息WH-KJY-HJ-B16-3750-01#sh flashDirectory of flash:/2 -rwx 1036 Feb 7 2012 13:39:20 +08:00 vlan.dat3 -rwx 5 Oct 25 2012 16:11:52 +08:00 private-config.text5 -rwx 7691 Oct 25 2012 16:11:52 +08:00 config.text6 drwx 192 Mar 1 1993 08:07:03 +08:00 c3750-ipservices-mz.122-35.SE5 15998976 bytes total (5480960 bytes free)2、由于flash空间不够无法导入新版本的IOS,所以只能删除旧的IOS版本WH-KJY-HJ-B16-3750-01#cd flash:/c3750-ipservices-mz.122-35.SE5//进入旧的目录下删除WH-KJY-HJ-B16-3750-01#dirDirectory of flash:/c3750-ipservices-mz.122-35.SE5/7 -rwx 8054867 Mar 1 1993 08:05:34 +08:00 c3750-ipservices-mz.122-35.SE5.bin8 drwx 4224 Mar 1 1993 08:05:57 +08:00 html509 -rwx 616 Mar 1 1993 08:07:03 +08:00 info15998976 bytes total (5480960 bytes free)#delete flash:/c3750-ipservices-mz.122-35.SE5/c3750-ipservices-mz.122-35.SE5.bin//删除旧IOS 版本(注意在操作这步前,将之前的IOS备份一份保存,以便出现问题可以回退)Delete filename [/c3750-ipservices-mz.122-35.SE5/c3750-ipservices-mz.122-35.SE5.bin]? Delete flash:/c3750-ipservices-mz.122-35.SE5/c3750-ipservices-mz.122-35.SE5.bin? [confirm]删除完成后查看flash信息:WH-KJY-HJ-B16-3750-01#sh flashDirectory of flash:/c3750-ipservices-mz.122-35.SE5/8 drwx 4224 Mar 1 1993 08:05:57 +08:00 html509 -rwx 616 Mar 1 1993 08:07:03 +08:00 info15998976 bytes total (13536256 bytes free)3、导入新的IOS#copy tftp: c3750-ipservicesk9-mz.122-40.SE.bin flash: c3750-ipservicesk9-mz.122-40.SE.bin4、查看新的IOS导入后flash信息WH-KJY-HJ-B16-3750-01#sh flashDirectory of flash:/2 -rwx 1036 Feb 7 2012 13:39:20 +08:00 vlan.dat3 -rwx 5 Oct 25 2012 16:11:52 +08:00 private-config.text4 -rwx 9975530 Mar5 2013 17:59:01 +08:00 c3750-ipservicesk9-mz.122-40.SE.bin5 -rwx 7691 Oct 25 2012 16:11:52 +08:00 config.text6 drwx 128 Mar 5 2013 17:53:23 +08:00 c3750-ipservices-mz.122-35.SE5 //不带bin后缀这种事目录)15998976 bytes total (3560448 bytes free)WH-KJY-HJ-B16-3750-01#sh bootBOOT path-list : flash:c3750-ipservices-mz.122-35.SE5/c3750-ipservices-mz.122-35.SE5.binConfig file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : yesAuto upgrade path :5、更改设备IOS启动顺序,并保存WH-KJY-HJ-B16-3750-0(config)#boot sys flash:/c3750-ipservicesk9-mz.122-40.SE.binWH-KJY-HJ-B16-3750-0(config)#endWH-KJY-HJ-B16-3750-01#wrBuilding configuration...[OK]6、查看设备IOS启动项是否是新升级的ios名称WH-KJY-HJ-B16-3750-01#sh bootBOOT path-list : flash:/c3750-ipservicesk9-mz.122-40.SE.binConfig file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : yesAuto upgrade path :7、启动项正常后,重启网络设备WH-KJY-HJ-B16-3750-01#reload二、堆叠设备的IOS升级(以C3750为例)1、相关配置信息WH-KJY-HJ-B14-3750-01#sh verCisco IOS Software, C3750 Software (C3750-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2007 by Cisco Systems, Inc.Compiled Thu 19-Jul-07 19:15 by nachenImage text-base: 0x00003000, data-base: 0x01080000ROM: Bootstrap program is C3750 boot loaderBOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.2(25r)SEE3, RELEASE SOFTWARE (fc1)WH-KJY-HJ-B14-3750-01 uptime is 51 weeks, 6 days, 7 hours, 13 minutesSystem returned to ROM by power-onSystem restarted at 10:23:38 beijing Wed Mar 7 2012System image file is "flash:c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin"cisco WS-C3750G-12S (PowerPC405) processor (revision W0) with 118784K/12280K bytes of memory.Processor board ID FDO1334Y12VLast reset from power-on2 Virtual Ethernet interfaces24 Gigabit Ethernet interfacesThe password-recovery mechanism is enabled.512K bytes of flash-simulated non-volatile configuration memory.Base ethernet MAC Address : 00:26:CA:A5:9A:00Motherboard assembly number : 73-9678-11Power supply part number : 341-0048-03Motherboard serial number : FDO13340G0JPower supply serial number : DTN1330301JModel revision number : W0Motherboard revision number : A0Model number : WS-C3750G-12S-SSystem serial number : FDO1334Y12VTop Assembly Part Number : 800-25856-09Top Assembly Revision Number : A0Version ID : V11CLEI Code Number : COMX310ARAHardware Board Revision Number : 0x06Switch Ports Model SW Version SW Image------ ----- ----- ---------- ----------* 1 12 WS-C3750G-12S 12.2(35)SE5 C3750-IPBASE-M2 12 WS-C3750G-12S 12.2(35)SE5 C3750-IPBASE-M Switch 02---------Switch Uptime : 51 weeks, 6 days, 7 hours, 11 minutesBase ethernet MAC Address : 00:26:CB:75:22:00Motherboard assembly number : 73-9678-11Power supply part number : 341-0048-03Motherboard serial number : FDO13340J4SPower supply serial number : LIT133203Y3Model revision number : W0Motherboard revision number : A0Model number : WS-C3750G-12S-SSystem serial number : FDO1334Y16UTop assembly part number : 800-25856-09Top assembly revision number : A0Version ID : V11CLEI Code Number : COMX310ARAConfiguration register is 0xFWH-KJY-HJ-B14-3750-01#sh bootBOOT path-list : flash:c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin Config file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : yesAuto upgrade path :-------------------Switch 2-------------------BOOT path-list : flash:c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin Config file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : noAuto upgrade path :WH-KJY-HJ-B14-3750-01#dirDirectory of flash:/2 -rwx 856 Mar 1 1993 08:01:03 +08:00 vlan.dat4 -rwx 6287 Oct 25 2012 16:07:34 +08:00 config.text5 -rwx 5 Oct 25 2012 16:07:34 +08:00 private-config.text510 drwx 192 Mar 1 1993 08:09:18 +08:00 c3750-ipbase-mz.122-35.SE515998976 bytes total (6363136 bytes free)2、删除旧的IOS#delete flash1:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.binDelete filename [/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin]?Delete flash:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin? [confirm]#delete flash2:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.binDelete filename [/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin]?Delete flash2:/c3750-ipbase-mz.122-35.SE5/c3750-ipbase-mz.122-35.SE5.bin? [confirm]3、拷贝新的IOS到flash中#copy tftp: c3750-ipservicesk9-mz.122-40.SE.bin flash1: c3750-ipservicesk9-mz.122-40.SE.bin 4、查看导入新的IOS后flash信息WH-KJY-HJ-B14-3750-01#sh flashDirectory of flash:/2 -rwx 856 Mar 1 1993 08:01:03 +08:00 vlan.dat3 -rwx 9975530 Mar 5 2013 17:41:13 +08:00 c3750-ipservicesk9-mz.122-40.SE.bin4 -rwx 6287 Oct 25 2012 16:07:34 +08:00 config.text5 -rwx 5 Oct 25 2012 16:07:34 +08:00 private-config.text510 drwx 128 Mar 5 2013 17:36:02 +08:00 c3750-ipbase-mz.122-35.SE515998976 bytes total (3562496 bytes free)WH-KJY-HJ-B14-3750-01#sh flash1Directory of flash:/2 -rwx 856 Mar 1 1993 08:01:03 +08:00 vlan.dat3 -rwx 9975530 Mar 5 2013 17:41:13 +08:00 c3750-ipservicesk9-mz.122-40.SE.bin4 -rwx 6287 Oct 25 2012 16:07:34 +08:00 config.text5 -rwx 5 Oct 25 2012 16:07:34 +08:00 private-config.text510 drwx 128 Mar 5 2013 17:36:02 +08:00 c3750-ipbase-mz.122-35.SE515998976 bytes total (3562496 bytes free)WH-KJY-HJ-B14-3750-01#sh flash2Directory of flash2:/2 -rwx 856 Mar 1 1993 08:01:06 +08:00 vlan.dat3 -rwx 6287 Oct 25 2012 16:07:34 +08:00 config.text4 -rwx5 Oct 25 2012 16:07:34 +08:00 private-config.text6 drwx 128 Mar 5 2013 17:36:37 +08:00 c3750-ipbase-mz.122-35.SE515998976 bytes total (13538304 bytes free)5、上面flash2中无新的ios,重新拷贝#copy tftp: c3750-ipservicesk9-mz.122-40.SE.bin flash2: c3750-ipservicesk9-mz.122-40.SE.bin然后在查看:WH-KJY-HJ-B14-3750-01#sh flash2Directory of flash2:/2 -rwx 856 Mar 1 1993 08:01:06 +08:00 vlan.dat3 -rwx 6287 Oct 25 2012 16:07:34 +08:00 config.text4 -rwx5 Oct 25 2012 16:07:34 +08:00 private-config.text5 -rwx 9975530 Mar 5 2013 17:44:11 +08:00 c3750-ipservicesk9-mz.122-40.SE.bin6 drwx 128 Mar 5 2013 17:36:37 +08:00 c3750-ipbase-mz.122-35.SE515998976 bytes total (3562496 bytes free)6、更改启动项(新的IOS启动)WH-KJY-HJ-B14-3750-0(config)#boot sys switch all flash:/c3750-ipservicesk9-mz.122-40.SE.bin 7、保存并查看启动项WH-KJY-HJ-B14-3750-01#wrBuilding configuration...[OK]WH-KJY-HJ-B14-3750-01#sh bootBOOT path-list : flash:/c3750-ipservicesk9-mz.122-40.SE.binConfig file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : yesAuto upgrade path :-------------------Switch 2-------------------BOOT path-list : flash:/c3750-ipservicesk9-mz.122-40.SE.binConfig file : flash:/config.textPrivate Config file : flash:/private-config.textEnable Break : noManual Boot : noHELPER path-list :Auto upgrade : noAuto upgrade path :8、重启网络设备WH-KJY-HJ-B14-3750-01# reload三、6509交换机IOS升级1、导出原有IOS镜像(使用tftp32软件进行导入导出IOS,导出IOS主要是备份,以便由于bootflash空间不够,需要删除原有IOS)#copy sup-bootflash: tftpAddress or name of remote host []? 10.1.1.2Source filename []? s3223-ipbasek9-mz.122-18.SXF6.bin(拷入的IOS名称)Destination filename [s3223-ipbasek9-mz.122-18.SXF6.bin]?Accessing tftp://10.1.1.2/s3223-ipbasek9-mz.122-18.SXF6.bin...Loading s3223-ipbasek9-mz.122-18.SXF6.bin from 10.1.1.2(via FastEthernet1/1):!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK - 27966916 bytes]27966916 bytes copied in 222.684 secs (125590 bytes/sec)Verifying compressed IOS image checksum...Verified compressed IOS image checksum for sup-bootflash:/s3223-ipbasek9-mz.122-18.SXF6.bin2、删除原有IOS,保障新的IOS有足够的空间#delete sup-bootflash:s72033-pk9sv-mz.122-14.SX1.bin然后再传。
CISCO路由器IOS升级方法总结
CISCO路由器IOS升级方法总结概述在网络设备中,CISCO路由器是一种常见且广泛使用的设备。
为了保持设备的正常运行和维护安全性,定期升级路由器的操作系统(IOS)是必要的。
本文将总结CISCO路由器IOS升级的方法,以帮助用户顺利完成相关操作。
准备工作在开始升级路由器IOS之前,需要完成以下准备工作: 1. 确定当前路由器的型号和支持的IOS版本。
2. 下载最新的IOS版本文件,确保文件的完整性和正确性。
3. 使用一个TFTP(Trivial File Transfer Protocol)服务器,用于从服务器传输IOS文件到路由器上。
确保服务器能够正常工作,并连接到路由器所在的网络。
步骤一:备份当前的配置在进行任何升级操作之前,最重要的是备份当前的路由器配置。
这样,在升级过程中出现问题时,可以恢复到之前的配置状态。
以下是备份配置的步骤: 1. 连接到路由器的控制台界面或使用SSH(Secure Shell)进行远程登录。
2. 输入以下命令进入特权模式:enable3.进入全局配置模式:configure terminal4.输入以下命令将路由器配置保存到TFTP服务器上:copy running-config tftp:5.根据提示输入TFTP服务器的IP地址和备份文件保存的位置。
6.验证备份文件是否成功保存。
步骤二:升级IOS完成备份操作后,接下来是升级路由器的IOS。
根据下载的IOS版本文件以及路由器型号,执行以下步骤: 1. 确认当前IOS版本:show version2.通过TFTP服务器将新的IOS版本文件上传到路由器上:copy tftp: flash:3.根据提示输入TFTP服务器的IP地址和IOS文件的名称。
4.确认升级文件的完整性和正确性。
5.设置路由器引导文件指向新的IOS版本:boot system flash <IOS文件名>6.保存配置并重新启动路由器:write memoryreload7.确认路由器已经成功升级并正常运行。
Cisco交换机IOS升级步骤
Cisco光纤交换机IOS升级步骤
一、 准备工作
1登录,
点击“support”
点击“select a task”
下载system software文件
下载kick start文件
下载完成后,使用md5校验工具校验是否文件是否正常。
2tftp工具(3CDaemon)
启动3CDaemon,
设置路径及重新启动TFTP服务。
二、 IOS的上传
Telnet进入交换机
显示当前的微码版本:show version
显示当前bootflash里的文件:dir bootflash:
上传文件,如果上传的过程中报错,试试重启tftp服务,可能解决问题
copy tftp://本机IP/m9200‐s2ek9‐kickstart‐mz.3.3.5.bin bootflash:
m9200‐s2ek9‐kickstart‐mz.3.3.5.bin
copy tftp://本机IP/m9200‐s2ek9‐mz.3.3.5.bin bootflash: m9200‐s2ek9‐mz.3.3.5.bin
dir bootflash
安装IOS
install all kickstart bootflash:m9200‐s2ek9‐kickstart‐mz.3.3.5.bin sys bootflash:
m9200‐s2ek9‐mz.3.3.5.bin
交换机将自动load文件,选择”y”,升级完毕后,将自动重启交换机,重启后,使用show
version显示IOS的版本是否已经升级正常。
Cisco 升级IOS的四种简单方法
在“为什么要升级Cisco IOS”一文中为大家讲述了Cisco网络设备升级IOS的意义和作用,接下来我们就为大家介绍四种Cisco 升级IOS的方法,供大家参考!Cisco升级IOS的四种简单方法1、最简单的:向思科购买IOS升级包把购买到的IOS升级包直接解压到思科网络设备的Flash中,这是最正式和最简单的一种升级IOS的方法。
当需要升级IOS时,我们可以向山东思科总代理购买相应的IOS(一般是一个IOS的压缩包),其中包括操作系统文件和其他的一套配套文件(如支持网页化管理的文件)。
把这个压缩包直接解压释放到Cisco网络设备的Flash中,就可以完成升级。
2、最常用的:直接复制新版的IOS到Flash芯片中,替换老版IOS具体操作是:通过TFTP服务器,直接将IOS文件复制到Cisco设备的Flash芯片中替换原有的IOS文件。
大多有经验的思科网络工程师都喜欢用这种方式升级IOS。
对于资深的网络工程师,即使在购买了IOS升级包的情况下,他们也喜欢用这种方式来进行Cisco IOS升级。
3、最慢的:通过XMODEM升级IOS这种升级是利用Cisco设备的AUX接口来升级IOS。
与通过以太网接口升级不同的是,这种方法传输文件的速度是相当的慢!因为它是通过AUX(实际上属于COM口)来进行的,其速度受到串行接口的限制。
这种升级IOS的方法只有在以下情况才用的到:1)设备以太网端口无法使用或损坏;2)异地操作,网络中没有TFTP服务器。
这种情况下的具体操作是:在Cisco路由器的AUX口上连一台MODEM,通过远程连接到设备上,然后进行IOS的升级操作,很慢哦:)升级IOS一般是为了使用思科网络设备更高性能,但有些时候却是不得已而为之。
大家有没有遇到过这种情况:思科网络设备启动后自动进入了rommon monitor配置模式,这时出现的提示符为"rommon"。
这是怎么回事呢?这说明你的IOS被误删了。
设备版本升级手册
设备版本更改手册之3560G-24TS-S更改为3560G-24TS-E目录目录第一步:更改设备型号标识 (3)1.1设备接通电源时,按住MODE键一分钟左右,直到设备出现: (3)第二步:升级设备IOS版本 (3)1.2 设备升级IOS (3)1.2.1首先需要TFTP软件: (3)1.2.2 下载好所需IOS版本,思科官网上都有。
(3)1.2.3 升级IOS (4)第一步:更改设备型号标识1.1设备接通电源时,按住MODE键20秒左右(如果不行就多按会),直到设备出现:Switch:此时依次输入更改命令:flash_initsetSYSTEM_SERIAL_NUM=MODEL_NUM=WS-C3560G-24TS-Eset_bsbs: rwset_param -allset_bsbs: roreset待设备重启完成后。
使用show version命令查看修改结果第二步:升级设备IOS版本1.2 设备升级IOS1.2.1首先需要TFTP软件:推荐使用3cdaemon软件,优点:设置简单,功能齐全。
设置PC与交换机接口IP在同一网段,保证ping通。
1.2.2 下载好所需IOS版本,思科官网上都有。
这里使用IOS版本为(下载tar版本):c3560-ipservices-tar.122-50.SE51.2.3 升级IOS设备启动后进入设备:Switch#Switch#archive download-sw /allow-feature-upgrade tftp://192.168.1.1/c3560-ipservices-tar.122-50.SE5.tar如果上述命令出现错误,则改用下面的命令:archive download-sw /overwrite tftp://192.168.1.4/c3560-ipservices-tar.122-50.SE5.tar新IOS覆盖所有特性命令。
等待5分钟左右,出现Switch#说明完成,这是重启,保存设置。
10 升级CISCO交换机IOS
交换机IOS的灾难恢复和用TFTP升级IOS相比,Xmodem速度更慢,操作相对会复杂一点。
如果你的交换机还能进系统,推荐使用TFTP方式升级IOS,当IOS被别人误删之后,那只能用Xmodem 方式恢复IOS。
1、使用SecureCRT新建会话在新建会话中注意把波特率改为9600,在XON/XOFF前打勾。
2、要执行的命令switch:flash_initswitch:load_helperswitch: format flash: 格式化flash, 可不做Are you sure you want to format "flash:" (all data will be lost) (y/n)?yflashfs[0]: 0 files, 1 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directoriesflashfs[0]: Total bytes: 15998976flashfs[0]: Bytes used: 1024flashfs[0]: Bytes available: 15997952flashfs[0]: flashfs fsck took 8 seconds.Filesystem "flash:" formatted3、发送文件在发送XModem的时候选中交换机的IOS,这个过程要经过几个小时。
switch: copy xmodem: flash:c3550-i9q3l2-mz.121-13.EA1a.binBegin the Xmodem or Xmodem-1K transfer now...CC正在开始xmodem 传输。
按Ctrl+C 取消。
正在传输c3550-i9q3l2-mz.121-13.EA1a.bin...7% 223 KB 0 KB/s 01:03:53 ETA 0 错误4、Boot启动交换机switch: boot flash:c3550-ipservicesk9-mz.122-25.SEE2.bin说明:为了加快速度,可以先用XMODEM灌一个小的IOS,进行系统后,再用tftp 或ftp 进行升级。
Cisco Catalyst 2950、2960、3550、4006、4506交换机IOS升级
Cisco Catalyst 2950、2960、3550、4006、4506交换机IOS升级[复制链接]一、对于正常联网使用的交换机,可以通过Telent登录交换机并通过TFTP升级IOS。
(1)假设网管计算机的IP地址为192.168.1.2/255.255.255.0(2)在网管计算机上运行TFTP Server,配置目录位置并将新IOS拷贝到相关目录,配置允许发送和接收。
(3)网管计算机使用Telnet登录交换机。
(4)升级//备份原IOSSwitch#copy flash:/c2950-*.bin tftpAddress or name of remote host[]?192.168.1.2Destination filename [c2950-*.bin]?//删除原IOSSwitch#delete flash:/c2950-*.bin//释放存储空间Switch#squeeze//上传新IOSSwitch#copy t ftp://192.168.1.2/c2950-*.bin flash:(5)上传完成后可以使用reload命令重启交换机,或关机重新加电开机。
二、对于Cisco Catalyst 2950、2960、3550、4006、4506等交换机,如果未联网使用而作为冗余备用交换机时,也可以通过TFTP升级IOS。
(1)将管理计算机的IP地址设置为192.168.1.2/255.255.255.0。
(2)网管计算机的COM1口使用控制线连接交换机的Console口;网口使用普通网线连接交换机的Fa0/1口。
如果是4006或4506,则可以使用其WS-X4548-GB-RJ45或WS-X4232-GB-RJ45模块上的RJ45口。
(3)在网管计算机上运行TFTP Server,配置目录位置并将新IOS拷贝到相关目录,配置允许发送和接收。
(4)交换机加电开机,在网管计算机上运行超级终端并登录交换机。
路由器或交换机IOS升级
在路由器操作系统可用的情况下:上次给一个客户升级了7206路由器的ios,这里的把大致的步骤写一下,供朋友们参考1.当然要先确定升级后ios版本了,没有目标怎么升级呢?如果你的客户都明确告诉你ios版本了,那你就太幸运了,省了好多事。
但是,大部分时候客户都是很糊涂的,当然要你自己搞定,所以要上cco去查了。
我的碰到情况是:原来的版本太低了,不支持8口的CE1的卡,上cco查了一下,确定了新的版本。
cco网址看这里/kobayashi/sw-center/sw-ios.shtml2。
其实这一步和上一步是紧密结合的呀,每一个ios的版本都需要一定的硬件支持。
这里的硬件主要是flash和内存(DRAM)的容量大小了,Cisco的网站都有具体的说明。
然后,看一下要升级的路由器的硬件配置:flash和内存(DRAM)的容量大小,用命令:show ver 就行了。
如果现有的flash和内存(DRAM)的容量大于要求的容量,就可以进入下一步了。
否则,要么换一个版本,要么升级的要升级的路由器的硬件了。
:(3。
下载新的ios版本,这里需要cco帐号了。
PR的帐号权限还不够,要Cisco金、银牌代理商的cco帐号就行了。
4。
把你的计算机连到路由器的fastethernet口上,设计算机的IP和路由器连的接口在同一个子网,在计算机上运行tftp软件。
开始备份现有的ios和Nvram里的配置,在7206上执行命令:copy flash tftp和copy run tftp。
就OK了。
COPY完了之后,为了保险,你在计算机上看看路由器的文件是不是COPY 过来呢。
5。
然后,就是很关键的一步了,把7206升级到新的IOS。
在计算机上运行tftp软件,把新的IOS放在tftp软件按装目录的根目录下,执行命令:copy tftp flash 。
如果一切顺利,那就差不多了。
你可以在终端仿真软件(我用的是CRT,很好用的,本站就有下载)看到一路的“!!!!!”符号。
交换机-IOS升级方法
超级终端的发送文件设置
2013-3-1
8
交换机IOS的恢复
• 交换机的IOS丢失或者损坏,会进入switch: • 首先执行命令:switch:flash_init • 然后执行: switch:dir flash: 这时候是看 不到IOS文件的 • 执行如下命令: switch:copy xmodem flash:ios文件名 • 在超级终端中用xmodem发送文件
2013-3-1 5
Rommon模式下的参数设置
Router启动时按Ctrl+Break进入Rommon监视器模式 rommon 1 >IP_ADDRESS=172.16.1.2(路由的IP如果 没有可在confreg对话框下设置) rommon 2 >IP_SUBNET_MASK=255.255.255.0 rommon 3 >DEFAULT_GATEWAY=172.16.1.1 rommon 4 >TFTP_SERVER=172.16.1.1 (存放ISO的 主机) rommon 5 >TFTP_FILE=c3640-jk9o3s-mz.12416a.bin(ISO文件名) rommon 6 >set(查看一下) rommon 7 >tftpdnld
19216812f0019216811填入ios文件存放的路径填入ios文件存放的路径点击按钮设置cisco点击按钮设置ciscotftpserver软件tftp服务器ip地址tftp服务器ip地址拷贝的源文件名拷贝的源文件名拷贝到设备上的文件名首先设置路由器和ftp服务器建立连接iso文件放在指定的用户名根目录下在路由器上配置ftp密码和用户名routerconfigipftpusernameciscoa101routerconfigipftppassword123456789routercopyftp
CISCO 升级update ios
The router reboots but ignores its saved configuration.
Type no after each setup question or press Ctrl-C to skip the initial setup procedure.
Processor board ID JAB031202NK (3878188963)
M860 processor: part number 0, mask 49
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
3) 键入以下命令,将IOS映像的升级文件从TFTP服务器复制至路由器的flash memory中:
rommon 1>b c3640-i-mz.121-2.T 192.168.18.168
program load complete, entry point: 0x80008000, size: 0x4ed478
Cisco 1003
Cisco 1004
Cisco 1005
Cisco 1600
Cisco 1700
Cisco 2600
Cisco 3600
Cisco 4500
Cisco 4700
Cisco AS5x00
Cisco 6x00
Cisco 7000 (RSP7000)
Router uptime is 3 minutes
System returned to ROM by abort at PC 0x802D0B60
精品文档CISCO 3560 IOS升级步骤与常见问题
CISCO 3560 IOS升级步骤与常见问题升级步骤:一、设备清单二、备份IOS三、上传新IOS四、更改启动设置一、设备清单CICSO 3560交换机,安装了超级终端的PC,TFTP或FTP服务器,c3560-advipservicesk9-mz.122-25.SEE2.bin的IOS二、备份IOS执行备份前先用dir、cd、pwd等命令看下flash中的目录结构。
这台交换机IOS的bin文件以及html文件夹都在flash中c3560-ipbase-mz.122-25.SEB4目录下。
1. /* 将原IOS备份到IP为192.168.1.100的TFTP服务器上*/switch#copy flash:/c3560-ipbase-mz.122-25.SEB4/c3560-ipbase-mz.122-25.SEB4.bint2. /* 将原IOS备份为tar文件到IP为192.168.1.100的TFTP服务器上*/switch#archive tar /create tflash:/c3560-ipbase-mz.122-25.SEB4三、上传新IOS/* 将新IOS复制到flash的根目录下*/switch#copy tflash:/c3560-advipservicesk9-mz.122-25.SEE2.bin四、更改启动设置1. 让交换机用新的IOS启动switch(config)#boot system flash:/c3560-advipservicesk9-mz.122-25.SEE2.binswitch#writeswitch#reload重启后,交换机会使用新的IOS。
常见问题就是交换机IOS加载顺序的问题。
交换机IOS启动顺序:启动帮助ios(boot boothlpr)---帮助ios(boot helper)---系统ios(boot system) The furthest distance in the worldIs not between life and deathBut when I stand in front of youYet you don't know thatI love you.The furthest distance in the worldIs not when I stand in front of youYet you can't see my loveBut when undoubtedly knowing the love from bothYet cannot be together.The furthest distance in the worldIs not being apart while being in loveBut when I plainly cannot resist the yearningYet pretending you have never been in my heart.The furthest distance in the worldIs not struggling against the tidesBut using one's indifferent heartTo dig an uncrossable riverFor the one who loves you.倚窗远眺,目光目光尽处必有一座山,那影影绰绰的黛绿色的影,是春天的颜色。
CiscoIOS升级6步轻松搞定
CiscoIOS升级6步轻松搞定Cisco IOS升级6步轻松搞定前面的文章给大家介绍了什么是IOS、IOS升级的意义及一些方法,现在让我们用思科2811路由器升级IOS的实例来看看Cisco IOS升级的详细步骤。
我们选用通过TFTP服务器直接将新版IOS复制到路由器中的方法来进行IOS的升级。
第一步:配置TFTP服务器(建立Cisco TFTP服务器的方法请查看:这里就不介绍了)第二步:确认现有的路由器IOS版本查看路由器IOS版本可以利用show version或show flash命令。
show version命令可以输出路由器的软、硬件版本信息。
使用show flash命令也可以看到思科路由器上的IOS版本和文件名。
查好后记住这个IOS文件名(以后步骤会用到)。
第三步:将新版本的IOS文件放到设置好的TFTP服务器根目录下这一步我们将需要安装的IOS文件(例如c2800nm-advsecurityk9-mz.124-17.bin)复制到TFTP服务器的根目录下,这个目录就是你在建立TFTP服务器时设定好的那个根目录。
同样记下这个文件名。
第四步:建立路由器和TFTP服务器的通信首先在路由器以太口上配置IP地址,并启用,然后将该接口连到局域网中,使该接口能和TFTP服务器通信,以便从TFTP服务器上下载IOS。
命令如下:Router(config)#inter f0/0Router(config-if)#ip address 192.168.0.10 255.255.255.0Router(config-if)#no shut这样我们就在路由器的f0/0口上配置了IP地址:192.168.0.10。
然后使用ping命令测试路由器和TFTP服务器之间能否正常通信(TFTP服务器的地址是192.168.0.1)。
能够正常的ping到TFTP服务器就可以开始为路由器IOS升级了。
第五步:升级IOS升级IOS的命令是copy tftp flashRouter#copy tftp flashAddress or name of remote host []?在后边输入TFTP服务器的IP地址:192.168.0.1后回车;Source filename []?在后边输入新版本IOS文件名(前边提醒你记录了)c2800nm-advsecurityk9-mz.124-17.bin后回车;Destination filename [c2800nm-advsecurityk9-mz.124-17.bin]?Do you want to over write? [confirm]回车;Accessing tftp://192.168.0.1/c2800nm-advsecurityk9-mz.124-17.bin…运行到这一步,如果你的路由器FLASH空间足够用的话就可以顺利完成IOS的升级了,如果空间不够的话会提示:“Not enough space on device”,这时根据IOS版本的不同出现这个错误后的处理方法不同,老版本会提示你删除flash文件“Erase flash:”你可以强制删除flash中的文件;新版本的IOS会直接回到提示符下终止IOS的升级,这是你必须首先删除路由器中老版本的IOS文件然后继续执行IOS升级,命令是“delete flash:”。
交换机升级步凑
交换机IOS升级步凑总体流程:1. 寻找适合IOS及备份;2.确定交换机空间是否充足;3.IOS升级。
一、寻找适合IOS及备份1.寻找升级的IOS根据要升级Cisco交换机的型号,去寻找适合的IOS版本。
现版本为12.2(50)SE5,如上图找到一个更高版本,如上图2.备份现有的IOS2.1交换机端口配置IP地址将交换机第24口IP设置为10.110.210.98 255.255.255.128与电脑处于同一个网段,电脑可以与交换机直连。
2.2查看IOS文件位置及相关信息2.3 架设tftp环境可以用3CDaemon软件或Tftpd32软件来架设tftp环境3CDaemon软件界面设置好存放路径,copy交换机IOS时,输入电脑ip地址文件就会保存到D:\bf 这个文件夹内。
也可以把升级文件放到这个文件夹中进行升级操作。
2.4备份IOS到电脑升级前可以把交换机的IOS进行备份swish#copy/c3750-ipbasek9-mz.122-50.SE5/c3750-ipbasek9-mz.122-50.SE5.bin tftp2.5拷贝IOS到电脑将找到的IOS 拷贝到电脑上,我是在自己管理的其他交换机上找的,也可以去网上找。
3750G-***#copy/c3750-ipservicesk9-mz.122-55.SE4.bin tftp备份和拷贝好的IOS如下图:二、确定交换机空间是否充足1.查看原IOS文件相关信息剩余空间不到15M,而新IOS文件超过15M,所以需先将原IOS文件删除以释放flash空间。
2.空间不够,删除IOSswitch#delete c3750-ipbasek9-mz.122-50.SE5/c3750-ipbasek9-mz.122-50.SE5.bin剩余空间已超过新IOS文件大小,可以进行升级三、IOS升级1.将新IOS文件上传至交换机flashswitch#copy tftp flash2.设置启动IOS为新IOSswitch(config)#boot system flash:c3750-ipservicesk9-mz.122-55.SE4.bin3.保存重启后有效switch#wrswitch#reload。
【参考文档】思科交换机固件升级-word范文模板 (10页)
本文部分内容来自网络整理,本司不为其真实性负责,如有异议或侵权请及时联系,本司将立即删除!== 本文为word格式,下载后可方便编辑和修改! ==思科交换机固件升级篇一:cisco交换机升级ios0、准备工作升级准备:1、 tftp软件,这里我们用3CDaemon 下载链接:/s/1miNFkFm2、 IOS文件,c3560-ipservicesk9-mz.122-55.SE9.bin下载链接:/s/1skFhpuP3、仿真终端,这里我们用CRT 下载链接:/s/1i56QuC94、 Console配置线和网线5、笔记本网口配置IP地址,这里我们配置192.168.1.10 255.255.255.01、TFTP服务器打开3CDaemon,设置tftp服务器,开启服务。
如下图,在左边列表中点击TFTP服务器→设置TFTP服务器→修改上传/下载目录,确定保存。
然后开启服务(第二个图(来自:WwW. : 思科交换机固件升级 )标)。
2、连接CONSOLE用Console配置线连接笔记本至交换机的CONSOLE口,交换机开机,笔记本上开启SecureCRT,建立Serial-COM3链接。
如下图Port口根据自己笔记本的串口设置。
3、配置vlan IP进入交换机的配置界面后,先设置Vlan1的IP地址,命令如下Switch>enableSwitch#config terminalSwitch(config)#intvlan 1Switch(config-if)#ip address 192.168.1.254 255.255.255.0Switch(config-if)#end然后用网线连接笔记本网口和交换机任意一个网口(1~24口或1~48口),去ping下你的笔记本,记得关闭笔记本上的桌面防火墙。
Ping通后就可以拷文件了。
Switch# ping 192.168.1.104、检查flash检查flash的储存空间Switch# show flash显示如下,最后行的13536256 bytes free就是剩余空间,只要比你要拷入的IOS大就行,直接跳至五。
CISCO 3750升级IOS实例
508 -rwx 598 Mar 1 1993 00:06:42 +00:00 info
15998976 bytes total (6364160 bytes free)
R1(config-if)#no switchport
R1(config-if)#ip address 10.1.1.2 255.255.255.252
2、架设tftp环境(本次以3CDaemon为例)
将3CDaemon安装在本地计算机C盘根目录下,运行3CDaemon.EXE并进行相关设置。
15998976 bytes total (6364160 bytes free)
R1#cd c3750-ipbase-mz.122-35.SE5(注意文件名区分大小写)
R1#dir
Directory of flash:/c3750-ipbase-mz.122-35.SE5/
6 -rwx 7175078 Mar 1 1993 00:05:41 +00:00 c3750-ipbase-mz.122-35.SE5.bin
R1#wr
Building configuration...
然后重启后有效
R1ctory of flash:/
2 -rwx 5 Mar 1 1993 02:10:54 +00:00 private-config.text
3 -rwx 1612 Apr 1 1993 22:19:01 +00:00 vlan11.dat
Address or name of remote host []? 10.1.1.1
升级cisco3750G的IOS
升级cisco3750G的IOS第一篇:升级cisco 3750G的IOS升级cisco 3750G的IOS支持高级路由与ssh功能为了能让cisco交换的远程连接对于账号密码的安全性有所提高,可以用ssh方式连接终端,但是很多出厂的交换机默认的ios是不支持ssh这个功能的,为了能让cisco交换机支持ssh,必须升级带“K9”的IOS.下面是出厂cisco 3750G-24TS默认ios的截图3750交换机支持SSH需要12.1(11)EA1以上版本软件。
emi是增强型多层镜像,也就是对路由协议的支持更全;而smi 是标准多层镜像。
特性集共有三种:IP BASE、IP Services和Advanced IP Services。
•• IP BASE:支持第2层转发和基本的第3层路由,包括EIGRP stub模式。
IP Services:包括IP BASE特性集,支持高级第3层路由,如OSPF和组播路由。
• Advanced IP Services:包括IP Services,支持IPv6功能。
解决方案步骤:1.从cisco官网下载ios2.升级ios3.配置交换机支持ssh从cisco官网下载ios打开cisco官网这里以CISCO Server TFTP升级方式,如下图拷贝c3750-ipservicesk9-mz.122-50.SE3.bin 到TFTP目录下面升级ios3750G(config)#interface vlan 1 3750G(config-if)#ip add3750G(config-if)#ip address 192.168.100.2 255.255.255.0 3750G(config-if)#end 3750G#ping 192.168.100.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.100.1, timeout is 2 seconds:!!!Success rate is 100 percent(5/5), round-trip min/avg/max =1/1/1 ms 3750G#dirDirectory of flash:/3-rwx 1754 Feb 5 2010 16:40:45 +00:00 config.text 4-rwx 5 Feb 5 2010 16:40:45 +00:00 private-config.text 7 drwx 192 Mar 1 1993 00:07:31 +00:00 c3750-ipbase-mz.122-35.SE532514048 bytes total(22883840 bytes free)3750G#delete/force(不再询问确认)/recursive(删除目录下的子目录和文件)c3750-ipbase-mz.122-35.SE53750G#copy tftp flash(从tftp下载ios)Address or name of remote host 192.168.100.1 输入tftp地址Source filename c3750-ipservicesk9-mz.122-50.SE3.bin ios名称Destination filename [c3750-ipservicesk9-mz.122-50.SE3.bin]回车Accessing tftp://192.168.100.1/c3750-ipservicesk9-mz.122-50.SE3.bin...Loading c3750-ipservicesk9-mz.122-50.SE3.bin from 192.168.100.1(viaVlan1):![OKRestricted Rights clause at FAR sec.52.227-19 and subparagraph(c)(1)(ii)of the Rights in Technical Data and Computer Software clause at DFARS sec.252.227-7013.cisco Systems, Inc.170 West Tasman DriveSan Jose, California 95134-1706Cisco IOS Software, C3750 Software(C3750-IPSERVICESK9-M), Version 12.2(50)SE3, RELEASE SOFTWARE(fc1)Initializing flashfs...flashfs[1]: 501 files, 7 directoriesflashfs[1]: 0 orphaned files, 0 orphaned directories flashfs[1]: Total bytes: 32514048 flashfs[1]: Bytes used: 21870080 flashfs[1]: Bytes available: 10643968 flashfs[1]: flashfs fsck took 2 seconds.flashfs[1]: Initialization complete....done Initializing flashfs.Checking for Bootloader upgrade..upgrading..writing boot sectors..done.The system will now restartBoot Sector Filesystem(bs)installed, fsid: 2 Base ethernet MAC Address: 3c:df:1e:c4:a1:00 Xmodem file system is available.The password-recovery mechanism is enabled.Initializing Flash...……………………………………………………………….中间省略Switch Ports Model SW Version SW Image------------------------------------* 1 28 WS-C3750G-24TS-1U 12.2(50)SE3 C3750-IPSERVICESK9-M 说明升级成功了Press RETURN to get started!配置交换机支持ssh3750G(config)# enable secret viong3750G(config)#username viong password 1234563750G(config)# line vty 0 4 3750G(config-line)#login local 3750G(config-line)#transport input ssh 设置让cisco交换机支持SSH连接第二篇:升级演讲稿(本站推荐)My favorite season Hollo,I am Lucy.Today I will talk about my favorite season.There are four kind of season in a year : spring ,summer ,autumn and winter.my favorite season is summer.I like summer because summer is hot ,and I can stay in the air conditioning room ,that is very cool.and I can eat many big icecreams.There is many kind of icecream :vanilla, strawberry flavor, blueberry flavor, chocolate flavor, taro taste, mango flavor, motcha taste ……when I see the becutiful sunshine outsid e the window feel very comfortable and very happy ,my mood was aroused and I want to do any thing :read books,study, draw ,listen to music ,do homework and housework.I will do well ,and I listen to the bird and cicada ,they can sing sweet songs, the sky is blue ,the cloud is white and the rive is clear……nature is very fair,so I like summer.Summer is a very changeable season it has a changeable climate.For example:a moment the sun is shiningbrightly,and then covered with dark clouds to rain cats and dogs.summer morning early, black late.the day is long and the night is shout.in summer ,all the plants grow lush ,and they are dark green.cicadas sing from day until night.many birds began in the summer to take off the plume.there are many animals also take off their purs.summer is the most busy season for farmers.They will harvest foods and grow foods in summer.people usually swim in summer.This is necessary.People often wear light and thin clothes,because wear dark color clothes absorb sunlight easily.in summer tadpoles into frogs.In the past, I went out to travel with my parents and friends.in 2014,we went to the us.We went to Los Angeles,Washington,NewYork,Lasvegas,Yellowstone national park.grand canyoun.In 2015,we drove a car along a west road.went straight on to the Qinghai lake.that was very interesting.the beginning was very hot,slowly slowly became very cold.And the above see level became more and more low.this summer holiday we went to Australia,we took the plane for eleven hours,that is very tired ,Australia was in winter.Because it is in the northern hemisphere.there were many koala and kangraroo, they were very cute.In summer ,we can go travel,we can go to the season and Instead of our country.So that it can be for the summer.If you are in china ,you can go to Australia,new Zealand,brazil,argentina……we can go to the seaside to swim to play water scooters,parachuting and all kind of water projects.we can also roll on the beach and pile of sand.and eat fruit:watermelon,greap,mango,peach,wax apple.we can learn to farmers ,grow some vegetables and fruit.listen to the cicada under the tree.enjoy plenty of sunbathing,or do more sports ,play basketball,play football,play volleyball.we can working hard insummer.In summer we can go to many interesting places in china:qingdao,dalian,shanghai,Beijing,Kaifeng,in xishuangbanna,jiu zhai gou.I prefer to see the landscape.of course,you can also go to the park or swimming pool,and stay in bed.I also like other season,spring is beautiful, everything is full of vitality,autumn is beautiful too ,everything chang the colour, become golden,it is very wonderful.winter is white,I like snow,it very lovely,I usually make a snowman with my friends.I like skiing too.I like summer best because it is even more fantastic.第三篇:升级整改措施(定稿)xx村党支部晋位升级整改措施为了扎实推进基层组织建设年活动,全面提高基层党建工作科学化水平,不断增强基层党组织的创造力、凝聚力和战斗力,结合工作实际,现就xx村党支部基层党组织建设晋位升级活动提出如下实施方案。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
IOS 升级
在介绍CISCO路由器IOS升级方法前,有必要对Cisco路由器的存储器的相关知识作以简单介绍。
路由器与计算机相似,它也有内存和操作系统。
在Cisco路由器中,其操作系统叫做互连网操作系统(Internetwork Operating System),常简称为IOS。
路由器的存储器主要有:
ROM:只读存储器包含路由器正在使用的IOS的一份副本;
RAM:IOS将随机访问存储器分成共享和主存。
主要用来存储运行中的路由器配置和与路由协议有关的IOS数据结构;
FLASH (闪存):用来存储IOS软件映像文件,闪存是可以擦除内存,它能够用IOS的新版本覆写,IOS升级主要是闪存中的IOS映像文件进行更换。
NVRAM:非易失性随机访问存储器,用来存储系统的配置文件。
交换机的IOS升级主要是闪存中的IOS映像文件进行更换,现将CISCO 2950交换机IOS升级的步骤描述如下:
一、前期准备
1、准备进行IOS升级的Cisco2950交换机一台;
2、电脑一台(台式机、笔记本均可)需要用串口,或者用USB转串口,用于对交换机进行配置操作和作为TFTP服务器.
3、直连网线一根(即两段线序一致),用于向交换机传输IOS文件;
4、交换机配置线一根;
5、TFTP服务器软件一套,本次使用的是“tftpd32 v3.33”;
6、IOS升级文件一份。
二、开始升级
1、用配置线连接交换机的Console口与电脑的COM1口(或USB口,依据配置线不同而定),网线连接交换机F0/1口与电脑的以太网口。
电脑IP设为192.168.0.1。
2、将电脑作为TFTP服务器,打开TFTP服务器软件,并将其根目录设为IOS文件所在目录。
3、为使交换机能与TFTP服务器相互通信,我们需要为交换机设置IP地址。
使用Windows 自带的超级终端软件,将交换机F0/1的地址设为与电脑的IP地址同网段。
具体步骤如下(进入全局配置模式):
Switch<config>#interface vlan 99 //创建并进入vlan99;
Switch<config-subif>#ip address 192.168.0.2 255.255.255.0
//为vlan99添加IP;
Switch<config-subif>#no shutdown //启用vlan99;
Switch<config-subif>#exit //退回全局配置模式;
Switch<config>#interface fasethernet 0/1 //进入F0/1口;
Switch<config-if>#switch access vlan 99 //将F0/1口划入vlan99;
Switch<config-if>#exit //退回全局配置模式;
这时,如果能够在超级终端界面上Ping通192.168.0.1,就表明交换机和TFTP服务器(电脑)连接正常了。
4、在特权模式下输入“show flash”可以查看当前交换机flash内IOS的文件名(如c2950-c3h2s-mz.120-5.3.WC.1.bin)
及相关信息,我们首先要将这份IOS文件备份出来,以防万一。
Switch#copy flash tftp //复制文件从flash到tftp;
Source filename []?c2950-c3h2s-mz.120-5.3.WC.1.bin
Address or name of remote host []? 192.168.0.1
Destination filename [c2950-c3h2s-mz.120-5.3.WC.1.bin]?(回车)
等待一会儿该文件就备份完成了。
备份完成后,我们接下来就要将新的IOS文件复制到flash 中。
我们通过“show flash”命令发现flash中的剩余存储空间比我们要升级的IOS文件要少,为了使新的IOS文件能拷入交换机的flash中,我们必须要先删除原IOS文件。
Switch#delete flash: c2950-c3h2s-mz.120-5.3.WC.1.bin
//删除原IOS文件;
Delete filename [c2950-c3h2s-mz.120-5.3.WC.1.bin]?(回车)
Delete flash:c2950-c3h2s-mz.120-5.3.WC.1.bin? [confirm](回车)
此时flash中的IOS文件已经删除,在新的IOS文件拷入交换机之前,一定要确保交换机不会重新启动,否则交换机就无法正常启动了。
Switch#copy tftp flash: //复制文件从tftp到flash;
Address or name of remote host []? 192.168.0.1
Source filename []? c2950-i6k2l2q4-mz.121-22.EA**in(回车)
Destination filename [c2950-i6k2l2q4-mz.121-22.EA**in]?(回车)
经过一阵感叹号后,新的IOS文件成功复制到flash中
5、全部复制完成后,输入“reload”重启交换机。
如果交换机能够正常的重启动,查看flash 中的IOS文件已经变成“c2950- i6k2l2q4-mz.121-22.EA**in”,那么至此IOS的升级工作就圆满结束了。
最后别忘了把临时使用的Vlan99删除。
三、不幸失败
IOS 升级失败的原因有很多,比如升级过程中网线松动、用来升级的IOS文件和交换机不匹配、突然停电等等。
遇到上述情况的结果只有一个,那就是交换机“起不来了”。
如果交换机无法正常起动,不但不能再使用刚才的方法重新进行IOS升级,就连正常使用都已经成了问题。
不过“天无绝人之路”,解决的方法还是有的,我们的基本思路是:只要想办法将正确、完整的IOS文件导入交换机的flash里,交换机就能够正常启动了。
下面,我就介绍一下IOS升级失败后的恢复方法,其实这也是一种IOS升级的方法,只是比起前一种更加复杂,所以不太常用。
1、用配置线连接交换机console口与电脑COM1口。
超级终端连接设置:速率9600,无校验,无流控,停止位1。
或者点击默认设置也可以。
2、连接以后计算机回车出现交换机无ios的界面,一般的提示符是:switch:
3、拔掉交换机后的电源线。
4、按住交换机面板左侧的mode键(一般交换机就这一个键),插入交换机后边的电源插头给交换机加电。
等到看到交换机面板上没有接线的以太口指示灯都亮和交换机的几个系统指示
灯都常亮。
5、在超级终端输入:flash_init
会出现如下提示:
Initializing Flash...
flashfs[0]: 1 files, 1 directories
flashfs[0]: 0 orphaned files, 0 orphaned directories
flashfs[0]: Total bytes: 3612672
flashfs[0]: Bytes used: 1536
flashfs[0]: Bytes available: 3611136
flashfs[0]: flashfs fsck took 3 seconds.
...done Initializing Flash.
Boot Sector Filesystem (bs installed, fsid: 3
Parameter Block Filesystem (pb installed, fsid: 4
6、继续输入:load_helper(输入后无提示)
7、输入拷贝指令:
switch:copy xmodem: c2950-i6k2l2q4-mz.121-22.EA**in
出现如下提示:
Begin the Xmodem or Xmodem-1K transfer now...
8、系统提示不断出现C这个字母就可以开始传文件了
9、点击超级终端菜单:传送---→发送文件,在协议选项中选择Xmodem或者Xmodem-1K 协议,然后选择IOS文件,开始传送。
10、因为不能改速率,所以传送得很慢,我的大概传送了60分钟左右,请耐心等待。
11、文件传送结束后,在提示符下输入:boot(启用新的IOS系统)
12、经过几十秒钟,交换机就进入正常的状态了,这时查看flash,里面应该有了新的IOS 文件,至此IOS恢复工作完成。
最后需要注意的是,由于生产时间的不同,并不是所有的CISCO2950交换机都能运行同一版本的IOS软件,一些较老的CISCO2950交换机在升级后会发生以太网业务板无法识别的情况,所以在升级之前一定注意备份原有IOS文件,防止意外发生造成损失。