Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

Connect VMs in VMWare Workstation & Hypwe-V to Same Network When Both are on Same Windows Host

11/20/2022

0 Comments

 
Connect VMs in VMWare Workstation & Hypwe-V to Same Network When Both are on Same Windows Host
In my lab environment, I am havng a Windows host which enabled Hyper-V, also installed VMWare workstation. It was very confusion when I tried to put both Hyper-V machines and VMWare machines into same network, since the network names are quite different.

In this post, I am going to record all network names in three different places:

  • Windows Host Network Connections
  • VMware workstation Virtual Network Editor environment
  • Hyper-V Virtual Switch Manager 
I am also going to show you a correct way to connect both Hyper-V machines and VMware workstation machines into same network.



Physical Interfaces

In my host machine, there are six Physical NICs:

Here is what we can see from host's Device Manager:



VMWare Workstation's Virtual Network Editor

From VMWare workstation's virtual network editor's configuration, we can choose External - Virtual Switch (vEthernet (External) in Windows's network connections) to take a look:
  • External network - Intel(R) 82579LM Gigabit Network Connection - 192.168.2.245


All those available networks are shows in our host's device manager. But you will find one strange thing, there is no "Intel(R) 82579LM Gigabit Network Connection", which is using 192.168.2.x ip address behind my home Internet router.

The reason is because "Intel(R) 82579LM Gigabit Network Connection" has been taken by Hyper-V switch. If you want to get VMWare workstation bridge to "Intel(R) 82579LM Gigabit Network Connection", you will have to brige to a network created by Hyper-v which is "Hyper-V Virtual Ethernet Adapter". 

Basically, from VMWare workstation, you can't directly bridge to a network device which has been bridged in Hyper-V virtual switch. 

Hyper-V Virtual Switch Manager

Now, lets take a look Hyper-V environment. When you open your Hyper-V's virtual switch manager, you will see some familiar network devices, but ended with different number. 



You will see External virtual network switch has been bridged to "Intel(R) 82579LM Gigabit Network Connection"

Control Panel - Network and Sharing Center




Ethernet = QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #63
Ethernet 2 = QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #62
Ethernet 3 = QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #64
Ethernet 4 = QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #65
Ethernet 5 = Intel(R) 82574L Gigabit Network Connection
Ethernet 6 = Intel(R) 82579LM Gigabit Network Connection - 192.168.2.245

vEthernet (Default Switch) = Hyper-V Virtual Ethernet Adapter #2 - 172.17.128.1
vEthernet (Ethernet 2) = Hyper-V Virtual Ethernet Adapter #4 - 192.168.160.1
vEthernet (Ethernet 3) = Hyper-V Virtual Ethernet Adapter #5 - 172.31.96.1
vEthernet (Ethernet 4) = Hyper-V Virtual Ethernet Adapter #6 - 172.27.80.1
vEthernet (Ethernet 5) = Hyper-V Virtual Ethernet Adapter #7 - 172.22.176.1
vEthernet (Ethernet 6) = Hyper-V Virtual Ethernet Adapter #8 - 172.28.112.1

vEthernet (Ethernet) = Hyper-V Virtual Ethernet Adapter #3 - 172.20.80.1
vEthernet (External) = Hyper-V Virtual Ethernet Adapter ( which was created when you bridge External virtual switch to Intel(R) 82579LM Gigabit Network Connection)
vEthernet (vEthernet (Exte) = Hyper-V Virtual Ethernet Adapter #9 - 172.17.192.1


VMWare Workstation Create A New vNet


VMnet2 - Bridged - QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #64 , which is Ethernet 3.





Hyper-V 

 
To map to same network as we did on VMWare Workstation, we will use QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #3, which is same as VMWare world's "QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #64".


Once you did Hyper-V network new virtual switch configuration to bridge #3 switch, the VMWare VMnet2's bridge configuration will disappear, since that "QLogic BCM5709C Gigabit Ethernet (NDIS VBD Client) #64" has been used by Hyper-V.


But you will find out a new Hyper-V Virtual Ethernet Adapter #10 appears, which is your computer's vEthernet (vEthernet (LAN2). 

Now, the Windows Machines in Hyper-V and VMware workstation can ping each other.


References

  • VMware Workstation 15.5 Now Supports Host Hyper-V Mode



via Blogger http://blog.51sec.org/2022/11/vmware-workstation-hypwe-v-on-same.html
November 20, 2022 at 08:50PM Vmware
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org