HP Procurve Configuration Quick Start Guide

1. Basic Information

The HP Procurve Switch 2824 is a Layer-2-Switch. It means that the switch does not only switch network packets at the MAC level. The switch is also able to route ip network packets.
For a full description of the capabilities please read the product description. This short guide describes only the basic handling and configuration of the switch.

The HP Procurve Switch 2824 has 24 autosensing ports. Every port supports network transfer rates of 10, 100 or 1000 MBit/s. Every port is able to determine the transfer rate of the network he's connected to.

The switch uses socalled VLANs to create network segments. Each switch port can be a member of one or more VLAN. A VLAN has no, one or more than one ip address. The routing between this network segments is done automatically if there are different ip address scopes configured.

The switch supports 3 configuration modes with different capabilities:

  • The Command Line Interface (CLI). In this mode you can change all configuration options.
  • The Menu Interface Mode. This mode provides a subset of switch commands in a easy-to-use menu format.
  • The HP Web Browser Interface. This mode provides a subset of switch commands as HTML pages.

This guide uses only the Command Line Interface (CLI) to change the switch configuration. The CLI is also easy-to-use because there is an context sensitive help which lists all possible commands or options. After opening a telnet connection to the switch, you are in the CLI-mode. Use the <TAB> key to get this help. If you want to see options of commands, type in the command and than type again <TAB> and the CLI lists the command options.

2. Connect to the switch

The switch should be accessible in the Sisis-Network by using the name "switch" . We use a telnet connection.

$myhost> telnet
HP J4903A ProCurve Switch 2824
Firmware revision I.07.31

Copyright (C) 1991-2003 Hewlett-Packard Co.  All Rights Reserved.

                           RESTRICTED RIGHTS LEGEND

 Use, duplication, or disclosure by the Government is subject to restrictions
 as set forth in subdivision (b) (3) (ii) of the Rights in Technical Data and
 Computer Software clause at 52.227-7013.

         HEWLETT-PACKARD COMPANY, 3000 Hanover St., Palo Alto, CA 94303

Enter the right password to login.

After connecting to the switch you can use the Menu Interface Mode by entering the command "menu".

3.Basic Configuration

