Sample HP Procurve Configuration
Posted by: Joshua Wood
So everyone probably knows how to setup a switch. You plug them in and away they go right. Wellll, that is mostly true. While they will work if you use them that way you won’t really get the value out of a higher-end switch if you do do that.
In this post I run through the basics of configuring an HP Procurve switch. While a lot of this information can be carried over to other platforms such as Cisco the commands will be different for most of the entries.
This is the name of the swtich. You are going to want to set this value even if it is a simple name since it will help immesenely when trying to figure out which switch it is exactly.
hostname “net-2610″
By default most HP switches have a low threshold for the number of VLAN’s that they can support. Entering in this command will allow you to break that maximum most of the time.
max-vlans 256
This one will let you set the timezone
time timezone -360
This one sets the daylight savings time information
time daylight-time-rule User-defined begin-date 3/11 end-date 11/4
If you want to be able to manage your switches from other subnets or if you want them to pick up their time from the Internet you will need the switch to have a gateway.
ip default-gateway 192.168.1.1
Set the IP of the time server
sntp server 192.168.1.10
Set the protocol for time synchronization
timesync sntp
Set the method of synchronization
sntp unicast
VLAN 1 is in the configuration by default so you don’t have to add this line
vlan 1
Default lines as well
name “DEFAULT_VLAN”
untagged 1-44,46-52
IP address of the VLAN. This IP is the one that you will be using when managing the switch remotely.
ip address 192.168.5.53 255.255.255.0
Default command that lets you exit this section
exit
This entry isn’t a default but I like to move the various devices off of VLAN 1 and into their VLAN if possible
vlan 10
Name the VLAN so you know why you created it.
name “Data”
Default command here
exit
If you are running a PoE switch I find that I usually need to run this command since a lot of devinces are running on a standard that is pre-standard for PoE.
power pre-std-detect
The next few lines turn on spanning-tree which you definitely want to use.
spanning-tree
spanning-tree legacy-path-cost
spanning-tree priority 2 force-version STP-compatible
These next two lines let you know that you will need a password for managing the device.
password manager
password operator
Links:
If you want more information on setting the time for an HP Procurve device check out my previous post here



