From: Russell Strong <russell@strong•id.au>
To: Stephen Hemminger <stephen@networkplumber•org>
Cc: netdev@vger•kernel.org
Subject: Re: vxlan mac address generation
Date: Wed, 15 Apr 2020 11:38:00 +1000 [thread overview]
Message-ID: <20200415113800.134f2530@strong.id.au> (raw)
In-Reply-To: <20200414172348.365896e5@hermes.lan>
On Tue, 14 Apr 2020 17:23:48 -0700
Stephen Hemminger <stephen@networkplumber•org> wrote:
> On Wed, 15 Apr 2020 10:05:24 +1000
> Russell Strong <russell@strong•id.au> wrote:
>
> > Hi Stephen,
> >
> > I've hit a problem with vxlan not communicating because mac
> > addresses being duplicated when I use the same IFNAME across
> > multiple virtual machines. The mac address appears to be some sort
> > of hash related to the IFNAME. Changing the name changes the mac
> > address.
> >
> > Looking at vxlan_setup this should be random (eth_hw_addr_random)
> > but it is not.
> >
> > Is there a bug here?
> >
> > Regards,
> > Russell Strong
>
> Please forward questions to netdev@vger•kernel.org.
> Do you have weak seeding on your platform? This happens early in boot
> process and maybe PRNG is not seeded yet.
I have checked the diff of /var/lib/systemd/random-seed. Each machine
has a different seed. Plus each machine has been running for a long
period of time. They are however, cloned from the same source machine
wayback.
As an example, if I execute the following commands
ip link add v0 type vxlan id 1
I get the mac address 6e:7a:da:1c:12:0c
then delete and recreate,
ip link del v0
ip link add v0 type vxlan id 1
I get back the same address 6e:7a:da:1c:12:0c
I would have expected a different mac as the PRNG should have
advanced. Also, if I change v0 to something else, I get a different mac
address but the same repeatability.
next parent reply other threads:[~2020-04-15 1:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200415100524.1ed7f9f9@strong.id.au>
[not found] ` <20200414172348.365896e5@hermes.lan>
2020-04-15 1:38 ` Russell Strong [this message]
[not found] ` <20200414211206.40a324b4@hermes.lan>
2020-04-15 7:28 ` vxlan mac address generation Russell Strong
2020-04-15 10:21 ` Ido Schimmel
2020-04-15 23:53 ` Russell Strong
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=20200415113800.134f2530@strong.id.au \
--to=russell@strong$(echo .)id.au \
--cc=netdev@vger$(echo .)kernel.org \
--cc=stephen@networkplumber$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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