How to configure 2 subnets on same LAN and communicate between devices





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-2















My setup is I have my primary cable modem/router at one end of the house with IP 192.168.0.1/25. Then I have a secondary router at the other end of the house with IP 192.168.0.129/25. The WAN port of the secondary router is connected to a LAN ports on the primary router. Both routers have a variety of devices connected to them via WiFi and ethernet, all of which have no trouble connected to the internet; the issue is getting them to connect to each other. Currently, each device can only "see" others connected to the same router.



My question is, how do I get these devices to behave as if they were on the same LAN? The functionally I am looking for is being able to print/chromecast/fileshare to/from any devices connected to either router.



I suspect I need to set up port forwarding or something on one or both of the routers, but I'm not sure the correct way to configure this.










share|improve this question


















  • 1





    Do you rally want two separate networks? Chromecast won’t work across subnets.

    – Daniel B
    Feb 7 at 11:38













  • What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

    – Man Eating Monkey
    Feb 7 at 12:25











  • The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

    – Daniel B
    Feb 7 at 12:30













  • If I put the AP into bridge mode then I can't change it's IP address.

    – Man Eating Monkey
    Feb 7 at 12:46






  • 1





    You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

    – Daniel B
    Feb 7 at 12:50


















-2















My setup is I have my primary cable modem/router at one end of the house with IP 192.168.0.1/25. Then I have a secondary router at the other end of the house with IP 192.168.0.129/25. The WAN port of the secondary router is connected to a LAN ports on the primary router. Both routers have a variety of devices connected to them via WiFi and ethernet, all of which have no trouble connected to the internet; the issue is getting them to connect to each other. Currently, each device can only "see" others connected to the same router.



My question is, how do I get these devices to behave as if they were on the same LAN? The functionally I am looking for is being able to print/chromecast/fileshare to/from any devices connected to either router.



I suspect I need to set up port forwarding or something on one or both of the routers, but I'm not sure the correct way to configure this.










share|improve this question


















  • 1





    Do you rally want two separate networks? Chromecast won’t work across subnets.

    – Daniel B
    Feb 7 at 11:38













  • What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

    – Man Eating Monkey
    Feb 7 at 12:25











  • The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

    – Daniel B
    Feb 7 at 12:30













  • If I put the AP into bridge mode then I can't change it's IP address.

    – Man Eating Monkey
    Feb 7 at 12:46






  • 1





    You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

    – Daniel B
    Feb 7 at 12:50














-2












-2








-2








My setup is I have my primary cable modem/router at one end of the house with IP 192.168.0.1/25. Then I have a secondary router at the other end of the house with IP 192.168.0.129/25. The WAN port of the secondary router is connected to a LAN ports on the primary router. Both routers have a variety of devices connected to them via WiFi and ethernet, all of which have no trouble connected to the internet; the issue is getting them to connect to each other. Currently, each device can only "see" others connected to the same router.



My question is, how do I get these devices to behave as if they were on the same LAN? The functionally I am looking for is being able to print/chromecast/fileshare to/from any devices connected to either router.



I suspect I need to set up port forwarding or something on one or both of the routers, but I'm not sure the correct way to configure this.










share|improve this question














My setup is I have my primary cable modem/router at one end of the house with IP 192.168.0.1/25. Then I have a secondary router at the other end of the house with IP 192.168.0.129/25. The WAN port of the secondary router is connected to a LAN ports on the primary router. Both routers have a variety of devices connected to them via WiFi and ethernet, all of which have no trouble connected to the internet; the issue is getting them to connect to each other. Currently, each device can only "see" others connected to the same router.



My question is, how do I get these devices to behave as if they were on the same LAN? The functionally I am looking for is being able to print/chromecast/fileshare to/from any devices connected to either router.



I suspect I need to set up port forwarding or something on one or both of the routers, but I'm not sure the correct way to configure this.







networking router lan






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 7 at 11:29









Man Eating MonkeyMan Eating Monkey

31




