From: Michal Kubecek <mkubecek@suse.cz>
To: netdev@vger.kernel.org
Cc: Mikhail Morfikov <morfikov@gmail.com>
Subject: Re: Creating a bonding interface via the ip tool gives it the wrong MAC address
Date: Wed, 1 Apr 2020 17:56:01 +0200 [thread overview]
Message-ID: <20200401155601.GW31519@unicorn.suse.cz> (raw)
In-Reply-To: <a43adea0-8885-2bda-c931-5b8bf06e3a70@gmail.com>
On Wed, Apr 01, 2020 at 05:03:58PM +0200, Mikhail Morfikov wrote:
> A couple months ago I opened an issue on the Debian Bug Tracker[1] concerning
> some weird network behavior, in which bonding interface was involved. Basically,
> what I wanted to achieve was to have two interfaces (eth0 and wlan0) of my
> laptop in the *active-backup* mode, and in order to make this work, the
> *fail_over_mac* has to be set to *none*. Then the two interfaces (and also the
> bond0 interface) should have the same MAC address, which is set based on the
> interface specified by the *primary* parameter (in this case eth0).
>
> This was working well in the past, but it stopped for some reason. When the
> bond0 interface is being set up via the /etc/network/interfaces file, it gets
> wrong MAC address, and it's always the same MAC (ca:16:91:ae:9a:ba).
>
> I didn't really know where the problem was (it looks like no one knows so far),
> but I recently moved from ifupdown to systemd-networkd, and I noticed that the
> issue went away, at least in the default config. But in my case, I had to
> create the bonding interface during the initramfs/initrd phase using the *ip*
> tool (the regular one, and not the one from busybox). And the problem came back,
> but in this case I couldn't really fix it by just restarting the network
> connection.
>
> So I created manually the bond0 interface using the *ip* tool in the following
> way to check what will happen:
>
> ip link add name bond0 type bond mode active-backup \
> miimon 200 \
> downdelay 400 \
> updelay 400 \
> primary eth0 \
> primary_reselect always \
> fail_over_mac none \
> min_links 1
>
> and the interface got the MAC in question. That gave me the idea that something
> could be wrong with setting up/configuring the bonding interface via the *ip*
> tool because it works well with systemd-networkd, which I think doesn't use the
> tool to configure the network interfaces.
>
> So why does this happen?
I suspect you may be hitting the same issue as we had in
https://bugzilla.suse.com/show_bug.cgi?id=1136600
(comment 9 explains the problem).
Michal
next prev parent reply other threads:[~2020-04-01 15:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-01 15:03 Creating a bonding interface via the ip tool gives it the wrong MAC address Mikhail Morfikov
2020-04-01 15:56 ` Michal Kubecek [this message]
2020-04-01 17:47 ` Mikhail Morfikov
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=20200401155601.GW31519@unicorn.suse.cz \
--to=mkubecek@suse.cz \
--cc=morfikov@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