Differentiate VMware network adapter from physical network adapters -or- Detect Virtual Network Adaptor

后端 未结 3 854
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 15:28

I have to differentiate between the real addresses and the VM addresses using any Windows API. I\'m using GetAdaptersAddresses API to populate a list of IP addr

3条回答
  •  无人及你
    2020-12-24 15:54

    The beginning (first 3 segments) of the mac address shows if a interface is virtual:

    "00:05:69"; //vmware1
    "00:0C:29"; //vmware2
    "00:50:56"; //vmware3
    "00:1C:42"; //parallels1
    "00:03:FF"; //microsoft virtual pc
    "00:0F:4B"; //virtual iron 4
    "00:16:3E"; //red hat xen , oracle vm , xen source, novell xen
    "08:00:27"; //virtualbox
    

    EDIT
    To be more clear, if a interface has a MAC address that starts with any of the above given strings, then it's virtual.

提交回复
热议问题