Advertisement

04.30.2008 at 03:05AM PDT, ID: 23364816
[x]
Attachment Details

How to setup iproute2 in ubuntu 8.04

Asked by mistoiic in Linux Networking

Tags: linux Ubuntu, Ubuntu 8.04 (iproute2)

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
[+][-]04.30.2008 at 06:14AM PDT, ID: 21470375

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 10:20AM PDT, ID: 21472726

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 10:49AM PDT, ID: 21473021

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Networking
Tags: linux Ubuntu, Ubuntu 8.04 (iproute2)
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 1
Solution Grade: A
 
 
[+][-]04.30.2008 at 11:43AM PDT, ID: 21473462

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628