To determine the MAC address of a remote device:
Hi Friends...
Some time we face issues like we are not able to connect to remote server, or server is not reachable. In that case we may require its mac address for further trouble shooting..
Every device on a TCP/IP network has a unique number assigned to it called the MAC (Media Access Control) address.
Your computer uses a service called ARP (Address Resolution Protocol) to
resolve and track the TCP/IP and MAC address of the remote devices that
you're communicating with. This information is handy for doing
semi-low level network troubleshooting.
It can also be used for
granting or denying permissions to a network segment or device on that
network.
To determine the MAC address of a remote device:
- Open the MS-DOS prompt (From the Run... command, type "CMD" and press Enter).
- Ping a remote device that you want to find the MAC address (for example: PING 192.168.0.1).
- Type "ARP -A", and press Enter.
C:\WINDOWS>arp -aInterface: 192.168.1.100 --- 0x10004 Internet Address Physical Address Type 192.168.1.1 aa-fb-c8-34-da-7a dynamic
There is one more Command to get the MAC address:-nbtstat -n <remote hostname>
Host not found.
getmac /s remote_computer name or IP /u username /p password
ERROR: The RPC server is unavailable.
example:-
C:\Windows\System32>nbtstat -a 10.50.27.29
Local Area Connection 2:
Node IpAddress: [10.91.4.168] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
WIN-AC69OP04CTJ<00> UNIQUE Registered
WORKGROUP <00> GROUP Registered
WIN-AC69OP04CTJ<20> UNIQUE Registered
MAC Address = A4-1F-72-AA-F2-1B
Using getmac:-
C:\Windows\System32>getmac /s <IP> /u username /p password
Physical Address Transport Name
=================== ==========================================================
A4-1F-72-AA-F2-1C \Device\Tcpip_{C35FF51C-5A5C-4018-A00B-BA0DCF859FE9}
A4-1F-72-AA-F2-1B \Device\Tcpip_{804C7138-F735-450E-9AA7-C46966FE0FD6}
If you do not want to specify the password, you can skip /p parameter.
You will be prompted to enter the password and the command execution
will take place after that.Using getmac we can only get MAC address for windows machines. For linux use arp.
Comments
Post a Comment