cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
5282
Views
0
Helpful
6
Replies

Remotely change L2 switch Vlan interface and IP

mockus
Level 1
Level 1

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!

6 Replies 6

mockus
Level 1
Level 1

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. 

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

Collin Clark
VIP Alumni
VIP Alumni

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.

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

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