09-21-2016 02:30 AM - edited 03-08-2019 07:31 AM
Dear community,
I'm currently working on a Catalyst 3560 v2 PoE-24 switch. I'm trying to make an easy guide on how to configure them. Our Servicedesk is used to working with Accespoints and configuring them by uploading a text config to flash and overwriting current config with the new config. I've decided that it would be practical to learn them the same trick for this respective switch. However, im running into trouble:
I've connected the switch through a Cisco Console Cable to my commport. I use hyperterminal to make a serial connection (9600 baud, 8 databits, no parity, 1 stopbits, no flowcontrol) to reach CLI. On the switch I am in Enabled mode. I gave in the following commands:
"copy xmodem: flash:"
Destination Filename [ ]?
"1430SW01.txt"
Begin the Xmodem or Xmodem-1K transfer now
Here I upload a .txt file which I intend to use as the config: 1430SW01 (I use the "Send file" option with protocol Xmodem) I Name the file:
1430SW01.txt
Upload successful..
"Copy flash: startup-config" (Here I tell the switch, copy FROM flash TO Nvram)
Source Filename?
"1430SW01.txt"
destination filename [startup-config]?
"Enter"
Upload successful..
"show startup-config" Now I check if it's succesful: it shows the old config.
"reload" It still show the old config.
What am I missing here? This should work right?
Thanks in advance.
Regards,
Kim
09-21-2016 02:46 AM
Hi
try copy startup to the running config then save , if startup config looks ok
sh startup-config
copy startup-config running-config
wr
09-21-2016 03:05 AM
Thanks for your reply.
This did not work for me. This is because the startup-config is never altered. After I give the command: "copy flash: startup-config" and specify which file I want, the startup-config is not altered. So it would have no use to copy the startup to running.
If I tell the switch
When I give the command: "copy flash: running-config" the specified config is not put in the running config: It gives me an error. The current config is much like the config I'm trying to upload. So it tells me that some of configuration options im trying to put in, are already configured.
09-21-2016 03:53 AM
Hi,
You need to change the file extension of your file to .confg or -confg based on this link I found...
http://www.cisco.com/c/en/us/td/docs/ios/12_2/configfun/configuration/guide/ffun_c/fcf007.html#wp1001357
hth
09-21-2016 05:33 AM
Hi,
Thanks for your answer. This did not work. Also, i tried finding where it states that the extension should be ".confg" I couldn't find this anywhere?
regards,
Kim
09-21-2016 05:38 AM
09-21-2016 02:51 AM
09-21-2016 03:07 AM
Thanks for your response.
This is definitly worth looking into.
However this does not answer my question how to copy a config from flash to running/startup-config, correct?
09-21-2016 04:35 AM
No. This will automate the way you configure switches.
09-21-2016 05:37 AM
Leo,
This is a scenario I would want to work towards. However, I currently do not have the possibility to share a TFTP server with my servicedesk. It's obviously not a resource problem, but a policy issue. So this will a future project, when we have permission.
Thanks for your input.
regards,
Kim
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