Mac Commands For Ipconfig



MAC address (Media Access Control address) is a quasi-unique identifier consists of a six byte number that attached to most network adapter card or network interface card (NIC). As such, all network cards, whether it’s of Ethernet NIC, Gigabit Ethernet NIC or wireless 802.11a/b/g/n WiFi or HiperLAN adapter, should have different MAC addresses, which also known as Ethernet Hardware Address (EHA) or adapter address.
Sometimes it is needed to know MAC address of the devices like computers, routers, switch or some others. This article describes how to use MAC address ipconfig command.

Apple Ipconfig

  • Click on the Start Menu.
  • Click on 'Run..'
  • Type 'cmd' without quotes and press Enter.
  • At the command prompt, type 'ipconfig /all' without quotes. (space between g and /)
  • Alternatively, if using Windows XP, you can use the command 'getmac'.
  • Your MAC Address is listed under 'Physical Address' as a series of 6 groups of two digits, letters and numbers, separated by dashes, such as in the image below. Make sure you get the physical address of the correct network adapter - usually there are several listed.
  1. This can be used to get mac address for remote computers also. Below are few examples on how to use this command. It works on XP, Vista, Windows 7, Server 2003 and Server 2008 operating systems. Get mac addresses from CMD. Just run the command getmac to get the mac.
  2. At the command prompt, type 'ipconfig /all' without quotes. (space between g and /) Alternatively, if using Windows XP, you can use the command 'getmac'. Your MAC Address is listed under 'Physical Address' as a series of 6 groups of two digits, letters and numbers, separated by dashes, such as in the image below.
  3. This short guide will show you how to use the IPCONFIG utility that is commonly used by Microsoft Windows engineers on a Apple Mac OS X Operating System.


Figure - MAC Address ipconfig command

If you are using Mac OS X, the command ipconfig grep inet displays detailed information about your computer signification in the network. The IP address is usually displayed beside last inet, however, this command does not work on macOS High Sierra. Back to Table of Contents Find your external IP address. After writing up the presentation for MacSysAdmin in Sweden, I decided to go ahead and throw these into a quick cheat sheet for anyone who’d like to have them all in one place. Good luck out there, and stay salty. Get an ip address for en0: ipconfig getifaddr en0 Same thing, but setting and echoing Continue reading Mac Network Commands Cheat Sheet.


Figure - MAC Address ipconfig command result

Ipconfig

We can find mac address (physical address) of a computer using the command ‘getmac‘. This can be used to get mac address for remote computers also. Below are few examples on how to use this command. It works on XP, Vista, Windows 7, Server 2003 and Server 2008 operating systems.

Get mac addresses from CMD

Just run the command getmac to get the mac addresses. Find an example below.

This command does not show mac addresses for the network connections which are disabled. You can run ncpa.cpl and check which NICs are disabled. Further, I have received comments that this command does not help identify the mac address for a specific device. For example, if I need to get the mac address for my WiFi card, output of getmac command is not helpful. We can use ipconfig command to deal with this.

Get mac address of a remote computer

We can retrieve the mac addressses for a remote computer using nbtstat command.
Example:

Alternatively, We can run the below command to retrieve the mac addresses of a remote computer.

remote_computer : Full name of the remote computer or IP address
username and password are of the account on the remote computer.

Example:

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.

Errors:

Mac Commands For Ipconfig

Using getmac command we can retrieve the mac addresses of the machines running windows OS only. If you try this for a Linux machine you would get the error “The RPC server is unavailable.”

If you provide incorrect password, the command would fail with the error message “Logon failure: unknown user name or bad password.

Mac Command For Ipconfig

Ipconfig

Ipconfig Commands For Mac

Also Read:
Windows CMD commands reference