From: Mallika Gautam <mallika.gautam@gmail.com>
To: Guido Trotter <ultrotter@quaqua.net>
Cc: Atis Elsts <atis@mikrotik.com>, netdev@vger.kernel.org
Subject: Re: Policy routing + route "via" gives a strange behavior
Date: Wed, 21 Oct 2009 09:47:08 +0100 [thread overview]
Message-ID: <9041a1390910210147v57b04afg5c0ac320b87eafd2@mail.gmail.com> (raw)
In-Reply-To: <20091020172334.GA6404@gg.studio.tixteam.net>
>
>> Anyway, you can achieve what you wish by using the "onlink" option, e.g.:
>> ip route add table 100 default dev eth1 via 192.168.5.254 onlink
>
Hi,
I am facing exactly the same issue and have to flush the main table
once the routes in the table get added. This is really nasty as I need
to this from a kernel module every time an interface is shutdown and
again brought up.
"onlink" doesn't seem to work as it "sees" the destination IP address
"onlink" instead of resolving it via the gateway. E.g. if I want to
ping 139.85.111.12 via eth1, it tries to send ARP request for
139.85.111.12 and not 192.168.5.254. So it doesn' work.
I would really link to see this behaviour fixed as the workarounds are
equally painful.
Regards
Mallika
prev parent reply other threads:[~2009-10-21 8:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-20 13:28 Policy routing + route "via" gives a strange behavior Guido Trotter
2009-10-20 16:48 ` Atis Elsts
2009-10-20 17:23 ` Guido Trotter
2009-10-21 8:47 ` Mallika Gautam [this message]
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=9041a1390910210147v57b04afg5c0ac320b87eafd2@mail.gmail.com \
--to=mallika.gautam@gmail.com \
--cc=atis@mikrotik.com \
--cc=netdev@vger.kernel.org \
--cc=ultrotter@quaqua.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox