All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ard van Breemen <ard@telegraafnet.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] ip route src
Date: Fri, 31 May 2002 11:45:05 +0000	[thread overview]
Message-ID: <marc-lartc-102284580627590@msgid-missing> (raw)
In-Reply-To: <marc-lartc-102269733106274@msgid-missing>

On Wed, May 29, 2002 at 08:54:43PM +0200, Arthur van Leeuwen wrote:
> The 'src' specifies which source address to choose in case a packet matching
> that routing rule does not have a source address yet. This may not seem
Are you sure it is that general?
If I am correct, it only applies to local unbound traffic.
> useful, until you realise that all outgoing packets generated on the local
> machine don't have a source address when routing...
That is also to general.
If you generate outgoing traffic, you have the option to bind the
source to an IP address, instead of "give me something default".

So: the src option changes the default source ip address of
outbound traffic going to the specified route.

If you have a multi homed system (meaning more than one ip
address for the same system), you can do a:
wget -SHO /dev/null http://www.telegraaf.nl/
and linux will choose an apropriate source address.

But if you have certain arrangements with somebody that delivers
content only to specific ip addressess, you can tell wget to use
a specific ip address:
wget --bind-address={a local ip address} -SHO /dev/null http://www.telegraaf.nl/
which will overrule the default address.

If you want to know what the default address will be for a
certain destination you can do this:
ip route get {destination}
-- 
begin  ILOVEYOU.VBS 666
<ard@telegraafnet.nl> Telegraaf Elektronische Media
Real geeks don't get viruses
end
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2002-05-31 11:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-29 18:33 [LARTC] ip route src Ciprian Niculescu
2002-05-29 18:54 ` Arthur van Leeuwen
2002-05-31 11:45 ` Ard van Breemen [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=marc-lartc-102284580627590@msgid-missing \
    --to=ard@telegraafnet.nl \
    --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.