I have a question on MAC Addresses found.
The code and Output is shown in the CapMAC.GIF attached
// "00:21:03:00:00:02" GHI Electronics, LLC
// "00:21:03:00:00:03" GHI Electronics, LLC
// "00:23:A7:1D:86:61" Redpine Signals, Inc
if (useDebug)
{
Debug.Print("GetAllNetworkInterfaces found");
int ctr = 0; //Count each thisnetwork array
NetworkInterface[] thisnetwork = NetworkInterface.GetAllNetworkInterfaces();
foreach (NetworkInterface thisnetworkInterface in thisnetwork)
{
Debug.Print("[" + (ctr++).ToString() + "]" + " TCP/IP address: " + thisnetworkInterface.IPAddress);
byte[] mac = thisnetworkInterface.PhysicalAddress;
string smac = getMACinHEX(mac);
Debug.Print("MAC address: " + smac);
string netType = thisnetworkInterface.NetworkInterfaceType.ToString();
Debug.Print("netType: " + netType + " (Unknown = 1, Ethernet = 6, Wireless80211 = 71)");
}
}
Info:
Using NETMF 4.2
Spider
Ethernet_J11D
Connected to the Ethernet module is a NETGEAR WNCE2001 Bridge (Wireless)
I’m not sure what device every MAC Addresses belong to.
“00:21:03:00:00:02” GHI Electronics, LLC I know is my Spider
“00:21:03:00:00:03” GHI Electronics, LLC Unsure. Is this the Ethernet_J11D?
“00:23:A7:1D:86:61” Redpine Signals, Inc Unsure. Could this be a device inside the WNCE2001 Bridge ?
Or do all three associate with the code for ( NetworkInterface[] thisnetwork = NetworkInterface.GetAllNetworkInterfaces(); )?
Thanks and have a GREAT day!