31








  • 1





    Do you rally want two separate networks? Chromecast won’t work across subnets.

    – Daniel B
    Feb 7 at 11:38













  • What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

    – Man Eating Monkey
    Feb 7 at 12:25











  • The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

    – Daniel B
    Feb 7 at 12:30













  • If I put the AP into bridge mode then I can't change it's IP address.

    – Man Eating Monkey
    Feb 7 at 12:46






  • 1





    You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

    – Daniel B
    Feb 7 at 12:50














  • 1





    Do you rally want two separate networks? Chromecast won’t work across subnets.

    – Daniel B
    Feb 7 at 11:38













  • What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

    – Man Eating Monkey
    Feb 7 at 12:25











  • The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

    – Daniel B
    Feb 7 at 12:30













  • If I put the AP into bridge mode then I can't change it's IP address.

    – Man Eating Monkey
    Feb 7 at 12:46






  • 1





    You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

    – Daniel B
    Feb 7 at 12:50








1




1





Do you rally want two separate networks? Chromecast won’t work across subnets.

– Daniel B
Feb 7 at 11:38







Do you rally want two separate networks? Chromecast won’t work across subnets.

– Daniel B
Feb 7 at 11:38















What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

– Man Eating Monkey
Feb 7 at 12:25





What's the alternative? I've tried running the second router in bridging mode, but whenever I do that devices connected to it lose internet connectivity after 10-15 minutes.

– Man Eating Monkey
Feb 7 at 12:25













The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

– Daniel B
Feb 7 at 12:30







The alternative is bridged (“AP”) mode. In short: Change AP router’s IP address so it does not conflict, disable DHCP on AP router, connect LAN to LAN. If that causes connection issues, the AP router isn’t working correctly.

– Daniel B
Feb 7 at 12:30















If I put the AP into bridge mode then I can't change it's IP address.

– Man Eating Monkey
Feb 7 at 12:46





If I put the AP into bridge mode then I can't change it's IP address.

– Man Eating Monkey
Feb 7 at 12:46




1




1





You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

– Daniel B
Feb 7 at 12:50





You don’t need to change the mode. A WiFi router is always bridged between LAN and WiFi.

– Daniel B
Feb 7 at 12:50










2 Answers
2






active

oldest

votes


















1














Since you apparently don’t really require the separation into two networks, your goal should be to undo that. It’s great that both routers are connected using Ethernet!



Stuff that relies on broadcast or local multicast like Chromecast cannot work across network boundaries, even without NAT.



You indicate your second router causes connection issues when using the “official” bridged mode. Using the following guide, you won’t have to use it:




  1. Disconnect the second router

  2. Reset it (just be sure)

  3. Change its IP address to 192.168.0.2 (or some other free address in the 192.168.0.0/24 network)

  4. Set up the WiFi network as desired (probably the same as your other router to allow roaming)

  5. Disable DHCP

  6. Connect a LAN port of your second router to a LAN port of the primary router


And that’s it! All other setup on your second router is irrelevant.



You should also change your primary router back to a regular /24 subnet configuration.



You will then have a single network and all services will work as expected. If your second router works fine now it will continue to work perfectly fine.






