HowTo configure a HP 2824 switch
From TNC@FHH
This document describes the configuration of a HP ProCurve 2824 switch for use with TNC@FHH. The connection to the switch in this documentation is made via the serial port by using a serial-to-usb-converter on the one hand, and via telnet on the other hand. For the connection via the serial-port, the program minicom is used under a Linux system.
Note: The steps A.0 to A.8 describe the procedure when using the serial-port of the switch, the step B.1 describes the use of a telnet-connection.
Step A.0: Prepare the system for the use of minicom (on Debian)
Step A.0.1: Download and install minicom
$ sudo aptitude install minicom
Step A.0.2: Identify the serial port
If you are using a serial-to-usb-converter, you can detect at which port your device is registered via typing
$ dmesg | grep usb
Remember that port, it will be used later on.
Step A.1: Start minicom
$ sudo minicom
Step A.2: Opening the dial-menu
Open the dial-menu by typing
CTRL+A D
(first press CTRL and A, then release both keys and press D)
Step A.3: Creating and configuring a new entry
Step A.3.1: Create a new entry
Create a new entry (add) or edit the one that is there by default (edit).
Step A.3.2: Filling in the name
Then fill in a name for this entry by pressing the A-key.
hp-switch
(the name can be choosen free)
Step A.3.3: Filling in the adress
Now you have to fill in the adress of the switch by pressing the B-key. If you are using a serial-to-usb-converter you may fill in
/dev/ttyUSBx
for example. (the 'x' at the end can be different if you are using multiple usb-devices at the same time)
Step A.3.4: Set the connection-properties
After that you can set the connection-properties by pressing the K-key. Now press
E 9600
and
Q 8-N-1
Step A.4: Opening the configuration-menu
Open the configuration-dialog by pressing
CTRL+A O
Step A.5: Set the default connection-properties
Step A.5.1: Opening the serial port-submenu
Then go to the submenu
serial port
Step A.5.2: Set the device
Press the A-key and type in the same as you did in Step 3.3
Step A.5.3: Set the connection-properties
Then press the E-key and then
E 9600
and
Q 8-N-1
Step A.5.4: Set the flow control
At the end you have to set the hardware and software flow control via the F- and G-key to
F no G yes
Step A.6: Saving the configuration to a file
In the configuation-menu (open it like in Step 5), choose
Saving configuration as...
The filename you type in here can be used to start minicom directly with this configuration. For example, if you name your configuration file
hp_switch
then you can start minicom with
$ sudo minicom hp_switch
Step A.7: Restart 'minicom'
Before you can dial the switch, you have to restart minicom. To do so, you have to press
CTRL+A X
Afterwards start minicom with your saved configuration.
$ sudo minicom hp_switch
for example.
Step A.8: Dialing the switch
Press
CTRL+A D
Now select your entry for the switch and chosse dial. If the connection doesn't seem to start after a few seconds, press
ESC
Now the connection should start and ask you for a password. You can type in the operator or the manager-password.
Step B.1: Connecting to the switch via telnet
If the switch has an ip adress, you can connect to it via typing
telnet 10.0.0.1
if the switch has the adress 10.0.0.1. Then you will be asked for a username and password. The default-setting should be that both are empty.
Step 1: Configuring the switch
At the switch command line, you can start configuring it by typing
configure
Now you can put in all configuration commands, one line after another. You can fill them in either by typing them manually or by inserting them from a given configuration-file. The last command of a complete configuration has to be
exit
which ends the configuration mode. All correct configuration commands will influence the current state of the switch, as they are written to the running configuration. If you want to make the changes persistent, you have to save them, so the switch loads them at the next reboot. This is done via the command
write configuration
Step 2: Logout & exiting the program
When you are finished, logout from the router via typing
logout
Step 2.A: Exiting minicom
Then hang up the connection by pressing
CTRL+A H
and then close minicom with
CTRL+A Q
Step 2.B: Exiting telnet
Stop telnet by typing
quit

