Configuring HP ProCurve Switch

HP ProCurve Logo

ProCurve Networking by HP

Reset switch to factory defaults

If I’m not using brand new switch, I normally like to reset it back to factory defaults before doing anything.
Use a pointy object (like paper clip) and press “Reset” and “Clear” buttons on the front of the switch at the same time.
Release “Reset” button. When “Self Test” LED start to blink, release “Clear” button too. Now the switch should do it test routines. After that it should be back on factory defaults.

IP-Address


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# vlan 1
HP ProCurve Switch 2524(vlan-1)# ip address 10.0.0.1 255.255.255.0
HP ProCurve Switch 2524(vlan-1)# wr mem
HP ProCurve Switch 2524(vlan-1)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Configure VLANs


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# vlan 1
HP ProCurve Switch 2524(vlan-1)# name "Default"
HP ProCurve Switch 2524(vlan-1)# untag 2-6
HP ProCurve Switch 2524(vlan-1)# vlan 10
HP ProCurve Switch 2524(vlan-10)# name "First"
HP ProCurve Switch 2524(vlan-10)# untag 7-12
HP ProCurve Switch 2524(vlan-10)# vlan 20
HP ProCurve Switch 2524(vlan-20)# name "Second"
HP ProCurve Switch 2524(vlan-20)# untag 13-18
HP ProCurve Switch 2524(vlan-20)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Set up trunk ports


HP ProCurve Switch 2524# config
HP ProCurve Switch 2524(config)# trunk 23-24 trk1
HP ProCurve Switch 2524(config)# vlan 10
HP ProCurve Switch 2524(vlan-10)# tagged trk1
HP ProCurve Switch 2524(vlan-10)# vlan 20
HP ProCurve Switch 2524(vlan-20)# tagged trk1
HP ProCurve Switch 2524(vlan-20)# wr mem
HP ProCurve Switch 2524(vlan-20)# exit
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Disable all (but trunk) ports


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-22 disable
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Enable only necessary ports


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-4 enable
HP ProCurve Switch 2524(config)# int 13-15 enable
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Set up speed etc.


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# int 2-4 speed-duplex 100-full
HP ProCurve Switch 2524(config)# int 13-15 speed-duplex auto
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Set time and date

Time and date on hh:mm and mm:dd:yyyy format


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# time 10:05
Mon Jan 1 10:05:28 1990
HP ProCurve Switch 2524(config)# time 08/24/2010
Tue Aug 24 10:05:41 2010
HP ProCurve Switch 2524(config)# wr mem
HP ProCurve Switch 2524(config)# exit
HP ProCurve Switch 2524#

Set hostname


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# hostname "ServerRoom1"
ServerRoom1(config)# wr mem
ServerRoom1(config)# exit
ServerRoom1#

Backup settings

After running “sh run” copy/paste all between line which start with “hostname” to “ServerRoom1#” example to notepad and save that file.


ServerRoom1# sh run
ServerRoom1#

Restore settings from backup

All you have to do is copy/paste all (except the first “Running configuration:” line) to notepad on “Backup settings” part to “HP ProCurve Switch 2524#”.
If you have set operator and/or manager passwords, don’t copy/paste the lines which start with password.


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)#

Set manager and operator password


ServerRoom1# configure
ServerRoom1(config)# password all
New password for Operator: ********
Please retype new password for Operator: ********
New password for Manager: ********
Please retype new password for Manager: ********
ServerRoom1(config)#

Update firmware using tftp server

If you are using windows machine and need tftp server software, you should try 3CDaemon. It’s free, portable, and it works like a dream =)

Download newest firmware from HP’s website: Software for switches.
For my switch HP ProCurve 2524gl, newest firmware was F.05.72. I downloaded 2300_2500-Software-F0572.zip package and extracted it to “2300_2500-Software-F0572” folder.

Now I have directory “2300_2500-Software-F0572” with 2300_2500-RelNotes-F0572-59903102.pdf (Release Notes). I also have F_05_72.swi file and this .swi file is the firmware which you are going to use to update your switch.


