0% found this document useful (0 votes)
23 views

Recover Point: 1. Install Winscp and Start It

This document provides steps to add Cisco IOS L2 and L3 images to a Unetlab virtual machine in order to use Cisco IOS on Linux (IOL) templates. It lists the necessary tools including WinSCP, L2 and L3 IOL image files, and a Python script. The steps include using WinSCP to copy the image files to the VM, setting permissions, generating a license key, creating an iourc file with the license, and then adding a node with the IOL template to access the Cisco IOS CLI.

Uploaded by

Bob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Recover Point: 1. Install Winscp and Start It

This document provides steps to add Cisco IOS L2 and L3 images to a Unetlab virtual machine in order to use Cisco IOS on Linux (IOL) templates. It lists the necessary tools including WinSCP, L2 and L3 IOL image files, and a Python script. The steps include using WinSCP to copy the image files to the VM, setting permissions, generating a license key, creating an iourc file with the license, and then adding a node with the IOL template to access the Cisco IOS CLI.

Uploaded by

Bob
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

Recover point

We are going to need following tools for this:

Considering you followed the previous Introduction post, we will now add Cisco IOU/IOL image in Unetlab.

We are going to need following tools for this:

1. WinSCP
2. L2 IOL image : i86bi-linux-l2-ipbasek9-15.1g.bin
3. L3 IOL image : i86bi-linux-l3-adventerprisek9-15.4.1T.bin
4. CiscoKeyGen.py

Download these softwares as well as bin files

Steps

1. Install WinSCP and Start it.

File protocol: SFTP


Hostname : Address of your Unetlab VM.
Username : root
Password : unl

WinSCP is used to log into your VM and to copy files from your local machine to Unetlab VM.
2. Move both IOL files from Desktop to Unetlab VM

As shown below, Left side window is your local machine and Right side is the Unetlab VM
On left side navigate to IOL images path.
On right side navigate to /opt/unetlab/addons/iol/bin
Copy both bin files to this location in VM
3. Now we need to fix permissions for newly added bin files.
In Unetlab VM hit the following command

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
4. We need iourc file(contains license) for our bin files. So here is where python code comes into picture.

Download CiscoKeyGen.py python code, move it into Unetlab VM’s root directory (using WinSCP) and execute it.
As you can see license number is generated starting with “be60*******”
5. Creating license file
Now create new file “iourc” under /opt/unetlab/addons/iol/bin/ path.
Do not use any file extension.
Put following text in iourc file.

[license]
(none) = be60********;

Use license number generated on your VM. In my case be60…..blah blah blah
Here “(none)” is the username of VM.
6. That is it.
You are ready to go.
Open Unetlab in browser and add a node in Lab.
Select template as Cisco IOL.
As you can see 2 bin images have appeared.
Select L3 image for router.
7. Start the node and click on Router icon to get CLI
Posted in Unetlab.
Post navigation
← Introduction to SDN

OpenFlow packet exchange between POX… →


Leave a Reply
Your email address will not be published. Required fields are marked *

You might also like