VMware Communities
sudheer1250
Contributor
Contributor

Finding Wheather Adapter is VmWare Virtual network Adapter or real Adapter

Could Any one Please Help me to find Whether An Adapter is real or Virtual.

programatically i have to filter the Virtual adapters from all Adapters list.

is there any way to differentiate both adapters.

Thanks in Adavance.

0 Kudos
3 Replies
magic-man
Hot Shot
Hot Shot

Could Any one Please Help me to find Whether An

Adapter is real or Virtual.

programatically i have to filter the Virtual adapters

from all Adapters list.

is there any way to differentiate both adapters.

Thanks in Adavance.

In the host???

On my installs, ALL VMware adapters have the string "VMWARE" in the adapter name. Using code, you look at each connection and decide what one you want to manipulate... It is just like looking for a specific printer name in XP...

What host OS???

What programming language?

In c#:

Use the classes in the System.Management namespace to access the WMI providers for the network adapter. Basically, you want to do a query for the Win32_NetworkAdapter instance which corresponds to the adapter. Then, you can get the NetConnectionID property which will give you the display name for that adapter.

VB: You can get the info from the system WMI.... Below is the URL to sample code in VB to get what you want:

http://vbnet.mvps.org/code/wmi/win32_networkadapter.htm

Bill

0 Kudos
ritterwolf
Enthusiast
Enthusiast

Under linux they are named by type, and then a number, where 0 (zero) is the first.

eth is ethernet (physical)

vmnet belongs to the VMware adapters

0 Kudos
saxa
Expert
Expert

Query the adapter's MAC address. It can also be done remotely.

The VMware virtual adapters have always the mac addresses from the following 2 ranges:

00:0c:29:XX:XX:XX

00:50:56:XX:XX:XX

Hope that helps Smiley Happy

0 Kudos