Do VLANs within a subnet need to have their own subnet for router on a stick?












3















I have been creating a network lab in packet tracer for practice. I have 3 vlans in subnet A and I am trying to configure router on a stick at gig6/0 on the bottom left of the image. Do I need to create a subnet for each VLAN in order for the router on a stick gateway to work?
Practice network










share|improve this question





























    3















    I have been creating a network lab in packet tracer for practice. I have 3 vlans in subnet A and I am trying to configure router on a stick at gig6/0 on the bottom left of the image. Do I need to create a subnet for each VLAN in order for the router on a stick gateway to work?
    Practice network










    share|improve this question



























      3












      3








      3








      I have been creating a network lab in packet tracer for practice. I have 3 vlans in subnet A and I am trying to configure router on a stick at gig6/0 on the bottom left of the image. Do I need to create a subnet for each VLAN in order for the router on a stick gateway to work?
      Practice network










      share|improve this question
















      I have been creating a network lab in packet tracer for practice. I have 3 vlans in subnet A and I am trying to configure router on a stick at gig6/0 on the bottom left of the image. Do I need to create a subnet for each VLAN in order for the router on a stick gateway to work?
      Practice network







      router vlan subnet trunk gateway






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 6 at 19:04









      Cown

      6,99131031




      6,99131031










      asked Apr 6 at 16:00









      Jon StinnettJon Stinnett

      161




      161






















          3 Answers
          3






          active

          oldest

          votes


















          7














          I'm not understanding your exact problem because you don't provide enough detail but maybe this helps:



          With rare exceptions, an IP subnet is mapped to a VLAN = broadcast domain = layer-2 network on a 1:1 basis.



          You can run multiple IP subnets inside a single VLAN but they need a router to communicate with each other. Most often this setup doesn't make too much sense.



          You can't run a single IP subnet across multiple VLANs though (without elaborate workarounds). Nodes in the same subnet expect to be able to talk to each other on a common layer-2 network = VLAN = broadcast domain.



          So, your "VLANs within a subnet" can only work when you've split that subnet into sub-subnets properly and set up the router as gateway in between. A router on a stick is a router forwarding between VLAN subinterfaces on a single physical interface. Each subinterface needs to connect to one of the desired VLANs, so the link needs to be a VLAN trunk on both the switch and the router side.






          share|improve this answer

































            6














            Just to amplify on Zac’s answer: you have one subnet per vlan and vice versa. At the CCNA level, you can ignore the rare exceptions. The router on a stick has an (sub)interface in each subnet. Therefore all VLANs must be trunked to the router.






            share|improve this answer

































              0














              In practice, it is always a good idea to have VLAN with its own subnet. However, you can split a subnet into multiple VLANs since it is only a test topology and you don't have to worry about the IP address management challenges.






              share|improve this answer
























                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%2f58283%2fdo-vlans-within-a-subnet-need-to-have-their-own-subnet-for-router-on-a-stick%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









                7














                I'm not understanding your exact problem because you don't provide enough detail but maybe this helps:



                With rare exceptions, an IP subnet is mapped to a VLAN = broadcast domain = layer-2 network on a 1:1 basis.



                You can run multiple IP subnets inside a single VLAN but they need a router to communicate with each other. Most often this setup doesn't make too much sense.



                You can't run a single IP subnet across multiple VLANs though (without elaborate workarounds). Nodes in the same subnet expect to be able to talk to each other on a common layer-2 network = VLAN = broadcast domain.



                So, your "VLANs within a subnet" can only work when you've split that subnet into sub-subnets properly and set up the router as gateway in between. A router on a stick is a router forwarding between VLAN subinterfaces on a single physical interface. Each subinterface needs to connect to one of the desired VLANs, so the link needs to be a VLAN trunk on both the switch and the router side.






                share|improve this answer






























                  7














                  I'm not understanding your exact problem because you don't provide enough detail but maybe this helps:



                  With rare exceptions, an IP subnet is mapped to a VLAN = broadcast domain = layer-2 network on a 1:1 basis.



                  You can run multiple IP subnets inside a single VLAN but they need a router to communicate with each other. Most often this setup doesn't make too much sense.



                  You can't run a single IP subnet across multiple VLANs though (without elaborate workarounds). Nodes in the same subnet expect to be able to talk to each other on a common layer-2 network = VLAN = broadcast domain.



                  So, your "VLANs within a subnet" can only work when you've split that subnet into sub-subnets properly and set up the router as gateway in between. A router on a stick is a router forwarding between VLAN subinterfaces on a single physical interface. Each subinterface needs to connect to one of the desired VLANs, so the link needs to be a VLAN trunk on both the switch and the router side.






                  share|improve this answer




























                    7












                    7








                    7







                    I'm not understanding your exact problem because you don't provide enough detail but maybe this helps:



                    With rare exceptions, an IP subnet is mapped to a VLAN = broadcast domain = layer-2 network on a 1:1 basis.



                    You can run multiple IP subnets inside a single VLAN but they need a router to communicate with each other. Most often this setup doesn't make too much sense.



                    You can't run a single IP subnet across multiple VLANs though (without elaborate workarounds). Nodes in the same subnet expect to be able to talk to each other on a common layer-2 network = VLAN = broadcast domain.



                    So, your "VLANs within a subnet" can only work when you've split that subnet into sub-subnets properly and set up the router as gateway in between. A router on a stick is a router forwarding between VLAN subinterfaces on a single physical interface. Each subinterface needs to connect to one of the desired VLANs, so the link needs to be a VLAN trunk on both the switch and the router side.






                    share|improve this answer















                    I'm not understanding your exact problem because you don't provide enough detail but maybe this helps:



                    With rare exceptions, an IP subnet is mapped to a VLAN = broadcast domain = layer-2 network on a 1:1 basis.



                    You can run multiple IP subnets inside a single VLAN but they need a router to communicate with each other. Most often this setup doesn't make too much sense.



                    You can't run a single IP subnet across multiple VLANs though (without elaborate workarounds). Nodes in the same subnet expect to be able to talk to each other on a common layer-2 network = VLAN = broadcast domain.



                    So, your "VLANs within a subnet" can only work when you've split that subnet into sub-subnets properly and set up the router as gateway in between. A router on a stick is a router forwarding between VLAN subinterfaces on a single physical interface. Each subinterface needs to connect to one of the desired VLANs, so the link needs to be a VLAN trunk on both the switch and the router side.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 6 at 21:04

























                    answered Apr 6 at 16:41









                    Zac67Zac67

                    33.3k22165




                    33.3k22165























                        6














                        Just to amplify on Zac’s answer: you have one subnet per vlan and vice versa. At the CCNA level, you can ignore the rare exceptions. The router on a stick has an (sub)interface in each subnet. Therefore all VLANs must be trunked to the router.






                        share|improve this answer






























                          6














                          Just to amplify on Zac’s answer: you have one subnet per vlan and vice versa. At the CCNA level, you can ignore the rare exceptions. The router on a stick has an (sub)interface in each subnet. Therefore all VLANs must be trunked to the router.






                          share|improve this answer




























                            6












                            6








                            6







                            Just to amplify on Zac’s answer: you have one subnet per vlan and vice versa. At the CCNA level, you can ignore the rare exceptions. The router on a stick has an (sub)interface in each subnet. Therefore all VLANs must be trunked to the router.






                            share|improve this answer















                            Just to amplify on Zac’s answer: you have one subnet per vlan and vice versa. At the CCNA level, you can ignore the rare exceptions. The router on a stick has an (sub)interface in each subnet. Therefore all VLANs must be trunked to the router.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Apr 6 at 19:03









                            Cown

                            6,99131031




                            6,99131031










                            answered Apr 6 at 16:48









                            Ron TrunkRon Trunk

                            40k33781




                            40k33781























                                0














                                In practice, it is always a good idea to have VLAN with its own subnet. However, you can split a subnet into multiple VLANs since it is only a test topology and you don't have to worry about the IP address management challenges.






                                share|improve this answer




























                                  0














                                  In practice, it is always a good idea to have VLAN with its own subnet. However, you can split a subnet into multiple VLANs since it is only a test topology and you don't have to worry about the IP address management challenges.






                                  share|improve this answer


























                                    0












                                    0








                                    0







                                    In practice, it is always a good idea to have VLAN with its own subnet. However, you can split a subnet into multiple VLANs since it is only a test topology and you don't have to worry about the IP address management challenges.






                                    share|improve this answer













                                    In practice, it is always a good idea to have VLAN with its own subnet. However, you can split a subnet into multiple VLANs since it is only a test topology and you don't have to worry about the IP address management challenges.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Apr 11 at 16:22









                                    RickyRicky

                                    1




                                    1






























                                        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%2f58283%2fdo-vlans-within-a-subnet-need-to-have-their-own-subnet-for-router-on-a-stick%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

                                        If I really need a card on my start hand, how many mulligans make sense? [duplicate]

                                        Alcedinidae

                                        Can an atomic nucleus contain both particles and antiparticles? [duplicate]