All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vinod Chandran <vinod_chandran@multitech.co.in>
To: lartc@vger.kernel.org
Subject: [LARTC] Static routing with multiple interfaces
Date: Mon, 05 Jun 2006 08:57:24 +0000	[thread overview]
Message-ID: <4483EF24.3060608@multitech.co.in> (raw)

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

                 reply	other threads:[~2006-06-05  8:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4483EF24.3060608@multitech.co.in \
    --to=vinod_chandran@multitech.co.in \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.