Date: Sun, 5 Nov 2023 20:23:49 +0200 From: Oleksandr Kryvulia <shuriku@shurik.kiev.ua> To: virtualization@freebsd.org Subject: Re: generate mac "unique" mac address on a netzor Message-ID: <37b9c6c8-54d1-4978-abec-553d1694dc25@shurik.kiev.ua> In-Reply-To: <989CBD58-0CD9-4CE0-8D78-D540619DDFAF@mac.com> References: <989CBD58-0CD9-4CE0-8D78-D540619DDFAF@mac.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
05.11.23 20:04, Benoit Chesneau:
> ip plan to setup multiple vms that are using sr-iov. is there any way to manage private mac adresses that can be assignated to them?
>
> Any good pattern/script that allows it? Do we have provate mac address blocks like for ips?
>
> Benoît
In our virtual environment we generate unique mac addresses with
hexdump -n3 -e'/3 "58:9c:fc" 3/1 ":%02x"' /dev/random
[-- Attachment #2 --]
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
05.11.23 20:04, Benoit Chesneau:<br>
<blockquote type="cite"
cite="mid:989CBD58-0CD9-4CE0-8D78-D540619DDFAF@mac.com">
<pre class="moz-quote-pre" wrap="">ip plan to setup multiple vms that are using sr-iov. is there any way to manage private mac adresses that can be assignated to them?
Any good pattern/script that allows it? Do we have provate mac address blocks like for ips?
Benoît
</pre>
</blockquote>
In our virtual environment we generate unique mac addresses with<br>
<br>
<span style="font-family:monospace"><span
style="color:#000000;background-color:#ffffff;">hexdump -n3
-e'/3 "58:9c:fc" 3/1 ":%02x"' /dev/random</span><br>
</span>
</body>
</html>
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37b9c6c8-54d1-4978-abec-553d1694dc25>
