Setting routing between two networks - 2 interfaces - Windows 7











up vote
0
down vote

favorite












I have two network interfaces on one computer COMP-A.



First interface IP 10.10.10.34 /255.0.0.0



Second interface IP 192.168.0.23 /255.255.255.0



Computer via first interface is connected to network A (other computers)
Computer via second interface is connected to network B.



I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.



I also need access to devices from network B.



Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.



For example:



I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.










share|improve this question


























    up vote
    0
    down vote

    favorite












    I have two network interfaces on one computer COMP-A.



    First interface IP 10.10.10.34 /255.0.0.0



    Second interface IP 192.168.0.23 /255.255.255.0



    Computer via first interface is connected to network A (other computers)
    Computer via second interface is connected to network B.



    I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.



    I also need access to devices from network B.



    Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.



    For example:



    I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.










    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have two network interfaces on one computer COMP-A.



      First interface IP 10.10.10.34 /255.0.0.0



      Second interface IP 192.168.0.23 /255.255.255.0



      Computer via first interface is connected to network A (other computers)
      Computer via second interface is connected to network B.



      I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.



      I also need access to devices from network B.



      Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.



      For example:



      I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.










      share|improve this question













      I have two network interfaces on one computer COMP-A.



      First interface IP 10.10.10.34 /255.0.0.0



      Second interface IP 192.168.0.23 /255.255.255.0



      Computer via first interface is connected to network A (other computers)
      Computer via second interface is connected to network B.



      I connect with the computer (COMP-A) from network A. And I have access to remote desktop etc.



      I also need access to devices from network B.



      Is it possible to make some routing between network interfaces to have access to devices from network B when I am connected to network A.



      For example:



      I am connected to network A with IP 10.10.142.23 and can ping COMP-A (IP 10.10.10.34). I need to ping device from network B with IP 192.168.0.26.







      windows-7 networking routing






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 6 '16 at 12:48









      krzych

      6111




      6111






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:



          Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.



          When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.



          After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:



          route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
          route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)





          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
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1153496%2fsetting-routing-between-two-networks-2-interfaces-windows-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:



            Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.



            When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.



            After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:



            route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
            route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)





            share|improve this answer

























              up vote
              0
              down vote













              According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:



              Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.



              When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.



              After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:



              route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
              route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)





              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:



                Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.



                When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.



                After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:



                route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
                route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)





                share|improve this answer












                According to the Microsoft forums you can enable IP forwarding (routing) using the following steps:



                Go to Start and search on cmd or command. Right click on either cmd or command then select Run as administrator. At the command prompt type regedit. Navigate to the HKEY_LOCAL_MACHINESYSTEMCurrentControlSet ServicesTcpipParametersIPEnableRouter setting, right click and select Modify. Change 0 to 1 and exit the editor.



                When your back at the command prompt type services.msc and navigate to the Routing and Remote Access service. Right click and select Properties. Change to Automatic and click on Start to start the service.



                After this, you will need to set the default gateway of hosts in network A to 10.10.10.34 and the default gateway of hosts in network B to 192.168.0.23. If this isn't doable because you would lose connectivity to the rest of your network (or internet), you can add static routes to hosts in both networks:



                route ADD 10.0.0.0 MASK 255.0.0.0 192.168.0.23 (hosts in network B)
                route ADD 192.168.0.0 MASK 255.255.255.0 10.10.10.34 (hosts in network A)






                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 6 '16 at 13:47









                mtak

                10.9k23153




                10.9k23153






























                    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.





                    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%2fsuperuser.com%2fquestions%2f1153496%2fsetting-routing-between-two-networks-2-interfaces-windows-7%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

                    AnyDesk - Fatal Program Failure

                    How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

                    QoS: MAC-Priority for clients behind a repeater