Interfaces randmoly change upon reboot

Started by maverick1803, June 06, 2020, 10:36:34 AM

Previous topic - Next topic
Hi,

I've got OPNsense-20.1 running on as VM inside a KVM, I've got around 10 interfaces (vNICs) attached to this VM (or at least that's the end state that I wish to have). I start my setup by adding 3 x vNICs (interfaces) to the VM but the moment I start adding a fourth, fifth, etc. Interfaces (vNICs) to the VM and gracefully reboot it, I get some random behavior for the interfaces that are already assigned to vNICs.

for example, I have WAN interface assigned to device vtnet0, what I sometimes find after adding a new vNIC and doing a reboot is that the WAN interface is still assigned to vtnet0 but the mac address of vtnet0 has changed and that the previous mac address it had now belongs to for example device vtnet5. since opnsense uses the device name and not mac address this messes up my whole setup.

I don't know where to begin troubleshooting this as it's strange and I've never seen it happen before. are there any log files that can help my trace this issue to its source?

thanks.

I have only ever experienced OPNsense loosing the interface assignment after I had changed the interface type of the vm i.e. from virtio to e1000.

I've never experienced such behavior when I only added an interface to a kvm based vm.

make sure you have the check
Interfaces-->Lan----->Prevent interface removal.