I have Ubuntu Server 12.04
I have 3 gateways on my lan
10.0.0.1
10.0.0.2
10.0.0.3
Ubuntu has 3 NICs
eth0 10.0.0.60 gw 10.0.0.1
eth1 10.0.0.61 gw 10.0.0.2
eth2 10.0.0.62 gw 10.0.0.3
If a request comes in from gw 10.0.0.1 it work fine. the other gateways don't
I have tried to fix this with routes but I can't seem to get it right.
My ISP can only give 10Mbps up per modem the server streams a live video feed. I need all 3 modems for load balancing
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 10.0.0.3 0.0.0.0 UG 100 0 0 eth0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
If this could be done with one NIC I am fine with that I just need to be able to balance this traffic.
I tried this (but all networking stopped after):
#echo "60 out60" >> /etc/iproute2/rt_tables
#echo "61 out61" >> /etc/iproute2/rt_tables
#echo "62 out62" >> /etc/iproute2/rt_tables
#ip route add default via 10.0.0.1 table out60
#ip route add default via 10.0.0.2 table out61
#ip route add default via 10.0.0.3 table out62
#ip rule add from 10.0.0.60 table out60
#ip rule add from 10.0.0.61 table out61
#ip rule add from 10.0.0.62 table out62
This Diagram doesn't have the server in question its just so you can see the network layout.
Network Diagram
http://23.31.204.85/netdiag.png