2

I have a service which I want to run over eth1.
But all my other traffic still needs to run over eth0.

Is it possible to force a command-line tool or other application to use the non default interface?

madmaze
  • 4,444

2 Answers2

0

Just a stab in the dark, but does the service allow you to bind to specific IP addresses? If eth1 has its own IP address (i.e. not bonded with eth0) this may do what you want. Outside of that, you may be able to have it access an external IP address that's only routed over eth1.

Rich Homolka
  • 32,350
0

You can probably configure the application to bind to the ip address you have configured on eth1. If, however, your default route goes out eth0, your outbound traffic, while tagged with the IP on eth1, will likely still leave the host on eth1.

mkomitee
  • 596