TechStop

Jun 7 2008   12:50AM GMT

Sample HP Procurve Configuration

Joshua Wood Joshua Wood Profile: 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

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Arr2036
    Don't force STP-Compatible spanning tree, the switch will automatically adjust spanning tree behaviour on ports that recieve legacy STP BPDUs, it's in the RSTP spec. Besides all managed ProCurve switches since the 2500 series support RSTP (Rapid Spanning Tree Protocol), which is much better to use. STP can have a delay of up to 30 seconds between a device being connected, and the port transitioning to a forwarding state, by which time most windows DHCP clients will have timed out. As you appear to be configuring a 2610 in your example, just issuing the spanning-tree command will be sufficient, this should enable MSTP. Ports on which RSTP and STP BPDUs are detected will be added into a single default MST instance on the switch, thus allowing backwards compatiblity with 802.1D spanning stree protocols. According to posts on the HP forums, memory is 'hard' allocated for VLANs depending on the max-vlan parameter. So I wouldn't set it to 256, but something more modest. If you're running GVRP i'd set it to the maximum number of VLANs on your network, plus 20 to allow for expansion (rebooting the switch every time you alter max-vlans gets to be annoying). Additionally it's worth enabling SSH and disabling telnet. crypto key generate ssh ip ssh no telnet-server And disabling the plaintext http server no web-management plaintext web-management ssl
    0 pointsBadges:
    report
  • JonathanBerkowitz
    hello!
    0 pointsBadges:
    report
  • Joshua Wood
    Hello Jonathan.
    0 pointsBadges:
    report
  • DarwinSy
    These configurations have been tested and verified by HP ProCurve support engineers. However, HP does not guarantee that these exact configurations will work in your environment. -[A href="http://www.linkedin.com/in/drrandallalifanophd"]Randall Alifano[/A]
    0 pointsBadges:
    report

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: