Thursday, November 2, 2017

Configuring Bootloader Commands on a Cisco 3560 Switch

I needed to upgrade some Cisco 3560 switches to support SSH for remote management access. So I've TFTP's the K9 IOS and changed the boot variable using the boot system flash command but there was no output when I did a show run. You can use the show boot to display the bootloader variable on a Cisco 3560 switch.

Switch#show ip ssh      // SSH ISN'T SUPPORTED ON IP BASE IOS (NO K9)
                 ^
% Invalid input detected at '^' marker.

Switch#show version | inc IOS
Cisco IOS Software, C3560 Software (C3560-IPBASE-M), Version 12.2(35)SE5, RELEASE SOFTWARE (fc1)

Switch#dir     // OLDER C3560 HAS ONLY 16 MB FLASH, SO DELETE CURRENT IOS
Directory of flash:/

    2  -rwx        2276   Mar 08 1993 01:43:58  vlan.dat
    3  -rwx         184   Mar 14 1993 13:27:57  private-config.text
    5  drwx         128   Mar 15 1993 10:27:25  c3560-i9-mz.121-19.EA1d     // DIRECTORY FILE
   85  -rwx        9124   Mar 14 1993 13:27:57  config.text

15998976 bytes total (9533440 bytes free)
Switch#dir flash:/c3560-i9-mz.121-19.EA1d
Directory of flash:/c3560-i9-mz.121-19.EA1d/

    6  drwx        2432   Mar 01 1993 00:04:02  html
   83  -rwx     3453772   Mar 01 1993 00:05:05  c3560-i9-mz.121-19.EA1d.bin     // IOS FILE
   84  -rwx         331   Mar 01 1993 00:05:05  info

Switch#delete flash:/c3560-i9-mz.121-19.EA1d/c3560-i9-mz.121-19.EA1d.bin
Delete filename [/c3560-i9-mz.121-19.EA1d/c3560-i9-mz.121-19.EA1d.bin]?
Delete flash:/c3560-i9-mz.121-19.EA1d/c3560-i9-mz.121-19.EA1d.bin? [confirm]

Switch#dir     // NEWER C3560 SWITCH HAS 32 MB FLASH AND CAN FIT MULTIPLE IOS
Directory of flash:/

    2  -rwx        6755  Jun 10 1993 02:18:55 +00:00  config.text
    3  -rwx        2276  Apr 11 2016 04:57:50 +00:00  vlan.dat
  464  -rwx    11773249  Jun 10 1993 03:10:35 +00:00  c3560-ipbasek9-mz.122-55.SE11.bin
    4  -rwx         167  Jun 10 1993 02:18:55 +00:00  private-config.text
    5  -rwx        2072  Jun 10 1993 02:18:55 +00:00  multiple-fs
    6  drwx         512   Mar 1 1993 00:07:25 +00:00  c3560-ipbase-mz.122-35.SE5

27998208 bytes total (6766080 bytes free)     
Switch#show run | inc boot
Switch#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#boot ?
  boothlpr             Boot Helper System Image
  config-file          Configuration File
  enable-break         Enable Break while booting
  helper               Helper Image(s)
  helper-config-file   Helper Configuration File
  manual               Manual Boot
  private-config-file  Private Configuration File
  system               System Image

Switch(config)#boot system ?
  WORD  pathlist of boot file(s) ... file1;file2;...

Switch(config)#boot system flash:c3560-ipbasek9-mz.122-55.SE11.bin
Switch(config)#end
Switch#show run | inc boot      // DOESN'T DISPLAY THE boot SEQUENCE COMMANDS IN SHOW RUN

Switch#show boot     // USE THIS COMMAND INSTEAD TO VERIFY BOOT VARIABLE
BOOT path-list      : flash:c3560-ipbasek9-mz.122-55.SE11.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
Auto upgrade path   :

Switch#write memory
Building configuration...
[OK]
Switch#reload
Proceed with reload? [confirm]


 <OUTPUT TRUNCATED>


Switch#show version | inc IOS
Cisco IOS Software, C3560 Software (C3560-IPBASEK9-M), Version 12.2(55)SE11, RELEASE SOFTWARE (fc3)
Switch#show ip ssh
SSH Enabled - version 1.99     
Authentication timeout: 120 secs; Authentication retries: 3

No comments:

Post a Comment