Is it possible to put a secondary ip on a switch? More specifically a vlan interface? I would like to change the ip's on a few switches that I have remotely.
I have already tried to add a secondary ip to the vlan interface and the switch appears to take the command however it does not show up in the config afterwards and I cannot ping it.
I haven't tried to add a second default-gateway ip yet. Is this going to fail also? The switches are 1924s and 2924s mostly.
I don't think it's possible to configure two IP addresses and default gateways on a switch.
If you need to change the IP address and default gateway remotely, you can download the running config to your PC, edit the IP address and default gateway values and upload the file via TFTP to startup config to the switch. After successful upload use sh config to check the startup config is OK and reload the switch.
You can even make it without any switch reload:
Just create a text file test.cfg containing lines:
ip address .........
ip default-gateway .........
with the new values.
Copy this file to the switch flash via TFTP.
Use copy flash run
answer test.cfg to the filename prompt.
The switch will merge the test.cfg with the running config. You will lose your Telnet connection. But you should be able to connect using the new IP address immediately.
If anything fails for any reason you still can call the remote site and just ask somebody to power the switch off/on and it will come back with the old address and gateway.
This should work for Cat2900/3500XLs. I'm not so familiar with 1900, but I hope they might behave the same way.