Networking understanding











up vote
0
down vote

favorite
1












Please be patient with me, I am new to networking and trying to understand. So, we have 3 computers with the same subnet mask, 255.255.255.0 and the same default gateway, 192.168.12.1 connected to a switch, and the first two have the same network address and the third one, a different network address, 192.168.12.113, 192.168.12.205, 192.168.112.97. Can these computers communicate with each other? If not, why not?










share|improve this question







New contributor




Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    up vote
    0
    down vote

    favorite
    1












    Please be patient with me, I am new to networking and trying to understand. So, we have 3 computers with the same subnet mask, 255.255.255.0 and the same default gateway, 192.168.12.1 connected to a switch, and the first two have the same network address and the third one, a different network address, 192.168.12.113, 192.168.12.205, 192.168.112.97. Can these computers communicate with each other? If not, why not?










    share|improve this question







    New contributor




    Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      up vote
      0
      down vote

      favorite
      1









      up vote
      0
      down vote

      favorite
      1






      1





      Please be patient with me, I am new to networking and trying to understand. So, we have 3 computers with the same subnet mask, 255.255.255.0 and the same default gateway, 192.168.12.1 connected to a switch, and the first two have the same network address and the third one, a different network address, 192.168.12.113, 192.168.12.205, 192.168.112.97. Can these computers communicate with each other? If not, why not?










      share|improve this question







      New contributor




      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      Please be patient with me, I am new to networking and trying to understand. So, we have 3 computers with the same subnet mask, 255.255.255.0 and the same default gateway, 192.168.12.1 connected to a switch, and the first two have the same network address and the third one, a different network address, 192.168.12.113, 192.168.12.205, 192.168.112.97. Can these computers communicate with each other? If not, why not?







      networking switch subnet






      share|improve this question







      New contributor




      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      Irina Cretu

      1




      1




      New contributor




      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Irina Cretu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          3 Answers
          3






          active

          oldest

          votes

















          up vote
          0
          down vote













          The third will not be able to communicate with the first ones without the help of a router or additional configuration.



          The reason is that the first two won't try to reach the third by broadcast because it is not in their subnet and the reverse applies as well.



          Is there a particular reason why you configure different networks if you want them to communicate?






          share|improve this answer




























            up vote
            0
            down vote













            The answer is no. Because current subnet configuration allows only 192.168.12.. If computer 192.168.112.97 have additional network interface with IP in 192.168.12. subnet, then yes.
            Or if change mask.






            share|improve this answer








            New contributor




            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.

























              up vote
              0
              down vote













              Hosts within same subnet will communicate directly; that's what a subnet means. So I assume your question is about hosts that belong to different subnets, such as 192.168.12.205 and 192.168.112.97.



              Technically, being on the same switch all of them are capable of communicating directly at Ethernet layer. If host A sends Ethernet frames with destination = host B, it will succeed. However, the IP layer doesn't know this, because the subnet mask tells it otherwise – so the hosts will not attempt direct communication and will need a router by default.



              (In other words: Ethernet link creates the possibility of direct communication, IP configuration informs the host that such possibility exists.)



              But it is possible to inform the IP stacks that direct communication is possible even to hosts within a different network address, by adding custom routes to each host's routing table. These would have to be "link" routes, specifying just the interface but not a gateway. (That's actually what the subnet mask does; it creates a link route.)



              ip route add 192.168.112.0/24 dev eth0





              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                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: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                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
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });






                Irina Cretu is a new contributor. Be nice, and check out our Code of Conduct.










                 

                draft saved


                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376196%2fnetworking-understanding%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                3 Answers
                3






                active

                oldest

                votes








                3 Answers
                3






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                0
                down vote













                The third will not be able to communicate with the first ones without the help of a router or additional configuration.



                The reason is that the first two won't try to reach the third by broadcast because it is not in their subnet and the reverse applies as well.



                Is there a particular reason why you configure different networks if you want them to communicate?






                share|improve this answer

























                  up vote
                  0
                  down vote













                  The third will not be able to communicate with the first ones without the help of a router or additional configuration.



                  The reason is that the first two won't try to reach the third by broadcast because it is not in their subnet and the reverse applies as well.



                  Is there a particular reason why you configure different networks if you want them to communicate?






                  share|improve this answer























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    The third will not be able to communicate with the first ones without the help of a router or additional configuration.



                    The reason is that the first two won't try to reach the third by broadcast because it is not in their subnet and the reverse applies as well.



                    Is there a particular reason why you configure different networks if you want them to communicate?






                    share|improve this answer












                    The third will not be able to communicate with the first ones without the help of a router or additional configuration.



                    The reason is that the first two won't try to reach the third by broadcast because it is not in their subnet and the reverse applies as well.



                    Is there a particular reason why you configure different networks if you want them to communicate?







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 2 days ago









                    RalfFriedl

                    94037




                    94037
























                        up vote
                        0
                        down vote













                        The answer is no. Because current subnet configuration allows only 192.168.12.. If computer 192.168.112.97 have additional network interface with IP in 192.168.12. subnet, then yes.
                        Or if change mask.






                        share|improve this answer








                        New contributor




                        moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                        Check out our Code of Conduct.






















                          up vote
                          0
                          down vote













                          The answer is no. Because current subnet configuration allows only 192.168.12.. If computer 192.168.112.97 have additional network interface with IP in 192.168.12. subnet, then yes.
                          Or if change mask.






                          share|improve this answer








                          New contributor




                          moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                          Check out our Code of Conduct.




















                            up vote
                            0
                            down vote










                            up vote
                            0
                            down vote









                            The answer is no. Because current subnet configuration allows only 192.168.12.. If computer 192.168.112.97 have additional network interface with IP in 192.168.12. subnet, then yes.
                            Or if change mask.






                            share|improve this answer








                            New contributor




                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            The answer is no. Because current subnet configuration allows only 192.168.12.. If computer 192.168.112.97 have additional network interface with IP in 192.168.12. subnet, then yes.
                            Or if change mask.







                            share|improve this answer








                            New contributor




                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            share|improve this answer



                            share|improve this answer






                            New contributor




                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.









                            answered 2 days ago









                            moveax3

                            312




                            312




                            New contributor




                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.





                            New contributor





                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






                            moveax3 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                            Check out our Code of Conduct.






















                                up vote
                                0
                                down vote













                                Hosts within same subnet will communicate directly; that's what a subnet means. So I assume your question is about hosts that belong to different subnets, such as 192.168.12.205 and 192.168.112.97.



                                Technically, being on the same switch all of them are capable of communicating directly at Ethernet layer. If host A sends Ethernet frames with destination = host B, it will succeed. However, the IP layer doesn't know this, because the subnet mask tells it otherwise – so the hosts will not attempt direct communication and will need a router by default.



                                (In other words: Ethernet link creates the possibility of direct communication, IP configuration informs the host that such possibility exists.)



                                But it is possible to inform the IP stacks that direct communication is possible even to hosts within a different network address, by adding custom routes to each host's routing table. These would have to be "link" routes, specifying just the interface but not a gateway. (That's actually what the subnet mask does; it creates a link route.)



                                ip route add 192.168.112.0/24 dev eth0





                                share|improve this answer



























                                  up vote
                                  0
                                  down vote













                                  Hosts within same subnet will communicate directly; that's what a subnet means. So I assume your question is about hosts that belong to different subnets, such as 192.168.12.205 and 192.168.112.97.



                                  Technically, being on the same switch all of them are capable of communicating directly at Ethernet layer. If host A sends Ethernet frames with destination = host B, it will succeed. However, the IP layer doesn't know this, because the subnet mask tells it otherwise – so the hosts will not attempt direct communication and will need a router by default.



                                  (In other words: Ethernet link creates the possibility of direct communication, IP configuration informs the host that such possibility exists.)



                                  But it is possible to inform the IP stacks that direct communication is possible even to hosts within a different network address, by adding custom routes to each host's routing table. These would have to be "link" routes, specifying just the interface but not a gateway. (That's actually what the subnet mask does; it creates a link route.)



                                  ip route add 192.168.112.0/24 dev eth0





                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    Hosts within same subnet will communicate directly; that's what a subnet means. So I assume your question is about hosts that belong to different subnets, such as 192.168.12.205 and 192.168.112.97.



                                    Technically, being on the same switch all of them are capable of communicating directly at Ethernet layer. If host A sends Ethernet frames with destination = host B, it will succeed. However, the IP layer doesn't know this, because the subnet mask tells it otherwise – so the hosts will not attempt direct communication and will need a router by default.



                                    (In other words: Ethernet link creates the possibility of direct communication, IP configuration informs the host that such possibility exists.)



                                    But it is possible to inform the IP stacks that direct communication is possible even to hosts within a different network address, by adding custom routes to each host's routing table. These would have to be "link" routes, specifying just the interface but not a gateway. (That's actually what the subnet mask does; it creates a link route.)



                                    ip route add 192.168.112.0/24 dev eth0





                                    share|improve this answer














                                    Hosts within same subnet will communicate directly; that's what a subnet means. So I assume your question is about hosts that belong to different subnets, such as 192.168.12.205 and 192.168.112.97.



                                    Technically, being on the same switch all of them are capable of communicating directly at Ethernet layer. If host A sends Ethernet frames with destination = host B, it will succeed. However, the IP layer doesn't know this, because the subnet mask tells it otherwise – so the hosts will not attempt direct communication and will need a router by default.



                                    (In other words: Ethernet link creates the possibility of direct communication, IP configuration informs the host that such possibility exists.)



                                    But it is possible to inform the IP stacks that direct communication is possible even to hosts within a different network address, by adding custom routes to each host's routing table. These would have to be "link" routes, specifying just the interface but not a gateway. (That's actually what the subnet mask does; it creates a link route.)



                                    ip route add 192.168.112.0/24 dev eth0






                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited 2 days ago

























                                    answered 2 days ago









                                    grawity

                                    227k35475537




                                    227k35475537






















                                        Irina Cretu is a new contributor. Be nice, and check out our Code of Conduct.










                                         

                                        draft saved


                                        draft discarded


















                                        Irina Cretu is a new contributor. Be nice, and check out our Code of Conduct.













                                        Irina Cretu is a new contributor. Be nice, and check out our Code of Conduct.












                                        Irina Cretu is a new contributor. Be nice, and check out our Code of Conduct.















                                         


                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1376196%2fnetworking-understanding%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

                                        flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                                        Mangá

                                        Eduardo VII do Reino Unido