Send request via different network interfaces

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








up vote
0
down vote

favorite












I've got Ubuntu Xenial with 3 configured interfaces:



  • ens3 - ip 195.x.x.72

  • ens3:1 - ip 195.x.x.74

  • ens3:2 - ip 195.x.x.77

I can switch the interfaces using ifdown and ifup, connect to server via http and send outgoing requests via enabled interface.
But I need to keep ens3 always up to communicate with server via http but at the same time I need to send outgoing requests via either ens3:1 or ens3:2.



How to make that possible? Considering for instance that the outgoing requests from server is done via php or perl scripts.



Thank you!







share|improve this question
























    up vote
    0
    down vote

    favorite












    I've got Ubuntu Xenial with 3 configured interfaces:



    • ens3 - ip 195.x.x.72

    • ens3:1 - ip 195.x.x.74

    • ens3:2 - ip 195.x.x.77

    I can switch the interfaces using ifdown and ifup, connect to server via http and send outgoing requests via enabled interface.
    But I need to keep ens3 always up to communicate with server via http but at the same time I need to send outgoing requests via either ens3:1 or ens3:2.



    How to make that possible? Considering for instance that the outgoing requests from server is done via php or perl scripts.



    Thank you!







    share|improve this question






















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I've got Ubuntu Xenial with 3 configured interfaces:



      • ens3 - ip 195.x.x.72

      • ens3:1 - ip 195.x.x.74

      • ens3:2 - ip 195.x.x.77

      I can switch the interfaces using ifdown and ifup, connect to server via http and send outgoing requests via enabled interface.
      But I need to keep ens3 always up to communicate with server via http but at the same time I need to send outgoing requests via either ens3:1 or ens3:2.



      How to make that possible? Considering for instance that the outgoing requests from server is done via php or perl scripts.



      Thank you!







      share|improve this question












      I've got Ubuntu Xenial with 3 configured interfaces:



      • ens3 - ip 195.x.x.72

      • ens3:1 - ip 195.x.x.74

      • ens3:2 - ip 195.x.x.77

      I can switch the interfaces using ifdown and ifup, connect to server via http and send outgoing requests via enabled interface.
      But I need to keep ens3 always up to communicate with server via http but at the same time I need to send outgoing requests via either ens3:1 or ens3:2.



      How to make that possible? Considering for instance that the outgoing requests from server is done via php or perl scripts.



      Thank you!









      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 24 at 6:20









      Greg

      11




      11

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          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: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2faskubuntu.com%2fquestions%2f1027678%2fsend-request-via-different-network-interfaces%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%2faskubuntu.com%2fquestions%2f1027678%2fsend-request-via-different-network-interfaces%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

          `kcmshell` modules relation with `/usr/share/applications`

          How to enroll fingerprints to Ubuntu 17.10 with VFS491