Getting Started with HP

This discussion covers HP router and Switch Simulations 💡 

Download Link

HP Network Simulator (Windows ) ➡ 

Dependencies (VM VirtualBox 2.4.24)

Important notes: To run this LAB, need to install Oracle VM VirtualBox 2.4.24 strictly (HP Comware Lab Simulator is not compatible with any other versions of Virtualbox)


Install HP Network Simulator(HNS) in your system then run HNS.

Step 1

1 2

Step 2


Step 3


Final Step

5 6 7

Creating and Debugging Projects

New Project

Open a new project from File > New drop-down. 1

The default simulated network project is imported and displayed in the configuration item editing area.


Now you need to modify the default simulated network project to create the desired devices. Before any further discussion, take a look into my physical topology diagram.


Untitled Diagram(17)

Now we will dig into the in detail configuration of physical topology vs logical topology framework mapping using Simulator Script. Once you analyze the topology framework, you need to have a fundamental idea of HP-IRF(Intelligent Resilient Framework ). For this time being you can also skip learning IRF and related stuffs.

HP IRF (A Virtualization Technology) 💡

[showhide type=”post” more_text=”show more>>>” less_text=”<<<show less”]

IRF is a virtualization technology that combines multiple physical devices (stackable and modular) into a single logical device
More about IRF at ➡ 

It’s an innovative technology that can actually give you a network that is fully resilient, yet is also simpler to set up and manage, faster to converge, and easier to scale. Let’s have a look.



With features like IRF, a common operating system (Comware), and single-pane-ofglass management via HP Intelligent Management Center (IMC), HP networking solutions can help customers simplify the design and operations of their networks.

Now we will start creating a simulation project using simulator script.

Simulated network layout


Procedure Summary

The activity consists of the following steps: • Verify that Oracle VM VirtualBox is installed • Install HP Network Simulator • Create the network simulation project – Open the HP Network Simulator GUI – Enter the device and link definitions – Save the project • Launch the network simulation project – On the GUI click the Run button – VirtualBox should open and show all 6 devices – In VirtualBox start only the 3 devices on your host • Configure the network – Configure the IRF-stack between the switches using the console – Configure the parameters for Telnet using the console – Complete the configuration using Telnet • Verify the configuration

Step 2: Create the simulation

Note As the simulation spans two PCs, the same project must be created on both PCs including the definition of all devices and links. • From the desktop: – Click on the HP Network Simulator icon to open the GUI. – Identify all the icons on the GUI

 HP Network Simulator Emulation Area

24 You will use this tool to create the devices and links shown

Devices, interfaces and links for group N


Comware Script

• Create the project by copying the contents of this file to the GUI. You can copy and paste the whole text or enter each line manually

HP Network Simulator HOL – Gr 1 – PCA – Comware Script
HP Network Simulator HOL – Gr 1 – PCA – Simulator Script
HP Network Simulator HOL – Gr 1 – PCB – Comware Script
HP Network Simulator HOL – Gr 1 – PCB – Simulator Script

26 • Save the project • Analyze the commands you have copied and notice the following: – Device models: -SIM1100: router with 3 GbE ports (2-4) and 4 Serial ports (5-8) and    Ethernet Management port (1) – stackable switch with 7 GbE ports (2-7) and 1 Ethernet Management port (1) 27 28

Step 3: Launch the simulation

• On the GUI, launch the project by clicking on the Run icon The VirtualBox Manager will open and the virtual machines of each device will be located under the hol_discover group 30 • Start the VMs of the devices on your PC – On PC A: start device11, device12 and device13 – On PC B: start device21, device22 and device23 • Watch the console window of each device and wait for the Started automatic configuration message • Click <Control-D> to break the retry cycle, then press <Enter> • To leave the VM window, press the right Ctrl key to release the cursor.

Configure IRF

IRF will allow your switches to behave as a single switching and routing entity. To configure IRF take the following steps 1. Change the device number of the second switch from 1 to 2 2. Configure the IRF-port on each switch 3. Reboot the first switch (it will become the IRF master device) 4. Reboot the second switch (it will become an IRF standby device) 5. Verify the IRF configuration and topology 31 • On the second switch (Device13 on PC A, and Device 23 on PC B) enter the following commands:

 system-view irf member 1 renumber 2 quit Save the configuration save 

Reboot the device


• On the first switch (Device12 on PC A, and Device 22 on PC B) create the IRF-port 1/1. Enter the following commands:

 system-view irf-port 1/1 port group int gig 1/0/2 quit int gig 1/0/2 undo shutdown quit save 

• On the second switch (Device13 on PC A, and Device 23 on PC B) create the IRF-port 2/2. Enter the following commands (notice that the device number has changed from 1 to 2 and the port numbering has changed from 1/0/n to 2/0/n):

 system-view irf-port 2/2 port group int gig 2/0/2 quit int gig 2/0/2 undo shutdown quit 
• Save the configuration

• Reboot the first switch (Device 12, 22) and after 15-20 seconds, reboot the second switch (Device 13, 23)


• When both devices have completed the reboot, on the first enter:

display irf display irf configuration display irf topology 
Logical topology after IRF configuration


Configure the parameters for Telnet management

• On the router and the IRF-stack, take the following steps to make Telnet available – Configure the Telnet interface and enable the Telnet server

system-view user-interface vty 0 63 authentication-mode none user-role network-admin quit telnet server enable 

– Configure the IP address of the Ethernet management interface.

Management IP addresses


Configure the network features

