Netdev Archive on lore.kernel.org
help / color / mirror / Atom feed
From: hui wang <huiwangforfbjob@gmail.com>
To: netdev@vger.kernel.org
Subject: Re: question about configuring multiple interfaces on a host within the same ipv6 sub-net
Date: Sat, 24 Jul 2021 19:32:54 -0700	[thread overview]
Message-ID: <2abd4f99-02d7-1415-aeb3-bca3e3b7be84@gmail.com> (raw)
In-Reply-To: <25484f7d-e058-0976-5e93-30a8cf7aaf99@gmail.com>

On 7/23/21 11:15 PM, hui wang wrote:
> Hi All
>
> I have an host (running centos8), it has multiple interfaces 
> connecting to the same IPv6 sub-net. Different IPv6 addresses are 
> statically assigned to these interfaces. All these interfaces are 
> assigned with the same gateway address.
>
> I'd like to config the routing policy so that:
>
>     All packets with source IP address specified goes out via the 
> interface where the source IP address was assigned to.
>     When source IP address is not specified by application. (ex. TCP 
> sync packet)

when connect() called without binding to an ip address

> , different interfaces' IP address is picked (as source IP address) 
> randomly (if the destination IP address is different).
>
> How do I config routing policy to achieve these in such an environment.
>
> Please let me know if there are more appropriate mail lists for my 
> question.
>
> Thanks,
>
> Hui
>


  reply	other threads:[~2021-07-25  2:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-24  1:01 IPSec questions and comments Corey Minyard
2021-07-24  2:40 ` Eyal Birger
     [not found] ` <91bce7da-163d-dee3-5309-ebcf27de1abb@gmail.com>
2021-07-24  6:15   ` question about configuring multiple interfaces on a host within the same ipv6 sub-net hui wang
2021-07-25  2:32     ` hui wang [this message]
2021-07-26  8:13 ` IPSec questions and comments Steffen Klassert

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=2abd4f99-02d7-1415-aeb3-bca3e3b7be84@gmail.com \
    --to=huiwangforfbjob@gmail.com \
    --cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).