All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: ditang chen <ditang.c@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] net: netperf TCP_CRR test fails in bonding interfaces(mode 0)
Date: Sun, 10 Dec 2023 10:06:25 -0800	[thread overview]
Message-ID: <20231210100615.521f290e@hermes.local> (raw)
In-Reply-To: <CAHnGgyF-oAnCd+NdvdZVzhE4VZLnK+BcVBH3gQqm9v0Q1s_QGw@mail.gmail.com>

On Sun, 10 Dec 2023 23:16:20 +0800
ditang chen <ditang.c@gmail.com> wrote:

> 1. client/server:
> # modprobe bonding
> # ifconfig enp1s3 down
> # ifconfig enp2s3 down
> # echo "+bond0" > /sys/class/net/bonding_masters
> # edho "enp1s3" > /sys/class/net/bond0/bonding/slaves
> # edho "enp2s3" > /sys/class/net/bond0/bonding/slaves
> # ifconfig bond0 up

This is a really old legacy way to configure bonding.
The better method is:

# ip link add dev bond0 type bond
# ip link set dev enp1s3 down master bond0
# ip link set dev enp2s3 down master bond0
# ip link set dev bond0 up

  reply	other threads:[~2023-12-10 18:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-10 15:16 [PATCH] net: netperf TCP_CRR test fails in bonding interfaces(mode 0) ditang chen
2023-12-10 18:06 ` Stephen Hemminger [this message]
2023-12-12  8:45 ` Eric Dumazet

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=20231210100615.521f290e@hermes.local \
    --to=stephen@networkplumber.org \
    --cc=ditang.c@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 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.