All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Static routing with multiple interfaces
@ 2006-06-05  8:57 Vinod Chandran
  0 siblings, 0 replies; only message in thread
From: Vinod Chandran @ 2006-06-05  8:57 UTC (permalink / raw)
  To: lartc

Hi,

I am facing some strange problem with multipath routing.

I have set up a rule stating that any packets coming from a certain ip 
address <192.168.52.66> should use an interface < eth1>

For this, I used the following commands

/ip rule add from 192.168.52.66 table 200
ip route add default table 200 via 192.168.19.76 dev eth1/

Here 192.168.19.76 is eth1's gateway.

This is how my rule structure looks

/0:      from all lookup local
49:     from 192.168.52.66 lookup 200
50:     from all lookup main
222:    from all lookup 222
32766:  from all lookup main
32767:  from all lookup 253/

However this is not working, I have packets still going out through the 
other interface when sent from 192.168.51.66.
This is how my default table (222) looks
/default  proto static
        nexthop via 192.168.19.76  dev eth1 weight 1
        nexthop via 192.168.20.25  dev eth2 weight 1
/
I dont have a default route in the main or local table.

Is there something that I am missing to get the static rule working?

Thanks and Regards,
Vinod  C



_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-06-05  8:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-05  8:57 [LARTC] Static routing with multiple interfaces Vinod Chandran

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.