{"id":840,"date":"2021-08-20T03:08:35","date_gmt":"2021-08-20T03:08:35","guid":{"rendered":"http:\/\/feralpacket.org\/?p=840"},"modified":"2021-08-20T03:08:35","modified_gmt":"2021-08-20T03:08:35","slug":"multiple-spanning-tree-mst-notes","status":"publish","type":"post","link":"https:\/\/feralpacket.org\/?p=840","title":{"rendered":"Multiple Spanning Tree (MST) Notes"},"content":{"rendered":"<p><span style=\"font-weight: bold;\">Multiple Spanning Tree (MST)<\/span><\/p>\n<p>&nbsp;&#8211; 802.1S<\/p>\n<p>&nbsp;&#8211; Called MSTP by Cisco previously<\/p>\n<p>&nbsp;&#8211; Can map VLANs to STP instances<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; e.g. &#8211;&nbsp;<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Instance 1<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; VLAN 1 &#8211; 32<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Instance 2<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; VLAN 33 &#8211; 65<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Instance 3<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; VLAN 66 &#8211; 100<\/p>\n<p>&nbsp;&#8211; Only supports RSTP for convergence<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Activated automatically<\/p>\n<p>&nbsp;&#8211; Problem<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Every switch needs to be configured the same<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Manually<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; VTP cannot be used<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Use notepad<\/p>\n<p>&nbsp;&#8211; MST creates a set of switches using the same configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Called a Region<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; All have the exact same configuration<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Allows up to 16 instances per Region<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Instance 0 &#8211; 15<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Instance 0<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; Internal Spanning Tree (IST)<\/p>\n<p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp;-&gt; By default, all VLANs map to IST<\/p>\n<p>&nbsp;&#8211; Every MST configuration has 3 variables<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Region name<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Default is NULL<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Revision number<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Default is 0<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Instance to VLAN mapping<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Default, all VLANs map to IST<\/p>\n<p>&nbsp;&#8211; Configure one switch, then copy that configuration to all other switches<\/p>\n<p>&nbsp;&#8211; Can configure all of the MST parameters, then activate MST<\/p>\n<p>&nbsp;&#8211; Only one BPDU is sent<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Controlled by the IST<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Specific information about instances attaches as \u201cM-Records&#8221;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/edde53ae2b8fda04e54a09faf5a53461.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mst configuration<\/span><\/p>\n<p>SW1(config-mst)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">name CISCO<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;revision 10<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;instance 1 vlan 1 &#8211; 32<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;instance 2 vlan 33 &#8211; 65<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;instance 3 vlan 66 &#8211; 100<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;show pending<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;exit<\/span><\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mode mst<\/span><\/p>\n<p>Scenario -&gt; In instance 0, configure all VLANs except VLANs 1 &#8211; 100.<\/p>\n<p>&nbsp;&#8211; If the question asks you to configure all other VLANs to one instance (after first two), only configure two instances.<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; All other VLANs will be in instance 0<\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst configuration<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst [id]<\/span><\/p>\n<p><span style=\"font-weight: bold;\">MST introduces MAX HOPS feature<\/span><\/p>\n<p>&nbsp;&#8211; Allows equal to MAX-AGE time<\/p>\n<p>&nbsp;&#8211; Change MAX-AGE time to configure the maximum hops<\/p>\n<p><span style=\"font-weight: bold;\">MST Interface Costs<\/span><\/p>\n<p>&nbsp;&#8211; 10 Mbps \u2014&gt; 2000000<\/p>\n<p>&nbsp;&#8211; 100 Mbps \u2014&gt; 200000<\/p>\n<p>&nbsp;&#8211; 1 Gbps \u2014&gt; 20000<\/p>\n<p>&nbsp;&#8211; 10 Gbps \u2014&gt; 2000<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mst 1 priority 4096<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;&#8211; or &#8211;<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mst 1 root primary<\/span><\/p>\n<p>&nbsp; &nbsp; &nbsp;&#8211; or &#8211;<\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mst 1 root secondary<\/span><\/p>\n<p>Can configure who will be the root for IST (instance 0)<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/fe4022857fd521efca404fc20c419c0c.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p>Only the IST communicates between Regions<\/p>\n<p>&nbsp;&#8211; Sends a single BPDU<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Removes M-Records<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; This hides the topology of the Region<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Similar to the ABR in OSPF<\/p>\n<p>&nbsp;&#8211; One Region appears as a single switch to another Region<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/9bd5ef58d65215eac38ed16b763769a6.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p><span style=\"font-weight: bold;\">CIST Root<\/span><\/p>\n<p>&nbsp;&#8211; The best Bridge-ID switch among all Regions<\/p>\n<p><span style=\"font-weight: bold;\">Region Root<\/span><\/p>\n<p>&nbsp;&#8211; Instance 0 root bridge in every Region<\/p>\n<p>&nbsp;&#8211; In any Region, only a boundary switch can be a Region root<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Exception, the CIST root is also the Region root and does not have to be a boundary switch<\/p>\n<p>&nbsp; &nbsp; &nbsp;1. &nbsp;Root bridge<\/p>\n<p>&nbsp; &nbsp; &nbsp;2. &nbsp;Cost to reach root bridge (CIST)<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Internal cost within the Region are not considered to determine the Region root<\/p>\n<p>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;-&gt; Only external cost is considered<\/p>\n<p>&nbsp; &nbsp; &nbsp;3. &nbsp;Sender Bridge-ID<\/p>\n<p>&nbsp; &nbsp; &nbsp;4. &nbsp;Sender Port-ID<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/7ddc649276d7e0370eb8ec618c8f8697.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p><span style=\"font-weight: bold;\">Master Port<\/span><\/p>\n<p>&nbsp;&#8211; Root port of any Region<\/p>\n<p>&nbsp;&#8211; On Region root<\/p>\n<p>&nbsp;&#8211; Seen as \u201cmaster port\u201d by non-IST instances<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; Going toward the master<\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst 0<\/span><\/p>\n<p>&nbsp;&#8211; Shows the root port<\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst 1<\/span><\/p>\n<p>&nbsp;&#8211; Show the master port<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/244d8d33dcf5187f21a522008afd832d.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show run | in mst|name|rev|ins<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst configuration<\/span><\/p>\n<p>&nbsp;&#8211; Should be the same as<\/p>\n<p>&nbsp; &nbsp; &nbsp;-&gt; <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show pending<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">clear spanning-tree detected-protocols<\/span><\/p>\n<p>&nbsp;&#8211; To switch to MST faster<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/feralpacket.org\/wp-content\/uploads\/2018\/10\/a4f877aeb28aff10d587679da25cad01.jpeg\" style=\"\" width=\"\" height=\"\"><\/p>\n<p>SW1(config)# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mode pvst+<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">no spanning-tree mst configuration<\/span><\/p>\n<p>&lt;paste MST configuration from Notepad&gt;<\/p>\n<p>&nbsp;<span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show pending<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">&nbsp;exit<\/span><\/p>\n<p><span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">spanning-tree mode mst<\/span><\/p>\n<p>SW2# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst<\/span><\/p>\n<p>&nbsp;E3\/0&nbsp; &nbsp; &nbsp;Root&nbsp; &nbsp; &nbsp;FWD&nbsp; &nbsp; &nbsp;Shr Bound (RSTP)<\/p>\n<p>SW3# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst<\/span><\/p>\n<p>&nbsp;E3\/0&nbsp; &nbsp; &nbsp;Altn&nbsp; &nbsp; &nbsp;BLK&nbsp; &nbsp; &nbsp;Shr Bound (RSTP)<\/p>\n<p>&nbsp;E3\/1&nbsp; &nbsp; &nbsp;Altn&nbsp; &nbsp; &nbsp;BLK&nbsp; &nbsp; &nbsp;Shr Bound (RSTP)<\/p>\n<p>SW2# <span style=\"background-color: rgb(255, 250, 165);-evernote-highlight:true;\">show spanning-tree mst 1<\/span><\/p>\n<p>&nbsp;E3\/0&nbsp; &nbsp; &nbsp;Mstr&nbsp; &nbsp; &nbsp;FWD&nbsp; &nbsp; &nbsp;Shr Bound (RSTP)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multiple Spanning Tree (MST)<\/p>\n","protected":false},"author":1,"featured_media":834,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[31,61,15],"class_list":["post-840","post","type-post","status-publish","format-standard","hentry","category-ccie","tag-published","tag-spanning-tree","tag-stp"],"_links":{"self":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=840"}],"version-history":[{"count":1,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":970,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/posts\/840\/revisions\/970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=\/wp\/v2\/media\/834"}],"wp:attachment":[{"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/feralpacket.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}