{"id":5221,"date":"2020-12-30T10:18:56","date_gmt":"2020-12-30T02:18:56","guid":{"rendered":"https:\/\/www.alfredivy.per.sg\/blogger\/?p=5221"},"modified":"2021-01-03T17:55:56","modified_gmt":"2021-01-03T09:55:56","slug":"deploying-cisco-stacked-switches","status":"publish","type":"post","link":"https:\/\/www.alfredivy.sg\/blogger\/2020\/12\/deploying-cisco-stacked-switches\/","title":{"rendered":"Deploying Cisco stacked switches"},"content":{"rendered":"\n<p>Deploying Cisco stacked switches fresh from the box.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Against my better judgement, I offered to connect up a switch for the customer.\u00a0 When I reached the site, I realised that the new switch is not one but a stack of 3 switches.\u00a0 Oops.\u00a0 \u00a0 My original plan was, firstly copy the config from another production switch. Secondly, modify stuff, change the IP and hostname.\u00a0 Finally, copy the modified file into the running configuration of the new switch.<\/p>\n\n\n\n<p>Now looking at the 3 switches, I was worried how would the configuration be distributed throughout the stack.  In addition, I remembered vaguely something about stack master and members. The initial steps of connecting the stack cabling and stack power, I got it from Cisco&#8217;s website.\u00a0 In the end,\u00a0I decided to duplicate the cabling as in the reference production switch.<\/p>\n\n\n\n<h4 class=\"wp-block-preformatted\">Switch Priority<\/h4>\n\n\n\n<p>On booting up, the switch priority was all messed up.\u00a0 The master switch, based on the smallest MAC address is at the bottom.\u00a0 I wanted it to be the top switch.\u00a0To fix this, a simple way is to move the switches. The stack was nicely mounted and patched so I am not going to mess around with that.<\/p>\n\n\n\n<p>The switch priority to setup was easy enough\u00a0 Do it in &#8220;privilege exec&#8221; mode, not &#8220;global config mode&#8221; (config terminal).\u00a0 \u00a0 <\/p>\n\n\n\n<h4>Switch Numbering<\/h4>\n\n\n\n<p>As I ran through the interface status, I realized the switch numbering order needs to be corrected too.\u00a0 The master switch is number 3, it needs to be Switch 1. This requires multiple restarts as only 1 switch can be renumbered at a time.\u00a0 <\/p>\n\n\n\n<p>From <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><span style=\"font-size: 10pt;\">Switch\/Stack Mac Address : f4bd.9e5b.9999 - Local Mac Address<br \/>Mac persistency wait time: Indefinite\u00a0<br \/> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 H\/W\u00a0 Current<br \/>Switch#\u00a0 Role\u00a0 \u00a0 Mac Address\u00a0 \u00a0 Priority Version\u00a0 State <br \/>------------------------------------------------------------------------------------- <br \/>1\u00a0 \u00a0 \u00a0 Standby\u00a0 10b3.c665.1111\u00a0 \u00a0 10\u00a0 \u00a0 V02\u00a0 \u00a0 Ready\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <br \/>2\u00a0 \u00a0 \u00a0 Member\u00a0 f4bd.9e37.2222\u00a0 \u00a0 1\u00a0 \u00a0 \u00a0 V02\u00a0 \u00a0 Ready\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <br \/>*3\u00a0 \u00a0 \u00a0 Active\u00a0 f4bd.9e5b.9999\u00a0 \u00a0 15\u00a0 \u00a0 V02\u00a0 \u00a0 Ready<\/span><\/pre>\n\n\n\n<p>To something like this.<\/p>\n\n\n\n<pre><span style=\"font-size: 10pt;\">Switch\/Stack Mac Address : f4bd.9e5b.9999 - Local Mac Address<\/span><br \/><span style=\"font-size: 10pt;\">Mac persistency wait time: Indefinite<\/span><br \/><span style=\"font-size: 10pt;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 H\/W\u00a0 Current<\/span><br \/><span style=\"font-size: 10pt;\">Switch#\u00a0 Role\u00a0 \u00a0 Mac Address\u00a0 \u00a0 Priority Version\u00a0 State <\/span><br \/><span style=\"font-size: 10pt;\">-------------------------------------------------------------------------------------<\/span><br \/><span style=\"font-size: 10pt;\">*1\u00a0 \u00a0 \u00a0 Active\u00a0 f4bd.9e5b.9999\u00a0 \u00a0 15\u00a0 \u00a0 V02\u00a0 \u00a0 Ready\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><br \/><span style=\"font-size: 10pt;\">2\u00a0 \u00a0 \u00a0 Member\u00a0 f4bd.9e37.2222\u00a0 \u00a0 1\u00a0 \u00a0 \u00a0 V02\u00a0 \u00a0 Ready\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <\/span><br \/><span style=\"font-size: 10pt;\">3\u00a0 \u00a0 \u00a0 Standby\u00a0 10b3.c665.1111\u00a0 \u00a0 10\u00a0 \u00a0 V02\u00a0 \u00a0 Ready<\/span><\/pre>\n\n\n\n<h4 class=\"wp-block-preformatted\">Loading the configuration<\/h4>\n\n\n\n<p>With the switch in the correct numbering sequence,\u00a0 I need to FTP in the modified config file.  Doing it this way, I don&#8217;t need to configure each part of the device. Note pasting a 48 port interface commands can overflow the terminal buffer.  I configured the management interface with an IP address and set the source interface for FTP.\u00a0 Started the FTP server on my notebook, on the switch, copied in the config\u00a0 using the following:<\/p>\n\n\n\n<p>ip source-interface FTP gig0\/0<br \/>ping vrf Mgmt-vrf &lt;IP address of notebook&gt;<br \/>copy ftp running-config<\/p>\n\n\n\n<p>Follow the prompts to transfer the file. Next, check through and save the configuration to flash. Strangely I needed to change password.\u00a0<\/p>\n\n\n\n<p><a href=\"https:\/\/www.cisco.com\/c\/en\/us\/td\/docs\/switches\/lan\/catalyst9300\/software\/release\/16-5\/configuration_guide\/stck_mgr_ha\/b_165_stck_mgr_ha_9300_cg\/managing_switch_stacks.html\" target=\"_blank\" rel=\"noreferrer noopener\">Switch priority<\/a><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deploying Cisco stacked switches fresh from the box.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[440],"class_list":["post-5221","post","type-post","status-publish","format-standard","hentry","category-work","tag-cisco"],"_links":{"self":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/5221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/comments?post=5221"}],"version-history":[{"count":4,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/5221\/revisions"}],"predecessor-version":[{"id":5234,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/posts\/5221\/revisions\/5234"}],"wp:attachment":[{"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/media?parent=5221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/categories?post=5221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.alfredivy.sg\/blogger\/wp-json\/wp\/v2\/tags?post=5221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}