Getmac.exe: GetMAC


GetMAC provides a quick method for obtaining the MAC (Ethernet) layer address and binding order for a computer running Windows 2000, locally or across a network. This can be useful when you want to enter the address into a sniffer, or if you need to know what protocols are currently in use on a computer.

File Required

Getmac.exe Topics


top

Getmac.exe Syntax


getmac [\\computername] [computername.domain.com]

Where:

\\computername
is the NetBIOS name of a computer accessible across a network (including by using RAS).
computername.domain.com
is the DNS name of a computer accessible across a network (including by using RAS).

top

Getmac.exe Examples


When you type:

C:\>getmac \\host

you get the following information returned:

Information for machine \\host Transport Address Transport Name ----------------- -------------- 00-00-1B-16-78-76 \Device\NetBT_NE32007 00-00-1B-16-78-76 \Device\NwlnkNb 00-00-00-00-00-00 \Device\NetBT_NdisWan5 52-41-53-48-00-01 \Device\Nbf_NdisWan4 52-41-53-48-00-04 \Device\Nbf_NdisWan8 00-00-1B-16-78-76 \Device\Nbf_NE32007

In this example 00-00-1b-16-78-76 is the address of an NE3200 Ethernet card, and 00-00-00-00-00-00, 52-41-53-48-00-01, and 52-41-53-48-00-04 are RAS addresses.

When attempting a connection to a remote computer over the network, the workstation service will use the following order:

NetBT (TCP/IP) over the NE3200

NwlinkNb (IPX) over the NE3200

NetBT over one of the RAS links

Nbf (NetBIOS) over two other remote access server links

Nbf over the NE3200

To change the order in which Windows 2000 attempts connections for the workstation service

  1. In Control Panel, double-click Network.
  2. Click Bindings.
  3. In "Show Bindings For," select "Workstation."
  4. Adjust the binding order by using the arrows on the right.