Re: How do I distinguish NIC MAC addresses from software MAC addresses

From: Arkady Frenkel (arkadyf_at_hotmailxdotxcom)
Date: 01/17/04


Date: Sat, 17 Jan 2004 13:47:51 +0200

You can distinguish the type of adapter by variable - type in
IP_ADAPTER_INFO returned by GetAdaptersInfo.
Additionally you can use SendARP to receive MAC
Arkady

"Marcus" <a@b.com> wrote in message
news:#slo#xF3DHA.2528@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> Is there a way to retrieve MAC addresses for all network interface cards
in
> Windows *without* also retrieving the MAC addresses of software adapters?
>
>
> So far I have tried:
>
> An SNMP method described here:
> http://tangentsoft.net/wskfaq/examples/getmac-snmp.html
>
> And the NetBIOS & GetAdaptersInfo methods described here:
> http://www.codeguru.com/network/GetMAC.html
>
>
> But on Windows XP machines with a "MAC bridge miniport" set up I can not
> identify the NIC MAC addresses. Even the command line tools "ipconfig"
and
> "net config workstation" return the MAC address created by the software
> bridge.
>
>
> Using WMI I can list the MAC addresses of all adapters on the system by
> running the query:
>
> "SELECT MACAddress FROM Win32_NetworkAdapter"
>
> but this also returns the addresses of software adapters & I can not find
a
> way to distinguish the NIC addresses.
>
> Many thanks,
> Marcus Ellington
>
>



Relevant Pages

  • Re: RE-Started: Network Adpaters - PC-Card and USB.
    ... Another solution is changing MAC address under ... There are not so many adapters that allow you to change MAC address in ... although MAC-based identification is not ... adapters on the machine for this purpose. ...
    (microsoft.public.development.device.drivers)
  • Re: How do I translate Computer Name to MAC Address?
    ... Have you considered the possibility that some computers don't have network ... multiple adapters? ... > to lock a license to the computer it is issued to. ... > MAC Address of the machine's network card as a unique computer ID. ...
    (microsoft.public.vb.winapi)
  • Re: How do I translate Computer Name to MAC Address?
    ... Have you considered the possibility that some computers don't have network ... multiple adapters? ... > to lock a license to the computer it is issued to. ... > MAC Address of the machine's network card as a unique computer ID. ...
    (microsoft.public.win32.programmer.networks)
  • Re: PCI Network Adpaters & PnpInstanceID
    ... You can take advantage on the fact that permanent MAC addresses of any ... to use permanent MAC addresses of all adapters (both physical and ... dynamically every single time they are queried. ...
    (microsoft.public.development.device.drivers)
  • Re: DECnet IV routing errors
    ... Phase IV sets all adapters known to the NCP database to use the same MAC ... address derived from the DECnet address (area*1024 + number, ... colin DOT butcher AT xdelta DOT co DOT uk ...
    (comp.os.vms)

Quantcast