Quote:
On PC long time ago i've done this with lines like this in /etc/modules.conf:
alias eth0 <card-module-name>
I guess this still works in /etc/modprobe.d/
This still works.
Pretty much you need to do this on Linux since each time you change module load order (which could be every kernel build for all you'd know, depending on the makefile or a device probe or parallelisation of the boot process), the ethernet devices are picked up in that order. eth0 is the first, eth1 is the second. You have no way of fixing it, unlike something like BSD, where you can guarantee your via will be on re0, rtl will be on rl0, marvell would be.. I dunno. mv0? Either way you can force it with kernel build flags in your config file or let the device order be determined by the HARDWARE order, and not "how my kernel was built".
Personally I alias them to BSD-like names so I don't get confused when I move between BSD and Linux.