Page 1 of 1

Windows 10 Hyper-V default switch (two network cards)

PostPosted: Sat Mar 02, 2019 3:51 pm
by haji
Hi,

Since I upgrade my windows 10 to version 1809 I have a default switch (Hyper-V installed) which is can not be delete. So I have two Hyper-V virtual ethernet adapter and many times there is no bound ip address (adapter) when computer start so Serviio doesn't work (inaccessible from the network). I have to choose the proper network card via console save the settings and stop then start the server for the good working environment.

May I ask is there any permanent solution to bound the right IP address / network card ? Or is there any command line feature to script these command when the computer starts? Automatically detect settings doesn't work for me...

Thank you in advance

B.

Re: Windows 10 Hyper-V default switch (two network cards)

PostPosted: Sat Mar 02, 2019 6:43 pm
by atc98092
Do your cards always have the same IP address? If so, you should be able to set the Serviio network to always use the card. If they always have a different IP address, I'd assign a static IP and try that.

Re: Windows 10 Hyper-V default switch (two network cards)

PostPosted: Sat Mar 02, 2019 7:12 pm
by haji
first of all thank you for your answer

So, I have used fix IP address both of card (I thought) but based on your advice I have checked again and recognize that IPv6 use dhcp option so I have disable IPv6 on my network card which I want to use for Serviio.

Since then I have restarted my computer twice and it seems Serviio remember the network card settings

I hope it will be permanent

Thank you for ypur help

Re: Windows 10 Hyper-V default switch (two network cards)

PostPosted: Mon Mar 04, 2019 9:09 am
by haji
Hi,

Finally I have found the solution. OS (windows 10 version 1809) on every start regenerated the Hyper-V default switch and changed the IP address also from a wide range pool, so I made a simple trick: I have created and scheduled a script (.cmd) at computer startup
-
PING localhost -n 10 >NUL
netsh interface ipv4 set address name="vEthernet (Default Switch)" static 172.17.135.54 255.255.255.0
-
and set Serviio service to automatic (delayed start). Therefore it always use the same ip address and Servioo keep the bound configuration properly.