08-05-2011 02:46 PM - edited 03-07-2019 01:34 AM
I am completely redoing a LAN remotely and need to be able to upload a config onto some 3560 and 2960 switches changing from Vlan1 to new Vlan with new IP. I think it would be best to load new startup config file with correct info but I can't get it to work correctly -it leaves off the IP on the new vlan interface. Any suggestions on best method? I will have people there doing physical changes but they aren't used to configuring switches so it would be painful to have them do anything via console. During testing I have copy the config.text file off to tftp server - modify it and copy back then have tried a reload and also just copy start run. Either way the interface stays shut or at best it's up but no IP address. Any ideas would be appreciated.
Thanks!
08-05-2011 02:57 PM
Hi,
Have you tried configuring macros.
Hope this helps.
Cheers
Somu
Pls rate this answer if you found the content was useful
08-05-2011 02:58 PM
Just tried again - I deleted the config.text file from flash first before copying edited version up from tftp server. It must have been merging the files. So that works. If anyone knows an easier way to get this done - ideas are appreciated although this isn't actually too hard -just will have to make sure not to make a typo.
08-05-2011 03:28 PM
Never did it myself , but this command is the one that could help you :-
"configure replace"
http://packetlife.net/blog/2010/may/17/use-configure-replace-instead-of-copy-start-run/
Manish
08-05-2011 04:11 PM
Here is how I do it-
1. Create a file with the commands you wish to enter into the config
2. Copy the file to flash
3. Run the file (copy flash:/My_change.txt running-config)
What will happen is the switch will run the commands locally instead of through the VTY. You will lose connectivity (which you should with an IP change) but then you should be able to get into the switch in a minute. You may want to add a rollback into the config or perhaps before hand.
http://www.cisco.com/en/US/partner/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html
Hope it helps.
08-05-2011 05:56 PM
Hi,
"Configure replace" as Manish said would be helpful. It will not merge your new config with the old one butwill replace it and you can use it to rollback in case the switches are not responsive. Anyway you must take care about the rollback process especially if you have policy maps.
http://www.cisco.com/en/US/docs/ios/12_3t/12_3t7/feature/guide/gtrollbk.html#wp1112456
Best regards,
Alex
08-06-2011 01:23 AM
Hi,
I would try the to load the new config and boot form them...Or macro based.
But I'm not sure I believe you can configure two SVI's at least on L2 Switches..try that.. would be the best way I think..
regards,
Sebastian
Reference:
It is not a bug actually. Multiple SVI support feature was introduced in 12.2 train and because 2960 switch supports 12.2 train this feature is available on this switch
https://supportforums.cisco.com/thread/148999
regards,
Sebastian
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