Add hops on a single machine and forward some trafic to another

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I want to change this script simulating-network-hops-on-a-single-linux-box



So it will forward only some traffic to another machine.



Assuming that my address is 192.168.0.3 and I want to add hops and forward it to 192.168.0.4. How can I do it?
I tried to edit the last line:



route add -net 172.16.101.0/24 gw 172.16.100.2



but lost connectivity :(







share|improve this question
























    up vote
    1
    down vote

    favorite












    I want to change this script simulating-network-hops-on-a-single-linux-box



    So it will forward only some traffic to another machine.



    Assuming that my address is 192.168.0.3 and I want to add hops and forward it to 192.168.0.4. How can I do it?
    I tried to edit the last line:



    route add -net 172.16.101.0/24 gw 172.16.100.2



    but lost connectivity :(







    share|improve this question






















      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I want to change this script simulating-network-hops-on-a-single-linux-box



      So it will forward only some traffic to another machine.



      Assuming that my address is 192.168.0.3 and I want to add hops and forward it to 192.168.0.4. How can I do it?
      I tried to edit the last line:



      route add -net 172.16.101.0/24 gw 172.16.100.2



      but lost connectivity :(







      share|improve this question












      I want to change this script simulating-network-hops-on-a-single-linux-box



      So it will forward only some traffic to another machine.



      Assuming that my address is 192.168.0.3 and I want to add hops and forward it to 192.168.0.4. How can I do it?
      I tried to edit the last line:



      route add -net 172.16.101.0/24 gw 172.16.100.2



      but lost connectivity :(









      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 20 '17 at 14:14









      nmnir

      1132




      1132

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405782%2fadd-hops-on-a-single-machine-and-forward-some-trafic-to-another%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f405782%2fadd-hops-on-a-single-machine-and-forward-some-trafic-to-another%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          The Forum (Inglewood, California)

          Palaiologos