I have installed VyOS on KVM with 3 virtual ethernet interfaces.
When VyOS boot gives in a random order the ethernet names (like ETHx) to the interfaces, so the configuration appears broken every time…
Is it possibile to force VyOS to assign a fixed ethernet name to an interface based on its MAC address?
It’s possibile to rename interfaces via udev through the /config/script/vyatta-postconfig-bootup.script but it’s an horrible workaround because it acts after the loading of the configuration and it could brake something…
set interfaces eth0 hw-id 00:0c:29:da:a4:fe
does KVM assign static MAC addresses?
Yes it assigns a static MAC address. I tought that this command would have changed the MAC address of the interface instead it binds an interface name to a MAC. The description of the command is not so clear