Currently I have only 1 network connection setup (br0).
I'd like to connect a second network connection (eth3) to a separate network/gateway.
Everything should continue to be sent through eth0, except if I specifically choose to send a request out via eth1 (such as CURL request specifying eth1)
Note that eth2 is used as br0 bridge for a number of KVM virtual machines.
UPDATED: I added some routes and updates to the interfaces file: Here is my current interfaces file.
auto lo iface lo inet loopback auto br0 iface br0 inet static address 192.168.1.121 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 bridge_ports eth2 bridge_stp on bridge_fd 0 bridge_maxwait 0 post-up ip route add 192.168.1.0/24 dev br0 metric 1 post-up route add default gw 192.168.1.1 metric 1 pre-down route del default gw 192.168.1.1 auto eth3 iface eth3 inet static address 192.168.0.121 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 126.96.36.199 post-up ip route add 192.168.0.0/24 dev eth3 metric 2 post-up route add default gw 192.168.0.1 metric 2 pre-down route del default gw 192.168.0.1
However when I try to restart networking service is gives this error (also gives this error when trying to use
RTNETLINK answers: File exists
Failed to bring up eth3