question on network device(s) order/enumeration on VMs

ambad4u

Renowned Member
Jan 2, 2016
11
0
66
47
greetings Proxmox Community!

i have an OpenWRT VM, & i thinker w/ it every now & then or experiment w/ another OpenWRT VM
from experience & observation, all the virtual NICs get enumerated first then followed by any remaining Physical Passedthru ones.
so for example, i have 1virtual NIC & 1physical passedthru NIC
-: eth0 (virtual NIC)
-: eth1 (physical passedthru NIC)

the challenge i am going thru right now is when adding or deleting virtual NICs
w/ the example above, if i add another virtual NIC, the physical NIC is shifted below, so the order now is
-: eth0 (virtual NIC)
-: eth1 (virtual NIC)
-: eth2 (physical passedthru NIC)

my OpenWRT now becomes 'non-working' anymore since the original eth1 is now moved to eth2

the question now is:
since i rarely add/remove my passedthru NICs, is it possible to instruct Proxmox to enumerate the physical NICs first?
the end result would be like below:
-: eth0 (physical passedthru NIC)
-: eth1 (virtual NIC)
-: ethN (virtual NIC)
 
I don’t have an answer to your question but an alternate solution might be to just add a bunch of NICs and not use them. Let the pass through be #9.
 
I don’t have an answer to your question but an alternate solution might be to just add a bunch of NICs and not use them. Let the pass through be #9.
hi,

that is also one option of which i did not emphasize but of which indeed works.
but on my main OpenWRT VM, i can't litter it with too many 'standby' interfaces & the network is already configured. adding 'a bunch' of interfaces will shift again the ethernet numbers of which i am trying to avoid.

thank you for your inputs!