How does a router know the MTU of a network?












1














I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



I hope someone can help me. Thank you for your responses.










share|improve this question





























    1














    I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



    I hope someone can help me. Thank you for your responses.










    share|improve this question



























      1












      1








      1







      I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



      I hope someone can help me. Thank you for your responses.










      share|improve this question















      I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



      I hope someone can help me. Thank you for your responses.







      routing router layer1 interface mtu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 18 mins ago









      Ron Maupin

      62.8k1365120




      62.8k1365120










      asked 59 mins ago









      Josemi Josemi

      202




      202






















          2 Answers
          2






          active

          oldest

          votes


















          1














          The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



          Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





          For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






          share|improve this answer





























            2














            Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



            You are mistaken about OSPF: The protocol does not exchange MTU information.






            share|improve this answer





















            • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
              – Ron Maupin
              51 mins ago










            • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
              – Josemi
              37 mins ago











            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%2f55931%2fhow-does-a-router-know-the-mtu-of-a-network%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









            1














            The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



            Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





            For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






            share|improve this answer


























              1














              The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



              Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





              For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






              share|improve this answer
























                1












                1








                1






                The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



                Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





                For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






                share|improve this answer












                The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



                Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





                For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 52 mins ago









                Ron MaupinRon Maupin

                62.8k1365120




                62.8k1365120























                    2














                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer





















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      51 mins ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      37 mins ago
















                    2














                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer





















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      51 mins ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      37 mins ago














                    2












                    2








                    2






                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer












                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 52 mins ago









                    Ron TrunkRon Trunk

                    34.9k23272




                    34.9k23272












                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      51 mins ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      37 mins ago


















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      51 mins ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      37 mins ago
















                    I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                    – Ron Maupin
                    51 mins ago




                    I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                    – Ron Maupin
                    51 mins ago












                    I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                    – Josemi
                    37 mins ago




                    I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                    – Josemi
                    37 mins ago


















                    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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f55931%2fhow-does-a-router-know-the-mtu-of-a-network%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

                    CARDNET

                    Boot-repair Failure: Unable to locate package grub-common:i386

                    濃尾地震