ServerRoom1# configure
ServerRoom1(config)# copy tftp flash 10.0.0.100 F_05_72.swi
Device will be rebooted, do you want to continue [y/n]? y
00126K

After F_05.72.swi is copied to the switch, you should get this kind of line. When eve everything goes ok your switch will reboot itself:


Validating and Writing System Software to FLASH...

Update firmware using xmodem over serial connection

I normally use Microsoft Hyperterminal when I’m doing this because it’s pretty easy to use xmodem to upload files with hyperterminal

Download newest firmware from HP’s website: Software for switches For my switch HP ProCurve 2524gl newest firmware was F.05.72 so I downloaded 2300_2500-Software-F0572.zip package and extracted it to “2300_2500-Software-F0572”.

Now I have directory “2300_2500-Software-F0572” with 2300_2500-RelNotes-F0572-59903102.pdf (Release Notes) and F_05_72.swi file and this .swi file is the firmware which you are going to use to update your switch)


HP ProCurve Switch 2524# configure
HP ProCurve Switch 2524(config)# copy xmodem flash
The Primary OS Image will be deleted, continue [y/n]? y
Press 'Enter' and start XMODEM on your host...

After hitting ‘Enter’, start uploading using hyperterminal from menu: “Transfer” => “Send File…” then click “Browse…” and find that F_05_72.swi file and choose Xmodem (Not “1K Xmodem”) protocol. Then hit “Send” button. When everything is done you should see this kind of message and after that switch should boot:


Validating and Writing System Software to FLASH...

[note]This configuration was done with HP ProCurve 2524 (J4813A) but most of this command should work with other procurve switches too.[/note]

