From: Brian Burch <brian@pingtoo.com>
To: lartc@vger.kernel.org
Subject: Re: How to override the default source ipv4 address on packets originating from a router
Date: Fri, 20 Dec 2013 18:26:58 +0000 [thread overview]
Message-ID: <52B48BF2.7070300@pingtoo.com> (raw)
In-Reply-To: <52B43271.7040807@PingToo.com>
On 20/12/13 13:11, Anton 'EvilMan' Danilov wrote:
> Hello.
> What's about 'ip route get <dst> from <src>' command?
<snip/>
Thanks very much for responding Anton. By now you have probably read the
responses from Joel and Erik, who both state categorically that the
source address for packets originating on the host is not selected until
/after/ the outbound route has been determined.
This fact explains why "ip route get to 163.1.221.67" returns the
identical result no matter whether I omit the "from", or use "from
217.154.193.209", or use "from 172.16.101.2".
In every case the route returned is "via 172.16.101.1" as expected, but
in every case the source address is that of the eth0 interface 172.16.101.2.
I have more to say, but will do it by replying directly to Joel and
Eric's suggestions.
Thanks again,
Brian
next prev parent reply other threads:[~2013-12-20 18:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-20 12:05 How to override the default source ipv4 address on packets originating from a router Brian Burch
2013-12-20 13:05 ` Joel Gerber
2013-12-20 13:33 ` Erik Auerswald
2013-12-20 18:26 ` Brian Burch [this message]
2013-12-20 18:46 ` Brian Burch
2013-12-20 19:20 ` Brian Burch
2013-12-20 20:48 ` Erik Auerswald
2013-12-21 12:53 ` Brian Burch
2014-01-08 16:17 ` Brian Burch
2014-01-08 17:19 ` Joel Gerber
2014-01-08 18:52 ` Brian Burch
2014-01-08 18:55 ` Brian Burch
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=52B48BF2.7070300@pingtoo.com \
--to=brian@pingtoo.com \
--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.