Distinct network subnet masks

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?



  • 10.0.0.0/24 & 10.0.8.0/24

  • 10.0.0.0/8 & 10.0.8.0/24

I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.







share|improve this question























    up vote
    2
    down vote

    favorite












    I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?



    • 10.0.0.0/24 & 10.0.8.0/24

    • 10.0.0.0/8 & 10.0.8.0/24

    I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.







    share|improve this question





















      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?



      • 10.0.0.0/24 & 10.0.8.0/24

      • 10.0.0.0/8 & 10.0.8.0/24

      I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.







      share|improve this question











      I understand that 192.168.1.0/24 & 10.0.0.0/24 are distinct networks however are the following also distinct networks?



      • 10.0.0.0/24 & 10.0.8.0/24

      • 10.0.0.0/8 & 10.0.8.0/24

      I have a LAN using 10.0.0.0/8 connected via a VPN tunnel using 10.0.8.0/24 and I would like to know if the two are seen as distinct.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Apr 20 at 11:52









      Dercni

      14018




      14018




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.



          The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.



          If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.






          share|improve this answer




























            up vote
            1
            down vote













            10.0.0.0/24 & 10.0.8.0/24 are separate networks.



            10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
            10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255


            10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255






            share|improve this answer























              Your Answer







              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "106"
              ;
              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',
              convertImagesToLinks: false,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );








               

              draft saved


              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438921%2fdistinct-network-subnet-masks%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote



              accepted










              You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.



              The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.



              If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.






              share|improve this answer

























                up vote
                2
                down vote



                accepted










                You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.



                The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.



                If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.






                share|improve this answer























                  up vote
                  2
                  down vote



                  accepted







                  up vote
                  2
                  down vote



                  accepted






                  You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.



                  The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.



                  If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.






                  share|improve this answer













                  You can have overlapping subnets, like 10.0.0.0/8 and 10.0.8.0/24 in your example. One application of this is to split a subnet asymmetrically so that the majority of addresses in the subnet is behind one interface of a router, and a smaller subnet behind the other interface. The mechanism behind this is called Longest Prefix Match, and works because the routing table can have more than one route that matches a destination address.



                  The routes in the routing table are searched from "most specific" (with the longest matching network part) to "least specific", and the route that matches first is chosen. Routing tables typically always contain overlapping entries, since they usually specify a default route. The default route always matches, but a more specific matching entry is always preferred over the default route.



                  If the subnets are "distinct" is a matter of terminology, but for practical purposes they are as distinct as non-overlapping subnets.







                  share|improve this answer













                  share|improve this answer



                  share|improve this answer











                  answered Apr 20 at 15:01









                  Johan Myréen

                  6,76711221




                  6,76711221






















                      up vote
                      1
                      down vote













                      10.0.0.0/24 & 10.0.8.0/24 are separate networks.



                      10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
                      10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255


                      10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255






                      share|improve this answer



























                        up vote
                        1
                        down vote













                        10.0.0.0/24 & 10.0.8.0/24 are separate networks.



                        10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
                        10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255


                        10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255






                        share|improve this answer

























                          up vote
                          1
                          down vote










                          up vote
                          1
                          down vote









                          10.0.0.0/24 & 10.0.8.0/24 are separate networks.



                          10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
                          10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255


                          10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255






                          share|improve this answer















                          10.0.0.0/24 & 10.0.8.0/24 are separate networks.



                          10.0.0.0/24 is from 10.0.0.0 to 10.0.0.255
                          10.0.8.0/24 is from 10.0.8.0 to 10.0.8.255


                          10.0.0.0/8 & 10.0.8.0/24 are not. 10.0.8.0/24 falls within the range of 10.0.0/8, which is from 10.0.0.0 to 10.255.255.255







                          share|improve this answer















                          share|improve this answer



                          share|improve this answer








                          edited Jun 20 at 11:13









                          Jeff Schaller

                          31.1k846105




                          31.1k846105











                          answered Apr 20 at 12:33









                          Bonsi

                          1016




                          1016






















                               

                              draft saved


                              draft discarded


























                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f438921%2fdistinct-network-subnet-masks%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              Peggy Mitchell

                              Palaiologos

                              The Forum (Inglewood, California)