Spanning tree Priority values












2















show spanning-tree interface gigabitethernet 0/2
Switch default

Instance Role State Cost Prio type
-------- ---- ----- ---- ---- ----
MST00 Designated Forwarding 20000 128.2 P2P
MST01 Designated Forwarding 20000 128.2 P2P
MST02 Designated Forwarding 20000 128.2 P2P


How the value 128.2 is calculated?










share|improve this question





























    2















    show spanning-tree interface gigabitethernet 0/2
    Switch default

    Instance Role State Cost Prio type
    -------- ---- ----- ---- ---- ----
    MST00 Designated Forwarding 20000 128.2 P2P
    MST01 Designated Forwarding 20000 128.2 P2P
    MST02 Designated Forwarding 20000 128.2 P2P


    How the value 128.2 is calculated?










    share|improve this question



























      2












      2








      2








      show spanning-tree interface gigabitethernet 0/2
      Switch default

      Instance Role State Cost Prio type
      -------- ---- ----- ---- ---- ----
      MST00 Designated Forwarding 20000 128.2 P2P
      MST01 Designated Forwarding 20000 128.2 P2P
      MST02 Designated Forwarding 20000 128.2 P2P


      How the value 128.2 is calculated?










      share|improve this question
















      show spanning-tree interface gigabitethernet 0/2
      Switch default

      Instance Role State Cost Prio type
      -------- ---- ----- ---- ---- ----
      MST00 Designated Forwarding 20000 128.2 P2P
      MST01 Designated Forwarding 20000 128.2 P2P
      MST02 Designated Forwarding 20000 128.2 P2P


      How the value 128.2 is calculated?







      switching spanning-tree ieee-802.1s






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 22 at 9:54









      Cown

      6,30131030




      6,30131030










      asked Feb 22 at 9:42









      kamakshikamakshi

      111




      111






















          2 Answers
          2






          active

          oldest

          votes


















          2














          128 is the default port priority (not cost) for xSTP interfaces, and .2 is the port number (eg: gi0/2).



          In short, all things being equal (and in their default state), if two switches have multiple links joining them together, the lowest physical port number will generate the lowest port priority, and hence become the preferred root port.






          share|improve this answer
























          • Thanks for Info.

            – kamakshi
            Feb 22 at 10:17



















          2














          128 is the default bridge priority. 2 is the port number and its default priority.



          STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.



          When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.



          Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.






          share|improve this answer
























          • Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

            – ilkkachu
            Feb 22 at 13:39













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "496"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57144%2fspanning-tree-priority-values%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          128 is the default port priority (not cost) for xSTP interfaces, and .2 is the port number (eg: gi0/2).



          In short, all things being equal (and in their default state), if two switches have multiple links joining them together, the lowest physical port number will generate the lowest port priority, and hence become the preferred root port.






          share|improve this answer
























          • Thanks for Info.

            – kamakshi
            Feb 22 at 10:17
















          2














          128 is the default port priority (not cost) for xSTP interfaces, and .2 is the port number (eg: gi0/2).



          In short, all things being equal (and in their default state), if two switches have multiple links joining them together, the lowest physical port number will generate the lowest port priority, and hence become the preferred root port.






          share|improve this answer
























          • Thanks for Info.

            – kamakshi
            Feb 22 at 10:17














          2












          2








          2







          128 is the default port priority (not cost) for xSTP interfaces, and .2 is the port number (eg: gi0/2).



          In short, all things being equal (and in their default state), if two switches have multiple links joining them together, the lowest physical port number will generate the lowest port priority, and hence become the preferred root port.






          share|improve this answer













          128 is the default port priority (not cost) for xSTP interfaces, and .2 is the port number (eg: gi0/2).



          In short, all things being equal (and in their default state), if two switches have multiple links joining them together, the lowest physical port number will generate the lowest port priority, and hence become the preferred root port.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 at 9:58









          Benjamin DaleBenjamin Dale

          7,0541036




          7,0541036













          • Thanks for Info.

            – kamakshi
            Feb 22 at 10:17



















          • Thanks for Info.

            – kamakshi
            Feb 22 at 10:17

















          Thanks for Info.

          – kamakshi
          Feb 22 at 10:17





          Thanks for Info.

          – kamakshi
          Feb 22 at 10:17











          2














          128 is the default bridge priority. 2 is the port number and its default priority.



          STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.



          When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.



          Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.






          share|improve this answer
























          • Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

            – ilkkachu
            Feb 22 at 13:39


















          2














          128 is the default bridge priority. 2 is the port number and its default priority.



          STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.



          When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.



          Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.






          share|improve this answer
























          • Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

            – ilkkachu
            Feb 22 at 13:39
















          2












          2








          2







          128 is the default bridge priority. 2 is the port number and its default priority.



          STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.



          When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.



          Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.






          share|improve this answer













          128 is the default bridge priority. 2 is the port number and its default priority.



          STP always chooses the bridge or port with the lowest number = highest priority. Paths to bridges with higher numbers are blocked. Put another way, the bridge with the overall lowest priority number is elected as root bridge. All ports leading to the root bridge are compared by their cost (lowest cost is chosen) and when there's a tie between bridges, the path to the bridge with the lowest priority number is chosen.



          When there's a tie between ports (=two ports connecting to the same bridge) the ports' priorities are used.



          Note that in both bridge and port priorities, the configured priority is prepended to the bridges MAC address or the port number. So, even with identical configured priorities there can never be a tie between bridges or ports as each hardware number is unique.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 at 10:15









          Zac67Zac67

          30k21859




          30k21859













          • Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

            – ilkkachu
            Feb 22 at 13:39





















          • Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

            – ilkkachu
            Feb 22 at 13:39



















          Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

          – ilkkachu
          Feb 22 at 13:39







          Is that 128 the default bridge priority or the default port priority? I thought bridge priorities are something like 32768 usually (by default) and go in steps of 4096 or something like that?

          – ilkkachu
          Feb 22 at 13:39




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Network Engineering Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f57144%2fspanning-tree-priority-values%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?