Sie sind auf Seite 1von 78

Basic Configuration of HP E-Series Switches

Module 7

Objectives

This module discusses fundamental aspects of HP E-Series switch management, including management options, management interfaces, commands, and tasks. After completing this module, you should be able to:

Identify management users for each HP E-Series switch and describe their different levels of switch access

List the management interfaces available on each HP E-Series switch and describe the advantages of using each interface

Explain how to establish a management session with each HP E-Series switch and begin using a management interface to configure the switch

Navigate through and perform fundamental switch management tasks within the CLI, menu interface, or Web browser interface on HP E-Series switches

Servicing HP Networking Products

Managing HP E-Series Switches

Managing HP E-Series Switches

Managing HP E-Series Switches Managing HP E-Series Switches 3 Rev. 10.31 Switches Formerly Branded 3Com •
Managing HP E-Series Switches Managing HP E-Series Switches 3 Rev. 10.31 Switches Formerly Branded 3Com •

3 Rev. 10.31

Switches Formerly Branded 3Com

Run the same base software as HP A-Series switches

Use the instructions in:

Module 4: Basic Configuration of HP A- Series Switches

Switches Formerly Branded HP ProCurve

Run versions of the HP switch software

Follow instructions outlined in this module

software • Follow instructions outlined in this module As you are aware, the HP E-Series includes

As you are aware, the HP E-Series includes two main groups of switches: those previously branded as 3Com switches and those previously branded as HP ProCurve switches. The switches that were formerly branded 3Com run the same base software as the A-Series switches, and include the following switches:

HP E4210 Switch Series

HP E4210G Switch Series

HP E4500 Switch Series

HP E4500G Switch Series

HP E4800G Switch Series

HP E5500 Switch Series

HP E5500G Switch Series

To access and manage these switches, use the instructions outlined in Module 4:

Basic Configuration of HP A-Series Switches.

The switches that were formerly branded HP ProCurve run versions of the HP switch software, and include the following switches:

HP E2510 Switch Series

HP E2520 Switch Series

HP E261X Switch Series

Basic Configuration of HP E-Series Switches

HP E2810 Switch Series

HP E291X Switch Series

HP E3500 Switch Series

HP E4200 vl Switch Series

HP E5400 zl Switch Series

HP E6200-24G-mGBIC yl Switch

HP E6600 Switch Series

HP E8200 zl Switch Series

In this module, these switches are referred to as HP switches, which run HP switch software. This module will focus on managing them.

Servicing HP Networking Products

HP E-Series Switch Software Images and Configuration Files

HP E-Series Switch Software Images and Configuration Files

Switch Software and Configuration Files

Software Images

Configuration Files

Management Options

CLI

Diagnostic Information

Software and File Management

Switch Replacement Menu Interface

Menu Interface

Web Browser Interface

4

Rev. 10.31

 Web Browser Interface 4 Rev. 10.31 Before you access the HP E-Series switches that run

Before you access the HP E-Series switches that run HP switch software, you should understand how these switches store software images and configuration files.

Basic Configuration of HP E-Series Switches

Managing Software Images on HP Switches

Managing Software Images on HP Switches

5 Rev. 10.31

Managing Software Images on HP Switches 5 Rev. 10.31 NVRAM (flash memory) Primary Image Secondary Image

NVRAM (flash memory)

Primary Image Secondary Image
Primary Image
Secondary Image

In Module 4: Basic Configuration of HP A-Series Switches, you learned that switches have boot ROM code and a software image. The boot ROM code loads first. After checking and initializing the hardware, the boot ROM loads the software image.

Note If you are servicing a switch in the E4210, E4210G, E4500, E4500G, E4800G, E5500, or E5500G Switch Series, use the instructions in Module 4: Basic Configuration of HP A-Series Switches. These switches run the same base software as the HP A-Series switches.

You also learned that HP periodically releases updates for many of its switches. These updates might provide new features or improve switch performance. Most of the time, software updates do not require a boot ROM update. If a boot ROM update is required, however, the release notes will notify you.

For some switches, HP provides the boot ROM update and the software image update as two separate files. For the HP switches described in this module, however, HP more often provides both the boot ROM update and the software image update in the same file

The HP switches described in this module have two flash memory areas where software images can be stored. Because the two areas can store different images, you can keep a copy of the previous software image as well as the latest software image. You can then reboot to the previous software image if necessary.

Servicing HP Networking Products

On these HP switches, the two software images are referred to as:

Primary image

Secondary image

Basic Configuration of HP E-Series Switches

Multiple Configuration Files on HP Switches

Multiple Configuration Files on HP Switches

– HP switches (except the E2810 Switch Series) store up to three configuration files:

Determine which configuration file the switch should use when booting with a particular software image Test a new configuration and ensure that the switch reboots with a trusted configuration if an unattended reboot occurs

Boot

command

Primary Boot Path

Primary Boot Path
an unattended reboot occurs Boot command Primary Boot Path Secondary Boot Path Startup-Config Options: File Memory
an unattended reboot occurs Boot command Primary Boot Path Secondary Boot Path Startup-Config Options: File Memory

Secondary Boot Path

Startup-Config Options:

File Memory slot 1

File Memory slot 2

File Memory slot 3

Running-config

By default, the switch uses the configuration file stored in memory slot 2.

6 Rev. 10.31

configuration file stored in memory slot 2. 6 Rev. 10.31 With the exception of the HP

With the exception of the HP E2810 Switch Series, switches that run HP switch software allow you to store up to three configuration files. When you save multiple configuration files on the switch, each configuration file is stored in one of three memory slots, which are numbered 1 to 3.

You will learn more about managing multiple configuration files later in this module.

Servicing HP Networking Products

Management Options

Management Options

Switch Software and Configuration Files

Management Options

Management Interfaces

Management Users

CLI

Diagnostic Information

Software and File Management

Switch Replacement Menu Interface

Menu Interface

Web Browser Interface

7

Rev. 10.31

 Web Browser Interface 7 Rev. 10.31 You can use one of three management interfaces—the CLI,

You can use one of three management interfaces—the CLI, the menu interface, or the Web browser interface—when you service the following HP switches:

HP E2510 Switch Series

HP E2520 Switch Series

HP E261X Switch Series

HP E2810 Switch Series

HP E291X Switch Series

HP E3500 Switch Series

HP E4200 vl Switch Series

HP E5400 zl Switch Series

HP E6200-24G-mGBIC yl Switch

HP E6600 Switch Series

HP E8200 zl Switch Series

Whichever management interface you decide to use, you should log in as a manager-level user if you need to make configuration changes on the switch.

Basic Configuration of HP E-Series Switches

Management Interfaces

Management Interfaces

– CLI

– Menu interface

– Web browser interface

– SNMP (not covered in this course)

8 Rev. 10.31
8 Rev. 10.31

The HP switches listed on the previous page support the following management interfaces:

CLI

Menu interface

Web browser interface

SNMP management interface (accessed through an SNMP management console)

The CLI is the most comprehensive interface to use. The menu interface is often useful when you are configuring many features at one time or if you are looking for an organized way to view and configure a subset of switch configuration options. For example, you can configure all the ports and view all the settings for the ports from one window in the menu interface.

The Web browser interface provides user-friendly switch access; some networking professional use this interface to monitor switch activity.

HP switches also support management through an SNMP management console. However, this course does not cover the SNMP management interface.

Servicing HP Networking Products

Advantages of Using the CLI

Advantages of Using the CLI

– Provides access to the complete set of management options – Enables quick, detailed system
Provides access to the complete set of management options
Enables quick, detailed system configuration
Provides help for determining available options
Supports out-of-band or Telnet access
Enter the ? Help key to
view a list of available
commands.
9
Rev. 10.31

The CLI offers several advantages:

It is the only interface that provides access to the complete set of management options.

It enables quick, detailed system configuration.

It is accessible out-of-band or in-band.

For novice users with limited experience, the CLI may at first seem the most daunting of the available management interfaces. As explained later in this module, help keys are available at each level, making it easier to use the CLI.

Basic Configuration of HP E-Series Switches

Advantages of Using the Menu Interface

Advantages of Using the Menu Interface

– Provides quick, easy management access to a menu-driven subset of switch configuration and performance features

– Allows you to access the switch out-of-band or in-band

– Allows faster navigation

Menu-driven

subset of

configuration

features

10 Rev. 10.31

Menu-driven subset of configuration features 10 Rev. 10.31 The menu interface provides several advantages for switch

The menu interface provides several advantages for switch management:

It provides quick and easy access to a menu-driven subset of configuration and performance features.

It allows you to manage the switch in-band or out-of-band.

It enables faster navigation through switch setup and configuration options.

It eliminates the need to know or memorize CLI commands.

The menu interface can be particularly useful when you are configuring many features at one time. Keep in mind, however, that it does not provide the same comprehensive set of commands as the CLI does.

Servicing HP Networking Products

Advantages of Using the Web Browser Interface

Advantages of Using the Web Browser Interface

– Familiar Web browser interface

– More visual cues, colors, status bars, device icons, and so on

– Easy navigation

11 Rev. 10.31

device icons, and so on – Easy navigation 11 Rev. 10.31 With the K.15.XX switch software

