DPDK usage discussions
 help / color / mirror / Atom feed
From: DoHyung Kim <dohyung.kim@fluidic.io>
To: Jay Rolette <rolette@infinite.io>
Cc: users <users@dpdk.org>
Subject: Re: [dpdk-users] Weird phenomenon involving KNI
Date: Wed, 2 Jan 2019 22:04:50 +0900	[thread overview]
Message-ID: <CAH3X_xYa=Poz-QdXPdSxYcdmg_spcLBGNiMouZbJkzJL14DsXw@mail.gmail.com> (raw)
In-Reply-To: <CADNuJVpXN4_9cq__jkG2CUcLpkrZTkYRC=TPjZJk8_9bfr1nLg@mail.gmail.com>

It's not relevant to DPDK at all. I was trying to put two NICs in a host to
single subnet, and even w/o DPDK involved, the NICs didn't work properly.
Googling turned out that one can't use multiple NICs in a Linux host in
single subnet under the default, out of the box, configuration.

I guess many of subscribers in this mailing list should already be familar
w/ the problem. But I describe how I've solved the problem below in the
hope that it may be helpful to someone like me:

If one wants such a network setup, one needs to tweak routing rules
together w/ a few changes to the way ARP is handled. An interesting point
here is one needs to set routing rules correctly in order to just get ARP
replies work as intenteded, though ARP replies are not strictly relevant to
the outgoing packets.

Please refer to the following doc: https://access.redhat.com/solutions/30564
In summary, each NIC needs to have a separate routing table and a routing
rule linking the table w/ the IP address of the NIC.
I added arp_ignore = 1 together w/ arp_announce = 2 since other docs on the
ARP flux problem suggests doing so.

DoHyung



2019년 1월 2일 (수) 오후 9:38, Jay Rolette <rolette@infinite.io>님이 작성:

> On Tue, Jan 1, 2019 at 4:05 AM DoHyung Kim <dohyung.kim@fluidic.io> wrote:
>
>> It was a consequence of the well-known behavior of Linux kernel regarding
>> ARP handling when multiple NICs are on the same subnet.
>>
>
> What solution did you end up going with?
>


-- 
DoHyung Kim
Fluidic Inc.

      reply	other threads:[~2019-01-02 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-31  9:42 DoHyung Kim
2019-01-01 10:04 ` DoHyung Kim
2019-01-02 12:38   ` Jay Rolette
2019-01-02 13:04     ` DoHyung Kim [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='CAH3X_xYa=Poz-QdXPdSxYcdmg_spcLBGNiMouZbJkzJL14DsXw@mail.gmail.com' \
    --to=dohyung.kim@fluidic.io \
    --cc=rolette@infinite.io \
    --cc=users@dpdk.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).