Skip to content

document how to reload network interface naming when systemd-networkd is no used #26601

@calestyo

Description

@calestyo

Component

other

Is your feature request related to a problem? Please describe

I'm not using systemd-networkd but have a /etc/systemd/network/10-eth0.link like:

[Match]
MACAddress=FA:16:3E:77:9E:83

[Link]
Name=eth0

in order to get the interface named the way I like it.

When setting an image up the first time, the MAC isn't set (correctly) so I get the default iface naming schema.

Even after quite intensive searching I found no way (that really always works) that allows to rename the interfaces according to these config files, while the system is running.

Some resources on the web said that:

udevadm trigger --verbose --subsystem-match=net --action=add

would do this, but that doesn't always seem to work.

So right now I simply always reboot.

networkctl(1) mentions the reconfigure action, but that anyway works only when systemd-networkd is used.

Could you please document (I guess in systemd.network(5)) how this can be done?

Tanks,
Chris.

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

The systemd version you checked that didn't have the feature you are asking for

252.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions