11-08-2011 01:03 PM - edited 03-07-2019 03:16 AM
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
Solved! Go to Solution.
11-08-2011 01:46 PM
Hi,
.
Just do a copy tftp://x.x.x.x start and reload and it should work.
Regards.
Alain.
11-08-2011 01:47 PM
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.
11-08-2011 01:12 PM
Do I just do a copy flash:uswal-sw6-confg start and reboot switch?
11-08-2011 01:46 PM
Hi,
.
Just do a copy tftp://x.x.x.x start and reload and it should work.
Regards.
Alain.
11-08-2011 01:47 PM
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.
11-08-2011 01:59 PM
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
11-08-2011 02:10 PM
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
11-08-2011 02:38 PM
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
11-08-2011 03:14 PM
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....
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide