The switch is running at a remote location and is connected to a network with the IP address
10.10.10.10. How can I change the IP address to
10.10.10.11 via telnet? The switch has to stay reachable and must not get an IP address via DHCP.
It can be problematic to change an address remotely. The best option is to do it in person from the directly attached console. To move the switch to a different subnet, that is indeed what is required. In your case, it's still in the same subnet with the same gateway, so you can just telnet in and change it. The instant the command is entered, your telnet session will stop, but you should be able to telnet to the new address and continue. (save the config, etc.)
When moving to a different subnet, the gateway has to be changed as well. You'll lose contact the instant either the gateway or address are changed. And the address has to change first. If you have machines in both networks, and changing the address of the switch will not otherwise break the network, then logging in to each network allows you a local path (not through a gateway) to the switch in either subnet. Change the address, go to the machine in the other network and continue your work.
If you have console (out-of-band) access, none of this mess is required.
You normally would just overwrite it with e. g.:
vlan 1 ip address 10.10.10.11/8
But if you stay on the same subnet, the switch will complain:
The IP address (or subnet) 10.10.10.11/8 already exists.
If this is the case (you want to stay in the same subnet and just change the IP address inside this subnet), then you'll have to delete the previous IP address first. But then you'll will loose your remote connectivity, if you cannot reach your switch through another subnet. So that's probably not an option.
A working solution is to use the HP menu to change the IP address instead of using bare configuration commands. Perform the following steps:
- Open the interactive HP menu with the command
- Select option
2. Switch Configuration....
- Select option
4. IP Configuration.
- Select the action
- Edit your IP address according to your needs and press ENTER.
- Select the action
You'll loose your connection immediately, but you'll also be able to immediately reconnect to the new IP address.
If you have more than one VLAN running (lets say 10 with 10.10.10.10 and 20 ) on the switch you could give the switch an IP address in another VLAN Interface (i. e. VLAN 20 with 22.214.171.124); check if you could connect to it (126.96.36.199) and if it is so you can change the IP address (10.10.10.10) while connected via telnet to the other VLAN interface (188.8.131.52) on the switch.
Please think of it and check (2nd VLAN will be routed to your location and so on) if this will be a oppertunity for you befor doing it.
Use the reload command to issue a delayed reload to the switch. Then make your change and see if it worked. If you messed up, the switch will reboot with the old configuration intact, enabling you to try again until you get it right.
Your production setup can be impacted, if you wants to change ip address of switch in production hours . And you might loss access to switch as well.
If switch is connected in HA having both active and passive switch or active -active switch then , there is a possibility to change ip address of switch in production hours . Remove HA cable between switch make them independent devices and shift all work load on any one of switch , on remaining switch you can change ip address .
If both switches are not in HA . Then schedule activity post production hours . And take switch console access and processed with activity .