Configuring HP ProCurve Switch
Transcript of Configuring HP ProCurve Switch
![Page 1: Configuring HP ProCurve Switch](https://reader031.fdocuments.net/reader031/viewer/2022012406/55cf943e550346f57ba09781/html5/thumbnails/1.jpg)
Configuring HP ProCurve Switch[Translate]
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.
Or :
HP ProCurve Switch 2524# erase startup-config
IP-Address
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# vlan 1HP ProCurve Switch 2524(vlan-1)# ip address 10.0.0.1 255.255.255.0HP ProCurve Switch 2524(vlan-1)# wr memHP ProCurve Switch 2524(vlan-1)# exitHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Configure VLANs
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# vlan 1HP ProCurve Switch 2524(vlan-1)# name "Default"HP ProCurve Switch 2524(vlan-1)# untag 2-6HP ProCurve Switch 2524(vlan-1)# vlan 10
![Page 2: Configuring HP ProCurve Switch](https://reader031.fdocuments.net/reader031/viewer/2022012406/55cf943e550346f57ba09781/html5/thumbnails/2.jpg)
HP ProCurve Switch 2524(vlan-10)# name "First"HP ProCurve Switch 2524(vlan-10)# untag 7-12HP ProCurve Switch 2524(vlan-10)# vlan 20HP ProCurve Switch 2524(vlan-20)# name "Second"HP ProCurve Switch 2524(vlan-20)# untag 13-18HP ProCurve Switch 2524(vlan-20)# exitHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Set up trunk ports
HP ProCurve Switch 2524# configHP ProCurve Switch 2524(config)# trunk 23-24 trk1HP ProCurve Switch 2524(config)# vlan 10HP ProCurve Switch 2524(vlan-10)# tagged trk1HP ProCurve Switch 2524(vlan-10)# vlan 20HP ProCurve Switch 2524(vlan-20)# tagged trk1HP ProCurve Switch 2524(vlan-20)# wr memHP ProCurve Switch 2524(vlan-20)# exitHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Disable all (but trunk) ports
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# int 2-22 disableHP ProCurve Switch 2524(config)# wr memHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Enable only necessary ports
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# int 2-4 enableHP ProCurve Switch 2524(config)# int 13-15 enableHP ProCurve Switch 2524(config)# wr memHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Set up speed etc.
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# int 2-4 speed-duplex 100-fullHP ProCurve Switch 2524(config)# int 13-15 speed-duplex autoHP ProCurve Switch 2524(config)# wr memHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Set time and date
![Page 3: Configuring HP ProCurve Switch](https://reader031.fdocuments.net/reader031/viewer/2022012406/55cf943e550346f57ba09781/html5/thumbnails/3.jpg)
Time and date on hh:mm and mm:dd:yyyy format
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# time 10:05Mon Jan 1 10:05:28 1990HP ProCurve Switch 2524(config)# time 08/24/2010Tue Aug 24 10:05:41 2010HP ProCurve Switch 2524(config)# wr memHP ProCurve Switch 2524(config)# exitHP ProCurve Switch 2524#
Set hostname
HP ProCurve Switch 2524# configureHP ProCurve Switch 2524(config)# hostname "ServerRoom1"ServerRoom1(config)# wr memServerRoom1(config)# exitServerRoom1#
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 runServerRoom1#
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# configureHP ProCurve Switch 2524(config)#
Set manager and operator password
ServerRoom1# configureServerRoom1(config)# password allNew password for Operator: ********Please retype new password for Operator: ********New password for Manager: ********Please retype new password for Manager: ********ServerRoom1(config)#
![Page 4: Configuring HP ProCurve Switch](https://reader031.fdocuments.net/reader031/viewer/2022012406/55cf943e550346f57ba09781/html5/thumbnails/4.jpg)
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# configureServerRoom1(config)# copy tftp flash 10.0.0.100 F_05_72.swiDevice will be rebooted, do you want to continue [y/n]? y00126K
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# configureHP ProCurve Switch 2524(config)# copy xmodem flashThe Primary OS Image will be deleted, continue [y/n]? yPress '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
![Page 5: Configuring HP ProCurve Switch](https://reader031.fdocuments.net/reader031/viewer/2022012406/55cf943e550346f57ba09781/html5/thumbnails/5.jpg)
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...
This configuration was done with HP ProCurve 2524 (J4813A) but most of this command should work with other procurve switches too.