share|improve this answer































    0














    If you can access the routers gateway/routing table you can add corresponding entries in your routing table.



    on this router
    192.168.0.1/25
    add
    192.168.0.129/25



    and vice versa.



    in linux



    ip route add 192.168.0.1/25 via 192.168.0.1 dev eth0


    Windows



    route ADD destination_network MASK subnet_mask gateway_ip metric_cost



    route ADD 192.168.0.1 MASK 255.255.255.128 192.168.0.129





    share|improve this answer
























    • So does this have to be done individually for every machine on the network?

      – Man Eating Monkey
      Feb 8 at 0:42











    • The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

      – cybernard
      Feb 8 at 1:32











    • What sort of setting would this fall under on the router? DMZ? Port forwarding?

      – Man Eating Monkey
      Feb 8 at 2:29











    • routing or maybe gateway

      – cybernard
      Feb 8 at 3:07












    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',
    autoActivateHeartbeat: false,
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1403089%2fhow-to-configure-2-subnets-on-same-lan-and-communicate-between-devices%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














    Since you apparently don’t really require the separation into two networks, your goal should be to undo that. It’s great that both routers are connected using Ethernet!



    Stuff that relies on broadcast or local multicast like Chromecast cannot work across network boundaries, even without NAT.



    You indicate your second router causes connection issues when using the “official” bridged mode. Using the following guide, you won’t have to use it:




    1. Disconnect the second router

    2. Reset it (just be sure)

    3. Change its IP address to 192.168.0.2 (or some other free address in the 192.168.0.0/24 network)

    4. Set up the WiFi network as desired (probably the same as your other router to allow roaming)

    5. Disable DHCP

    6. Connect a LAN port of your second router to a LAN port of the primary router


    And that’s it! All other setup on your second router is irrelevant.



    You should also change your primary router back to a regular /24 subnet configuration.



    You will then have a single network and all services will work as expected. If your second router works fine now it will continue to work perfectly fine.






    share|improve this answer




























      1














      Since you apparently don’t really require the separation into two networks, your goal should be to undo that. It’s great that both routers are connected using Ethernet!



      Stuff that relies on broadcast or local multicast like Chromecast cannot work across network boundaries, even without NAT.



      You indicate your second router causes connection issues when using the “official” bridged mode. Using the following guide, you won’t have to use it:




      1. Disconnect the second router

      2. Reset it (just be sure)

      3. Change its IP address to 192.168.0.2 (or some other free address in the 192.168.0.0/24 network)

      4. Set up the WiFi network as desired (probably the same as your other router to allow roaming)

      5. Disable DHCP

      6. Connect a LAN port of your second router to a LAN port of the primary router


      And that’s it! All other setup on your second router is irrelevant.



      You should also change your primary router back to a regular /24 subnet configuration.



      You will then have a single network and all services will work as expected. If your second router works fine now it will continue to work perfectly fine.






      share|improve this answer


























        1












        1








        1







        Since you apparently don’t really require the separation into two networks, your goal should be to undo that. It’s great that both routers are connected using Ethernet!



        Stuff that relies on broadcast or local multicast like Chromecast cannot work across network boundaries, even without NAT.



        You indicate your second router causes connection issues when using the “official” bridged mode. Using the following guide, you won’t have to use it:




        1. Disconnect the second router

        2. Reset it (just be sure)

        3. Change its IP address to 192.168.0.2 (or some other free address in the 192.168.0.0/24 network)

        4. Set up the WiFi network as desired (probably the same as your other router to allow roaming)

        5. Disable DHCP

        6. Connect a LAN port of your second router to a LAN port of the primary router


        And that’s it! All other setup on your second router is irrelevant.



        You should also change your primary router back to a regular /24 subnet configuration.



        You will then have a single network and all services will work as expected. If your second router works fine now it will continue to work perfectly fine.






        share|improve this answer













        Since you apparently don’t really require the separation into two networks, your goal should be to undo that. It’s great that both routers are connected using Ethernet!



        Stuff that relies on broadcast or local multicast like Chromecast cannot work across network boundaries, even without NAT.



        You indicate your second router causes connection issues when using the “official” bridged mode. Using the following guide, you won’t have to use it:




        1. Disconnect the second router

        2. Reset it (just be sure)

        3. Change its IP address to 192.168.0.2 (or some other free address in the 192.168.0.0/24 network)

        4. Set up the WiFi network as desired (probably the same as your other router to allow roaming)

        5. Disable DHCP

        6. Connect a LAN port of your second router to a LAN port of the primary router


        And that’s it! All other setup on your second router is irrelevant.



        You should also change your primary router back to a regular /24 subnet configuration.



        You will then have a single network and all services will work as expected. If your second router works fine now it will continue to work perfectly fine.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 7 at 18:56









        Daniel BDaniel B

        34.5k76587




        34.5k76587

























            0














            If you can access the routers gateway/routing table you can add corresponding entries in your routing table.



            on this router
            192.168.0.1/25
            add
            192.168.0.129/25



            and vice versa.



            in linux



            ip route add 192.168.0.1/25 via 192.168.0.1 dev eth0


            Windows



            route ADD destination_network MASK subnet_mask gateway_ip metric_cost



            route ADD 192.168.0.1 MASK 255.255.255.128 192.168.0.129





            share|improve this answer
























            • So does this have to be done individually for every machine on the network?

              – Man Eating Monkey
              Feb 8 at 0:42











            • The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

              – cybernard
              Feb 8 at 1:32











            • What sort of setting would this fall under on the router? DMZ? Port forwarding?

              – Man Eating Monkey
              Feb 8 at 2:29











            • routing or maybe gateway

              – cybernard
              Feb 8 at 3:07
















            0














            If you can access the routers gateway/routing table you can add corresponding entries in your routing table.



            on this router
            192.168.0.1/25
            add
            192.168.0.129/25



            and vice versa.



            in linux



            ip route add 192.168.0.1/25 via 192.168.0.1 dev eth0


            Windows



            route ADD destination_network MASK subnet_mask gateway_ip metric_cost



            route ADD 192.168.0.1 MASK 255.255.255.128 192.168.0.129





            share|improve this answer
























            • So does this have to be done individually for every machine on the network?

              – Man Eating Monkey
              Feb 8 at 0:42











            • The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

              – cybernard
              Feb 8 at 1:32











            • What sort of setting would this fall under on the router? DMZ? Port forwarding?

              – Man Eating Monkey
              Feb 8 at 2:29











            • routing or maybe gateway

              – cybernard
              Feb 8 at 3:07














            0












            0








            0







            If you can access the routers gateway/routing table you can add corresponding entries in your routing table.



            on this router
            192.168.0.1/25
            add
            192.168.0.129/25



            and vice versa.



            in linux



            ip route add 192.168.0.1/25 via 192.168.0.1 dev eth0


            Windows



            route ADD destination_network MASK subnet_mask gateway_ip metric_cost



            route ADD 192.168.0.1 MASK 255.255.255.128 192.168.0.129





            share|improve this answer













            If you can access the routers gateway/routing table you can add corresponding entries in your routing table.



            on this router
            192.168.0.1/25
            add
            192.168.0.129/25



            and vice versa.



            in linux



            ip route add 192.168.0.1/25 via 192.168.0.1 dev eth0


            Windows



            route ADD destination_network MASK subnet_mask gateway_ip metric_cost



            route ADD 192.168.0.1 MASK 255.255.255.128 192.168.0.129






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Feb 7 at 21:07









            cybernardcybernard

            10.5k31828




            10.5k31828













            • So does this have to be done individually for every machine on the network?

              – Man Eating Monkey
              Feb 8 at 0:42











            • The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

              – cybernard
              Feb 8 at 1:32











            • What sort of setting would this fall under on the router? DMZ? Port forwarding?

              – Man Eating Monkey
              Feb 8 at 2:29











            • routing or maybe gateway

              – cybernard
              Feb 8 at 3:07



















            • So does this have to be done individually for every machine on the network?

              – Man Eating Monkey
              Feb 8 at 0:42











            • The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

              – cybernard
              Feb 8 at 1:32











            • What sort of setting would this fall under on the router? DMZ? Port forwarding?

              – Man Eating Monkey
              Feb 8 at 2:29











            • routing or maybe gateway

              – cybernard
              Feb 8 at 3:07

















            So does this have to be done individually for every machine on the network?

            – Man Eating Monkey
            Feb 8 at 0:42





            So does this have to be done individually for every machine on the network?

            – Man Eating Monkey
            Feb 8 at 0:42













            The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

            – cybernard
            Feb 8 at 1:32





            The best place is on your routers, however your routers may or may not allow this type of config. Worst case scenario you may have to buy a 3rd router and put dd-wrt, open wrt or etc on it.

            – cybernard
            Feb 8 at 1:32













            What sort of setting would this fall under on the router? DMZ? Port forwarding?

            – Man Eating Monkey
            Feb 8 at 2:29





            What sort of setting would this fall under on the router? DMZ? Port forwarding?

            – Man Eating Monkey
            Feb 8 at 2:29













            routing or maybe gateway

            – cybernard
            Feb 8 at 3:07





            routing or maybe gateway

            – cybernard
            Feb 8 at 3:07


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1403089%2fhow-to-configure-2-subnets-on-same-lan-and-communicate-between-devices%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

            Список кардиналов, возведённых папой римским Каликстом III

            Deduzione

            Mysql.sock missing - “Can't connect to local MySQL server through socket”