Thread View: muc.lists.freebsd.bugs
3 messages
3 total messages
Started by bugzilla-noreply
Fri, 13 Nov 2026 17:14
[Bug 300751] [epair] Duplicate MAC address on epair creation (ether_gen_addr)
Author: 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
[Bug 300751] [epair] Duplicate MAC address on epair creation (ether_gen_addr)
Author: bugzilla-noreply
Date: Fri, 13 Nov 2026 20:02
Date: Fri, 13 Nov 2026 20:02
60 lines
4252 bytes
4252 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300751
--- Comment #1 from Michael Gmelin <grembo@FreeBSD.org> ---
The test above was done on a test machine running 14.x with the tunable
enabled. We encountered the issue on a production 15.1 machine first (there
epair25 and epair68 collided, probably depends on the host id).
After upgrading the test machine to 15.1-RELEASE there are fewer collisions,
but they still happen - epair84b and epair182b got the same MAC when creating
200 interfaces.
When creating 1000 epairs on 15.1, there are 25 collisions in our test:
for i in $(jot 1000); do ifconfig epair create; done
...
ifconfig -g epair | xargs -n1 ifconfig | grep ether | sort | uniq -dc |
sort -n
2 ether 58:9c:fc:10:15:93
2 ether 58:9c:fc:10:17:1e
2 ether 58:9c:fc:10:1c:87
2 ether 58:9c:fc:10:1f:4b
2 ether 58:9c:fc:10:22:44
2 ether 58:9c:fc:10:2c:a3
2 ether 58:9c:fc:10:35:06
2 ether 58:9c:fc:10:3b:7c
2 ether 58:9c:fc:10:3e:1e
2 ether 58:9c:fc:10:47:5b
2 ether 58:9c:fc:10:53:bd
2 ether 58:9c:fc:10:5e:77
2 ether 58:9c:fc:10:65:85
2 ether 58:9c:fc:10:6f:55
2 ether 58:9c:fc:10:73:11
2 ether 58:9c:fc:10:77:77
2 ether 58:9c:fc:10:a9:2b
2 ether 58:9c:fc:10:ab:4b
2 ether 58:9c:fc:10:b1:57
2 ether 58:9c:fc:10:b4:58
2 ether 58:9c:fc:10:b8:52
2 ether 58:9c:fc:10:f7:64
2 ether 58:9c:fc:10:fa:8c
2 ether 58:9c:fc:10:fa:a7
2 ether 58:9c:fc:10:fa:e9
The problem is that each collision is enough to derail a deployment (service
gets deployed, interface is created, the collision happens interfering with
networking, the service cannot become stable and gets killed, the epair gets
destroyed. As all of it is deterministic, the next deployment will get the same
epair name/number and therefore the same MAC, therefore the deployment never
succeeds).
--
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
[Bug 300751] [epair] Duplicate MAC address on epair creation (ether_gen_addr)
Author: bugzilla-noreply
Date: Fri, 13 Nov 2026 20:35
Date: Fri, 13 Nov 2026 20:35
16 lines
2539 bytes
2539 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300751
Mark Linimon <linimon@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|bugs@FreeBSD.org |net@FreeBSD.org
--
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads