Article View: muc.lists.freebsd.bugs
Article #450[Bug 300751] [epair] Duplicate MAC address on epair creation (ether_gen_addr)
From: bugzilla-noreply
Date: Fri, 13 Nov 2026 17:14
Date: Fri, 13 Nov 2026 17:14
79 lines
4463 bytes
4463 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300751
Bug ID: 300751
Summary: [epair] Duplicate MAC address on epair creation
(ether_gen_addr)
Product: Base System
Version: 15.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: grembo@FreeBSD.org
FreeBSD 15 changed the default value of `net.link.epair.ether_gen_addr` to 1
(see epair(4)), therefore "a stable MAC address with FreeBSD OUI using
ether_gen_addr(9)" is assigned to epair interfaces on creation.
When creating an epair interface using `ifconfig` these addresses clash, even
when generating a small number of interfaces.
This can be easily reproduced. In the example below, creating 100 epair
interface pairs causes 34 duplicate MAC address assignments:
for i in $(jot 100); do ifconfig epair create; done
...
ifconfig -g epair | xargs -n1 ifconfig | grep ether | sort | uniq -dc |
sort -n
2 ether 58:9c:fc:10:ff:84
2 ether 58:9c:fc:10:ff:85
2 ether 58:9c:fc:10:ff:95
2 ether 58:9c:fc:10:ff:a1
2 ether 58:9c:fc:10:ff:a2
2 ether 58:9c:fc:10:ff:a7
2 ether 58:9c:fc:10:ff:ae
2 ether 58:9c:fc:10:ff:b2
2 ether 58:9c:fc:10:ff:b4
2 ether 58:9c:fc:10:ff:b6
2 ether 58:9c:fc:10:ff:c1
2 ether 58:9c:fc:10:ff:c8
2 ether 58:9c:fc:10:ff:cd
2 ether 58:9c:fc:10:ff:d3
2 ether 58:9c:fc:10:ff:d7
2 ether 58:9c:fc:10:ff:e6
2 ether 58:9c:fc:10:ff:ef
2 ether 58:9c:fc:10:ff:f3
2 ether 58:9c:fc:10:ff:f5
2 ether 58:9c:fc:10:ff:f8
2 ether 58:9c:fc:10:ff:f9
3 ether 58:9c:fc:10:ff:ab
3 ether 58:9c:fc:10:ff:b0
3 ether 58:9c:fc:10:ff:bc
3 ether 58:9c:fc:10:ff:f4
3 ether 58:9c:fc:10:ff:f7
4 ether 58:9c:fc:10:ff:fa
This is unfortunate for multiple reasons, especially when running dynamic
payloads.
As one would expect, disabling the feature
sysctl net.link.epair.ether_gen_addr=0
makes the problem go away.
The man page states that the tunable "might be removed in FreeBSD 16.0", so
it's all the more important this gets fixed.
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-300751-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 300751] [epair] Duplicate MAC address on epair creation (ether_gen_addr) Date: Fri, 13 Nov 2026 17:14:42 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-300751-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="11431"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1794590082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TCX7p63GXsXZc1pE4QHY+Iu4htgFHXJUbKtoKk9FK40=; b=xEg9+xWAdSFbe01z6ibyQ8nJex59ltgbYMBDQINCSFOiwK6jQiY51nW7ZaF2CA6nDlm9SY K9V3UVHUDE/QZrTIrd6rm0ICvzcmX1IHxSk8U5RIfcpmCzzEd/nEg4l4bBl3WkN5LOPdr2 XCj6BNJh1SA86CbsHKUa40wZMBXZUc9g+tBT7kW5vbxJjG/RZ8Aoe+5+dshModrAmb207r omDUcJ3VVG9tNJhb57+EZRyLbS0Ej6Dc/nGofT6vii63ZcJoRzll/LYjI2rElz2p+SdJoR l/aBgqpYtbbjkorZbbFEd8zqxcIpzdyJ+54MYYVSgQCaARhMaNzf/TqvZS9/rg== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes