I have Debian virtual machine within a Hyper-V/MS Server 2008 R2 environment. The virutal Machine has two ethernet controllers. Now I want to assign them each a static IP Address. Basically I know how to configure a static IP within the interfaces config file.
My problem is, that the ports with the static IP Addresses are now assigned to the wrong virtual network controllers. What I want is that port eth0 with IP Address 192.x.x.x/24 is asigned to the network virt0 and port eth1 with IP Address 10.x.x.x/24 is asigned to the network virt1, but the opposite is the case.
I know this is not that big issue and of course I could just switch the networks within Hyper-V or switch the IP Addresses on the ethernet controllers. But it would just be beautiful for my network if it works the way I want. And I think it shouldn't be that hard to say "eth0 is the network card with hw address xx:xx:xx... and eth1 is xx:xx:xx...".