Connect to the switch (section 2) and change to the configuration mode (the default config name of the switch isn't "switch" but "HP ProCurve Switch 2824") :

HP ProCurve Switch 2824#config
HP ProCurve Switch 2824(config)#

Set the time:

HP ProCurve Switch 2824(config)# time 17:12 07/22/04
Thu Jul 22 17:12:09 2004
HP ProCurve Switch 2824(config)#

Set the hostname:

HP ProCurve Switch 2824(config)# hostname switch

Set the correct time zone:

switch(config)# time timezone 60

Set hunter as the TimeP server:

switch(config)# ip timep manual

Set the correct time rule:

switch(config)# time daylight-time-rule Western-Europe

Set the default gateway to no gateway. The switch shouldn't have a default gateway, because this is a the central Sisis switch. We want to loose unrouted data should.

switch(config)# ip default-gateway

Enable routing:

switch(config)# ip routing

4. VLAN Configuration

The default configuration of the switch provides 1 VLAN. This "DEFAULT_VLAN" can be renamed but not deleted. At least one VLAN must exist. In default configuration all 24 ports belong to the "DEFAULT_VLAN". This could be useful, if  we wouldn't use any network segmentation. All ports of a VLAN build a physical subnet. Thats why the default configuration creates a big subnet with all ports.

The SISIS-network now consists of 3 physical subnets. The subnet, the subnet and the subnet. The is basic subnet for Oberhaching. All important server and most clients have an ip address of this local class C subnet. Some of the server of this network are directly connected the the HP ProCurve 2824 Switch.
Thats why we created a VLAN "SISIS_10" with the port members 1-22. On port 23 and 24 we connected the subnet and the subnet.

The following table shows the actual configuration:

    VLAN         IP Config   IP Address       Subnet Mask      Ports
  ------------ + ----------  ---------------  ---------------  --------- 
  SISIS_10     | Manual    1-22
  SISIS_193_32 | Manual  23
  SISIS_193_64 | Manual  24

To save this configuration (starting from default configuration) use the following commands on the CLI after login:

vlan 1
   name "SISIS_10"
   ip address
   untagged 1-22
   no untagged 23-24
vlan 2
   name "SISIS_193_32"
   untagged 23
   ip address
vlan 3
   name "SISIS_193_64"
   untagged 23
   ip address

The switch automatically creates a route for directly-connected networks (VLANs) when a IP VLAN interface was added. This will be done after setting the ip address of the VLAN.

5. Static Routes

You can add up to 16 routes directly to the route table of the switch. The corresponding CLI-command is:

ip route

This command routes ip packets of the network to the ip address
Delete this static route with the CLI-command:

no ip route

6. Get / Show configuration parameters

The CLI-command "show" provides all configuration. This command kows the following options:

 option                description
 accounting            Show Accounting configuration parameters.
 arp                   Show the IP ARP translation table.
 authentication        Show Authentication configuration parameters.
 boot-history          Display the system boot log.
 cdp                   Show CDP configuration and neighbors discovered.
 config                Show the switch startup configuration.
 console               Show serial link/console settings.
 cpu                   Show Average CPU utilization over last 1 second, 5
                       seconds and 1 minute or the specified time.
 crypto                Display flash files used for authentication.
 debug                 Display currently active debug log destinations and
 fault-finder          Show the fault-finder table.
 filter                Show a table of security filters or a filter detailed
                       information, if the filter's INDEX is specified.
 flash                 Show the versions of software stored in the Primary and
                       Secondary image locations.
 gvrp                  Show GVRP settings.
 history               Show previously entered commands.
 instrumentation       Show internal version-dependant counters for debugging.
 interfaces            Show port configuration and status information.
 ip                    Show the device IP configuration.
 port-security         Show a table describing port security settings.
 radius                Show RADIUS status and statistics information.
 rmon                  Show detailed rmon statistics for the ports.
 running-config        Show the switch running configuration.
 snmp-server           Display information on all SNMP communities and trap
                       receivers configured on the switch.
 snmpv3                Show configuration of SNMPv3 features.
 sntp                  Show configured time protocol and servers.
 spanning-tree         Show spanning tree status information.
 stack                 Show the stack status of this switch.
 system-information    Show global configured and operational system
 tacacs                Show TACACS status and statistics.
 tech                  Display output of a predefined command sequence used by
                       technical support.
 telnet                Show active incoming and outgoing sessions.
 terminal              Show logical window dimensions.
 time                  Show current date and time.
 timep                 Show configured time protocol and servers.
 trunks                Show a list of ports and the trunks to which they
 version               Show software version.
 vlans                 Show status information for all VLANs.

7. Saving Configuration Changes

The switch maintains two configuration files, the running-config and the startup-config.
The startup-config is saved in the flash-memory of the switch. It is the saved configuration und this one is used while booting the switch.
After boot-process is done, the startup-config is copied to the volatile memory und used as running-config. All configuration changes are made in the volatile memory. So you have a possibilty to try changes in the running-config. If you are satisfied that the changes are satisfactory, use the command

write memory

to make the changes permanent. If you wouldn't do so, the switch will not use the changed options when booting next time.
The following commands are useful to handle the two configuration files:

show config              Display a listing of the startup-configuration file of the switch.
show running config      Display a listing of the running-configuration file of the switch.
show config status       Compares the current running-configuration file to the startup-config
                         and determines whether there are updates or no.

To reset the switch to the Factory-Default configuration use the following command:

erase startup-config

If you want to make a backup of the configuration file to an other host you must have a tftp-Server running on this host. The following command saves the running-config to the host to the file "ProCurveConf"

copy running-config tftp ProCurveConf

To use a saved configuration from a remote host, try the following command:

copy tftp running_config ProCurveConf

The last command replaces the running-config with a saved config named "ProCurveConf" on host

8. Software reboot

To reboot from the switch with the command: