HP Network Simulator: Lab 1 - Basic Management System
HP Network Simulator: Lab 1 - Basic Management System
HP Network Simulator
Lab 1 – Basic management system
Table of contents
Introduction .................................................................................................................................................................................... 2
Background information .............................................................................................................................................................. 2
Requirements ............................................................................................................................................................................ 2
Create ............................................................................................................................................................................................... 2
Configure: management interface ............................................................................................................................................ 3
Verify ............................................................................................................................................................................................ 3
Troubleshoot ............................................................................................................................................................................. 3
Configure: telnet ............................................................................................................................................................................ 3
Password .................................................................................................................................................................................... 4
Super password......................................................................................................................................................................... 4
Local scheme authentication ................................................................................................................................................. 5
Configure: TFTP client .................................................................................................................................................................. 6
Verify ............................................................................................................................................................................................ 6
Appendix A: Predefined user roles and permissions matrix ................................................................................................ 8
Technical Configuration Guide | HP Network Simulator lab 1
Introduction
This technical configuration guide (TCG) describes how to create, configure, and connect virtual Comware v7 devices using
the HP Network Simulator (HNS) tool.
This guide will teach readers how to:
• configure the management interface IP address
• configure and test Telnet
• configure and test TFTP client configuration
Background information
Comware v7 is a network operating system that runs on HP high-end network devices. The HNS is an ideal Comware v7
learning tool. With the HNS users can create:
• Fixed form-factor and modular routers
• Stackable and modular switches
• LAN and WAN links
This lab assumes that HNS has been downloaded and installed according to the user guide provided with the download.
Installation of the HNS tool is outside the scope of this TCG. This lab also assumes that the reader has read the HNS Basics
and configuration examples provided in the user guide.
Requirements
The following hardware is required:
• A PC with:
– CPU frequency: 3.0 GHz or more
– Memory: 4GB or more
– Hard Disk: 80GB or more
– Operating System: Windows 7/8 or Ubuntu (32-bit or 64-bit)
Notes
If running HNS on Windows, use the name “VirtualBox Host-Only Ethernet Adapter” for the Virtual Box Ethernet adapter.
If running HNS on Ubuntu, use the name “vboxnet0” for the Virtual Box Ethernet adapter.
Create
1. Copy paste the following within the HNS tool to create a switch.
#*************************************************************************
# Switch A
device_id = 1
# Device type: 32-bit centralized device
device_model = SIM2100
# Card model: SIM2101
board = SIM2101 : memory_size 1024
# Connect the Switch to the Virtual Box Ethernet adapter
device 1: interface 1 <--> host : "VirtualBox Host-Only Ethernet Adapter"
2
Technical Configuration Guide | HP Network Simulator lab 1
#*********************************************************************
2. Save and run the file.
3. A simulated switch will be created in VirtualBox Manager.
4. Start the switch.
Switch A 10.0.1.1 24
Verify
1. Verify that the IP address has been assigned correctly.
[switch] display ip interface brief
*down: administratively down
(s): spoofing (l): loopback
---------------------------------------------------------------------
Interface Physical Protocol IP Address Description
M-E1/0/1 up up 10.0.1.1 --
---------------------------------------------------------------------
2. Further verify the configuration by pinging between the PC and virtual switch.
A. On the PC use a command line window (cmd) in Windows or terminal in Ubuntu
ping 10.0.1.1
B. On the Switch
[switch] ping 10.0.1.101
Troubleshoot
If the Switch is unable to ping the PC, turn off the Windows Firewall and repeat the ping to see if the issue is resolved.
Configure: telnet
This section of the TCG will focus on configuring and securing telnet access on the virtual switch.
By default, Telnet login is disabled on the device. To control Telnet access to the device, configure login authentication and
user privilege levels/roles for Telnet users.
The following are authentication modes available for controlling Telnet logins:
• None - Requires no authentication. This mode is insecure.
• Password - Requires a password for accessing the CLI. If your password was lost, log in to the device through the console
port to re-set the password.
• Scheme - Uses the AAA module to provide local or remote authentication. You must provide a username and password
for accessing the CLI. If the password configured in the local user database was lost, log in to the device through the
3
Technical Configuration Guide | HP Network Simulator lab 1
console port and re-set the password. If the username or password configured on a remote server was lost, contact the
server administrator for help.
Password
1. Enable telnet globally on the switch
[switch] telnet server enable
Verify
1. Verify that the authentication mode and password have been configured correctly.
A. The column labeled Auth should have “P” listed, for Password authentication.
[switch] display user-interface vty 0
Idx Type Tx/Rx Modem Auth Int Location
+ 84 VTY 0 - P - 1/0
+ : Line is active.
F : Line is active and in async mode.
Idx : Absolute index of line.
Type : Type and relative index of line.
Auth : Login authentication mode.
Int : Physical port of the line.
A : Authentication use AAA.
N : No authentication is required.
P : Password authentication.
Note
This lab was verified using the Putty Telnet/SSH client.
Super password
Super password allows for the telnet user to switch to a higher user privilege level.
Note
See Appendix A for more details on user roles.
4
Technical Configuration Guide | HP Network Simulator lab 1
Verify
1. Verify that the role and password have been set properly
[switch] display user-interface vty 0
Idx Type Tx/Rx Modem Auth Int Location
+ 84 VTY 0 - P - 1/0
+ : Line is active.
F : Line is active and in async mode.
Idx : Absolute index of line.
Type : Type and relative index of line.
Auth : Login authentication mode.
Int : Physical port of the line.
A : Authentication use AAA.
N : No authentication is required.
P : Password authentication.
5
Technical Configuration Guide | HP Network Simulator lab 1
Verify
1. Verify the configuration by telnetting from the PC to the switch.
A. Open a terminal utility and telnet to 10.0.1.1
2. When prompted, login as user level3
A. username: level3
B. password: 12345
3. Logout and close the telnet session
<switch> quit
Note
It is assumed that readers have a TFTP server installed on their PC. Downloading, installing, and configuring the TFTP server
is outside the scope of this document.
Verify
1. From the TFTP server window, ensure the transmission finished successfully.
6
Technical Configuration Guide | HP Network Simulator lab 1
2. On the PC, navigate to the folder containing the diag.gz file, unzip the file, and open it using WordPad.
3. Ensure that the file contains the appropriate information.
7
Technical Configuration Guide | HP Network Simulator lab 1
network-operator Accesses the display commands (except display history-command all) for all features and resources in
the system.
level-n (n = 0 to 15) • level-0- Has access to the commands of ping. Tracert, ssh, telnet, and super. Level-0 access rights are
configurable.
• level-1- Has access to the display commands (except display history-command all) of all features and
resources in the system, in addition to all access rights of the user role level-0. Level-1 access
rights are configurable.
• level-2 to level-8, and level-10 to level-14- Have no access rights by default. Access rights are
configurable.
• level-9- Has access to all features and resources except RBAC, local users, file management, device
management, and the display history-command all command. If you are logged in with a local user
account that has a level-9 user role, you can change the password in the local user account. Level-
9 access rights are configurable.
• level-15- Has the same access rights as the role network-admin. Commands described as accessible
to network-admin are also accessible to the Level-15 user role.
8
Technical Configuration Guide | HP Network Simulator lab 1
HNS configurations are similar to those of the HP 5900 Switch Series. See the HP 5900 Switch Series manuals for
configuration guidance.
Learn more at
hp.com/networking/hns
© Copyright 2014 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. The only warranties for
HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as
constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.
Windows is a registered trademark of Microsoft Corporation in the United States and other countries.