Hello,
it seem I fail to understand how to setup my ubuntu box to route to one of my two gateways using iproute2.
the setup would be:
linux box: eth0 > 192.168.0.3 >>> connected to LAN
eth1> 192.168.1.1 >>> router1 (192.168.1.11)
eth2> 10.163.10.1 >>> router2 (10.163.10.254)
I think I understood the policy routing, I created 2 tables, router1 / router2
and did as follow: ip rule add from 192.168.0.0/24 table router1
ip rule add from 192.168.0.0/24 to x.x.x.x table router2
then, I proceeded to the route:
ip route add default via 192.168.1.11 dev eth1 table router1
ip route add default via 10.163.10.254 dev eth2 table router2
all the clients are in XP/vista. so I setup the network there, but I'm unable to connect to anything >_<
so, in thinking my idea was wrong, I did try to setup a very simple route/rule but it never worked.
no matter what I try, my XP client will never ping outside
I did also try to add some line into my iptables, to allow it. but then again, it didnt work.
obviously, I'm missing something!
I'm far from linux expert, so please, be gentle :)
thanks!
Start Free Trial