I have a task of changing managment Vlan for all devices in the network.
It's rather simple with L3 devices, but some kind of puzzle with access switches, which are 2960 in my company.
Catch is: i have to maitain the IPs, but move it to another interface remotely (via ssh).
So, I can't just do something like
ip address ***
cause I will loose connectivity on removing address from Vlan1.
Only possibility I see is - making some temprorary interface with temrorary address, than connect to it, move main address, and remove all temp stuff. But it'll take a bunch of time in case of 100+ devices.
It there another way to solve this? Some delayed config load, which will make it possible to load several commands at once, or some "move ip" possibilty?
Solved! Go to Solution.
If you don't have any central management application like prime/lms etc.. You can still make these necessary changes however it will be more administrative
If the switches support it ,One option would be to make the changes from a L2 perspective via clustering so any changes to the L3 addressing wont affect your session on change, but for this to work switches need to be physical connected to the cluster masters ( these masters can be any interconnected switch or just the core switch if they all connect to that)
cluster enable STAN
show cluster candidates
cluster member 5 mac-address (mac address of switch to change) password (password of switch)
cluster member 6 mac-address (mac address of switch to change) password (password of switch)
cluster member 7 mac-address (mac address of switch to change) password (password of switch)
show cluster members
Log into switch to make your config changes
rcommand x (cluster member)
The other option would to install a preconfigured text file into the flash of the switch and append that file to the startup-config of the switch and upon a scheduled reload the new changes would be applied
copy flash:stan.txt startup-config
reload in (hh:mm)
From Seb:s example that we can use it but without reload.
Do the tftp of the running config to the tftpserver.
Edit the file, don't touch anything else but the example,
switchport trunk allowed vlan add 3
interface vlan 2
no ip address
interface vlan 3
ip address 126.96.36.199 255.255.255.0
Now upload the file with tftp to the startup
Now you can do this trick, configure the router, but not with conf term, instead use
then the router starts to configure using the startup config, and it reads the file from the start down to the end, executing every command int the startup, and if everything is as it was before all commands will just be the same, except for the changes You have done from the example. Beware of the fact that you have to have the "no ip address" on the old interface before adding th the address in the new interface.