Figure : Network IP Configuration 34 35 • Configure the router – Open PUTTY and connect to the Router – On the desktop locate and open the HP Network Simulator – Comware Configuration text file Copy the router section from the file and paste it on the Telnet client – Save the configuration • Configure the IRF-stack – Open a second PUTTY session and connect to the Router – Copy the switch section from the file and paste it on the CLI – Save the configuration

Verify the configuration

• Verify that the all the interfaces are up.

display interface brief 

• Verify that all the routes have been established

display ip routing-table 

• Verify IP connectivity. From the console of the IRF-stack ping the loopback address of the IRF-stack on the other PC

ping 10.N.254.x 

• If ping fails, troubleshoot.

Learn More


Topology Diagram

Now see, how to implement a physical topology diagram into IRF Framework using Simulator Script.

Look at the diagram once again. Here we are going to connect a HP Switch to a router and a PC to the router itself. We have also specifies the Subnets.

Now we need to write a special script(called simulator script) into the HP Network Simulator Framework specs.

#**************************************************************** #host_ip = #********************************************************************* #device 1 device_id = 1 #device type is box ( 32-bit centralized router ) device_model = SIM1100 #board type board = SIM1101 : memory_size 512 #********************************************************************* #device 1 device_id = 2 #device type is box ( 32-bit centralized switch ) device_model = SIM2100 #board type board = SIM2101 : memory_size 512 #********************************************************************* #connect host interface device 1 : interface 1 <---> host : "VirtualBox Host-Only Ethernet Adapter" #connect two interface device 1 : interface 2 <---> device 2 : interface 2 #*********************************************************************
Now we will describe the Script step by step.
device_id = 1

It is the device identifier matrices. Here we have taken the Router as 1st device and Switch as 2nd and respectively we have given the device ID as 1 and 2.


device_model = SIM1100

It indicates the type of the device rather model of the device. Bellow here we have mentioned the list of Comware Models.

  • SIM1100 – 32-bit centralized router
  • SIM1200 – 64-bit centralized router
  • SIM1200 – 64-bit centralized router
  • SIM2200 – 64-bit centralized switch
  • SIM2100 – 32-bit centralized switch
  • SIM3100(MPU) – 32-bit distributed switch or router
  • SIM3200(MPU) – 64-bit distributed switch or router


board = SIM1101 : memory_size 512
board = SIM2101 : memory_size 512

This is the board type rather saying card types as we likely to use based on our topology requirements. There are so many card models available in Comware framework. Follow the bellow url to find the desired models. Here I will show a couple of card models used to implement our network diagram.

1. SIM1101 (For 32 Bit Centralized Router)

• Port 1: Network management port • Ports 2 to 4: GE ports • Ports 5 to 8: Serial ports

2. SIM1101 (For 32 Bit Centralized Router)

• Port 1: Network management port • Ports 2 to 8: GE ports Memory size is the RAM size of the VM, will be created after simulation. Min Size: 512 MB


#connect host interface device 1 : interface 1 <---> host : "VirtualBox Host-Only Ethernet Adapter" #connect two interface device 1 : interface 2 <---> device 2 : interface 2

10 This portion of the script describes how the interconnection would be done. Now again go little upward of this discussion a grab the Comware Board Type script portion. Brief review bellow

device 1: interface 1 >> M-E1/0/1 >>Port 1 of SIM1101
device 1: interface 2 >> GE0/0/2 >> Port 2 of SIM1101
device 2: interface 2 >> GE1/0/2 >> Port 2 of SIM 2102

The topology in detailed specs

Untitled Diagram(16)

UDP Tunnels

Note: We will discuss the UDP later on. For this time being we are just skipping the UDP tunnel portion. In fact the UDP Tunnel here automatically being created by the Comware HNS itself. 9

Debugging the Project

Now time to fire up the simulation. 2 Once we will complete the simulation, a VM Group VM Instances will automatically create. 3 As we previously mentioned the device id and the necessary functionalities on the script, the desired output being reflected on the VMware VM instances. 4 Two VM has been created on that specific group. Device-2 represents the Switch (SIM200 32 Bit Centralized Switch VM Instance) and device-1 represents the Router (SIM1100 32 Bit Centralized Router VM Instance) .  

Topology Setup and Device Configurations

Now simply run the two VM instances. After the VM come up, time to configure based on topology diagram requirement. Before that have a look at the Virtual Machines.

Device – 1 (Router)


Device – 2 (Switch)


Configuration on Router (Device – 1)
<HP> # telnet server enable # interface GigabitEthernet0/0/2 port link-mode route combo enable copper ip address # interface M-Ethernet1/0/1 ip address # line vty 0 4 authentication-mode none user-role level-15 user-role network-operator # <HP>
Configuration on Switch (Device – 2)
<HP> # telnet server enable # vlan 1 name Mgmt_Vlan # interface Vlan-interface1 ip address # interface GigabitEthernet1/0/2 port link-mode bridge port link-type trunk port trunk permit vlan 1 combo enable fiber # line vty 0 4 authentication-mode none user-role level-15 user-role network-operator # ip route-static 24 Vlan-interface1 # <HP>

Once we configure the Telnet on the HP router, we will be able to access it from any of the Telnet client (e.g. Putty, Teraterm). Do not forget to assign the IP Address of the Virtual Host Only Adapter of your PC. 12


Time to Verify Your Network

Output of the Switch


Output of the Router

8 Thank you for joining me in the discussion number 1 on HP. We will come back with UDP Tunnel and Comware HNS to GNS3 integration in HP and MISC(Miscellaneous) categories.

Related articles on Comware HP Network Simulator


  Previous Next  

Leave a Reply