Due to the bug in kernel 6.9 caused by https://github.com/torvalds/linux/commit/8debcf5832c3e8a6baaea27c75ad8a6ba5077beb, the net_id udev builtin does not work for netdevsim interface. So, eni99np1 cannot be used with kernel 6.9 anymore. Workaround for #32910.
12 lines
375 B
SYSTEMD
12 lines
375 B
SYSTEMD
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
[Match]
|
|
Driver=netdevsim
|
|
|
|
[Link]
|
|
NamePolicy=keep kernel database onboard slot path
|
|
AlternativeNamesPolicy=database onboard slot path mac
|
|
# Also set a fixed name. Workaround for bug in kernel 6.9:
|
|
# https://github.com/torvalds/linux/commit/8debcf5832c3e8a6baaea27c75ad8a6ba5077beb
|
|
AlternativeName=sim99
|
|
MACAddressPolicy=persistent
|