I have a router used as a gateway for a small lan, I want half the machines to use one IP and half to use another IP when using SNAT to reach the internet. Both IPs are from the same ISP, same account, just different IPs. Heres what I''m trying: ------------------ LAN_IP="10.0.0.1" LAN_IFACE="eth0" EXT_IP_1="x.y.246.186" EXT_IFACE_1="eth1" EXT_IP_2="x.y.246.187" EXT_IFACE_2="eth2" INET_GW="x.y.246.254" LAN_NET="10.0.0.0/16" LAN_NET_SERVERS="10.0.0.0/24" ip route flush table main ip route flush table servers ip rule add from $LAN_NET_SERVERS table servers # First route ip route add $INET_NET dev $EXT_IFACE_2 ip route add default via $INET_GW dev $EXT_IFACE_2 # Second route, seems similar to the first but doesn’t work ip route add $INET_NET dev $EXT_IFACE_1 table servers ip route add default via $INET_GW dev $EXT_IFACE_1 table servers #At this point the command above fails with "RTNETLINK answers: network unreachable" ip route add $LAN_NET dev $LAN_IFACE ------------------ I don''t understand why it says $INET_GW is on an unreachable network when I just added a route to that network ($INET_NET). I''ve spent hours reading and trying different things, I can''t set up a route to the internet on anything but the main table (which strangely is very easy in contrast). Help? Lee