Cisco 3750 switch setup

I have two 3750 switches and I want them to be on the same code, one is on c3750-ipservicesk9-mz.122-46.SE and the other was on c3750-i5-mz.121-19.EA1c. The former supports ssh, the latter only telnet.

IOS upgrade

Overview

  1. Verify current image
  2. Delete old flash memory depending on flash memory size
  3. Upload image to switch
  4. Verify md5 sum to ensure integrity of image copy
  5. Modify boot path
  6. Save config
  7. Reload switch

Step one is to check the current flash content (unnecessary config clutter removed) :-

3750-2#sh ver
Cisco Internetwork Operating System Software 
IOS (tm) C3750 Software (C3750-I5-M), Version 12.1(19)EA1c, RELEASE SOFTWARE (fc2)

ROM: Bootstrap program is C3750 boot loader
BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.1(11r)AX, RELEASE SOFTWARE (fc1)

System image file is "flash:c3750-i5-mz.121-19.EA1c/c3750-i5-mz.121-19.EA1c.bin"

cisco WS-C3750-24TS (PowerPC405) processor (revision A0) with 118776K/12288K bytes of memory.

24 FastEthernet/IEEE 802.3 interface(s)
2 Gigabit Ethernet/IEEE 802.3 interface(s)

512K bytes of flash-simulated non-volatile configuration memory.

Switch   Ports  Model              SW Version              SW Image            
------   -----  -----              ----------              ----------          
*    1   26     WS-C3750-24TS      12.1(19)EA1c            C3750-I5-M          

3750-2#
3750-2#sh flash

Directory of flash:/

    2  -rwx         856   Sep 06 2016 21:13:39  vlan.dat
    4  -rwx        4000   Mar 01 1993 00:11:03  config.text
    5  -rwx          47   Mar 01 1993 00:11:03  private-config.text
   22  drwx         192   Mar 01 1993 00:06:43  c3750-i5-mz.121-19.EA1c

15998976 bytes total (8948224 bytes free)
3750-2#

Step two, note there is not enough flash to hold two images at the same time, so the existing flash image needs to be deleted. After this, DO NOT POWER THE SWITCH OFF until you have a new image loaded and verified as it will not have an image to boot from.

3750-2#delete /f /r flash:c3750-i5-mz.121-19.EA1c
Delete filename [c3750-i5-mz.121-19.EA1c]? y
3750-2#

3750-2#copy tftp flash                           
Address or name of remote host [192.168.1.1]? 
Source filename [/cisco/c3750-ipservicesk9-mz.122-46.SE.bin]? 
Destination filename [c3750-ipservicesk9-mz.122-46.SE.bin]? 
Accessing tftp://192.168.1.1//cisco/c3750-ipservicesk9-mz.122-46.SE.bin...
Loading /cisco/c3750-ipservicesk9-mz.122-46.SE.bin from 192.168.1.1 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
edited
...
%Error copying flash:/c3750-ipservicesk9-mz.122-46.SE.bin (No space left on device)
3750-2#
3750-2#show flash:

Directory of flash:/

    2  -rwx         856   Sep 06 2016 21:13:39  vlan.dat
    4  -rwx        4000   Mar 01 1993 00:11:03  config.text
    5  -rwx          47   Mar 01 1993 00:11:03  private-config.text
   22  drwx         192   Mar 01 1993 00:06:43  c3750-i5-mz.121-19.EA1c

15998976 bytes total (8948224 bytes free)
3750-2#

What's gone wrong? I made this mistake….. Where it has Delete filename [c3750-i5-mz.121-19.EA1c]? y, I should have just pressed enter not y.

Try again….

3750-2#delete /f /r flash:c3750-i5-mz.121-19.EA1c
Delete filename [c3750-i5-mz.121-19.EA1c]?  <enter>
3750-2#show flash:                               

Directory of flash:/

    2  -rwx         856   Sep 06 2016 21:13:39  vlan.dat
    4  -rwx        4000   Mar 01 1993 00:11:03  config.text
    5  -rwx          47   Mar 01 1993 00:11:03  private-config.text

15998976 bytes total (15992320 bytes free)
3750-2#

Success!!

Step three is to copy the new image to the switch, this uses tftp, although the new image also supports ftp, http(s) and scp.

3750-2#copy tftp flash
Address or name of remote host []? 192.168.1.1
Source filename []? /cisco/c3750-ipservicesk9-mz.122-46.SE.bin
Destination filename [c3750-ipservicesk9-mz.122-46.SE.bin]? 
Accessing tftp://192.168.1.1//cisco/c3750-ipservicesk9-mz.122-46.SE.bin...
Loading /cisco/c3750-ipservicesk9-mz.122-46.SE.bin from 192.168.1.1 (via Vlan1): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
...
edited
...
!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 10789421 bytes]

10789421 bytes copied in 1793.300 secs (6017 bytes/sec)
3750-2#

Step four is to verify the copy has updated correctly, this is done by comparing the md5 hash with a known good image (or the Cisco website if you have TAC access)

3750-2#verify /md5 flash:c3750-ipservicesk9-mz.122-46.SE.bin
................................................................
...
edited
...
.........Done!
verify /md5 (flash:c3750-ipservicesk9-mz.122-46.SE.bin) = fca891e9f9aeb11a4729e8a5b3a91b9b

3750-2#

Step five is to update the boot path so the switch knows where to find the new image, otherwise it will try to boot from the old image and fail.

Hint, you can use tab to auto complete the IOS image file to ensure it is spelt correctly.

3750-2#show boot
BOOT path-list      : flash:c3750-i5-mz.121-19.EA1c/c3750-i5-mz.121-19.EA1c.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    : 
Auto upgrade        : yes
3750-2#

3750-2#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
3750-2(config)#boot system flash:c3750-ipservicesk9-mz.122-46.SE.bin
3750-2(config)#
3750-2(config)#exit
3750-2#show boot
BOOT path-list      : flash:c3750-ipservicesk9-mz.122-46.SE.bin
Config file         : flash:/config.text
Private Config file : flash:/private-config.text
Enable Break        : no
Manual Boot         : no
HELPER path-list    : 
Auto upgrade        : yes
3750-2#

Step six is to commit the changes to memory:-

3750-2#write memory 
Building configuration...
[OK]
3750-2#
3750-2#

The last stage is to reload the switch, this is best done via a serial console so you can see the image decompression and the stages in the boot process, in case anything goes wrong.

3750-2# reload
3750-2#Connection closed by foreign host.
andrew@study:~

After the reload, check the switch is at the correct code level.

3750-2#sh ver
Cisco IOS Software, C3750 Software (C3750-IPSERVICESK9-M), Version 12.2(46)SE, RELEASE SOFTWARE (fc2)

ROM: Bootstrap program is C3750 boot loader
BOOTLDR: C3750 Boot Loader (C3750-HBOOT-M) Version 12.1(11r)AX, RELEASE SOFTWARE (fc1)

System image file is "flash:c3750-ipservicesk9-mz.122-46.SE.bin"


Switch Ports Model              SW Version            SW Image                 
------ ----- -----              ----------            ----------               
*    1 26    WS-C3750-24TS      12.2(46)SE            C3750-IPSERVICESK9-M     

3750-2#

All done. Now on to the actual config.

See Switch Config in part 2.


rb/cisco-3750-part1.txt · Last modified: 12/02/2018 00:54 (external edit)