Change Order of Interfaces on VM
-
what does it matter what order they are seen in pfsense? Are you saying they change on reboot?
I just make sure I know what the macs are in esxi, and then assign them in pfsense on what they are connected to in esxi.
-
I started with 3 and then 4 NICs and they are in the correct order, but when I add a 5th it changes the order of them to something like 1-5-4-2-3 and it re-orders them again when I add a 6th. Changing the port-groups does fix it, but will I need to change it all again if I ever need a 7th? Plus I have VLAN interfaces that all need to be changed to bind to a different interface, so it becomes a slightly confusing and very time consuming process. I'd rather just change how the OS sees them so I can keep the same config.
I haven't done enough testing to see if it's a random order, but if it is that would also create a problem since I'm trying to setup a second firewall and sync the two.
-
Also, the order is persistent through reboot, but does change if I add another NIC.
-
It is a pain. Especially when management nic is not on vmnic0. I just note the mac address of my nics and the vSwitch that they are assigned to before shutdown and configure network as needed.
Article on how nic order is determined
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2091560 -
Isn't that article how your physical nics are seen by esxi, not how virtual nics would be seen to pfsense.
so your adding new physical nics to your esxi host?
I can add some more virtual nics to my pfsense setup and see if I can duplicate what your seeing.. But I don't recall pfsense seeing anything change when I have added them in the past.. I cam currently using e1000 vs vmx3 because the vmx3 don't report speed correctly nor does the duplex report correctly when using cdp or lldp via the lavdp package. So was seeing logs on my switch about duplex mismatch. Went back to the e1000 and speed and duplex is reported correctly.
But I am using esxi 6, so not going to be a apples to apples test.
-
Yes. Adding physical has impact. Same on esxi 6. VMs settings remain but the adapter of the network connection may be impacted by the re-order.
-
I'm just adding virtual network cards to the VM; the hosts are blades so their hardware is reasonably fixed.
-
Well when I get home I will add a bunch of e1000 and vmx3 and see what what happens with the interfaces in pfsense.. Currently mine are numbered 5 through 8 because 1 to 4 where removed, they where the vmx3 interfaces.
I would do it remotely but dont want to maybe take my network down - I use the access remotely ;)
-
I'm having this exact same issue. If more then 3 VMX3 interfaces are added in pfsense the WAN and/or other interfaces will not respond to traffic. As soon as the interfaces are removed or you switch to E1000 interfaces the issue does not persist.
There appears to be an open bug in FreeBSD for this issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198406
I hope this helps anyone else that comes searching for information on this problem.
Thanks!
-
Still seems to be a problem. Just tried to virtualize a machine and it seems like all the VMX interfaces (8 of them) are randomized…
Will try e1000 instead now.
-
still a problem with ESXi 6.5 & pfSense 4.4 it is really annoying for a setup like we have:
Server with 6 ports that are teamed, each virtual interface belongs to a portgroup with a different vlan to route internally, adding another portgroup/interface messes up the order, doesn't matter if intel or VM interface is added. -
Hi, same problem today NOT WITH VMWARE, but using KVM and virtio... guess the problem is bigger than expected and impacting way more systems