How to run Layer 2 and 3 Cisco IOU Images in GNS3 for CCNA CCNP and CCIE Labs? (Complete Tutorial)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
gns3 will be used to uh deliver most of the lab activities in uh many uh remote and virtual uh sessions so why because i mean gns3 is not a simulator so in that case there are many emulators currently uh so gns3 is one of a famous apart from that there are many other emulators that we can use so today in this particular session we are going to have gns3 we will be having some additional arrangements to support such a layer 2 environments as well as some of the layer 3 ios capabilities through different operating system so different latest operating systems so which may not be uh emulated with the standard approach that dns 3 is having so we are expecting to use these softwares for this particular demonstration so you have to have a virtual box then we need terminal emulation software we have 30 and then gns3 so we have 2.2.24 so we need some sort of a files transferring software and so we have in scp for that apart from that so we need the cisco ious we have layer 2 image as well as we have layer 3 image then so very important part is gns3 virtual machine which is provided for virtual box so we are using virtualbox as a hypervisor so let's begin then so in my environment i do have pre-installed applications like oracle vm virtualbox so let me double click on that so this is my latest virtual box then i do have vin sap then so i do have wireshark i'm not going to open that so uh so let me close this so we'll start with gns3 all-in-one regular version so let me double click on that so it asks the administrative privilege okay i'm moving with next i agree so i'll go with the default options and here uh suppose uh if you have not downloaded dns 3 vm so you can check this check box so that is a additional feature that you are having but so we have downloaded already this particular uh virtual machine so i'm not going to select that option so i'll leave them in default uh status and i'll go to next then this is the default folder so then it starts so this is the installation process that we are having so uh it will take some time so but if you have i mean uh pre-build applications so pre-install applications in your computer so it won't be uh i mean it won't be taken much time so uh npcap so that is another additional software that we are using for package sniffing purposes so uh let me install that as well okay it says nmap is finish okay then you can press next i'll say i don't want this solarwinds right now i'll go and start dns3 okay so this is my latest gns3 it asks the project name to be created leave it blank i'll click cancel so let me minimize that i'm going to use this genes3vm i already installed oracle vm virtualbox so what i'm going to do is i simply double click this then i'm going to choose virtualbox manager then it appears like this so this is the appliance settings that you are getting so i i will not change basic configurations but so like base folder you can change this base folder if you wish but i'll leave it as it is and only uh thing is i will select this option generate new mac addresses for all network adapters because sometimes we will be getting some complications okay so my appliance or the gns3 vm is importing to virtual box so fine i just imported that and then so the next thing is i'll go to the settings of this gns3 vm i want to have two adapters so one adapter is already netted and another adapter we have to have host only adapter so uh i'm going to add a new uh do you call a virtualbox host only ethernet adapter for our gns3 vm if you want to add additional host only adapter so you have to go to tools from there so you can have this host network manager so uh in my case uh i'm having uh one adapter so which is giving 190 to 168 56.1 slash 24 ip addresses and so i'm having another one so uh which is not unable and which is producing 192 168 92.1 or 92.0 slash 24 ip addresses you can create uh even new uh virtual interfaces also so by clicking create icon so then it will create so like this so uh what i'm going to do is i'll enable this one then i'll lose it then i'm going to my gns3 settings network and now you will see the drop down so i will choose adapter tool as my uh host only ethernet adapter fine i'll press ok then without delaying let me click start button i'm going to turn on the gns3 vm let's see how it goes let's see okay it is coming up here it is coming up so we have ubuntu uh 20.04 os so now we have a jns 3 server version so 2.2.2 and blah blah blah so you have a lot of details and so you get ip address and it says ip 192 168 92 dot 3 there is ssh access as well so that is why we wanted to uh use putty right so we wanted to uh ssh so let me uh bring the party now let me go and install party again another very lightweighted software so you can install party fine so i do have 40 uh let me open party okay this is party so from here what i'm going to do is i'll type the ip address of the vm for the gns3 server 92.3 then port number is 22 that is the ssh number i'll click open so then you get the security alert and click accept then so you are getting the prompt so login as dns 3 password also dns 3 here you get the same interface like console access in ssh connection to the gns3 server i'll click ok from here then you get the uh again uh list of uh options features that we have so i'll go down and select shell open a shell click from here so if you are going to start so we have to use some of these linux commands you have to update the repository first so do apt update okay done so after that what we are going to do is we install python to do that sudo apt install python okay press yes then it will install python fine python has installed so why we install python so that is the big question so why we install python because so we have some python script so to generate the license key that we are having so that is why we need python so now this particular file is in my windows computer so what i should do is i should upload this particular file to the gns3 server that is why we need a file transferring application we need a file transferring application so in our case so we are going to use winscp this is we win scp so i'll leave the protocol as sftp and i'm going to use the ip address as the host name the gns3 vms ip address is 192.168.92.3 port number is 22 username gns3 again password gns3 then i'll click login so again so you will be having the certificate details i'll click yes fine so it is connected now you will see from my left side i'm having a windows computer in my right side i'm having gns3 serve go to uh cisco iou l2 so i'll take this python script or cisco i iou key gen.5 so i'll drag and drop there so then i'll click ok so to upload the file so it is transferred successfully so if you go and check in party so i do have that particular file so i just use ls my ls minus l because i just want to see the permissions as well so in here so i do not have the execution permission so therefore i'm going to get the execution permission so to do that sudo chmod plus x then i'm going to type the of the first few uh letters of the file and then press tab so it will fill the file name correctly and i'm going to press enter so if i'm going back again ls minus l you get execution permission as well so after that what i'm going to do is sudo python 3 then the file name after that so you will see this particular license has issued so and it is saying already copied to the file i o u r c dot txt now i'm going back to my vnscp so i cannot see any file as created in here but if you right click over there and click refresh you will find that file is available now what i am going to do is i will delete this particular i o u r c dot txt which is in my windows folder [Music] then i am going to drag and drop so i am going to take a copy of that new i o u r c file to the windows folder now again i am going back to my party so if you type again ls minus l you will see so you have this particular file i need to copy this particular file to a particular location sudo copy this particular iurc i need to copy up gns3 image so which is running these gns3 images so if you want to check that out whether it is there so i can remove this part then unless so you will see that and if you go and type ls minus l you get the permissions as well fine from here onwards we don't want party i'll close this [Music] and even we don't want win sap as well [Music] now the deal is with gns3 and gns3 server okay i'll close this folder as well go to dns screen i'm going to use help menu then there is a setup wizard that is the easiest method i'll choose this run appliance in a virtual machine i'll choose that option so then i'm going to click next then host binding so there i'm going to choose this 190 to 168 92.1 because uh that is the default gateway of this particular house so i'll choose that and port is 3080 i'll leave it as it is and i'll press next connection to the local gns3 server has been successful click next okay could not find vm name gns380 is important vm okay virtualbox so we have to choose virtualbox then gen s3 vm and i'll click next again then server type and all these details will be appeared i'll click finish okay now you will see the green color what you call green color bulb it is coming up so it means now it is working so you can go to this vm and if you click ok and then if you go to logs so you will see finally you get new client has connected to the compute websocket so that's good now our configurations are almost done so we have configured the infrastructure now properly as an additional configuration so you can go to preference and then gns3 vm option and action when closing dns 3 make sure that stop the gns 3 vm selected fine so then i'll go to ios on unix ios on unix preference so i need to add my license file so how we add my license file what is my license file remember that so we have taken out one txt file from uh gns3 uh vm that is our license we'll click apply and ok and after that so i need to add a layer 2 device so we are desperate on layer 2 configurations with a gns 3 so i'll go and click a new template in the bottom and now i'm going to uh choose the default option install an appliance from the gns3 server and i'll click next and it appears some appliance names i'll go to switches and i'll choose cisco iou l2 and click install then the only option is install the appliance on gns3 vm and click next so it says uh some of these files are missing but it's okay we are going to install uh 15 dot 2d version so let me uh create a new version so i'll have mp dash np so then it says it is asking what is the disk image i'll leave it as it is i'll select okay then you will see np then so under that it is asking this particular bin file is required i'll choose that and i'll select import from cisco ioul2 hold i'll choose this particular bin file which is the identical bin file that dns 3 is expecting so once it is uploaded so it says ready to install okay then i'll choose np then i'm going to click next would you like to install cisco ul2 version this yes the template will be available in multi-layer switch category okay finish the appliance has been installed and a template name cisco iul 215 dot 2 d np okay now we have iou l2 iou so let's add layer 3 uh iou as well so i'll select routers then go to new template now it is easier no need to add license and all these things simply uh you can go here and you can go to routers and let me have iul3 then install next then we are going to have this let's have a new version like n key okay then i'm going to import that fine so next yes finish okay now you have the iou for l3 so i'm going to files i'll create a new blank project i'm going to have a ccnp template select okay then i'll drag and drop our latest l2 devices so i'll choose two so it looks like multi-layer but it is having a layer two uh oss so here you have ethernet interfaces okay we have connected the two switches i'll boot all of them then after that i'll take the console connections i'll click console so i will select party normal standalone version that's what we have installed okay custom will have normal standalone version so these are the two consoles you can see show me lag you will see vlan databases here then [Music] show spanning tree so it is available spanning trees up and running so interface ethernet zero slash zero fish port you will see it is dynamic auto static axis and these are layer two right when you are going to uh turn off or when you are going to uh x8 from the gns3 so make sure that you just turn off all these devices because otherwise the next time whenever you are going to uh open the gns3 so you'll be getting some difficulty sometimes genistry will clash so just turn off and then so as it is you can go to exit or you can close it so if you want to save you can save or else you can select simply no i mean so you can exit so then you will see my vm also shut it down so that is how it is and next time whenever you open your gns3 your vm will come up so let's open project so you can see that my vm is came up and this is it okay here so it came up
Info
Channel: TuteShare
Views: 404
Rating: undefined out of 5
Keywords: TuteShare, www.TuteShare.com
Id: 9SFnYekriYE
Channel Id: undefined
Length: 25min 39sec (1539 seconds)
Published: Sat Sep 11 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.