Network technologies and trends

Aug 16 2008   11:12AM GMT

How to change an IP address in a HP Procurve Switch

Yasir Irfan Yasir Irfan Profile: Yasir Irfan

HP ProCurve
IP address

Changing an IP address in a Cisco Switch is quite simple, where as in HP Procurve Switches if you try to change an IP address for any existing VLAN you get an error message: The IP address (or subnet) already exists..

I will demonstrate how to change an IP address for an existing VLAN. In this example we have a VLAN 100 assigned with an IP address in a HP Procurve Switch.

VLAN 100

name "VLAN100"

IP address

tagged 25-26


We will try to change the IP address in a normal way as we do in a Cisco Catalyst Switch.

ICU(config)# VLAN 100

ICU(vlan-100)# IP address

The IP address (or subnet) already exists..

The moment you enter the IP address command you will get an error message mentioned above.

In order to change an IP address do the following things.

Log in to the Switch through a console port.

Then from the global parameters use the following commands.

VLAN 100

name "VLAN100"

no IP address

IP address

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.

HP Procurve

  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.

4  Comments on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.
  • FlavioB
    Hi there,
    what if you have a different VLAN configured and set on that VLAN (temporarily) an IP address? This way you could connect to this "new temporary" IP and reconfigure the one used on VLAN 100 without losing connectivity. Do you agree?
    10 pointsBadges:
  • Alaina
    The ideal scenario will be to login remotely from your management VLAN interface and do the changes without loosing connection to the switch
    10 pointsBadges:
  • oducrot
    another way to do it remotely is to give another IP to a second vlan

    10 pointsBadges:
  • evilmarci
    This is a nice trick, thank you ! Worked flawless on a 3500yl-48G for me :-)
    10 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: