{"id":202,"date":"2015-07-12T06:35:16","date_gmt":"2015-07-12T06:35:16","guid":{"rendered":"http:\/\/www.balajibandi.com\/blog\/?p=202"},"modified":"2017-04-12T23:02:23","modified_gmt":"2017-04-12T22:02:23","slug":"ccie-v5-ine-home-lab-part-1-2-3-configuring-vmware-esxi","status":"publish","type":"post","link":"https:\/\/www.balajibandi.com\/?p=202","title":{"rendered":"CCIE v5 INE Home Lab &#8211; Part 1-2-3 &#8211; Configuring VMware ESXi"},"content":{"rendered":"<p>&#8220;Every day you wake up you have two options, you can either look at the clock at 3:30am, tap the snooze button, go back to sleep, and <b><i>dream about being a CCIE<\/i><\/b> or you can tap into that whisper inside you telling you to get up and go <b><i>pursue your dream about being a CCIE<\/i><\/b>&#8221; &#8230;. with that being said &#8230;.<\/p>\n<p>I&#8217;ve spent numerous hours exploring many different options on setting up the CCIE v5 hybrid (physical\/virtual) home lab and I&#8217;ve finally settled on VMware ESXi. Although, you have many other options like Linux\/KVM\/VirtualBox, this method was the easiest for me. I am going to break this topic &#8220;CCIE v5 INE Home Lab&#8221; into a 3 part series blogtorial. If you follow the series step by step, you will end up with a complete home lab with everything you need to do the INE labs.<\/p>\n<div>\n<p>Here is an overview of the entire series and how it will be split up.<\/p>\n<div class=\"separator\"><a href=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\" alt=\"\" width=\"320\" height=\"147\" border=\"0\" \/><\/a><\/div>\n<\/div>\n<div>Part 1 &#8211; How to install and configure VMware ESXi Hypervisor and vSwitch?<\/div>\n<div>Part 2 &#8211; How to get virtual routers installed and physical switches connected?<\/div>\n<div>\n<p>Part 3 &#8211; Script to automate the loading of initial router configs<\/p>\n<p>.<b>I normally would do it for free but I have had tons of requests and questions regarding the lab setup and scripts. So for a nominal fee I will configure your entire VMWare ESXi server \/ all the routers \/ the Linux VMs \/ auto loading scripts. Contact me via arwinr@gmail.com if you are interested.\u00a0<\/b><br \/>\n<b>Part 1 Equipment list:<\/b><\/p>\n<p>1 x Dell R610 with 48GB RAM, 2 x Intel 5570 processors. &#8211;\u00a0<i>Thanks to Jason C. for hooking me up with this powerful server.<\/i><\/p>\n<p>First, let&#8217;s acquire VMware ESXi, the license, and the USB bootdisk.<\/p>\n<ol>\n<li>Get VMware ESXi from their website and create a bootable USB disk. You will need to register and get the free license. VMware ESXi can be downloaded from\u00a0http:\/\/www.vmware.com\/download\/<\/li>\n<li>I used rufus to create a bootable USB disk but you can use whatever works for you. http:\/\/rufus.akeo.ie\/<\/li>\n<li>After creating the USB boot disk rename the file in the USB disk from isolinux.cfg to syslinux.cfg<\/li>\n<li>Edit the syslinux.cfg and change the line &#8220;APPEND -c boot.cfg&#8221; to &#8220;APPEND -c boot.cfg -p 1&#8221; without the quotes.<\/li>\n<\/ol>\n<p>Plug the USB drive into your server and boot from it and follow the instructions on screen. This process is fairly straightforward and does not require any explanation. When it is completed, you will have a VMware ESXi baremetal server that you can connect to via its management IP. In my case, interface eth1 on my physical server was the management interface.<\/p>\n<p>Connect via https:\/\/&lt;IP&gt; to the ESXi server, download the vSphere client and install it on your machine. This client will be used to connect to and manage the ESXi hypervisor.<\/p>\n<p>Once the client is installed, let&#8217;s connect to the hypervisor and finish off this blogtorial by creating a vSwitch and applying the free license. vSwitch is needed because this is where all of the virtual routers \/ physical switches will connect.<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-dVUQRbefJSg\/VGJM9gWzviI\/AAAAAAAADHw\/eBBQ_stmh1o\/s1600\/blog1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-dVUQRbefJSg\/VGJM9gWzviI\/AAAAAAAADHw\/eBBQ_stmh1o\/s320\/blog1.png\" alt=\"\" width=\"255\" height=\"320\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Connect to the ESXi Hypervisor<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-x3bIMqAu5nk\/VGJM9sh1QgI\/AAAAAAAADH0\/LhnoX5EHpWY\/s1600\/blog2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-x3bIMqAu5nk\/VGJM9sh1QgI\/AAAAAAAADH0\/LhnoX5EHpWY\/s320\/blog2.png\" alt=\"\" width=\"294\" height=\"320\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Click on Inventory<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/1.bp.blogspot.com\/-8QiA0HdjNiw\/VGJM9qArD3I\/AAAAAAAADH4\/3WxoHqYJsyI\/s1600\/blog3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-8QiA0HdjNiw\/VGJM9qArD3I\/AAAAAAAADH4\/3WxoHqYJsyI\/s320\/blog3.png\" alt=\"\" width=\"320\" height=\"198\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Click on Configuration and Add networking&#8230;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-dQbafex5TSY\/VGJM9-xTItI\/AAAAAAAADIA\/dMFH_g-F7GE\/s1600\/blog4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-dQbafex5TSY\/VGJM9-xTItI\/AAAAAAAADIA\/dMFH_g-F7GE\/s320\/blog4.png\" alt=\"\" width=\"320\" height=\"235\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Follow the instructions on the screen<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-wsado5U4__U\/VGJM-JWnbaI\/AAAAAAAADH8\/Ii1e0nTA6vE\/s1600\/blog5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-wsado5U4__U\/VGJM-JWnbaI\/AAAAAAAADH8\/Ii1e0nTA6vE\/s320\/blog5.png\" alt=\"\" width=\"320\" height=\"234\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Pick the NIC that will be connecting to the physical switch SW1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-wRFbE32JVGM\/VGJM-M2YEvI\/AAAAAAAADIY\/KmAXDT56bYk\/s1600\/blog6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-wRFbE32JVGM\/VGJM-M2YEvI\/AAAAAAAADIY\/KmAXDT56bYk\/s320\/blog6.png\" alt=\"\" width=\"320\" height=\"235\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Give it a name and assign 4095 for VLAN.<br \/>\n<b><br \/>\nThis step is VERY IMPORTANT (4095).\u00a0<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-1llpoeGsayA\/VGJM-Z2C1vI\/AAAAAAAADIE\/PnMYusUMGV8\/s1600\/blog7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-1llpoeGsayA\/VGJM-Z2C1vI\/AAAAAAAADIE\/PnMYusUMGV8\/s320\/blog7.png\" alt=\"\" width=\"320\" height=\"237\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Click Finish<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Now you should have a vSwitch that we can use in Part 2 for connecting all the virtual routers.<\/p>\n<p>Let&#8217;s now move on to applying the license.<\/p>\n<div class=\"separator\"><a href=\"https:\/\/1.bp.blogspot.com\/-GGezGpS1xCU\/VGJOJBrM6CI\/AAAAAAAADI4\/S3qkDOqP70E\/s1600\/blog-license.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-GGezGpS1xCU\/VGJOJBrM6CI\/AAAAAAAADI4\/S3qkDOqP70E\/s320\/blog-license.png\" alt=\"\" width=\"320\" height=\"230\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><\/div>\n<div class=\"separator\"><a href=\"https:\/\/3.bp.blogspot.com\/-9I7T7LNmlYk\/VGJOJAsQpzI\/AAAAAAAADI0\/kvCvdoJYF74\/s1600\/blog-license1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-9I7T7LNmlYk\/VGJOJAsQpzI\/AAAAAAAADI0\/kvCvdoJYF74\/s320\/blog-license1.png\" alt=\"\" width=\"320\" height=\"311\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><\/div>\n<p>CCIE v5 INE Home Lab &#8211; Part 2 &#8211; Configuring CSR1000v on VMware ESXi and connecting Physical Switches<\/p>\n<div>\n<p>CCIE is not earned by completing the written\u00a0and passing the lab, CCIE is earned in the 1000s of hours of lab, the 3am wake ups, and the countless of hours of studying &#8230; that&#8217;s what makes you a CCIE. While you are on this journey you are going to go through a transformation, and you will start to see things differently, you will start to troubleshoot differently, you will start to perceive situations differently and simply put &#8230; you just become one of the best at your craft &#8230;. with that being said &#8230;.<\/p>\n<p>In part 2 of this series, we will configure 10 CSR routers, and connect it to the virtual switch that we created in Part 1. Unlike many other tutorials on the Internet that demonstrates how\u00a0to get serial over network to console into the routers, I am going to take a different approach on how to console into the routers. Main reason is that serial over network is only available for either 60 days as a demo or you have to get the enterprise license which is over $2000.<\/p>\n<div class=\"separator\"><a href=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\" alt=\"\" width=\"320\" height=\"147\" border=\"0\" \/><\/a><\/div>\n<p><b><br \/>\n<\/b><b>I normally would do it for free but I have had tons of requests and questions regarding the lab setup and scripts. So for a nominal fee I will configure your entire VMWare ESXi server \/ all the routers \/ the Linux VMs \/ auto loading scripts. Contact me via arwinr@gmail.com if you are interested.<\/b><\/p>\n<div class=\"separator\">Creating the CSR on VMware<\/div>\n<p>First thing we need to do is get the OVA file from Cisco&#8217;s website. Note that this does require you to get a free account with Cisco. The one I downloaded at the time of this writing is Cisco CSR 1000V Series ADVANCED ENTERPRISE SERVICES 3.12.0S &#8211; OVA (csr1000v-universalk9.03.12.00.S.154-2.S-std.ova). Follow the screenshots<\/p>\n<div class=\"separator\"><a href=\"https:\/\/3.bp.blogspot.com\/-68fwgTZlZgs\/VGProJd_C9I\/AAAAAAAADJ0\/OJ9jJrEeckU\/s1600\/blog21-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-68fwgTZlZgs\/VGProJd_C9I\/AAAAAAAADJ0\/OJ9jJrEeckU\/s320\/blog21-1.png\" alt=\"\" width=\"320\" height=\"240\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-v0mQlnsZsNc\/VGPrqVThuzI\/AAAAAAAADKk\/drsKx3cRNQc\/s1600\/blog21-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-v0mQlnsZsNc\/VGPrqVThuzI\/AAAAAAAADKk\/drsKx3cRNQc\/s320\/blog21-2.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Browse to the OVA file you downloaded<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-YQua8IPpcM8\/VGPrr_fyYwI\/AAAAAAAADLM\/UTQOTvCo4KY\/s1600\/blog21-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-YQua8IPpcM8\/VGPrr_fyYwI\/AAAAAAAADLM\/UTQOTvCo4KY\/s320\/blog21-3.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Give it a name<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/1.bp.blogspot.com\/-dHmBhbogVBs\/VGPrqylSpxI\/AAAAAAAADKw\/qAbBH6T6aaI\/s1600\/blog21-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-dHmBhbogVBs\/VGPrqylSpxI\/AAAAAAAADKw\/qAbBH6T6aaI\/s320\/blog21-4.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Small is fine for now as you will be editing the memory later on. CSR 1000v needs 2.5 GB of RAM or else it wont boot.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-FlN9B9NQLa8\/VGPrrJWqCVI\/AAAAAAAADK0\/Yc8LkOj8Ta4\/s1600\/blog21-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-FlN9B9NQLa8\/VGPrrJWqCVI\/AAAAAAAADK0\/Yc8LkOj8Ta4\/s320\/blog21-5.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">You could use either Thick or Thin, but better performance by using Thick.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/4.bp.blogspot.com\/-QDNRqIF3s9Y\/VGPrrtPl93I\/AAAAAAAADLE\/UTxFyN423EY\/s1600\/blog21-6.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/4.bp.blogspot.com\/-QDNRqIF3s9Y\/VGPrrtPl93I\/AAAAAAAADLE\/UTxFyN423EY\/s320\/blog21-6.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">By default you will have 3 interfaces, choose the first NIC to be on the network we created in Part 1.\u00a0We will also use Gig2 for &#8220;out-of-band&#8221; management to TFTP files and such. Gig3 can be deleted at a later time.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"separator\"><a href=\"https:\/\/2.bp.blogspot.com\/-fd94XDXFuBw\/VGPrrzVYCdI\/AAAAAAAADLI\/dH0kvUeXw7g\/s1600\/blog21-7.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-fd94XDXFuBw\/VGPrrzVYCdI\/AAAAAAAADLI\/dH0kvUeXw7g\/s320\/blog21-7.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<div class=\"separator\"><a href=\"https:\/\/1.bp.blogspot.com\/-XN8EoPsrULk\/VGPrscpx4RI\/AAAAAAAADLQ\/UlCyIdVSGS0\/s1600\/blog21-8.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-XN8EoPsrULk\/VGPrscpx4RI\/AAAAAAAADLQ\/UlCyIdVSGS0\/s320\/blog21-8.png\" alt=\"\" width=\"320\" height=\"303\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/4.bp.blogspot.com\/-YzwePTVTX5s\/VGPrsusd5RI\/AAAAAAAADLY\/NctMridxgoY\/s1600\/blog21-9.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/4.bp.blogspot.com\/-YzwePTVTX5s\/VGPrsusd5RI\/AAAAAAAADLY\/NctMridxgoY\/s320\/blog21-9.png\" alt=\"\" width=\"320\" height=\"285\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Make sure you allocated at least 2.5 GB (perhaps 3GB if you can afford it) of ram. You can also delete the extra NIC (Gig3)\u00a0if you want.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-6k7yDqjnMOQ\/VGProDZ8_ZI\/AAAAAAAADJ4\/YoVi3jUoSLE\/s1600\/blog21-10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-6k7yDqjnMOQ\/VGProDZ8_ZI\/AAAAAAAADJ4\/YoVi3jUoSLE\/s320\/blog21-10.png\" alt=\"\" width=\"320\" height=\"285\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">To avoid any issues with booting of the router reserve the entire 2.5 GB for the CSR 1000v.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-XpQw-uz_PF0\/VGProF8cT3I\/AAAAAAAADJ8\/yeouCSzKEdo\/s1600\/blog21-11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-XpQw-uz_PF0\/VGProF8cT3I\/AAAAAAAADJ8\/yeouCSzKEdo\/s320\/blog21-11.png\" alt=\"\" width=\"320\" height=\"285\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\"><b>This is where my blog differs from the other tutorials on the internet. Instead of adding a regular Serial Over Network, we are going to add a PIPE.\u00a0<\/b><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"separator\"><a href=\"https:\/\/2.bp.blogspot.com\/-QXucDhNP5XQ\/VGProtsTuHI\/AAAAAAAADKA\/WX2qrQhmH08\/s1600\/blog21-12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-QXucDhNP5XQ\/VGProtsTuHI\/AAAAAAAADKA\/WX2qrQhmH08\/s320\/blog21-12.png\" alt=\"\" width=\"320\" height=\"285\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-2CBPpo_K3AI\/VGStzLX6GLI\/AAAAAAAADMs\/QEASGsRAT30\/s1600\/blog21-19.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-2CBPpo_K3AI\/VGStzLX6GLI\/AAAAAAAADMs\/QEASGsRAT30\/s320\/blog21-19.png\" alt=\"\" width=\"320\" height=\"271\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\"><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>After adding the pipe it should looks like this. Later in Part 3 I&#8217;ll show you how to connect to this pipe to get console into the routers.<\/p>\n<p>Next &#8220;power on&#8221; the router you just created.<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/3.bp.blogspot.com\/-XhPkdYClWVw\/VGUPbEoEASI\/AAAAAAAADM8\/WGo-iQmGzPA\/s1600\/blog21-20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-XhPkdYClWVw\/VGUPbEoEASI\/AAAAAAAADM8\/WGo-iQmGzPA\/s320\/blog21-20.png\" alt=\"\" width=\"320\" height=\"217\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Pick Virtual console for now.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/4.bp.blogspot.com\/-0JKLrJY0_jw\/VGUPczwDLOI\/AAAAAAAADNE\/f3zFmhvj9XI\/s1600\/blog21-21.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/4.bp.blogspot.com\/-0JKLrJY0_jw\/VGUPczwDLOI\/AAAAAAAADNE\/f3zFmhvj9XI\/s320\/blog21-21.png\" alt=\"\" width=\"320\" height=\"214\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">First boot it will install itself on the hard disk and reload automatically.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"separator\"><a href=\"https:\/\/3.bp.blogspot.com\/-0YXpfP67avA\/VGUPeKbV8QI\/AAAAAAAADNM\/8lz-pAJidwc\/s1600\/blog21-22.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/3.bp.blogspot.com\/-0YXpfP67avA\/VGUPeKbV8QI\/AAAAAAAADNM\/8lz-pAJidwc\/s320\/blog21-22.png\" alt=\"\" width=\"320\" height=\"212\" border=\"0\" \/><\/a><\/div>\n<p>&nbsp;<\/p>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/2.bp.blogspot.com\/-dqJAFDi81p0\/VGUQK5IFtPI\/AAAAAAAADNU\/kmPEkvt5lsM\/s1600\/blog21-23.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/2.bp.blogspot.com\/-dqJAFDi81p0\/VGUQK5IFtPI\/AAAAAAAADNU\/kmPEkvt5lsM\/s320\/blog21-23.png\" alt=\"\" width=\"320\" height=\"212\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Once it reloads, type no here and continue.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<table class=\"tr-caption-container\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">\n<tbody>\n<tr>\n<td><a href=\"https:\/\/1.bp.blogspot.com\/-pQ0PTBNW0N0\/VGUQNVuzoqI\/AAAAAAAADNk\/zS-ipLBsAVw\/s1600\/blog21-25.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-pQ0PTBNW0N0\/VGUQNVuzoqI\/AAAAAAAADNk\/zS-ipLBsAVw\/s320\/blog21-25.png\" alt=\"\" width=\"320\" height=\"182\" border=\"0\" \/><\/a><\/td>\n<\/tr>\n<tr>\n<td class=\"tr-caption\">Enable the premium license to get advanced features like mpls etc.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"separator\"><a href=\"https:\/\/4.bp.blogspot.com\/-x5GGRGrjWnY\/VGUQOp9ME6I\/AAAAAAAADNs\/F-rHu-QxlDY\/s1600\/blog21-26.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/4.bp.blogspot.com\/-x5GGRGrjWnY\/VGUQOp9ME6I\/AAAAAAAADNs\/F-rHu-QxlDY\/s320\/blog21-26.png\" alt=\"\" width=\"320\" height=\"182\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><\/div>\n<div class=\"separator\">Redirect the console to the serial which is the PIPE we created earlier. Once you do this you wont have Virtual Machine console anymore. However, in Part 3 of this series, I will show you how to get remote console.<\/div>\n<div class=\"separator\"><\/div>\n<div class=\"separator\">I could show you how to clone the first CSR1 and make 10 CSR routers, but in my experience cloning leads to issues, so you are better off just creating 10 routers by following the method above but changing the <em>pipe name <\/em>to CSR2.pipe CSR3.pipe and so on.<\/div>\n<div class=\"separator\"><\/div>\n<h2>Connecting Physical Switches<\/h2>\n<div>Connect the physical switches as below. Make sure to connect SW1 (Gi1\/1) to Eth2\/vmnic1 of the Hypervisor. Eth2\/vmnic1 is assigned to the vSwitch (vSwitch1) we created in Part 1 of this series.<\/div>\n<div>\n<div class=\"separator\"><a href=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\" alt=\"\" width=\"320\" height=\"147\" border=\"0\" \/><\/a><\/div>\n<\/div>\n<div class=\"separator\">Stay tuned for Part 3 which is coming up next week.<\/div>\n<div class=\"separator\"><\/div>\n<div class=\"separator\">\n<h3 class=\"post-title entry-title\">CCIE v5 INE Home Lab &#8211; Part 3 &#8211; Console to Routers \/ Automating scripts<\/h3>\n<p>Don&#8217;t you love it when it all comes together and all the puzzle pieces fall into place. Well I hope that this blogtorial does exactly that. In part 1 and part 2, we laid the groundwork and the foundation to successfully get a lab up and running and in this blogtorial we are going to finish it off with:<\/p>\n<ul>\n<li>How to console into the virtual routers?<\/li>\n<li>How to get all initial configs prep&#8217;d so we can have concentrate on doing the labs rather than setting up the labs?<\/li>\n<li>How to automate the loading of the initial configs?<\/li>\n<\/ul>\n<p>I know it&#8217;s a lot to cover in one post, but I also didn&#8217;t want to breakup this series into too many parts. So without further adieu, let&#8217;s get started and I will try to streamline it and post as much screenshots as possible. Here is the overview and where we will be spending most of the blogtorial.<\/p>\n<div class=\"separator\"><a href=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-dxxnLw76D2g\/VIb2IW4nPOI\/AAAAAAAADO0\/-cVbIedH6ns\/s1600\/blog-overview.JPG\" alt=\"\" width=\"320\" height=\"147\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><\/div>\n<div class=\"separator\"><\/div>\n<p><b>I normally would do it for free but I have had tons of requests and questions regarding the lab setup and scripts. So for a nominal fee I will configure your entire VMWare ESXi server \/ all the routers \/ the Linux VMs \/ auto loading scripts. Contact me via arwinr@gmail.com if you are interested.<\/b><br \/>\n<b><br \/>\n<\/b><i><b>Note<\/b>:\u00a0Thomas Kj\u00e6r pointed out in one of the comments below that ESXi version 6 recently released does not limit 4 serial per Linux VM. Therefore, instead of creating 4 linux VM you could just do it all in one Linux VM, but you would have to edit the scripts accordingly.\u00a0<\/i><br \/>\n<b><\/b><br \/>\n<b>How to console into the virtual routers?<\/b><\/p>\n<div>\n<p>Console access to the routers is accomplished by installing Linux virtual machines on the ESXi, adding serial adapters to the Linux VMs and redirecting the PIPEs (see part 2 on how to create the PIPE) to the Linux VM&#8217;s serial adapters. Now this might sound complicated to some folks but even the novice Linux users can follow this tutorial and accomplish the task. Again, the reason I am doing it this way is because VMware ESXi &#8220;Serial-Over-Network&#8221; that most tutorials on the Internet talks about is only valid for 60 days as a demo or you have to get the enterprise license for ESXi which is over $2000.Only draw back with PIPEs and Serial Adapters is that you can only add 4 Serial adapters to any particular Linux VM so you will have to create [ ceil ( total number of routers \/ 4) ] number of Linux VMs. So in our case ceil (10 routers \/ 4) is 3, so we would need a total of 3 Linux VMs to console into 10 routers. I&#8217;ll briefly walk through on how to install a Linux machine as this is not very hard to do. As a side note you could use Windows VM and use HyperTerm or putty to serial into your routers, I am using Linux because it gives me more flexibility.<\/p>\n<p>First download your favorite linux distro. I used CentOS 7 minimal install which can be downloaded from\u00a0http:\/\/isoredirect.centos.org\/centos\/7\/isos\/x86_64\/<\/p>\n<p>Just go into any one of those those directories listed above and download the minimal install.<\/p>\n<p><b>Create a new virtual machine.<\/b><\/p>\n<div class=\"separator\"><a href=\"http:\/\/2.bp.blogspot.com\/-o7xBCYvP4Gw\/VIbyNo5ROMI\/AAAAAAAADOI\/YNiU_Kl179A\/s1600\/part3-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-o7xBCYvP4Gw\/VIbyNo5ROMI\/AAAAAAAADOI\/YNiU_Kl179A\/s1600\/part3-1.png\" alt=\"\" width=\"320\" height=\"302\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/2.bp.blogspot.com\/-nU5cy5BGj5I\/VIbyNiFQt9I\/AAAAAAAADOQ\/N7MdLwl8RtM\/s1600\/part3-2.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-nU5cy5BGj5I\/VIbyNiFQt9I\/AAAAAAAADOQ\/N7MdLwl8RtM\/s1600\/part3-2.png\" alt=\"\" width=\"320\" height=\"302\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/4.bp.blogspot.com\/-uYWEKZSWh6A\/VIbyNvBZkfI\/AAAAAAAADOM\/g3WW7bCpbSM\/s1600\/part3-3.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/-uYWEKZSWh6A\/VIbyNvBZkfI\/AAAAAAAADOM\/g3WW7bCpbSM\/s1600\/part3-3.png\" alt=\"\" width=\"320\" height=\"302\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/1.bp.blogspot.com\/-nJV3VgasuBw\/VIbyOO5hkWI\/AAAAAAAADOk\/FI-eFnh8xRI\/s1600\/part3-4.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-nJV3VgasuBw\/VIbyOO5hkWI\/AAAAAAAADOk\/FI-eFnh8xRI\/s1600\/part3-4.png\" alt=\"\" width=\"320\" height=\"302\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/3.bp.blogspot.com\/-rcheij07Z6s\/VIbyOUjfKrI\/AAAAAAAADOY\/C3wB3usDxHg\/s1600\/part3-5.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-rcheij07Z6s\/VIbyOUjfKrI\/AAAAAAAADOY\/C3wB3usDxHg\/s1600\/part3-5.png\" alt=\"\" width=\"320\" height=\"302\" border=\"0\" \/><\/a><\/div>\n<p>Right click on the newly created Linux Machine and alter the settings.<\/p>\n<ul>\n<li>Ram only needs to be 512MB<\/li>\n<li>Name the VMs sniffer1, sniffer2, sniffer3 and so on as it will be important later-on in &#8220;automating scripts&#8221;.<\/li>\n<\/ul>\n<p><b>Add the serial adapters <\/b><br \/>\nThis is how we connect to the PIPEs we created in PART 2 from the Linux VMs. So when you are all done you will have CSR1.pipe, CSR2.pipe, CSR3.pipe, CSR4.pipe connected to Linux VM sniffer1. \u00a0CSR5.pipe, CSR6.pipe, CSR7.pipe, and CSR8.pipe connected to Linux VM sniffer2. And finally CSR9.pipe, CSR10.pipe connected to Linux VM sniffer3.<\/p>\n<\/div>\n<div><\/div>\n<div>Screenshot below as an example on how to connect PIPEs to Linux VMs.<\/div>\n<div><\/div>\n<div>Right click on the appropriate Linux VM and click Edit settings. For example, here I am adding CSR4.pipe to Linux VM sniffer1.<\/div>\n<div><\/div>\n<div>\n<div class=\"separator\"><a href=\"http:\/\/2.bp.blogspot.com\/-4J-7Jt78EMQ\/VL5XQU6jIJI\/AAAAAAAADQ8\/1n0mQzLDPY8\/s1600\/blog21-27.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-4J-7Jt78EMQ\/VL5XQU6jIJI\/AAAAAAAADQ8\/1n0mQzLDPY8\/s1600\/blog21-27.JPG\" alt=\"\" width=\"320\" height=\"211\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/1.bp.blogspot.com\/-tsIYu7CnOnY\/VL5XQfJrm3I\/AAAAAAAADQk\/3-iFYsNxLWw\/s1600\/blog21-28.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-tsIYu7CnOnY\/VL5XQfJrm3I\/AAAAAAAADQk\/3-iFYsNxLWw\/s1600\/blog21-28.JPG\" alt=\"\" width=\"320\" height=\"253\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/2.bp.blogspot.com\/-x11i8vQdTSc\/VL5XQZ3KlUI\/AAAAAAAADQo\/f-fsqzoP8xU\/s1600\/blog21-29.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-x11i8vQdTSc\/VL5XQZ3KlUI\/AAAAAAAADQo\/f-fsqzoP8xU\/s1600\/blog21-29.JPG\" alt=\"\" width=\"320\" height=\"251\" border=\"0\" \/><\/a><\/div>\n<div class=\"separator\"><a href=\"http:\/\/1.bp.blogspot.com\/-5mv_bkpoJc8\/VL5XQ1UTiNI\/AAAAAAAADQs\/mqeN5CHsDNA\/s1600\/blog21-30.JPG\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-5mv_bkpoJc8\/VL5XQ1UTiNI\/AAAAAAAADQs\/mqeN5CHsDNA\/s1600\/blog21-30.JPG\" alt=\"\" width=\"320\" height=\"252\" border=\"0\" \/><\/a><\/div>\n<p><b>Installing w\/ Linux ISO<\/b><\/p>\n<p>You need to SCP the Linux ISO file you downloaded to the VMware ESXi so you can install it as a Linux VM. I used WINSCP and connected to the ESXi and uploaded the ISO to the <i>vmimages <\/i>folder. Now I can use it to boot from it and install the VM. See below.<\/p>\n<p>Right click on the Linux VM and go to Edit settings.<\/p>\n<div class=\"separator\"><a href=\"http:\/\/1.bp.blogspot.com\/-RVmXneATN8A\/VL5ZFgFWKrI\/AAAAAAAADRI\/rQ2yt7Efaz4\/s1600\/blog21-41.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-RVmXneATN8A\/VL5ZFgFWKrI\/AAAAAAAADRI\/rQ2yt7Efaz4\/s1600\/blog21-41.png\" alt=\"\" width=\"320\" height=\"205\" border=\"0\" \/><\/a><\/div>\n<\/div>\n<div>Now power on the Linux and follow the on-screen instructions to install Linux on the VM.<\/div>\n<div>\n<p>Once the installation completes you can login into the first Linux VM as root\/password you created during install and use minicom to console into routers.First install minicom and expect by &#8216;yum install -y minicom expect&#8217;.<\/p>\n<p>minicom -D \/dev\/ttyS0 &#8212; This will get you console to R1<br \/>\nminicom -D \/dev\/ttyS1 &#8212;\u00a0This will get you console to R2<br \/>\nminicom -D \/dev\/ttyS2 &#8212;\u00a0This will get you console to R3<br \/>\nminicom -D \/dev\/ttyS3 &#8212;\u00a0This will get you console to R4<\/p>\n<p>To get out of console you can do CTRL A then let go of CTRL and press Z press X and Enter.<\/p>\n<p>You can repeat the process above to create the rest of the Linux VM and make sure to modify things like the Serial Adapter pipe name for example CSR5.pipe, CSR6.pipe and so on.<br \/>\n<b><br \/>\n<\/b><b>Prepping the Config files<\/b><\/p>\n<p>Why do we need to prep the config files? Well the initial config files from INE are just a template and it&#8217;s not configured to fit exactly to what we are doing so we need to edit all the config files at once to get it working in our environment.<\/p>\n<p>First thing we need to do is download the INE initial config files. If you have access to INE then you should know how to do this.<\/p>\n<p>Then create a folder in the first Linux VM machine you created. I&#8217;ll call my first Linux machine &#8220;sniffer 1&#8221;.<\/p>\n<p>mkdir \/root\/ine\/<\/p>\n<p>Copy all the INE initial config files into this directory using winscp or some other scp software. Since the files I downloaded and extracted are in the windows format I had to get rid of the ^M in all the .txt files. We can accomplish this in a sed one liner.<\/p>\n<pre><code> cd \/root\/ine  \r\n find . -type f -exec sed -i 's\/^M\/\/' {} \\;  \r\n<\/code><\/pre>\n<p>To enter ^M, type CTRL-V, then CTRL-M. That is, hold down the CTRL key then press V and M in succession.<\/p>\n<p>Now we need to add one more thing to the config files and that&#8217;s the &#8216;platform console serial&#8217; command. So if we happen to load INE initial config file as a startup-configuration and reload the routers we won&#8217;t loose console connection. Again, we can accomplish this in a sed one liner. I am also going to TAR up all the files to be SCP&#8217;d into the routers.<\/p>\n<pre><code> cd \/root\/ine\/  \r\n find . -type f -exec sed -i '\/hostname*\/a platform console serial' {} \\;  \r\n <\/code>tar -cvf ine.tar \/root\/ine\/<\/pre>\n<p>Now the INE initial configuration are prepped to be loaded into the routers.<\/p>\n<p>In order to get all the INE initial config files on the routers, we need to connect GigabitEthernet2 of all the routers into the management virtual switch and TFTP or SCP all the config files.<\/p>\n<p>Right click on all the routers, click on &#8216;Edit Settings&#8217; and change Network Adapter 2 to VM Network.<\/p>\n<div class=\"separator\"><a href=\"http:\/\/4.bp.blogspot.com\/-zAA1uHqB7zE\/VJL9T3IvkFI\/AAAAAAAADPM\/8EzGH0ELKJg\/s1600\/blog21-34.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/4.bp.blogspot.com\/-zAA1uHqB7zE\/VJL9T3IvkFI\/AAAAAAAADPM\/8EzGH0ELKJg\/s1600\/blog21-34.png\" alt=\"\" width=\"320\" height=\"285\" border=\"0\" \/><\/a><\/div>\n<p>Now SCP or TFTP the entire the INE files (sniffer1) to bootflash of all the routers. I used SCP in my lab and on R1 &#8211; R10 do the command below.<i>172.20.37.233 is the IP of my SNIFFER1 Linux VM.\u00a0<\/i><\/p>\n<p>R1# copy scp:\/\/root@172.20.37.233\/root\/ine\/ine.tar\/ bootflash:ine.tar<\/p>\n<p>Now you have all the INE initial config files ready to load into the running config as needed.<\/p>\n<p><b>Extract the tar file on all the routers.\u00a0<\/b><br \/>\n<b><br \/>\n<\/b><\/p>\n<pre><code>Router#archive tar \/xtract bootflash:ine.tar bootflash:ine<\/code><\/pre>\n<p><b>Save a blank.cfg on all routers<\/b><br \/>\n<b><br \/>\n<\/b>When the routers initially come up, you should have no config on them. Save this state in the bootflash by typing &#8220;copy run bootflash:blank.cfg&#8221;. For example,<\/p>\n<pre><code>Router#copy run bootflash:blank.cfg<\/code><\/pre>\n<p><b><br \/>\n<\/b><i>Make sure to do this on ALL ROUTERS.\u00a0<\/i><br \/>\n<b><br \/>\n<\/b><b>Snapshot all the routers<\/b><br \/>\n<b><br \/>\n<\/b>CSR license level is only good for 60 days. After 60 days you won&#8217;t have access to advanced features like crypto map (needed for DMVPN etc). So after you load\/extract the ine files on the routers take a snapshot of your router.<\/p>\n<p>Right click on the router on VMware -&gt; Snapshot -&gt; Take Snapshot.<\/p>\n<p>When you are passed 60 days, you can just revert back to this initial snapshot.<\/p>\n<p><b>Automatic Loading Initial Configs<\/b><br \/>\n<b><br \/>\n<\/b>As you are going through INE or any other workbooks you will have to load different initial config files are or reset the running config so you can work on a different task. Loading up the initial config files, reloading the routers and waiting for 5 minutes doesn&#8217;t make much sense, so the best option I&#8217;ve found is to use &#8220;configure [replace initial config file] force&#8221;. With these scripts you can fully automate the loading of the initial config files on all routers.<\/p>\n<p>To accomplish this we are going to use a little bit of PHP, parallel processing scripts, and bash scripting using expect. Again, even a novice user can get this accomplished by following my steps and if you have any questions leave comments.<\/p>\n<p>First install the packages needed.<\/p>\n<pre><code> yum install -y php.x86_64 php-cli.x86_64 php-common.x86_64            \r\n<\/code><\/pre>\n<p>Next add these entries in the sniffer1 host files. Make sure to edit the IPs accordingly. You can do a ifconfig -a on the Linux VMs to figure out the machines IP.<\/p>\n<pre><code> root@sniffer1# vim \/etc\/hosts  \r\n\r\n 172.20.37.201 sniffer1  \r\n 172.20.37.202 sniffer2  \r\n 172.20.37.203 sniffer3  \r\n\r\n<\/code><\/pre>\n<p>Next create the PHP script to parallel process and run multiple scripts simultaneously.<\/p>\n<pre><code> root@sniffer1# vim \/root\/autoload.php \r\n  \r\n &lt;?php  \r\n\r\n #NAME::INE AUTO LOAD by Arwin R.  \r\n #DESC::Expect script to auto load INE initial config files.  \r\n #Version 1.1\r\n\r\n if ($argv[1] == \"exec\") {  \r\n     $configfile = $argv[2];  \r\n     $server = $argv[3];  \r\n     if ($server == \"sniffer1\") {  \r\n         $consolenum = 0;  \r\n         for ($i = 1; $i &lt;= 4; $i++) {  \r\n             shell_exec (\"ssh root@$server \/root\/minicom.sh $configfile\" . \"R$i.txt $consolenum\");  \r\n             $consolenum++;  \r\n         }  \r\n     }  \r\n     if ($server == \"sniffer2\") {  \r\n         $consolenum = 0;  \r\n         for ($i = 5; $i &lt;= 8; $i++) {  \r\n             shell_exec (\"ssh root@$server \/root\/minicom.sh $configfile\" . \"R$i.txt $consolenum\");  \r\n             $consolenum++;  \r\n         }  \r\n     }  \r\n     if ($server == \"sniffer3\") {  \r\n         $consolenum = 0;  \r\n         for ($i = 9; $i &lt;= 10; $i++) {  \r\n             shell_exec (\"ssh root@$server \/root\/minicom.sh $configfile\" . \"R$i.txt $consolenum\");  \r\n             $consolenum++;  \r\n         }  \r\n     }  \r\n }  \r\n if ($argv[1] == \"load\") {  \r\n     $configfile = $argv[2];  \r\n     shell_exec (\"php autoload.php exec $configfile sniffer1 &gt;&gt; switch.log &amp;\");  \r\n     shell_exec (\"php autoload.php exec $configfile sniffer2 &gt;&gt; switch.log &amp;\");  \r\n     shell_exec (\"php autoload.php exec $configfile sniffer3 &gt;&gt; switch.log &amp;\");  \r\n }  \r\n ?&gt;  \r\n<\/code><\/pre>\n<p>Save the file using :wq!<\/p>\n<p>Put this script on all 3 Linux VMs (sniffer1, sniffer2, sniffer3) under \/root\/<\/p>\n<pre><code> root@sniffer1: vim \/root\/minicom.sh\r\n\r\n #!\/usr\/bin\/expect  \r\n #NAME::INE AUTO LOAD by Arwin R.  \r\n #DESC::Expect script to auto load INE initial config files.  \r\n #Version 1.1  \r\n set timeout 1  \r\n set configfile [lindex $argv 0];  \r\n set serialnumber [lindex $argv 1];  \r\n set fd [ open \/dev\/ttyS$serialnumber { RDWR NONBLOCK } ]  \r\n fconfigure $fd  \r\n spawn -open $fd  \r\n send \"\\x1A\";  \r\n sleep 1;  \r\n send \"\\r\";  \r\n sleep 1;  \r\n send \"\\032\";  \r\n sleep 1;  \r\n send \"\\r\";  \r\n sleep 1;  \r\n send \"configure replace bootflash:blank.cfg force\\r\";  \r\n sleep 4;  \r\n send \"\\r\";  \r\n sleep 1;  \r\n send \"\\x1A\";  \r\n sleep 1;  \r\n send \"\\r\";  \r\n sleep 1;  \r\n send \"\\032\";  \r\n sleep 1;  \r\n send \"configure replace bootflash:$configfile force\\r\";  \r\n send \"\\r\";  \r\n sleep 2  \r\n send \"\\x1A\";  \r\n sleep 1;  \r\n send \"\\r\";  \r\n sleep 1;  \r\n send \"\\032\";  \r\n sleep 1;  \r\n<\/code><\/pre>\n<p>Save the file :wq!<\/p>\n<p>Sniffer 1 needs to be able to SSH without password to sniffer1, sniffer2, and sniffer3 to run commands so we need to setup &#8216;SSH without password&#8217;.<\/p>\n<pre><code>\r\n <b>root@sniffer1# ssh-keygen -t rsa  <\/b>\r\n Generating public\/private rsa key pair.  \r\n Enter file in which to save the key (\/home\/sniffer1\/.ssh\/id_rsa):   \r\n Created directory '\/home\/sniffer1\/.ssh'.  \r\n \r\n<b><i> Make sure you just hit enter twice here <\/i><\/b>\r\n\r\n Enter passphrase (empty for no passphrase):   \r\n Enter same passphrase again:   \r\n Your identification has been saved in \/home\/sniffer1\/.ssh\/id_rsa.  \r\n Your public key has been saved in \/home\/sniffer1\/.ssh\/id_rsa.pub.  \r\n The key fingerprint is:  \r\n 3e:41:01:71:31:92:91:7c:3b:ad:e9:58:37:bc:37:e4 root@sniffer1  \r\n \r\n <i><b>Now we need to create a directory ~\/.ssh as user root on sniffer2 and sniffer3. If the directory already exists don't worry about creating it.   <\/b><\/i><b>\r\n<\/b>\r\n <b>root@sniffer1# ssh root@sniffer2 mkdir -p .ssh  <\/b>\r\n root@sniffer2 password:   \r\n <b>root@sniffer1# ssh root@sniffer3 mkdir -p .ssh  <\/b>\r\n root@sniffer3 password:   \r\n \r\n <b><i>Let's now append the public key to sniffer1, sniffer2 and sniffer3.   <\/i><\/b>\r\n \r\n <b>root@sniffer1# cat .ssh\/id_rsa.pub | ssh root@sniffer1 'cat &gt;&gt; .ssh\/authorized_keys'  <\/b>\r\n root@sniffer1 password:   \r\n\r\n <b>root@sniffer1# cat .ssh\/id_rsa.pub | ssh root@sniffer2 'cat &gt;&gt; .ssh\/authorized_keys'  <\/b>\r\n root@sniffer2 password:   \r\n\r\n<b> root@sniffer1# cat .ssh\/id_rsa.pub | ssh root@sniffer3 'cat &gt;&gt; .ssh\/authorized_keys'  <\/b>\r\n root@sniffer3 password:   \r\n\r\n<\/code><\/pre>\n<p>Sniffer1 now should be able to SSH to sniffer2 and sniffer3 without having to enter a password so the scripts can run seamlessly.<\/p>\n<p>On sniffer1 type<\/p>\n<p><b>root@sniffer1# php \/root\/autoload.php load ine\/advanced.technology.labs\/basic.rip.routing\/ <\/b><\/p>\n<p>will load basic.rip.routing initial config on R1 &#8211; R10.<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Every day you wake up you have two options, you can either look at the clock at 3:30am, tap the snooze button, go back to sleep, and dream about being a CCIE or you can tap into that whisper inside you telling you to get up and go pursue your dream about being a CCIE&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,3],"tags":[],"class_list":["post-202","post","type-post","status-publish","format-standard","hentry","category-ccie-rns","category-vmware"],"_links":{"self":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=202"}],"version-history":[{"count":4,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions"}],"predecessor-version":[{"id":350,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=\/wp\/v2\/posts\/202\/revisions\/350"}],"wp:attachment":[{"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.balajibandi.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}