interface vlan 1
ip address 10.10.10.2 255.255.255.0
The Cisco switch will update the IP address and disconnect your session. On a ProCurve switch, if you issue the same commands it will spit out an error saying:
"The IP address (or subnet) 10.10.10.2/24 already exists."
If you were going through the console port, you can set the new IP using the following commands:
no ip address 10.10.10.1/24
ip address 10.10.10.2/24
However, you can't do that if you connect to the switch remotely. As soon as the "no ip address" command is received and processed by the switch, your session will be disconnected and you won't be able to get to the switch.
The trick to get around this issue is to make this IP address change through the switch's built-in menu system instead of using the plain old CLI.
1. Type "menu", hit Enter
2. Select "Switch Configuration"
3. Select "IP Configuration"
4. Navigate to Edit, hit Enter
5. Change the IP and then Save
You will be disconnected once you save it but you will be able to reconnect using the new IP.