On Mon, Oct 31, 2005 at 09:24:51PM +0400, Jaison Jose wrote:
>  Anyone can help me to setup policy based routing in linux(Fedora 3). I want
> to put seperate gateways to all of my three interfaces, which are connected
> to seperate routers.
>  I configured like;
> ip addr add dev eth0 10.0.1.10/24 <http://10.0.1.10/24>
> ip addr add dev eth1 10.0.2.10/24 <http://10.0.2.10/24>
> ip addr add dev eth2 10.0.3.10/24 <http://10.0.3.10/24>
>  ip rule add dev eth0 table 1
> ip route add default via 10.0.1.1 <http://10.0.1.1> table 1
>  ip rule add dev eth1 table 2
> ip route add default via 10.0.2.1 <http://10.0.2.1> table 2
>  ip rule add dev eth2 table 3
> ip route add default via 10.0.3.1 <http://10.0.3.1> table 3
> ip ro flush cache
>  But I cant ping to any ip behind the router..

Reading your mail I assume your network structure is the following:

     +-----------+   +--------+
     | something |-?-| router |--- eth0 --- 10.0.1.0/24
     +-----------+   +--------+
                             |
                             +---- eth1 --- 10.0.2.0/24
                             |
                             +---- eth2 --- 10.0.3.0/24

I could not fully understand what you're trying to do. 

In my eyes your specific configuration makes only sense when there is
another interface 'something' defined that is accessed from eth0-2 or
vice versa. "Policy based routing" makes only sense when you want to
route based on parameters other then the packets destination, but is not
what you configured - in my eyes.

Please give more info here. 

Dirk Tilger
Advanced Technologies ME FZ LLC
Tel +971 4 367 1071
Fax +971 4 367 2529
Mob +971 50 8809132
    +966 55 1650025


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/0XFolB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/dubailug/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to