Send request via different network interfaces


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!
networking server
add a comment |Â
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!
networking server
add a comment |Â
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!
networking server
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!
networking server
asked Apr 24 at 6:20
Greg
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password