How do I update my routing table to accommodate VPN without using remote gateway?












0















Windows 7 x64



I have a VPN connection to my work network. It works fine if I have the "Use default gateway on remote network" is checked, but I don't want that. I know I need to update my routing table so that traffic intended for the work network is directed to that network, before all remaining traffic is routed through the local gateway.



I am having trouble figuring out how to identify the correct settings for the routing table. I know that I will have a defualt traffic entry for "0.0.0.0", which will need to have a higher metric than traffic specifically routed to the work network, but how can I determine the correct gateway and interface for the work/VPN network? When I do ipconfig /all, it just shows the gateway as "On-link", and the IP address assigned by the remote network changes between connections (DHCP).



Any help in this matter is appreciated.



Edit:
It appears that if I add a specific route e.g.:



route -p -4 ADD 192.168.30.55 MASK 255.255.255.255 192.168.50.1



it works, but if I add a range e.g.:



route -p -4 ADD 192.168.30.0 MASK 255.255.255.0 192.168.50.1



it doesn't. Any ideas why the second one doesn't work? Thanks again.










share|improve this question





























    0















    Windows 7 x64



    I have a VPN connection to my work network. It works fine if I have the "Use default gateway on remote network" is checked, but I don't want that. I know I need to update my routing table so that traffic intended for the work network is directed to that network, before all remaining traffic is routed through the local gateway.



    I am having trouble figuring out how to identify the correct settings for the routing table. I know that I will have a defualt traffic entry for "0.0.0.0", which will need to have a higher metric than traffic specifically routed to the work network, but how can I determine the correct gateway and interface for the work/VPN network? When I do ipconfig /all, it just shows the gateway as "On-link", and the IP address assigned by the remote network changes between connections (DHCP).



    Any help in this matter is appreciated.



    Edit:
    It appears that if I add a specific route e.g.:



    route -p -4 ADD 192.168.30.55 MASK 255.255.255.255 192.168.50.1



    it works, but if I add a range e.g.:



    route -p -4 ADD 192.168.30.0 MASK 255.255.255.0 192.168.50.1



    it doesn't. Any ideas why the second one doesn't work? Thanks again.










    share|improve this question



























      0












      0








      0








      Windows 7 x64



      I have a VPN connection to my work network. It works fine if I have the "Use default gateway on remote network" is checked, but I don't want that. I know I need to update my routing table so that traffic intended for the work network is directed to that network, before all remaining traffic is routed through the local gateway.



      I am having trouble figuring out how to identify the correct settings for the routing table. I know that I will have a defualt traffic entry for "0.0.0.0", which will need to have a higher metric than traffic specifically routed to the work network, but how can I determine the correct gateway and interface for the work/VPN network? When I do ipconfig /all, it just shows the gateway as "On-link", and the IP address assigned by the remote network changes between connections (DHCP).



      Any help in this matter is appreciated.



      Edit:
      It appears that if I add a specific route e.g.:



      route -p -4 ADD 192.168.30.55 MASK 255.255.255.255 192.168.50.1



      it works, but if I add a range e.g.:



      route -p -4 ADD 192.168.30.0 MASK 255.255.255.0 192.168.50.1



      it doesn't. Any ideas why the second one doesn't work? Thanks again.










      share|improve this question
















      Windows 7 x64



      I have a VPN connection to my work network. It works fine if I have the "Use default gateway on remote network" is checked, but I don't want that. I know I need to update my routing table so that traffic intended for the work network is directed to that network, before all remaining traffic is routed through the local gateway.



      I am having trouble figuring out how to identify the correct settings for the routing table. I know that I will have a defualt traffic entry for "0.0.0.0", which will need to have a higher metric than traffic specifically routed to the work network, but how can I determine the correct gateway and interface for the work/VPN network? When I do ipconfig /all, it just shows the gateway as "On-link", and the IP address assigned by the remote network changes between connections (DHCP).



      Any help in this matter is appreciated.



      Edit:
      It appears that if I add a specific route e.g.:



      route -p -4 ADD 192.168.30.55 MASK 255.255.255.255 192.168.50.1



      it works, but if I add a range e.g.:



      route -p -4 ADD 192.168.30.0 MASK 255.255.255.0 192.168.50.1



      it doesn't. Any ideas why the second one doesn't work? Thanks again.







      windows-7 networking vpn routing






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 21 '11 at 16:21







      Sako73

















      asked Nov 21 '11 at 15:58









      Sako73Sako73

      10113




      10113






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I suspect you have the wrong subnet mask. 255.255.255.0 is a very uncommon subnet mask for VPNs.



          Connect using your VPN and post your ipconfig & routing tables. Or if you know what VPN software you use, we can just look at the config files.






          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',
            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%2f359826%2fhow-do-i-update-my-routing-table-to-accommodate-vpn-without-using-remote-gateway%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









            0














            I suspect you have the wrong subnet mask. 255.255.255.0 is a very uncommon subnet mask for VPNs.



            Connect using your VPN and post your ipconfig & routing tables. Or if you know what VPN software you use, we can just look at the config files.






            share|improve this answer




























              0














              I suspect you have the wrong subnet mask. 255.255.255.0 is a very uncommon subnet mask for VPNs.



              Connect using your VPN and post your ipconfig & routing tables. Or if you know what VPN software you use, we can just look at the config files.






              share|improve this answer


























                0












                0








                0







                I suspect you have the wrong subnet mask. 255.255.255.0 is a very uncommon subnet mask for VPNs.



                Connect using your VPN and post your ipconfig & routing tables. Or if you know what VPN software you use, we can just look at the config files.






                share|improve this answer













                I suspect you have the wrong subnet mask. 255.255.255.0 is a very uncommon subnet mask for VPNs.



                Connect using your VPN and post your ipconfig & routing tables. Or if you know what VPN software you use, we can just look at the config files.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 22 '11 at 5:46









                surfasbsurfasb

                20.8k34371




                20.8k34371






























                    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%2f359826%2fhow-do-i-update-my-routing-table-to-accommodate-vpn-without-using-remote-gateway%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