With the K.15.XX switch software release, the Web browser interface on the HP E3500, E5400 zl, E6200 yl, E6600, and E8200 zl Switch Series was updated. The Web agent introduced in this version is enabled by default and improves usability.

The Web browser interface offers users the following management advantages:

Familiar browser interface

More visual cues, colors, status bars, device icons, and so on

Easy navigation

The Web browser interface is usually not as comprehensive as the CLI interface. Still, its user-friendly format and mouse-click navigation scheme—characteristics consistent with commonly used Web browsers—can make it the preferred management interface of network experts and novices alike.

Basic Configuration of HP E-Series Switches

Management Users

Management Users

of HP E-Series Switches Management Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP
of HP E-Series Switches Management Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP

E3500-24G-PoE yl Switch

12 Rev. 10.31

Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP switches described in this module
Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP switches described in this module
Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP switches described in this module
Users Management Users E3500-24G-PoE yl Switch 12 Rev. 10.31 The HP switches described in this module

The HP switches described in this module offer two levels of switch management access:

Operator—grants the user read-only access to the switch

Manager—grants the user write access

When a network administrator logs in as an operator, he or she can only view information about the switch. The operator cannot make configuration changes.

When a network administrator logs in as a manager, he or she can make changes to the switch configuration.

Servicing HP Networking Products

User Authentication: Local

User Authentication: Local

– Management passwords are stored on the switch.

Local – Management passwords are stored on the switch. 1. Switch prompts for username and password.
Local – Management passwords are stored on the switch. 1. Switch prompts for username and password.
Local – Management passwords are stored on the switch. 1. Switch prompts for username and password.

1. Switch prompts for username and password.

2. Management user types username and password.

3. Switch validates username and password and grants appropriate access.

13 Rev. 10.31

and password and grants appropriate access. 13 Rev. 10.31 Both the operator and the manager level

Both the operator and the manager level can and should be password protected. There are two ways organizations can set up management user authentication: local or centralized. When you visit a customer site, ask the network administrator if the company is using local or centralized authentication for management users.

With local authentication, management usernames and passwords are stored locally on the switch. In this case, the switch compares the login credentials that the user enters with those that are configured and stored on the switch.

You can configure one password for each management user. You can configure one password for the manager level and one password for the operator level. All users with a particular access level share the same login credentials.

When a management user logs in, he or she receives the access-level assigned to the password. If the supplied password matches the operator level, the user is given read-only access. If the password matches the manager level, the user is given read- write access.

If the customer is using local authentication, simply ask for the password assigned to the manager user.

Basic Configuration of HP E-Series Switches

User Authentication: Centralized

User Authentication: Centralized

1. Switch prompts for username and password.

2. Manager or operator supplies username and password.

3. Switch forwards login credentials to server.

4
4
3 1 5
3
1
5

4. 4.

2
2

Server Server validates validates login login credential

credential against its database against and its send

database results to switch. and send results to

5.

Switch switch. grants appropriate access

5.

Switch level. grants appropriate access level.

14 Rev. 10.31

level. grants appropriate access level. 14 Rev. 10.31 With centralized authentication, usernames and passwords are

With centralized authentication, usernames and passwords are stored on a server (such as a RADIUS server or a TACACS+ server) that the switch can access through the network. A benefit of this approach is that each switch user can be given a unique username and password and granted appropriate switch access.

If the customer is using centralized authentication, you will need to ask for a username and password that provide manager-level access.

Servicing HP Networking Products

CLI

CLI

Switch Software and Configuration Files

Management Options

CLI

In-band or out-of-band management

Serial cables for HP switches

CLI Privilege Levels

CLI Tips and Shortcuts

Diagnostic Information

Software and File Management

Switch Replacement Menu Interface

Menu Interface

Web Browser Interface

15 Rev. 10.31

 Menu Interface  Web Browser Interface 15 Rev. 10.31 The following slides discuss the CLI

The following slides discuss the CLI management interface in detail. The CLI user- privilege levels are explained and several of the CLI fundamental commands are outlined.

Basic Configuration of HP E-Series Switches

Access to the CLI

Access to the CLI

HP E-Series switches Ethernet connection Direct serial connection to console port
HP E-Series
switches
Ethernet
connection
Direct serial connection
to console port

16 Rev. 10.31

Direct serial connection to console port 16 Rev. 10.31 If you decide to use the CLI,

If you decide to use the CLI, you can access it in-band or out-of-band. If you are replacing a switch, you will need to use one of the following:

Out-of-band—You can establish a console connection and begin configuring the switch. To establish a console connection, use the settings listed below in the terminal session software (such as Tera Term or Microsoft HyperTerminal):

9600 bps

8 data bits

No parity

1 stop bit

XON/XOFF flow control

In-band—By default, HP switches are configured to receive a dynamic IP address from a DHCP server. If the customer has a network DHCP server, you can connect the switch to the network and ask the network administrator who manages the DHCP server to tell you the IP address leased to the switch. You can then use Telnet or Secure Shell (SSH) to access the switch.

If you need to review out-of-band or in-band management, see Module 4: Basic Configuration of HP A-Series Switches.

Servicing HP Networking Products

Serial Cables for HP Switches

Serial Cables for HP Switches

DB-9 to DB-9 Serial Cable

RJ-45 to DB-9 Adapter Cable

(5184-1894)

(5188-3836)

HP E3500-24G-PoE yl Switch HP E3500-48G-PoE yl Switch HP E3500-24 Switch HP E3500-24-PoE Switch HP E3500-48 Switch HP E3500-48-PoE Switch HP E4200 vl Series Switch HP E5400 zl Series Switch HP E6200-24G-mGBIC yl Switch

HP E2510 Series Switch HP E2520 Series Switch HP E261X Series Switch HP E2810 Series Switch HP E291X Series Switch HP E3500-24G-PoE+ yl Switch HP E3500-48G-PoE+ ylSwitch HP E8200 zl Series Switch

17 Rev. 10.31

ylSwitch HP E8200 zl Series Switch 17 Rev. 10.31 The slide above lists the appropriate serial

The slide above lists the appropriate serial cable for the switches that run the HP software.

The switches in the left column support a DB-9 to DB-9 serial cable (5184-1894).

The switches in the right column support a RJ-45 to DB-9 adapter cable (5188-3836).

Basic Configuration of HP E-Series Switches

CLI Levels

CLI Levels

Context Configuration: HP Switch (vlan-10)# Global Configuration: Manager access HP Switch (config)# Manager: HP
Context Configuration:
HP Switch (vlan-10)#
Global Configuration:
Manager
access
HP Switch (config)#
Manager: HP Switch#
Operator: HP Switch>
Operator
access

18 Rev. 10.31

User

privileges

increase with

each level.

Rev. 10.31 User privileges increase with each level. As mentioned earlier, the HP switches described in

As mentioned earlier, the HP switches described in this module support two users:

operator and manager. The operator user has read-only access to the switch and can access only the operator level. The manager user, however, can access all the switch levels and make configuration changes to the switch.

To identify your current level in the switch CLI, check the switch prompt: it contains the name of the switch and a notation indicating the level.

Operator

The operator level is identified by the > in the switch prompt:

HP Switch>

At the operator level, you can view statistics by using the show command or access the menu interface. You can also use link-test and ping commands to perform Layer 2 and Layer 3 connectivity tests from the CLI or the menu interface. (You will learn how to access the menu interface in the next section in this module.)

Manager

Operator users equipped with the appropriate password can use the enable command to gain manager-level access and advance to the manager level. The manager level is identified by the # in the switch prompt. At the manager level, there is no notation enclosed in parentheses, as there will be if the user has moved to a higher level in the CLI. There is only the switch host name and the #, as shown below:

Servicing HP Networking Products

HP Switch#

Users at the manager level have access to all of the same commands as users at the operator level. In addition, a user at the manager level can clear statistics and make configuration changes. This includes writing, erasing, and copying configuration files and software images to and from the switch.

Global Configuration

The global configuration level is identified by the word config enclosed in parentheses:

HP Switch(config)#

The global configuration level can be accessed by users at the manager level. The global configuration level is used to manage specific aspects of switch operation.

Context Configuration

In the context configuration level, specific levels are represented by an associated word enclosed in parentheses. In the following prompt, for example, the switch CLI is at the VLAN 10 level.

HP Switch(vlan-10)#

The context configuration allows you to make changes to specific interfaces such as a VLAN or port interface.

Basic Configuration of HP E-Series Switches

Navigate the CLI Levels

Navigate the CLI Levels

If you access the switch as operator, you receive access to the operator level.

1. From the operator level, type enable to gain read-write access.

2. When prompted, enter the manager password.

3. Type configure terminal to enter the global configuration context.

4. Enter the context you want to configure.

5. Type exit to return to the previous privilege level.

HP Switch> enable 1 Password: ******

HP Switch# configure terminal

enable 1 Password: ****** HP Switch# configure terminal 2 3 4 5 HP Switch(config)# vlan 10
2
2
3 4 5
3
4
5

HP Switch(config)# vlan 10 HP Switch(vlan-10)# exit HP Switch(config)#

19 Rev. 10.31

HP Switch(vlan-10)# exit HP Switch(config)# 19 Rev. 10.31 To allow you to access the switch for