45 comments to Configuring HP ProCurve Switch

  • Miami Movers

    Hello There. I found your blog using msn.
    This is a very well written article. I will make sure to bookmark it and return to read more of your useful
    info. Thanks for the post. I will definitely return.

  • arjun Prasad

    i have Configure a HP ProCurve switch 1800-24g

    can you please how can i configure i forget login password

  • Thembs

    thank you – this was very helpful. I have one issue….the phones are taking the default vlan instead of voice vlan…..where am I going wrong?

  • OM

    Great stuff. Picked up a 2910AL, saved from imminent destruction, came with 2009 FW :D Thanks kindly for this post, as old as it may be.

  • Shamanth

    HI All,

    I have an issue with HP procurve 2810-48P switch. When i power on it just turn on all the LED’s and its not moving to CLI mode even the switch is not booting. Can anyone help on this please. I think both primary and Secondary Flash is corrupted. I don’t have Console access it is not loading as well i don’t have the usb port in switch to update the Firmware.

  • Schuks Pon Dis

    Awesome…..This is a life saver piece of commands.

  • Dave

    Great post. One possible addition: you can copy a configuration file to a USB device (CLI)

  • M sharaz

    how can i check ports against vlan ids etc

  • Anand

    Nice Post. thanks for sharing such a valuable info.

    I have one question.

    Are we able to create two manager account on the switch ?

  • Quanghv

    thank you so much. This is very great and useful

  • forex news

    Utterly indited articles, Really enjoyed reading through.

  • proxy server list

    What’s up,I read your blogs named “Configuring HP ProCurve Switch « petrilopia.net” daily.Your humoristic style is awesome, keep it up! And you can look our website about proxy server list.

    • Petri

      I don’t normally approve spam messages but now I have to say thank you about nice words about my humoristic style on my switch configure post :-D

  • Paul

    what about L3 commands for procurve 2920 ?

  • Apo

    This is very great and useful. Helps me a lot when configuring procurve switch for first time. Thank you very much!

  • googleplay

    Thanks a lot

  • Ray

    Most helpful. Even years later after originally being posted! (in part due to HP’s lifetime warranty on the Procurve line) AWESOME POST!!!!!

  • Michael

    HIGHLY recommend adding SSH to this great list.
    ********************

    HP SSH ENABLING

    Conf t >> password manager >>

    crypto key generate ssh
    show crypto host-public-key

    ip ssh

    no telnet
    ********************

  • Larry Mire

    How do I enable http or enable access via a browser?

  • nikkolasg

    Dude thank you a lot, king of the time savers

  • Ludhfi

    Can I assign an IP Address to a specific port on HP Switch 2920, not by assigned it under specific VLAN but it is on physical switch port?

  • H Tandler

    Can you use 2 words as hostnames e.g. South Melbourne?

  • Ferguson

    Whenever the power gets recycled on the HPProCurve the time reverts to January 1990. How to permanently write the time?

    Thanks

  • Ferguson

    Thanks very much. Just what is needed.
    Much appreciated.

    Warm Regards

  • WINDI

    Thanks for this perfect quick and perfect manual

  • Great,watch this

    You will be truly a fantastic webmaster. The internet site launching quickness is definitely wonderful. It appears that you are carrying out every exceptional secret. Furthermore, This items are usually work of art. you have performed an excellent method with this theme!

  • Jeffry Eron

    Greetings! Very useful advice within this post! It’s the little changes that produce the most important changes. Thanks a lot for sharing!

  • google advertising programs

    Everything is very open with a clear description of the challenges.
    It was really informative. Your website is very useful. Thanks for sharing!

  • Johnk398

    Hi there. Simply just planned to request a simple dilemma. kakbggaeedee

  • Jo

    Please add filters and how to use them. thanks very good info.

  • satya

    It’s very good.Thnk u for providing this ClI Commands

  • Raul Trujillo

    Awesome. If only I had found this a long time ago before doing lots and lots and lots of reading only to find out how-to.

    The only thing I would add is:

    copy tftp flash

    Per HP’s website, as a backup precaution:

    http://h20565.www2.hp.com/portal/site/hpsc/template.PAGE/public/kb/docDisplay/?spf_p.tpst=kbDocDisplay&spf_p.prp_kbDocDisplay=wsrp-navigationalState%3DdocId%253Demr_na-c02597191-1%257CdocLocale%253D%257CcalledBy%253D&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken

    -Raul

  • ahmed

    very good but i want know how i can put password to consol cabel

  • Jo

    Any possibility for showing how to do the followings:
    configure SSH, link aggregation, and ACLs on these switches?
    thanks

  • Johnson John

    I tried to restore my E2620 poe switch using the reset/clear button as you said, but my switch is not restored & is still asking the password which I forgot.

    Please help !!

    • Petri

      Manual of E2620 says:
      “Clear Button
      This button is used for:
      ■ Deleting Passwords – When pressed by itself for at least one second, the
      button deletes any switch console access passwords that you may have
      configured. Use this feature if you have misplaced the password and need
      console access. This button is provided as a convenience, however if you
      are concerned with the security of the switch configuration and operation,
      you should make sure the switch is installed in a secure location. This
      button can be disabled by a CLI command.”
      Let me know if that works?

  • rahul

    please provide or suggestions linux bassed HP ProCurve Switch monitoring software ASAP

  • Vova

    Great! But you forgot one very important thing when upgrading firmware with Xmodem.
    You have to set maximum speed to the Serial session, because 15MB-image = 5 Hours upgrading, with default-9600 baud-rate.

  • Botkins

    The information on this post is valuable.

  • Newcopia

    Thanks heaps for this post I have spent hours looking for this information now it is bookmarked and ready for quick reference.
    Cheers

  • Mike Thompson

    Great post. Very nice to have a quick tutorial on this stuff. Our environment has a mix of cisco/hp/dell switches, mostly cisco, so I mainly work with that. I needed to reset an hp switch and forgot how.

    Thanks!

  • Mark Charge

    Fantastic post. Lifesaver, right on the money.

  • Ivan Spiridonov

    Great and right on time/place. Thank You.

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

  

  

This site uses Akismet to reduce spam. Learn how your comment data is processed.