From nobody Sun Nov 05 18:23:49 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SNjYD6jnXz4ys90 for ; Sun, 5 Nov 2023 18:24:00 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Received: from mail.flex-it.com.ua (mail.flex-it.com.ua [193.239.74.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4SNjYC6zmgz3V7S for ; Sun, 5 Nov 2023 18:23:59 +0000 (UTC) (envelope-from shuriku@shurik.kiev.ua) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of shuriku@shurik.kiev.ua designates 193.239.74.7 as permitted sender) smtp.mailfrom=shuriku@shurik.kiev.ua; dmarc=none Received: from 93.183.208.50.ipv4.datagroup.ua ([93.183.208.50] helo=[192.168.200.105]) by mail.flex-it.com.ua with esmtpsa (TLS1.3) tls TLS_AES_128_GCM_SHA256 (Exim 4.96.2 (FreeBSD)) (envelope-from ) id 1qzhmo-0006Zu-2Z for virtualization@freebsd.org; Sun, 05 Nov 2023 20:23:50 +0200 Content-Type: multipart/alternative; boundary="------------4Nkxut0C0DbqjQ6v2J9HfmvT" Message-ID: <37b9c6c8-54d1-4978-abec-553d1694dc25@shurik.kiev.ua> Date: Sun, 5 Nov 2023 20:23:49 +0200 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: generate mac "unique" mac address on a netzor To: virtualization@freebsd.org References: <989CBD58-0CD9-4CE0-8D78-D540619DDFAF@mac.com> Content-Language: uk-UA From: Oleksandr Kryvulia In-Reply-To: <989CBD58-0CD9-4CE0-8D78-D540619DDFAF@mac.com> X-ACL-Warn: SPF failed. 93.183.208.50 is not allowed to send mail from shurik.kiev.ua. X-Spamd-Result: default: False [-3.28 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; XM_UA_NO_VERSION(0.01)[]; MLMMJ_DEST(0.00)[virtualization@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:35297, ipnet:193.239.72.0/22, country:UA]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[shurik.kiev.ua]; TO_DN_NONE(0.00)[]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4SNjYC6zmgz3V7S X-Spamd-Bar: --- This is a multi-part message in MIME format. --------------4Nkxut0C0DbqjQ6v2J9HfmvT Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------4Nkxut0C0DbqjQ6v2J9HfmvT Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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
--------------4Nkxut0C0DbqjQ6v2J9HfmvT--