This material is proposed for merging ...
This article shows how to rename/change name of a network interface.
Alpine Linux uses /dev. mdev reads /etc/mdev.conf and according to mdev documentation one can define a command to be executed per device definition. The command which is going to be used to change network interface name is nameif.mdev by default to manage devices in
Here we tell mdev to call nameif for devices found in /sys/class/net/.
nameif itself reads /etc/mactab by default. Example line for a network interface with following hwaddr
/etc/mdev.conf is part of ramdisk
thus we need to rebuild ramdisk
To use renamed network interface without reboot, just call nameif while the network interface is down.
And finally reboot...