{"id":729,"date":"2013-07-23T18:56:42","date_gmt":"2013-07-24T00:56:42","guid":{"rendered":"http:\/\/benincosa.com\/blog\/?p=729"},"modified":"2014-11-19T11:24:32","modified_gmt":"2014-11-19T17:24:32","slug":"change-a-fabric-interconnect-into-a-nexus-switch","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=729","title":{"rendered":"Change a Fabric Interconnect into a Nexus Switch"},"content":{"rendered":"<p>I got a Nexus 5010 from our spare parts department. \u00a0When I booted it up, lo and behold, it thought it was a UCS Fabric Interconnect 6020!<\/p>\n<p>As most people know the 6120XP is the same hardware as the Nexus 5010. \u00a0Only difference is that its spray painted green. \u00a0Well this particular model I got was gray and said it was a Nexus 5010. \u00a0So I was bound and determined to get it back. \u00a0I got pretty close, and wanted to write down the steps I took.<\/p>\n<p>I&#8217;m sad to say, however, that I didn&#8217;t get it to work all the way.<\/p>\n<p>Here&#8217;s what I did:<\/p>\n<p><strong>Step 1.  Get TFTP server setup  (This explains how to do it for a MacBook Pro)<\/strong><br \/>\nI&#8217;m running Mountain Lion OSX.  Turns out there is a default tftp server installed with it.  Getting it running is pretty easy.  Just run:<\/p>\n<blockquote><p>sudo launchctl load -F \/System\/Library\/LaunchDaemons\/tftp.plist<\/p><\/blockquote>\n<p>(Turning it off is done with:<\/p>\n<blockquote><p>sudo launchctl unload -F \/System\/Library\/LaunchDaemons\/tftp.plist<\/p><\/blockquote>\n<p>)<br \/>\n(To see if its running run:<\/p>\n<blockquote><p>sudo launchctl list | grep tftp,<\/p><\/blockquote>\n<p>if you see output its running, if not, its not)<\/p>\n<p>From there you need to put the files you need into the  \/private\/tftpboot\/<\/p>\n<p>I went to Cisco&#8217;s support page and easily found two files:<br \/>\nn5000-uk9.5.2.1.N1.5.bin &lt; the software file<br \/>\nand<br \/>\nn5000-uk9-kickstart.5.2.1.N1.5.bin &lt; the kickstart file<\/p>\n<p>I had to copy them with sudo since you&#8217;re going into a privileged directory.<\/p>\n<p>You should test your tftp server to make sure it works.  No use yelling at the Nexus 5000 for telling you it can&#8217;t access the file.<\/p>\n<p>From the command prompt on the mac:<\/p>\n<blockquote><p>cd ~\/Desktop<br \/>\ntftp localhost<br \/>\nget  n5000-uk9.5.2.1.N1.5.bin<\/p><\/blockquote>\n<p>If that works, you are in business.<\/p>\n<p><strong>Step 2.  Load the Nexus 5000 (that thinks its a 6100) into the loader prompt.<\/strong><\/p>\n<p>When the machine started booting, I had to do<\/p>\n<blockquote><p>Ctrl+Shift+R<\/p><\/blockquote>\n<p>right as it was loading the UCS kickstart file.  Doing this got me to a<br \/>\nloader&gt;<\/p>\n<p>prompt.<\/p>\n<p>From here, we don&#8217;t have a lot of options. But all we need to do is set the mgmt0 interface and kickstart from our Nexus image that we have on tftp.<br \/>\n(Incidently, at this point I ran the dir command to see if there were any nexus images, and there wasn&#8217;t!  Only UCS images. )<\/p>\n<p>Here&#8217;s how we set that:<\/p>\n<p>loader&gt; set ip 192.168.1.99 255.255.255.0<\/p>\n<p>Then it confirmed that this was good.  Now, to load up the kickstart file:<\/p>\n<blockquote><p>loader&gt; boot tftp:\/\/192.168.1.234\/private\/tftpboot\/n5000-u9-kickstart.5.2.1.N1.5.bin<br \/>\nAddress: 192.168.1.99<br \/>\nNetmask: 255.255.255.0<br \/>\nServer: 192.168.1.234<br \/>\nGateway: 0.0.0.0<br \/>\nBooting: \/private\/tftpboot\/n5000-uk9-kickstart.5.2.1.N1.5.bin console=ttyS0,960<br \/>\n0n8nn<\/p><\/blockquote>\n<p>the system then boots up.  Does some image verification and loads into a boot prompt:<\/p>\n<blockquote><p>Cisco Nexus Operating System (NX-OS) Software<br \/>\nTAC support: http:\/\/www.cisco.com\/tac<br \/>\nCopyright (c) 2002-2013, Cisco Systems, Inc. All rights reserved.<br \/>\nThe copyrights to certain works contained in this software are<br \/>\nowned by other third parties and used and distributed under<br \/>\nlicense. Certain components of this software are licensed under<br \/>\nthe GNU General Public License (GPL) version 2.0 or the GNU<br \/>\nLesser General Public License (LGPL) Version 2.1. A copy of each<br \/>\nsuch license is available at<br \/>\nhttp:\/\/www.opensource.org\/licenses\/gpl-2.0.php and<br \/>\nhttp:\/\/www.opensource.org\/licenses\/lgpl-2.1.php<br \/>\nswitch(boot)#<\/p><\/blockquote>\n<p><strong>Step 3: Copy files and continue booting<\/strong><\/p>\n<p>Now we just need to get the files on the device.<\/p>\n<blockquote><p>switch(boot)# con t<br \/>\nswitch(boot)(config)# inter mgmt 0<br \/>\nswitch(boot)(config-if)# ip address 192.168.1.99 255.255.255.0<br \/>\nswitch(boot)(config-if)# no shutdown<br \/>\nswitch(boot)(config-if)# exit<br \/>\nswitch(boot)(config)# exit<br \/>\nswitch(boot)# copy tftp: boot flash:<br \/>\nswitch(boot)# copy tftp: bootflash:<br \/>\nEnter source filename: \/private\/tftpboot\/n5000-uk9.5.2.1.N1.5.bin<br \/>\nEnter hostname for the tftp server: 192.168.1.234<br \/>\nTrying to connect to tftp server&#8230;&#8230;<br \/>\nConnection to server Established. Copying Started\u2026..<\/p><\/blockquote>\n<p>At this point I went downstairs and had some chips to eat.  I got back and had to wait like 15-20 min for it to copy.  Shesh!  Finally, when I was about to cancel it, I saw:<\/p>\n<blockquote><p>TFTP get operation was successful<br \/>\nCopy complete, now saving to disk (please wait)\u2026<\/p><\/blockquote>\n<p>Now we need to get the kickstart file:<\/p>\n<blockquote><p>switch(boot)# copy tftp:\/\/192.168.1.234\/n5000-uk9-kickstart.5.2.1.N1.5.bin boot flash:<\/p><\/blockquote>\n<p>So I waited some more, this one didn&#8217;t take as long.<\/p>\n<p>Then I deleted a bunch of UCS files:<\/p>\n<blockquote><p>switch(boot)# delete bootflash:ucs-6100-k9-system.4.0.1a.N2.1.0.1036.gbin<br \/>\nswitch(boot)# delete bootflash:cisco_nexus_1000v_certificate.pem<br \/>\nswitch(boot)# delete bootflash:ucs-6100-k9-kickstart.4.0.1a.N2.1.0.1036.gbin<br \/>\nswitch(boot)# delete bootflash:ucs-6100-k9-kickstart.4.0.1a.N2.1.0.1056d.gbin<br \/>\nswitch(boot)# delete bootflash:ucs-6100-k9-system.4.0.1a.N2.1.0.1056d.gbin<br \/>\nswitch(boot)# delete bootflash:ucs-manager-k9.1.0.0.1036.gbin<br \/>\nswitch(boot)# delete bootflash:ucs-manager-k9.1.0.0.1056d.gbin<\/p><\/blockquote>\n<p>Then I booted the image:<\/p>\n<blockquote><p>switch(boot)# load n5000-uk9.5.2.1.N1.5.bin<\/p><\/blockquote>\n<p>This set me to the boot prompt again.  So I hit exit:<\/p>\n<blockquote><p>boot switch(boot)# exit<\/p><\/blockquote>\n<p>It kept rebooting to stored images of UCS manager.  So I found this command:<\/p>\n<blockquote><p>init system check-filesystem<\/p><\/blockquote>\n<p>From here, I repeated the operation of downloading the 2 Nexus images. \u00a0At least now it didn&#8217;t boot up into UCS Fabric Interconnect, but I could never get it to go to regular Cisco Nexus 5010. \u00a0It may be that there was something wrong with the hardware. \u00a0It certainly looks a little beat if you look at this hardware. \u00a0If nothing else, I learned a little more about the boot files in the Nexus 5000.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I got a Nexus 5010 from our spare parts department. \u00a0When I booted it up, lo and behold, it thought it was a UCS Fabric Interconnect 6020! As most people know the 6120XP is the same hardware as the Nexus 5010. \u00a0Only difference is that its spray painted green. \u00a0Well this particular model I got&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[990,148],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/729"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=729"}],"version-history":[{"count":1,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/729\/revisions"}],"predecessor-version":[{"id":730,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/729\/revisions\/730"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}