cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1131
Views
0
Helpful
7
Replies

How to get a 3560 Switch to run from new conf file on reload

Jay Matrona
Level 1
Level 1

Hi All,

I uploaded a new config file via TFTP to a 3560 switch.  What are the order of commands to get it to boot from this new config file instead of the file listed in 'sh boot':

Directory of flash:/

    2  -rwx    10468443  Feb 28 1993 19:51:11 -05:00  c3560-ipservicesk9-mz.122-44.SE2.bin

    3  -rwx       23732   Nov 8 2011 15:48:10 -05:00  uswal-sw6-confg    ***FILE I WANT TO USE

    4  -rwx       19439  Feb 28 1993 19:02:57 -05:00  config.text            

    5  -rwx         916  Feb 28 1993 23:16:12 -05:00  vlan.dat

    6  -rwx        2072  Feb 28 1993 19:02:57 -05:00  multiple-fs

    7  -rwx        3842  Feb 28 1993 19:02:57 -05:00  private-config.text

32514048 bytes total (21992960 bytes free)

axs1-1#sh boot

BOOT path-list      : flash:c3560-ipservicesk9-mz.122-44.SE2.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   :

Timeout for Config

          Download:    0 seconds

Thanks

2 Accepted Solutions

Accepted Solutions

Hi,

.

Just do a copy tftp://x.x.x.x start and reload and it should work.

Regards.

Alain.

Don't forget to rate helpful posts.

View solution in original post

darren.g
Level 5
Level 5

Jay Matrona wrote:

Hi All,

I uploaded a new config file via TFTP to a 3560 switch.  What are the order of commands to get it to boot from this new config file instead of the file listed in 'sh boot':

Directory of flash:/

    2  -rwx    10468443  Feb 28 1993 19:51:11 -05:00  c3560-ipservicesk9-mz.122-44.SE2.bin

    3  -rwx       23732   Nov 8 2011 15:48:10 -05:00  uswal-sw6-confg    ***FILE I WANT TO USE

    4  -rwx       19439  Feb 28 1993 19:02:57 -05:00  config.text            

    5  -rwx         916  Feb 28 1993 23:16:12 -05:00  vlan.dat

    6  -rwx        2072  Feb 28 1993 19:02:57 -05:00  multiple-fs

    7  -rwx        3842  Feb 28 1993 19:02:57 -05:00  private-config.text

32514048 bytes total (21992960 bytes free)

axs1-1#sh boot

BOOT path-list      : flash:c3560-ipservicesk9-mz.122-44.SE2.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   :

Timeout for Config

          Download:    0 seconds

Thanks

There's a couple of methods you could use.

Be warned - if this new config file is not right, you could lock yourself out of the switch and have to get back in via the console.

You could issue the following command

copy flash:uswal-sw6-config startup-config

Or you could do this

delete flash:config.text

rename flash:uswal-sw6-config flash:config.text

then reload the switch (in either case).

If there's something not quite right in the new config,e specially in the management IP configuration, then you will have to console in via the serial port and rectify the problems.

Cheers.

View solution in original post

7 Replies 7

Jay Matrona
Level 1
Level 1

Do I just do a copy flash:uswal-sw6-confg start  and reboot switch?

Hi,

.

Just do a copy tftp://x.x.x.x start and reload and it should work.

Regards.

Alain.

Don't forget to rate helpful posts.

darren.g
Level 5
Level 5

Jay Matrona wrote:

Hi All,

I uploaded a new config file via TFTP to a 3560 switch.  What are the order of commands to get it to boot from this new config file instead of the file listed in 'sh boot':

Directory of flash:/

    2  -rwx    10468443  Feb 28 1993 19:51:11 -05:00  c3560-ipservicesk9-mz.122-44.SE2.bin

    3  -rwx       23732   Nov 8 2011 15:48:10 -05:00  uswal-sw6-confg    ***FILE I WANT TO USE

    4  -rwx       19439  Feb 28 1993 19:02:57 -05:00  config.text            

    5  -rwx         916  Feb 28 1993 23:16:12 -05:00  vlan.dat

    6  -rwx        2072  Feb 28 1993 19:02:57 -05:00  multiple-fs

    7  -rwx        3842  Feb 28 1993 19:02:57 -05:00  private-config.text

32514048 bytes total (21992960 bytes free)

axs1-1#sh boot

BOOT path-list      : flash:c3560-ipservicesk9-mz.122-44.SE2.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   :

Timeout for Config

          Download:    0 seconds

Thanks

There's a couple of methods you could use.

Be warned - if this new config file is not right, you could lock yourself out of the switch and have to get back in via the console.

You could issue the following command

copy flash:uswal-sw6-config startup-config

Or you could do this

delete flash:config.text

rename flash:uswal-sw6-config flash:config.text

then reload the switch (in either case).

If there's something not quite right in the new config,e specially in the management IP configuration, then you will have to console in via the serial port and rectify the problems.

Cheers.

Thanks for the info guys!  One more question

Does it matter that the config I am going to use is from a Fast Ethernet switch and this one is a Gigbit??

Both are 3560 series PoE switches with same # of interfaces

Hi,

sure it does matter!

The switch would ignore all commands for incorrect (FastEthernet) interfaces.

So at least you should replace all FastEtherent interface names with Gigabitethernet ones.

And still you are risking some commands might not be supported while other missing.

Is it such a problem to modify the curent running config the way you need?

HTH,

Milan

Jay Matrona wrote:

Thanks for the info guys!  One more question

Does it matter that the config I am going to use is from a Fast Ethernet switch and this one is a Gigbit??

Both are 3560 series PoE switches with same # of interfaces

Heck yes!

All your interface definitions will be wrong (the names, if not the numbers), and there may be other issues as well.

If you can't change the configuration in-situ, I suggest you do the following.

Logon to the switch and capture the existing configuration - you can either just do something like

term length 0

show running-config

and capture the output, or you can do

copy running-config tftp:

if you have a tftp server available.

Then modify the configuration you captured, and upload it back before doing the rename/reload trick.

As Milan said - is there some reason you can't just modify the configuration online to get the result you want?

Cheers

Jay Matrona
Level 1
Level 1

Thanks to everyone for their help on this.  I decided to modify the existing config and not take any chances.  I thought that the using the other config file would be the quicker and more painless way to get this replacement switch up and running.... 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card