To allow you to access the switch for the initial configuration, the switch does not have default passwords for the management users. When you connect to a switch that is using factory default settings, the CLI prompt presents a default switch name followed by the number sign (#). The default name is based on the switch model. The # indicates that you are at the manager level, or read-write mode.

To help you understand how to navigate the switch CLI, however, the following steps are based on entering the switch as an operator user. In this example, the switch has been configured with a password for both the operator and the manager user. If you enter the password for the operator user, start with step 1. If you enter the password for the manager user, skip steps 1 and 2 and start with step 3.

1. From the operator level, enter:

HP Switch> enable

2. When you are prompted, enter the password for the manager level. If you do not know the manager password, you cannot access this level.

3. To move to the global configuration level, enter

HP Switch# configure terminal

4. Move to a more specific configuration level by entering the appropriate command. For example, enter the following command to move to the VLAN 10 level:

HP Switch(config)# vlan 10 HP Switch (vlan-10)#

Servicing HP Networking Products

Enter any command available at the VLAN 10 level or enter exit to return to the global configuration level.

The exit command is available at any level and takes you to the privilege level immediately below the current level. If you are in the operator level, the exit command terminates the management session.

Basic Configuration of HP E-Series Switches

CLI Help

CLI Help

– Display the commands available at the current CLI level:

HP Switch# help HP Switch# ?

Press Tab

– If you do not know the entire command, type the first few letters of the command and press Tab.

HP Switch# co[Tab] configure copy

HP Switch# co[Tab] configure copy
and press T a b . HP Switch# co[Tab] configure copy Switch displays a list of

Switch displays a list of commands beginning with those letters.

20 Rev. 10.31

of commands beginning with those letters. 20 Rev. 10.31 The CLI offers several help features designed

The CLI offers several help features designed to simplify management and improve productivity. Some of the most important are as follows:

You can view a list of the available commands by using one of the following help commands:

Enter help

Type ? at any context

Press the Tab key

You can also use ? to view the options for commands. For example, by typing show ? you can view a list of all the show command options. (When you use ? it is not necessary to press Enter.)

You can also use the Tab key to obtain context-sensitive completion of a partial command. For example, if you enter co<Tab> at the manager level, the CLI will indicate the available commands that start with co are configure and copy.

The CLI allows you to shorten commands to the minimum number of characters necessary for uniqueness. For instance, at the manager level, the CLI will execute the configure command after con is entered because it is the only command that begins with those characters.

Servicing HP Networking Products

Frequently Used CLI Commands

Frequently Used CLI Commands

Command

Explanation

Manager-Level**
Manager-Level**

clear

Reset system statistics counters

copy

Copy software image or configuration file Delete software image or configuration file Save changes to the startup-config

erase

write memory

setup

Access the quick setup in the menu interface

Operator-Level
Operator-Level

link-test

Test connectivity between the switch and another device

ping

menu

Access the menu interface

show

Display system information

*Many commands support multiple options. See the switch’s CLI reference guide for details. **Includes all operator-level commands

21 Rev. 10.31

**Includes all operator-level commands 21 Rev. 10.31 This table lists some of the more frequent ly

This table lists some of the more frequently used CLI commands in both the manager and operator level. For example, you can use the copy, erase, and write commands to manipulate software images and configuration files. The show command is particularly helpful for monitoring the switch and troubleshooting problems. (To view a list of options for the show command, type show ? at the switch prompt.)

Note

Each command has a number of possible options. You can consult the switch’s

CLI

reference guide for a complete list of command options, or access the switch

CLI

and use the ? help key to view a list of the available options.

The next section describes commands that can help gather diagnostic information about the switch.

Basic Configuration of HP E-Series Switches

Diagnostic Information

Diagnostic Information

Overview of Switch Software and Configuration Files

Management Options

CLI

Diagnostic Information

CLI show commands

Software and File Management

Switch Replacement

Menu Interface

Web Browser Interface

22 Rev. 10.31

 Menu Interface  Web Browser Interface 22 Rev. 10.31 Oftentimes, you will need to collect

Oftentimes, you will need to collect information about the switch so that you can determine exactly what is causing the problem. In Module 6: HP E-Series Switch Hardware, you learned how to use the switch’s LEDs to gather information. In this section, you will learn how to enter show commands to collect information that will help you evaluate the switch.

Servicing HP Networking Products

show version Command

show version Command

Display information about the switch’s software image:

HP Switch# show version Management Module 1: Active Image stamp:

/sw/code/build/btm(feb10_int_t4a)

 

Mar 22 2010 23:02:09

K.14.47

89

Boot Image:

Primary

Management Module 2: Standby

Image stamp:

/sw/code/build/btm(feb10_int_t4a)

 

Mar 22 2010 23:02:09

K.14.47

89

Boot Image:

Primary

23 Rev. 10.31

Active or Standby

Switch software

Primary or

Secondary Flash

Active or Standby Switch software Primary or Secondary Flash One of the first things you should

One of the first things you should do is check which software version the switch is running. You can then check the HP Networking web site (www.hp.com/networking) to determine the latest software image available for that switch model.

If the switch can store two software images, you should copy the software image to the secondary flash. You can then boot the switch to the secondary software image and ensure that configuration runs without any issues on the new software image. If there is a problem, you can boot the switch from the primary software image.

Note Later in this module you will learn how to update a switch’s software image. Depending on the hardware and software involved, other steps may be required. You should always read the release notes that accompany the updated software to make sure you understand the process completely.

This slide shows the output that is displayed when you enter show version on an E8212 zl switch. From the output shown here, you can see that the switch is booting to management module 1, the switch is running software version K.14.47, and the switch has been booted with the software image in its primary flash.

Basic Configuration of HP E-Series Switches

show config and show running-config Commands

show config and show running-config Commands

HP Switch# show config Startup configuration:

Command

Vlan 1 name “Default_VLAN” untagged 1-24,A1-A4 ip address dhcp-bootp exit

Configuration stored in non- volatile memory.

 

HP Switch# show running-config Running configuration:

Command

 

Vlan 1 name “Default_VLAN” untagged 1-24,A1-A4 ip address 10.1.1.8

Configuration stored in dynamic memory.

IP address changed since last boot

255.255.255.0

exit

24 Rev. 10.31

since last boot 255.255.255.0 exit 24 Rev. 10.31 You can use the show config command to

You can use the show config command to review the switch’s startup-config. The startup-config is saved configuration which is read into memory when the switch is booted. (This command corresponds to the display saved-configuration command on switches that were formerly branded H3C or 3Com.)

Sometimes it is useful to compare the startup-config with the running-config. You may be able to identify a new configuration change that is related to the problem. Or you can determine if changes need to be saved or not. (However, you can more easily see this information by entering the show config status command, as shown on the next page.)

This slide demonstrates the kind of information the switch might display when you enter these commands. (The slide shows only a portion of the startup-config and the running-config.) Note the difference in the IP addresses listed for each command. If the startup-config is not updated, the new IP address contained in the running-config will be lost once the switch reboots.

Use the show running-config command to display a switch’s current running- config. (This command corresponds to the display current-configuration command on switches that were formerly branded H3C or 3Com.)

Servicing HP Networking Products

show config status and show history Commands

show config status and show history Commands

– Compare the startup-config and the running-config:

HP Switch# show config status

– Display the last commands that were entered:

HP Switch# show history

4

exit

3

configure

2

show version

1

enable

25 Rev. 10.31

Recent command history

version 1 enable 25 Rev. 10.31 Recent command history As explained earlier, a switch stores two

As explained earlier, a switch stores two configuration files that may or may not be the same at any given moment: the running-config and the startup-config. It is important to know when the two files differ and in what way so that you can decide whether or not to save the changes to the startup-config.

You can use the show config status command to display a report, showing any differences between the switch’s running-config and startup-config. If the two configurations are different, the results will include a notice telling you that the running-config needs to be saved.

You can use the show history command to display the recently entered commands. The HP switches described in this module store up to 25 commands— numbered 1 to 25—in their history buffers. To scroll through the list of commands, press the up or down cursor arrows from the CLI prompt. Enter the show history command to see a complete list of buffer commands. (The show history command will be discussed in detail later in the module.)

To repeat a command in the buffer multiple times, enter the word “repeat” plus the command’s buffer number plus “count” and the number of times you want the command to repeat. For instance, the command repeat 6 count 1 will repeat the sixth command in the buffer once.

Basic Configuration of HP E-Series Switches

show tech Command

show tech Command

– Compile detailed information about the switch’s operation and configuration:

HP Switch# show tech HP Switch# show tech all

26 Rev. 10.31

Switch# show tech HP Switch# show tech all 26 Rev. 10.31 When you are troubleshooting complex

When you are troubleshooting complex problems, you may want to collect information about the switch and its configuration and send it to HP Technical Support for further analysis. To gather this information, enter the show tech command. The output for this command includes information such as the following:

Image stamp

Running configuration

Event log

Boot history

Port configuration and status

IP routes

VLAN information

GVRP support

Load balancing—static and dynamic trunks

To collect comprehensive information, you can use the show tech all command.

Servicing HP Networking Products

Because the reports generated by both commands are so extensive, you may want to capture the output and copy it to a text editor or word-processing program such as Microsoft Notepad, Microsoft Word, or Corel WordPerfect. You can then review details more easily.

Note Depending on the switch and the number of features configured on it, the output of the show tech all command can produce a large file.

Basic Configuration of HP E-Series Switches

Software and File Management

Software and File Management

Overview of Switch Software and Configuration Files

Management Options

CLI

Diagnostic Information

Software and File Management

Update the switch software Boot to primary or secondary image Save the configuration file

Switch Replacement

Menu Interface

Web Browser Interface

27 Rev. 10.31

 Menu Interface  Web Browser Interface 27 Rev. 10.31 This section describes several important management

This section describes several important management tasks: updating the switch software, booting the switch to the primary or secondary software image, and saving the current configuration file.

Servicing HP Networking Products

Manage Software Images and Configuration Files

Manage Software Images and Configuration Files

– Upgrade a switch image to a new version

– Back up a configuration file

– Copy a configuration file to the startup-config

Syntax: copy <source> <destination> [options]

Source*

Destination

Options

TFTP

TFTP

TFTP server’s IP address

USB**

USB

filename

running-config

flash

startup-config

startup-config

*These are not all of the source and destination options available. **Supported on the E2910 al, E3500 yl, E5400 zl, E6200 yl, and E8200 zl switches

28 Rev. 10.31

yl, E5400 zl, E6200 yl, and E8200 zl switches 28 Rev. 10.31 You use the copy

You use the copy command to manage software images and configuration files. For example, you can use the copy command to:

Upgrade a software image to a new version

Back up a configuration file

Copy a configuration file to the startup-config

The command syntax is as follows:

HP Switch (config)# copy < source> <destination> [options]

The slide above lists the available commands for the source, destination, and options portions of the command. The slides that follow show the exact syntax for:

Updating the software image from a TFTP server or a USB device

Copying configuration files to and from a TFTP server

Basic Configuration of HP E-Series Switches

Use a TFTP Server to Upgrade to a New Software Image

Use a TFTP Server to Upgrade to a New Software Image

– Download the updated software image to a TFTP server. – In the switch CLI, enter:

Edge_1(config)# copy tftp flash 10.1.1.9 k_14_60.swi secondary Edge_1(config)# boot system flash secondary

TFTP server

Image update File: k_14_60.swi
Image update
File: k_14_60.swi

IP Address:

10.1.1.9

29 Rev. 10.31

Primary Flash Secondary Flash
Primary Flash
Secondary Flash

The latest software images for all HP switches are available from the HP Networking Web site at http://h10144.www1.hp.com/customercare/support/software/ switches.htm. The site also includes a link for requesting email notification when new software images are released.

You first download the new software image as a compressed archive file and extract the software image. You then copy the file to a TFTP server or a USB drive for distribution to the switches.

Note Several freeware TFTP servers, such as SolarWinds TFTP server or Tftpd32, are available for download.

Enter the following command to update the software image:

Edge_1 (config)# copy tftp flash <TFTP server’s IP address> <software image file> [primary | secondary]

Hint When using the copy command, keep in mind that you first specify the source (the location from which you will copy the file) and then the destination (the location to which you will copy the file). For example, if you want to copy the file from a TFTP server to the switch flash, you would enter copy TFTP flash and then the other options that you want to include in the command.

Servicing HP Networking Products

Suppose the IP address of the TFTP server is 10.1.1.9, the software image is K_14_60.swi, and you want to update the secondary software image. You would enter:

Edge_1 (config)# copy tftp flash 10.1.1.9 k_14_60.swi secondary

Switches that have only one software image will automatically reboot after the new image is copied to the switch. For switches that have two software images, however, you must reboot the switch to activate the software image; the installation process does not force a reboot.

To force a warm reboot, use the boot command described later in this module.

Basic Configuration of HP E-Series Switches

Use a USB Device to Upgrade to a New Software Image

Use a USB Device to Upgrade to a New Software Image

– On the E2910 al, E3500, E5400 zl, and E8200 zl Switch Series and the E6200-24G-mGBIC yl switch:

Copy the updated software image to a USB device.

Insert the USB into the auxiliary port on the switch and enter:

Edge_1(config)# copy usb flash k_14_60.swi secondary Edge_1(config)# boot system flash secondary

30 Rev. 10.31

Edge_1(config)# boot system flash secondary 30 Rev. 10.31 The E6200-24G-mGBIC yl switch and the E2910 al,

The E6200-24G-mGBIC yl switch and the E2910 al, E3500, E5400 zl, E6600, and E8200 zl Switch Series support USB as a source or destination for the copy command. (The E3500, E5400 zl, and E6200-24G-mGBIC yl switches must be running software version K.12.01 and above. The E6600 and E8200 zl Switch Series were introduced after this version was released, so they have always supported USB with the copy command. The E2910 al Switch Series runs a different version of switch software and likewise has always supported USB with the copy command.)

To update the switch software using a USB device, copy the updated software image to the USB device and insert it into the switch as shown here. Then enter the copy command as shown above.

Servicing HP Networking Products

Boot from the Primary or Secondary Software Image

Boot from the Primary or Secondary Software Image

– To immediately reboot from the primary or secondary image:

Edge_1 (config)# boot system flash [<primary | secondary>]

(config)# boot system flash [<primary | secondary>] Specify primary or secondary 31 Rev. 10.31 In addition
(config)# boot system flash [<primary | secondary>] Specify primary or secondary 31 Rev. 10.31 In addition

Specify primary or secondary

31 Rev. 10.31

Specify primary or secondary 31 Rev. 10.31 In addition to immediately rebooting a switch to test

In addition to immediately rebooting a switch to test a new software image, you can use the boot system flash command to determine which image the switch will boot from in the future. This command is available from either the manager level or the global configuration level of the CLI.

Edge_1 (config)# boot system flash [primary | secondary]

Note You can test a new software version by booting the switch from an image held in secondary flash memory. After you verify the switch’s operation, you can copy the software image to the primary image and then reboot the switch from the primary image.

Basic Configuration of HP E-Series Switches

Copy the Running-Config to a TFTP Server

Copy the Running-Config to a TFTP Server

to a TFTP Server Copy the Running-Config to a TFTP Server TFTP server 10.1.1.20 copy running-config

TFTP server

10.1.1.20

copy running-config tftp 10.1.1.20 file_name.cfg

10.1.1.20 copy running-config tftp 10.1.1.20 file_name.cfg Recommendation: a separate folder for each switch 32 Rev.
10.1.1.20 copy running-config tftp 10.1.1.20 file_name.cfg Recommendation: a separate folder for each switch 32 Rev.
10.1.1.20 copy running-config tftp 10.1.1.20 file_name.cfg Recommendation: a separate folder for each switch 32 Rev.

Recommendation:

a separate folder for each switch

32 Rev. 10.31

Running-config

xx xx xx

xxxxx

xx

xx

xx

xxx x x

xx xx

xxx

Startup-config

xx x xx

xxx

xxx xxx

xx

xxxxx xx

xxx

Edge_1

xx x xx xxx xxx xxx xx xxxxx xx xxx Edge_1 You should always try to

You should always try to save the customer’s current configuration to a TFTP server. That way, if you need to replace the switch or revert to this configuration, you can simply load the configuration file.

To back up a switch’s current configuration, use the copy command as shown in the slide. Note that the backup copy has been named file_name.cfg. You can name the file whatever you choose. Just remember to separate multiple words in the name with the underscore rather than a space.

Also, when you are backing up multiple switches to a single TFTP server, HP recommends that you create a folder for each switch on the TFTP server, as shown here by the folders Core_1, Core_2, Edge_1, and Edge_2. Then, if you want to save a configuration file to a specific folder on the TFTP server—such as Edge_1—you would enter a command such as the following:

HP Switch# copy running-config tftp 10.1.1.20 edge_1\file_name.cfg

Servicing HP Networking Products

Copy the Startup-Config to a TFTP Server

Copy the Startup-Config to a TFTP Server

TFTP server 10.1.1.20 Recommendation: a separate folder for each switch
TFTP server
10.1.1.20
Recommendation:
a separate folder for each
switch

33 Rev. 10.31

Running-config

xx xx xx

xxxxx

xx xxx

xx

xx xx xx

xxx x x

Startup-config

xx x xx

xxx

xxx xxx

xx

xxxxx xx

xxx

Edge_1

xx x xx xxx xxx xxx xx xxxxx xx xxx Edge_1 Copying the startup-config can be

Copying the startup-config can be a good idea if you have made significant configuration changes to the running-config and you have not yet entered the write memory command to save those changes to the startup-config.

The command for copying the startup-config is nearly identical to the command for copying the running-config. Instead of specifying running-config, you would type startup-config.

Note In the example shown above, the filename for the backup copy of the startup- config includes the date of the backup and the initials of the administrator backing up the configuration. You can use any filename you choose, but it is a good idea to establish a standard for naming these files so that you can easily identify and track them.

Basic Configuration of HP E-Series Switches

Copy a Configuration File to a USB

Copy a Configuration File to a USB

On the switches that support USB devices:

1. Insert a USB device into the switch’s auxiliary port.

2. Enter one of the following commands:

Copy the startup-config.

Edge_1# copy startup-config usb 080808_tms.cfg

Copy the running-config.

Edge_1# copy running-config usb 080808_tms.cfg

34 Rev. 10.31

copy running-config usb 080808_tms.cfg 34 Rev. 10.31 To copy a configuration file (startup or running) to

To copy a configuration file (startup or running) to a USB, insert it into the USB port on the switch, and execute the appropriate command shown above. Note that as in previous examples, the command includes the file name and the initials of the person saving the file. This is to make switch management easier and is merely a recommendation.

Servicing HP Networking Products

Copy a Configuration File from a TFTP Server

Copy a Configuration File from a TFTP Server

TFTP server 10.1.1.20
TFTP server
10.1.1.20

Note: System must be rebooted after copy

35 Rev. 10.31

Running-config

xx xx xx

xxxxx

xx

xx

xx xx xx

xxx x x

xxx

Startup-config

xx x xx

xxx

xxx xxx

xx

xxxxx xx

xxx

Edge_1

xx x xx xxx xxx xxx xx xxxxx xx xxx Edge_1 To restore configurations from a

To restore configurations from a TFTP server, use the same copy command you would use to back up configurations. Only a few parameters are different.

In the example above, the first option—tftp—in the copy command indicates that

the configuration should be copied from the TFTP server and the second option— startup-config—indicates it should be copied to the switch’s startup-config. As before, the IP address specifies the TFTP server.

You can use this command to restore an earlier configuration to a switch or to install

a configuration on a new switch.

HP Switch# copy tftp start-up 10.1.1.20 <name of file>

The switch must then be rebooted.

Basic Configuration of HP E-Series Switches

Copy a Configuration File from a USB

Copy a Configuration File from a USB

To copy a configuration file from a USB drive:

1. Insert a USB device into the switch’s USB port. 2. Enter:

Edge_1# copy usb startup-config 080808_tms.cfg

36 Rev. 10.31

copy usb startup-config 080808_tms.cfg 36 Rev. 10.31 The slide above shows the command for copying a

The slide above shows the command for copying a configuration file that is stored on a USB drive to an HP switch. This command differs slightly from the command for copying a configuration file from a TFTP server to the switch. Again, keep in mind that the 080808_tms.cfg portion of the command is merely the name of the file in this example.

Note that you cannot copy the configuration file to the running-config.

Servicing HP Networking Products

Determine Which Configuration File the Switch Is Using

Determine Which Configuration File the Switch Is Using

– View which configuration file is used when switch is booted:

HP Switch (config)# show config files Configuration files:

id | act pri sec | name

---+-------------+-------------------

1

|

*

*

*

| config1

2

|

|

3

|

|

37 Rev. 10.31

* | config1 2 | | 3 | | 37 Rev. 10.31 As mentioned earlier in

As mentioned earlier in this module, you can store multiple configuration files on all the switches described in this module, except the E2810 Switch Series. To display the startup-config files that are stored on a switch and see how each file is being used, enter:

HP Switch (config)# show config files

You can interpret the display as follows:

id—Identifies the memory slot for each startup-config file available on the switch.

act—An asterisk ( * ) in this column indicates that the corresponding startup- config file is currently active.

pri—An asterisk ( * ) in this column indicates that the corresponding startup- config file is currently assigned to the primary boot path.

sec—An asterisk ( * ) in this column indicates that the corresponding startup- config file is currently assigned to the secondary boot path.

The slide shows the default configuration if the switch was shipped from the factory with software installed in both the primary and secondary boot paths: one startup- config file named config1 is used for both boot paths and is stored in memory slot 1. In this default configuration, memory slots 2 and 3 do not have configuration files.

Basic Configuration of HP E-Series Switches

Specify Which Configuration File the Switch Uses

Specify Which Configuration File the Switch Uses

– Specify which configuration file should be used on reboot:

HP Switch (config)# startup-default [primary | secondary] config <filename>

– Specify which configuration file should be used in reboot:

HP Switch (config)# boot system flash <primary | secondary> config <filename>

– Simply reboot the switch

HP Switch (config)# boot

38 Rev. 10.31

reboot the switch HP Switch (config)# boot 38 Rev. 10.31 To specify the default configuration file,

To specify the default configuration file, which is used when the switch is booted from either the primary or secondary software image, enter:

HP Switch (config)# startup-default config <filename>

To have the switch use a particular configuration file when it boots from the primary or secondary software image, enter the following command:

HP Switch (config)# startup-default [primary | secondary] <filename>

For example, if you want the switch to use the config4 file only when it boots from the secondary image, you would enter:

HP Switch (config)# startup-default secondary config4

You can also specify which configuration file the switch should use when you enter the boot system flash command to boot the switch from the primary or secondary software image:

HP Switch (config)# boot system flash <primary | secondary> config <filename>

If you simply want to reboot the switch, enter:

HP Switch (config)# boot

The switch reboots from primary flash by default unless you specify the secondary flash by entering either the boot system flash [primary | secondary] or boot set-default flash [primary | secondary] command. The boot command will reboot based on how these options have been selected.

Servicing HP Networking Products

erase startup-config Command

erase startup-config Command

– Return the switch to factory default settings.*

HP Switch# erase startup-config Configuration will be deleted and device rebooted, continue [y/n]? y

– Passwords are not erased unless the include-credentials command has been entered.

39 Rev. 10.31

include-credentials command has been entered. 39 Rev. 10.31 You can use the erase startup-config command to

You can use the erase startup-config command to return a switch to factory default settings. When you enter this command, you are prompted to confirm the action. If you do not want to erase the startup-config, press N and prevent the reboot. Otherwise, press Y to erase the startup-config and reboot the switch to factory default settings.

This command does not erase the management passwords unless you have previously entered the include-credentials command. When you enter this command, currently configured manager and operator usernames and passwords are included in and displayed in the running-config. (Other security settings are included as well.) For example, a manager username and password may be stored in the running-config file as follows:

password manager user-name George SHA1 2fd4e1c67a2d28fced849ee1bb76

If you then enter the erase startup-config command, the management user passwords are erased.

Basic Configuration of HP E-Series Switches

Monitor ROM Console

Monitor ROM Console

– Use the monitor ROM console to fix problems such as a corrupted software image.

Switch is booting

such as a corrupted software image. Switch is booting You have two seconds to select one
such as a corrupted software image. Switch is booting You have two seconds to select one

You have two seconds to select one of three Boot Profiles.

40 Rev. 10.31

seconds to select one of three Boot Profiles. 40 Rev. 10.31 If you are updating a

If you are updating a switch software image and a power failure occurs, it might corrupt the software image. If this happens and the switch does not automatically boot to the other software image stored on the switch, you may need to interrupt the boot process and start a Monitor ROM Console session.

You can then reset the switch, reboot the switch, or have the switch boot from the other software image.

Accessing the Monitor ROM Console

To access the Monitor ROM Console, you must manage the switch out-of-band: you must connect your workstation to the switch using the switch’s console serial port and cable. When the switch is powered on, you will see a Boot Profiles menu similar to the one in the slide above.

When this menu appears, you have approximately two seconds to select one of the following options:

Press 0 to access the Monitor ROM Console

Press 1 to ensure the switch boots from the primary software image

Press 2 to ensure that the switch boots from the secondary software image

Servicing HP Networking Products

Press 0 to begin a Monitor ROM Console session. You will see the following message and prompt:

Enter h or ? for help.

=>

When the switch is in a Monitor ROM Console session, all the LEDs (including Port LEDs) turn on and remain on until you end that session.

If you enter help, it lists the available commands, with a brief description of each. Below is a partial list of the commands:

do(wnload)

- Download via Xmodem

sp(eed) <baud> h(elp)

- Set a new baud rate - Display help screen

?

- Display help screen

id(entify) jp(jump) <1|2>

- Print out identification string - Jump to product code,

q(uit)

optional 1-primary, 2-secondary - Exit the monitor

boot

- Reboot the system

reset

- Reset the system

v(ersion)

- Display version information

Other commands require a more in-depth knowledge of switch operation and are beyond the scope of this course. The point to remember is this: if you are working with a switch that will not boot properly, you can access the switch’s Monitor ROM Console and boot to another software image.

Basic Configuration of HP E-Series Switches

Switch Replacement

Switch Replacement

Overview of Switch Software and Configuration Files

Management Options

CLI

Diagnostic Information

Software and File Management

Switch Replacement

Replacing a Switch: Backup Config Available Replacing a Switch: Back up Config from a Failed Switch Replacing a Switch: No Backup Config

Menu Interface

Web Browser Interface

41 Rev. 10.31

 Menu Interface  Web Browser Interface 41 Rev. 10.31 This section outlines the process for

This section outlines the process for replacing a switch, including the steps you will take to get the new switch functioning on the customer’s network.

Servicing HP Networking Products

Replace a Switch: Backup Config Available

Replace a Switch

Backup Config Available

Does the customer have a backup config?
Does the
customer have a
backup config?

Yes

42 Rev. 10.31

1. Install the new switch. 2. Access the CLI via a console session. 3. Configure
1. Install the new switch.
2. Access the CLI via a
console session.
3. Configure IP settings
(optional).
4. Update software
(optional).
5. Restore the backup
config.

As you learned in Module 4: Basic Configuration of HP A-Series Switches, you should first check if the customer has a good backup copy of the switch configuration. If there is a backup, you can easily get the switch operating on the network.

First, remove the old switch and install the new switch.

Next, access the CLI, using a console session.

The next step—configure IP settings—is optional, depending on if you will use a USB or TFTP server to update the software and restore the backup configuration. USB devices are supported on the E2910 al, E3500, E5400 zl, and E8200 zl Switch Series and the E6200-24G-mGBIC yl switch. With a USB device, an IP address is not required because you can simply insert the USB device into the switch’s USB port.

Basic Configuration of HP E-Series Switches

Assign an IP Address

Assign an IP Address

— Enter the global configuration context to define IP settings:

HP Switch# show running-config . vlan 1 untagged 1-24,A1-A4 ip address bootp-dhcp exit

.

.

HP Switch# config HP Switch(config)# vlan 1 ip address 10.1.1.3/24 HP Switch(config)# show running-config . vlan 1 untagged 1-26 ip address 10.1.1.3 255.255.255.0 exit

.

.

43 Rev. 10.31

The DHCP server is supplying VLAN 1’s IP address.

Assign a VLAN an IP address.

The new IP address and subnet mask are in dynamic memory only for now.

address and subnet mask are in dynamic memory only for now. If you are going to

If you are going to use a TFTP server to update the switch software and restore the backup configuration, you will need to assign the switch an IP address. (If you are using a USB drive, you can skip this step.)

This slide shows the command you use to configure a static IP address for a VLAN. Notice that by default the switch will get IP addresses for VLANs from a Dynamic Host Configuration Protocol (DHCP) server.

Also notice that you can enter the vlan ip address command from the global configuration level. You can also configure a static IP address by first entering the VLAN configuration level and then entering the ip address command, as shown below.

HP Switch (config)# vlan 1 HP Switch (vlan-1)# ip address 10.1.1.1/24

In the example above, the show running config command is issued first to review the switch’s initial IP address. A second show running config command reveals the updated IP address.

Servicing HP Networking Products

Assign a Default Gateway or Default Route

Assign a Default Gateway or Default Route

– For Layer 2 switches, configure a default gateway.

– For Layer 3, or routing, switches, set up a default IP route.

HP Switch# show running-config . ip default-gateway 192.168.115.1

.

.

Edge_1# config Edge_1(config)# ip default-gateway 10.1.1.1 Edge_1(config)# show running-config . ip default-gateway 10.1.1.1

.

.

Current default gateway

Configure the default gateway

New gateway*

*The default gateway should be in the same subnet as the default VLAN.

44 Rev. 10.31

be in the same subnet as the default VLAN. 44 Rev. 10.31 For switches that operate

For switches that operate at Layer 2, you must configure an IP default gateway:

HP Switch (config)# ip default-gateway <IP address>

Replace <IP address> with the IP address of the default gateway. In the example, the default gateway is 10.1.1.1.

If the switch is operating as a routing switch at Layer 3, however, it does not require

a default gateway. To ensure your management workstation’s traffic can be routed to and from the switch, you should use the ip route command to configure a default route.

HP Switch (config)# ip route 0.0.0.0/0 <Next hop>

Replace <Next hop> with the IP address of the nearest router. You will need to ask the customer for this IP address. For example, you might enter:

HP Switch (config)# ip route 0.0.0.0/0 10.1.2.2

(IP routing and default routes are beyond the scope of this course. For more information, see the management and configuration guide for the particular switch you are using.)

It is a good idea to check the running-config (show running-config) after you

configure a default gateway to verify that the information was entered correctly.

Basic Configuration of HP E-Series Switches

Save Configuration Changes

Save Configuration Changes

– To save configuration changes to the startup-config, enter:

HP Switch(config)# write memory

– This command can be executed from within manager, global configuration, and context configuration levels

45 Rev. 10.31

and context configuration levels 45 Rev. 10.31 You should save configuration changes by entering: HP Switch

You should save configuration changes by entering:

HP Switch (config)# write memory

Servicing HP Networking Products

Update the Software and Restore the Configuration

Update the Software and Restore the Configuration

– Update the switch software

HP Switch# copy tftp flash 10.1.1.9 k_14_60.swi secondary

HP Switch# copy usb flash k_14_60.swi secondary

– Restore the saved configuration

HP Switch# copy tftp startup-config 10.1.1.9 backup.cfg

HP Switch# copy usb startup-config backup.cfg

46 Rev. 10.31

HP Switch# copy usb startup-config backup.cfg 46 Rev. 10.31 Once the switch has an IP address,

Once the switch has an IP address, you can use a TFTP server to update the switch software and restore the saved configuration. Another option is to use a USB device to update the switch software.

You can instead use a USB device to copy the saved configuration to the switch’s startup-config.

Basic Configuration of HP E-Series Switches

Replace a Switch: Back up Config from Failed Switch

Replace a Switch

Back up Config from Failed Switch

Does the customer have 1 a backup config? No Can you access the 2 failed
Does the
customer have
1
a backup
config?
No
Can you
access the
2
failed switch
Yes
at all?

47 Rev. 10.31

1. Access the failed switch. 2. Back up the config. 3. Install the new switch.
1.
Access the failed switch.
2.
Back up the config.
3.
Install the new switch.
4.
Access the new switch’s CLI
via a console session.
5.
Configure IP settings
(optional).
6.
Update software (optional).
7.
Restore the config.

If the customer does not have a backup configuration, you should try to access the failed switch and attempt to save the configuration to a TFTP server or a USB drive. To copy the configuration to a TFTP server, use one of the following commands:

HP Switch# copy running-config tftp <IP address> <file_name>

HP Switch# copy startup-config tftp <IP address> <file_name>

Replace <IP address> with the IP address assigned to the TFTP server.

Replace <file_name> with a name that is meaningful to you.

To copy the configuration to a USB device, use one of the following commands:

HP Switch# copy running-config usb <file_name>

HP Switch# copy startup-config usb <file_name>

Replace <file_name> with a name that is meaningful to you.

You will then complete the steps outlined for replacing a switch with a saved backup configuration.

Servicing HP Networking Products

Replace a Switch: No Backup Config

Replace a Switch

No Backup Config

Does the customer have 1 a backup config?
Does the
customer have
1
a backup
config?
2
2

No

Can you access the failed switch at all?
Can you
access the
failed switch
at all?

No

48 Rev. 10.31

1. Install the new switch. 2. Access the new switch’s CLI via a console session.
1.
Install the new switch.
2.
Access the new switch’s CLI via a console session.
3.
Configure IP settings.
4.
Update software (optional).
5.
Identify the switch.
6.
Configure management passwords (optional).
7.
Save the config.

Sometimes you will not be able to back up the configuration. In such cases, you will install the switch, access the new switch’s CLI through a console session, and configure the IP settings the customer wants this switch to use. Review the commands for configuring IP settings, as described earlier in this module.

You may want to help the customer identify the switch by configuring a host name for it. For best practices, you should recommend that the customer change the default passwords on the switch as well. These commands are explained on the next few pages.

Note Keep in mind that the customer is responsible for the configuration of the switches you are servicing. For configuration help, the customer should rely on a reseller or purchase an HP Care Pack. (For information about care packs, see

http://h10144.www1.hp.com/customercare/services/carepacks/care-

packs.htm.

Finally, you should save your configuration changes.

Basic Configuration of HP E-Series Switches

Identify the Switch

Identify the Switch

– You can configure:

A unique host name Contact information, such as phone extension or email address Physical location information, such as building and wiring closet

Global configuration context

as building and wiring closet Global configuration context HP Switch 3500yl-24G(config)# hostname Edge_1

HP Switch 3500yl-24G(config)# hostname Edge_1 Edge_1(config)# snmp-server location data center Edge_1(config)# snmp-server contact Admin-555.5555

center Edge_1(config)# snmp-server contact Admin-555.5555 Prompt reflects new switch name 49 Rev. 10.31 When you are

Prompt reflects new switch name

49 Rev. 10.31

Admin-555.5555 Prompt reflects new switch name 49 Rev. 10.31 When you are managing multiple switches, you

When you are managing multiple switches, you may want to assign a host name to each switch so that you can easily identify it. You can also specify location and contact information to help other network administrators or technicians who may not be familiar with the account.

The slide above outlines the steps for naming a switch and specifying contact information. Notice that you enter the global configuration context to configure the host name and the location and contact information.

As mentioned earlier, when you make changes, they are dynamically executed and stored in the running-config, which is held in volatile memory and does not survive a reboot.

Servicing HP Networking Products

Configure an Operator Password

Configure an Operator Password

– Protect the switch operator’s read-only access by assigning an operator password:

1
1

HP Switch# configure terminal HP Switch(config)# password operator New password: ******** Please retype new password: ******** HP Switch(config)#

2 3
2
3

50 Rev. 10.31

password: ******** HP Switch(config)# 2 3 50 Rev. 10.31 You should immediately set a password for

You should immediately set a password for both a manager password and an operator password, as described later in this module.

After you configure these passwords, users receive access privileges based on which password they enter when they log in. If they enter the operator password as shown in the slide, they enter the operator level of the CLI and cannot move to the manager level unless they enter the manager password.

If a user logs in to the switch using the manager password, however, that user immediately receives access to the manager level (completely bypassing the operator level).

If you keep the default setting for management users—no passwords—users will always receive access to the manager level when they access the CLI.

You should configure a password for the operator management user. Complete the following steps:

From the manager level in the CLI, enter:

HP Switch# configure terminal

Enter the command to configure the operator password:

HP Switch(config)# password operator

When you are prompted, enter the password and then confirm it.

Basic Configuration of HP E-Series Switches

Notice that you must be at the global configuration level to enter the password command. If you try to enter this command at the manager level, (HP Switch#), the switch will not recognize the command.

Servicing HP Networking Products

Configure a Manager Password

Configure a Manager Password

– Protect read-write access to the switch by assigning a manager password:

HP Switch(config)# password manager New password: ******** Please retype new password: ******** HP Switch(config)#

1 2
1
2

51 Rev. 10.31

password: ******** HP Switch(config)# 1 2 51 Rev. 10.31 To assign a manager password from the

To assign a manager password from the CLI, complete these steps:

From the global configuration level, enter:

HP Switch(config)# password manager

When you are prompted, enter the password and then confirm it.

To save configuration changes to the startup-config, enter:

HP Switch(config)# write memory

You can enter this command from the manager, global configuration, and context configuration levels.

Basic Configuration of HP E-Series Switches

Menu Interface

Menu Interface

Switch Software and Configuration Files

Management Options

CLI

Diagnostic Information

Software and File Management

Switch Replacement

Menu Interface

Accessing the Menu as operator or manager

Navigate the Menu Interface

Getting Help

Using the Full Menu Interface

Web Browser Interface

52 Rev. 10.31

Full Menu Interface  Web Browser Interface 52 Rev. 10.31 Although the CLI is the most

Although the CLI is the most comprehensive management interface, the menu interface can be a convenient way to configure switch settings. The next section examines the menu interface and provides instructions for configuring the switch through this management interface.

Servicing HP Networking Products

Access the Menu Interface

Access the Menu Interface

– Available either in-band or out-of-band. – From the CLI, enter:

HP Switch# menu

53 Rev. 10.31

– From the CLI, enter: HP Switch# menu 53 Rev. 10.31 As mentioned earlier, the HP

As mentioned earlier, the HP switches described in this module offer a menu interface, which provides you with a subset of switch CLI commands in an easy-to-use menu format. You can access the menu interface either in-band or out-of-band. Simply access the CLI and enter the menu command from the manager level.

The menu interface enables you to quickly configure key switch parameters, including:

Manager and operator passwords

System parameters

IP settings

Time protocol

Ports

Trunk groups

A network monitoring port

Spanning Tree operation

SNMP community names

IP authorized managers

VLANs (virtual LANs) and GVRP

Basic Configuration of HP E-Series Switches

The menu interface also makes it easy to:

View switch statuses and counters

Examine Event Log information

Update switch software

Reboot the switch

Servicing HP Networking Products

Operator-Level or Manager-Level Access

Operator-Level or Manager-Level Access

54

Rev. 10.31
Rev. 10.31

This slide shows the E8212 zl switch’s Main Menu window when you log in as an operator and when you log in as a manager. The Main Menu windows for other HP switches will be similar.

The Main Menu window at the manager level offers considerably more options for the user than it does for operator level. At the manager level, you can make configuration changes; at the operator level, however, you cannot. At the operator level, you can view the switch’s status and counters and event log.

At the manager level, you can access:

1. Status and Counters—Selecting this option grants you access to display windows, showing switch information, port status and counters, port and VLAN address tables, and spanning tree information.

2. Switch Configuration—Selecting this option grants you access to configuration windows for displaying and changing the current configuration settings.

3. Console Passwords—Selecting this option grants you access to the window used to set or change manager-level and operator-level passwords and to delete manager and operator password protection.

4. Event Log—Selecting this option allows you to monitor switch events and view error messages, which are useful for checking and troubleshooting switch operation.

Basic Configuration of HP E-Series Switches

5. Command Line (CLI)—Selecting this option returns you to the CLI interface at the same privilege level (manager or operator) you are operating at within the menu interface.

6. Reboot Switch—This option allows you to perform a warm reboot of the switch and clear most temporary error conditions. Rebooting the switch also resets the network activity counters to zero and the system up-time to zero. (A reboot is required to activate a change in the VLAN Support parameter.)

7. Download OS—This option allows you to download a new software image to the switch.

8. Run Setup—Selecting this option grants you access to the Switch Setup window so that you can quickly configure basic switch options (such as IP addressing, default gateway, logon default interface, spanning tree, and so on).

9. Stacking—Selecting this option allows you to configure stacking options with supporting switches.

10. Logout—This option closes the menu interface and console session, and terminate Telnet access to the switch

Servicing HP Networking Products

Navigate the Menu Interface

Navigate the Menu Interface

Title identifies menu window

Options settings Actions line Help Navigation instructions 55 Rev. 10.31
Options settings
Actions
line
Help
Navigation instructions
55
Rev. 10.31

Menu interface windows include these elements:

Option fields or read-only information such as statistics

Navigation and configuration actions, such as Save, Edit, and Cancel

Help line to describe navigation options, individual options, and read-only data

To navigate the menu interface, you use arrow keys. To make changes, use the arrow key to move to the Edit action and press Enter. This puts the cursor in the upper half of the window, where you can type the system name. Continue using the arrow keys to move to other options on the window.

Some options allow a limited list of settings. For example, in the case of the IP Config option, the choices are:

DHCP/Bootp

Disabled

Manual

Use the spacebar to cycle through the choices. If you want to configure a static IP address, you must select Manual.

Basic Configuration of HP E-Series Switches

Getting Help

Getting Help

1. A selected item in the Actions line means the Actions line is active.

2. The Help line provides a brief description of the highlighted Action item.

3. Press H or select Help and press Enter to display Help for the options.

3 1 2
3
1
2

56 Rev. 10.31

Enter to display Help for the options. 3 1 2 56 Rev. 10.31 In most windows,

In most windows, there is a Help option in the Actions line. Whenever an item in the Actions line is highlighted, press H, and a separate help window is displayed.

The Help line under the Actions items describes the currently selected action or data field.

Servicing HP Networking Products

Select the Switch Configuration Option

Select the Switch Configuration Option

57

Rev. 10.31
Rev. 10.31

To begin configuring the switch from the menu interface, select the Switch Configuration option from the Main Menu.

Note that some submenus are available to manager-level users only. For example, the Switch Configuration Menu allows you to modify the IP configuration, port settings, and other items only if you have manager-level access.

Basic Configuration of HP E-Series Switches

Port Configuration

Port Configuration

HP E-Series Switches Port Configuration Port Configuration 58 Rev. 10.31 To configure ports on the switch,

58 Rev. 10.31

Switches Port Configuration Port Configuration 58 Rev. 10.31 To configure ports on the switch, select Port/Trunk

To configure ports on the switch, select Port/Trunk Settings from the Switch Configuration Menu shown on the previous page. When the Switch Configuration – Port/Trunk Settings window is displayed, note again the navigation instructions included at the bottom of the window.

You can quickly enable or disable any of the switch’s ports. Simply select the Edit option in the Actions line and press Enter. Then, use the arrow keys to move to the port you want to edit and press the spacebar to toggle through available settings.

Servicing HP Networking Products

Switch Setup Window

Switch Setup Window

Manager

password

Switch Setup Window Switch Setup Window Manager password Default gateway IP address for management VLAN 59
Switch Setup Window Switch Setup Window Manager password Default gateway IP address for management VLAN 59

Default

gateway

Window Switch Setup Window Manager password Default gateway IP address for management VLAN 59 Rev. 10.31

IP address for management VLAN

59 Rev. 10.31

Default gateway IP address for management VLAN 59 Rev. 10.31 The Switch Setup window allows you

The Switch Setup window allows you to quickly complete the initial configuration of the switch. You can define basic options, including IP settings, passwords, a host name, location, and contact information for the switch. To access this window, enter the setup command from the CLI or select Run Setup from the Main Menu.

The Switch Setup window provides a convenient method for configuring several switch features at one time. From this window, you can:

Specify a host name and administrator contact information

Select a default interface—either the CLI or the menu interface

Configure an IP address, subnet mask, and default gateway of the management VLAN

Set user passwords

Enable Spanning Tree

To navigate the Switch Setup window, use the arrow keys to move among the various options; press the spacebar to toggle through options; and finally, press Enter to move to the Actions line. These same instructions are listed in the Help lines at the bottom of the window.

In the slide above, the cursor is placed within the Actions line. You can use the arrow keys to select the Edit option that is located within the Actions line. After you select the Edit option, press Enter. You can use the arrow keys to move the cursor from option to option.

Basic Configuration of HP E-Series Switches

Reboot Required

Reboot Required

– The Menu interface displays an asterisk (*) next to items that have been modified and require a reboot

next to items that have been modified and require a reboot Reminder to reboot the switch
next to items that have been modified and require a reboot Reminder to reboot the switch

Reminder to reboot the switch to activate configuration changes

60 Rev. 10.31

the switch to activate configuration changes 60 Rev. 10.31 If you use the menu interface to

If you use the menu interface to make configuration changes that require a reboot, the switch displays an asterisk (*) next to the menu item in which the change has been made. For example, if you change and save the setting for the maximum number of VLANs the switch will support, an asterisk is displayed next to the VLAN Support option in the VLAN Menu window. An asterisk is also displayed next to the Switch Configuration option in the Main Menu.

To activate changes that are marked with an asterisk, go to the Main Menu and select the Reboot Switch option.

Note Executing the write memory command in the CLI does not affect pending configuration changes indicated by an asterisk in the menu interface. That is, only a reboot from the menu interface or entering a boot or reload command from the CLI will activate a pending configuration change indicated by an asterisk in the menu interface.

Servicing HP Networking Products

Updating Software

Updating Software

Select Download OS from the Main Menu Rev. 10.31
Select Download OS
from the Main
Menu
Rev. 10.31

Confirm the download

61

You can use the menu interface to upload switch software from a TFTP server. Before you begin the update process, check the following:

A software version for the switch has been stored on a TFTP server accessible to the switch. (Again, software files and updates are available at www.hp.com/networking.)

The switch is properly connected to your network and has already been configured with a compatible IP address and subnet mask.

The TFTP server is accessible to the switch via IP.

You should also:

Obtain the IP address of the TFTP server in which the software file has been stored.

If VLANs are configured on the switch, identify the VLAN in which the TFTP server is operating.

Determine the name of the software file stored in the TFTP server for the switch (for example, E0820.swi).

To download the software, complete the following steps:

1. In the console Main Menu, select Download OS to display the window in the slide above. (The term OS or operating system refers to the switch software.)

2. Press E (for Edit).

Basic Configuration of HP E-Series Switches

3. Ensure that the Method field is set to TFTP (the default).

4. In the TFTP Server field, type the IP address of the TFTP server in which the software file has been stored.

5. In the Remote File Name field, type the name of the software file. If you are using a UNIX system, remember that the filename is case-sensitive.

6. Press Enter, then X (for eXecute) to begin the software download. A “progress” bar indicates the progress of the download. When the entire software file has been received, all activity on the switch halts and you will see Validating and writing system software to FLASH

7. After the primary flash memory has been updated with the new software, you must reboot the switch to implement the newly downloaded software. Return to the Main Menu and press 6 (for Reboot Switch). You will then see this prompt:

Continue reboot of the system? : No

8. Press the spacebar once to change No to Yes and press Enter to begin the reboot.

Note When you use the menu interface to update switch software, the new image is always stored in primary flash. Also, using the Reboot Switch command in the Main Menu always reboots the switch from primary flash. Rebooting the switch from the CLI gives you more options.

After you reboot the switch, confirm that the software updated correctly:

1. From the Main Menu, select Status and Counters; from the Status and Counters menu, select General System Information.

2. Check the field entitled Software revision to confirm the download.

Servicing HP Networking Products

Web Browser Interface

Web Browser Interface

Overview of Switch Software and Configuration Files

Management Options

CLI

Diagnostic Information

Software and File Management

Switch Replacement

Menu Interface

Web Browser Interface

Access the Web Browser Interface

Switch Status

Management Tasks

62 Rev. 10.31

 Switch Status  Management Tasks 62 Rev. 10.31 The final section of this module examines

The final section of this module examines the Web browser interface. You will learn how to interpret display presentations and perform fundamental management tasks using this management interface.

Basic Configuration of HP E-Series Switches

Access the Web Browser Interface

Access the Web Browser Interface

– Requirements:

The switch’s Web agent is enabled by default.

The switch has an IP address.

Java applets are enabled on the Web browser.

– Enter the switch’s IP address as the URL:

Web browser. – Enter the switch’s IP address as the URL: 10.1.1.9—the switch’s IP address 63
Web browser. – Enter the switch’s IP address as the URL: 10.1.1.9—the switch’s IP address 63

10.1.1.9—the switch’s IP address

63 Rev. 10.31

the URL: 10.1.1.9—the switch’s IP address 63 Rev. 10.31 Although the Web browser interface provides limited

Although the Web browser interface provides limited functionality, it can be a good monitoring tool and simplify basic configuration tasks.

With the K.15.XX switch software release, the Web browser interface on the following HP switches is updated: E3500, E5400 zl, E6600, and E8200 zl Switch Series and the E6200-24G-mGBIC yl switch. The Web agent included in K.15.XX and above improves usability, making this interface even easier to navigate and use.

To enable access to the Web browser interface, the switch must have an IP address. In addition, you must enable Java applets on your Web browser.

Once these requirements are met, you can open a Web browser window and enter the switch’s IP address as the URL.

Servicing HP Networking Products

View the Switch Status

View the Switch Status

Products View the Switch Status View the Switch Status 64 Rev. 10.31 This slide displays the

64 Rev. 10.31

View the Switch Status View the Switch Status 64 Rev. 10.31 This slide displays the updated

This slide displays the updated Web agent on the HP E3500, E5400 zl, E6600, and E8200 zl Switch Series and the E6200-24G-mGBIC yl switch. If these switches are running software version K.14.XX and below, the Web browser interface will have a different appearance, but it will still be easy to navigate. The Web browser interface will also differ in appearance if you are providing support for other HP switches.

The Web browser interface has a left navigation bar and tabs on the top of most windows. Experienced Web users should feel comfortable with this layout, making the interface easy to use.

As mentioned earlier, one of the advantages of using the Web browser interface is its graphical display, which allows you to more easily monitor switches. Although this course cannot show you every graphical display you might encounter when using the Web browser interface, it can give you an example of the type of displays that are available and help you interpret it.

For example, the Home > Status window allows you to see at-a-glance information such as the system uptime, the CPU utilization, the switch software version, the VLANs configured on the switch, the modules installed in the switch, and the active ports. You can also quickly access alert logs and scroll down to view in-depth information about ports.

Basic Configuration of HP E-Series Switches

Configure Usernames and Passwords

Configure Usernames and Passwords

Usernames and Passwords Configure Usernames and Passwords 65 Rev. 10.31 To configure management user names and

65 Rev. 10.31

Passwords Configure Usernames and Passwords 65 Rev. 10.31 To configure management user names and passwords, click

To configure management user names and passwords, click Security > Device Passwords.

As you can see, this window allows you to configure both usernames and passwords. On these switches, the manager and operator passwords are used to control access to all switch interfaces.

To configure a username and password, click Change on the right side of the window. The window expands as shown above, allowing you to configure a username, password, and access level.

After you make your changes, click Save to save them to the startup-config.

Servicing HP Networking Products

Back Up the Configuration or Update the Switch Software

Back Up the Configuration or Update the Switch Software

Back Up the Configuration or Update the Switch Software 66 Rev. 10.31 To back up the

66 Rev. 10.31

Configuration or Update the Switch Software 66 Rev. 10.31 To back up the customer’s current configuration

To back up the customer’s current configuration or update the switch software, click System > Updates/Downloads.

To save out the configuration, click Download under Configuration File.

If you want to update the switch software, download the latest version from the HP Networking Web site and copy it to your management workstation. Then, click Update under Software Image and follow the prompts to complete the update.

Basic Configuration of HP E-Series Switches

Troubleshooting

Troubleshooting

of HP E-Series Switches Troubleshooting Troubleshooting 67 Rev. 10.31 The WebAgent provides several troubleshooting

67 Rev. 10.31

Switches Troubleshooting Troubleshooting 67 Rev. 10.31 The WebAgent provides several troubleshooting options. In

The WebAgent provides several troubleshooting options. In the left navigation bar, expand Troubleshooting to view these options.

If you click Configuration Report, you can view the switch’s running-config. You can then review the list of configured parameters and possibly identify a problem.

You can click Ping/Link Test to verify network connectivity. You can use ping (ICMP echoes) to test connectivity between the switch and another device—whether that device is on the same subnet or a different subnet.

You can use a link test to verify connectivity between the switch and a designated network device on the same subnet (or VLAN). During the link test, IEEE 802.2 test packets are sent to the designated network device in the same VLAN or broadcast domain. The remote device must be able to respond with an 802.2 Test Response Packet.

Servicing HP Networking Products

Summary

Summary

– Switch software and configuration files

– HP management interfaces:

CLI: most comprehensive and powerful

Menu: subset of CLI commands in a menu-driven format

Web browser: user-friendly browser presentation of management features

– HP switch management users:

Operator

Manager

– Managing switches

68 Rev. 10.31

Operator • Manager – Managing switches 68 Rev. 10.31 In this module you learned how software

In this module you learned how software and configuration files are stored on the following HP switches:

HP E2510 Switch Series

HP E2520 Switch Series

HP E261X Switch Series

HP E2810 Switch Series

HP E291X Switch Series

HP E3500 Switch Series

HP E4200 vl Switch Series

HP E5400 zl Switch Series

HP E6200-24G-mGBIC yl Switch

HP E6600 Switch Series

HP 8200 zl Switch Series

You also learned about the three management interfaces available on these switches and the two default management users. You then learned how to gather diagnostic information, perform software updates, manage configuration files, and replace a switch (including configuring the initial settings).

Finally, you took a quick look at the menu and Web browser interfaces.