Integrating the HP Network Simulator with GNS3 A guide for installation and operation of multivendor virtual labs with VirtualBox and GNS3 Prepared by: Nick Channing Cain Rd, Amen Corner Bracknell, Berkshire, RG12 1HN Document Id: XXX Document Version: v0.5 Date Prepared: 6th June 2014
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Integrating the HP Network Simulator with GNS3
A guide for installation and operation of multivendor virtual labs with VirtualBox and GNS3
1.1 PURPOSE..............................................................................................................................1.2 HOW IT WORKS....................................................................................................................1.3 APLICABILITY........................................................................................................................
5 INTEGRATION WITH HP NETWORK SIMULATOR.....................................................................5.1 GENERATE COMWARE SWITCH INSTANCES.......................................................................5.1.1 Launch HNS........................................................................................................................................5.1.2 Make the Comware simulator config file..........................................................................................5.1.3 Save the project.................................................................................................................................5.1.4 Create the Simware 7 switch instances............................................................................................
5.2 CONFIGURE GNS3...............................................................................................................5.2.1 Start GNS3.........................................................................................................................................5.2.2 Configure VirtualBox Integration......................................................................................................5.2.3 Configure new HP icons for GNS3.....................................................................................................
5.3 TESTING COMWARE SWITCH INTEGRATION WITH GNS3...................................................5.4 DEVICE CONTROL...............................................................................................................5.4.1 Starting / stopping device.................................................................................................................5.4.2 Displaying the device console...........................................................................................................5.4.3 Using Wireshark to capture network traffic......................................................................................
6 ADDING 3RD PARTY VENDOR DEVICES..................................................................................6.1 VIRTUALBOX LINKED CLONES............................................................................................6.1.1 Create a Linked Clone........................................................................................................................6.1.2 Add device to GNS3...........................................................................................................................
6.2 CISCO CSR1000V................................................................................................................6.2.1 Obtain Software................................................................................................................................6.2.2 Create the Cisco CSR1000v VM.........................................................................................................6.2.3 Add the CSR1000v instances to GNS3..............................................................................................
6.3 MICROSOFT WINDOWS 2008 R2 SERVER..........................................................................6.3.1 Obtain Software................................................................................................................................6.3.2 Create Virtual Machine......................................................................................................................6.3.3 Add Windows instance to GNS3........................................................................................................
8 DOCUMENT CONTROL INFORMATION...................................................................................8.1 DISTRIBUTION LIST............................................................................................................8.2 TERMS AND ACRONYMOUS................................................................................................8.3 RELATED DOCUMENTATION...............................................................................................
5.1.2 Make the Comware simulator config fileDuring testing it has been discovered that unless all of the interfaces are bound to a VirtualBox interface (either bridged or virtual), then GNS3 has problems referencing them, or there are issues with connectivity using the UDP tunnel general interfaces.
When creating many virtual Comware 7devices, using the “Clone” feature of VirtualBox either as a full or linked clone does not work correctly with Simware 7, as the resulting cloned machines do not have interfaces that are recognised by the Simware OS. Generating Simware devices using the config file ensures that the instances do not share identity information such as interface and base MAC addresses.
The following configuration embedded in the file below can be cut and pasted into the HNS window. It will create 20 x 8 Port switches using 64bit architecture with 512Mb of RAM. Please modify the file if more memory is required for feature such as MP BGP etc.
5.1.3 Save the project
Save the configuration as a Project using the “Save As” icon. This name is used in VirtualBox to create the name of the virtual machine group in which the Simware 7 instances will reside.
Click the icon to start the creation of the Comware 7 switch instances;
Once all of the switches have been created, the message shown below will appear indicating that running all 20 switches will consume 10 GB of RAM and substation CPU usage. Ensure that you have the PC specified with enough RAM if you plan to test large topologies.
The next step is to configure GNS3 to support VirtualBox hosts. This guide does not explain how Dynamips is configured as it is not directly relevant to this simulation environment and requires the use of software from Cisco that does not comply with the usage definition within the licencing agreement.
5.2.1 Start GNS3Start GNS 3 using the icon indicated below, do not follow the configuration steps listed in the start page a just press the “OK” button.
5.2.2 Configure VirtualBox IntegrationNavigate to the preferences section;
Select “VirtualBox” and ensure that the General Settings match the values indicated below. Press the “Test Settings” button and ensure that VirtualBox API is started. If you have problems here, make sure that you have the correct path to “vboxwrapper.exe”
To ensure that the UDP tunnels created between Virtualbox machines do not conflict with installed programs such as Microsoft Lync, it is necessary to change the base UDP port from 20900 to 36000. If this setting has not been modified then connectivity problems will occur between virtual devices. These faults manifest as a unidirectional connection or problems with protocols such as LLDP, LACP and STP.
The next step is to add the Simware devices from VirtualBox to GNS3. Select the tab “VirtualBox Guest”;
o Select a Comware 7 device from the “VM List”, if this tab is empty, refresh the list.o Set the number of NICs to 8o Check the box “Show Advanced Options”o Select the NIC model to “e1000”o Check the box “Enable Console Support”. Without this, the Simware device will not
correctly boot.o Set an “Identifier name”, this is used to name the devices in your topologyo Press “Save”, the VirtualBox Virtual Machines list will now be updated
Repeat the above procedure to add more Simware devices to use in GNS3 projects, the results should look similar to this;
To make GNS topologies look more HP inspired, use the icon repository embedded below that matches the Visio icons devised by HPN. Extract the embedded file below into your GNS working directory.
Navigate to the “Symbol Manager” section;
Edit > Symbol Manager
Browse to and select the “hp.rcc” file that you have just placed in your CNG3 working directory and press the add button. At the bottom of the left hand pan, expand the hp.rcc icon to find the new icons available for use in GNS3.
NOTE: Creating new icons for GNS3 requires extra tooling and is outside the scope of this document.
To use the new device shapes, move the icons to the right pane using the arrow button in the centre of the menu.
While selecting the icon in the right pane, select the “Type” as VirtualBox Guest. The icon can be renamed at this point as well. Repeat the above process to add more icons for use in GNS3, the result should match the
Drag and drop a HP L3 switch onto the central working pane. As you release the icon, a dialog box opens asking you to detect which VirtualBox guest to open. Select SW1.
Repeat the process for SW2, the result should match the figure below
Select the connect button , right click on the devices, select the interfaces that you want to connect
Start the topology, by pressing the button. Both of the switch devices will now boot to the console and will be ready for configuration. The result should look like the figure below.
NOTE: By default, the first interface is assigned to management, this will always be connected to the VirtualBox host only adaptor and will not be configured by GNS3, handy if the interface is set up for remote management.
5.4 DEVICE CONTROL
5.4.1 Starting / stopping deviceRight click on a device to display in the device control menu. Device operation can be operated from the menu as displayed below;
5.4.2 Displaying the device consoleMost virtual hosts including Comware 7 devices display through the VirtualBox console which can be brought into focus by clicking;
Devices that redirect their display to the serial console, such as Cisco XRv, vNexus can be used with the console server built into GNS3. To display the serial console click;
5.4.3 Using Wireshark to capture network trafficWireshark can capture traffic from any port in the GNS3 topology by;
Right clicking a link to obtain the context menu and pressing capture
Select the interface on which to capture network traffic
Restarting the network node to which the packet capture applies
6 ADDING 3RD PARTY VENDOR DEVICESOne of the advantages of using VirtualBox is that devices from many manufacturers can be configured together using GNS3 to build and control the network topology. The following subsections define the settings required to install 3rd party vendor equipment.
6.1 VIRTUALBOX LINKED CLONES
One of the useful features of VirtualBox is the ability to use “Linked Clones”, this allows for the install of a master machine image which can then spawn multiple child appliances using a common storage snapshot. This feature can create new devices very quickly while using a small amount of storage on the host PC.
6.1.1 Create a Linked Clone Open Oracle VM VirtualBox Select a VM that you wish to clone and click the “clone” button
A new clone is created that can be added in GNS3 in the same way that the Simware devices were added.
o Navigate to the VirtualBox Guest settingso Press “ Refresh VM List”o Select the cloned VM nameo Select the number of network cards attachedo Un check “Reserve first NIC for VirtualBox NAT to host OS”o Press save
The Cisco CSR1000v can be used when testing integration with Cisco devices with newer IOS XE 12.5 S feature sets supported. By default, the image contains all software features under the “Premium” licence which can be enabled for trial purposes from the command line.
6.2.1 Obtain SoftwareExperimentation shows that the latest version that work correctly on VirtualBox is;
The final settings for the VM should match those below.
The final step is to provision a “linked clone” of the machine using the instructions detailed in 6.1 of this guide.
6.2.3 Add the CSR1000v instances to GNS3Add the CSR1000v instances to GNS3 by navigating to the Preferences / VirtualBox / VirtualBox Guest section and;
Choose a name for the instance Select the CSR instance from the VM List Set the number of NICs to 4 Set the NIC model to e1000 Uncheck the “Reserve first NIC for VirtualBox NAT to host OS” Enable console support and server
The device can now be added to topologies using the VirtualBox icon and can also be customised in Symbol Manager in the same way as the HP Comware devices. When the device boots, the console will be display in the VirtualBox console window;
6.3 MICROSOFT WINDOWS 2008 R2 SERVER
A sample Windows2008 R2 deployment for simple network services
6.3.1 Obtain SoftwareThe Windows 2008R2 .iso can be downloaded directly from MSDN if you have an MSDN licence provided by HP. Alternatively, the following link can provide the .iso and licence key if required;
6.3.2 Create Virtual MachineCreate a standard Windows 2008 virtual machine with the following settings;
1 Gb RAM 1 vCPU 80% execution cap 2 NICs 100Gb storage (thin provisioned) DVD with the downloaded Windows Server image.
Once the master device is created, run the “SYSPREP” utility to package the image and then use linked clones when deploying the multiple virtual machines.
6.3.3 Add Windows instance to GNS3
A new clone can be added in GNS3 in the same way that the Simware devices were added.
o Navigate to the VirtualBox Guest settingso Press “ Refresh VM List”o Select the cloned VM name
8 DOCUMENT CONTROL INFORMATIONThe latest version of this document is stored electronically. Any printed copy has to be considered an uncontrolled copy. This document should be compliant with the document control process
Document Owner: Nick Channing Template Version No: 1.0
Template Version Date 07 Aug 2013
Document Version No: Ver 0.5
Document Sponsor: Peter Hockin Document Version Date 30/06/2014
Title: Integration of HP Network Simulator with GNS3
Document Acronym:
Document Revision History
Ver. No. Ver. Date Prepared By Approved By Affected Section & Summary of Change
0.1 08/06/14 Nick Channing Draft Release
0.4 21/0/614 Nick Channing Changes following review by John Adams
0.5 30/06/14 Nick Channing Changes following team review