by

What Is A Mac Address Used For

Each network-compatible device has at least one unique hardware ID – the media access control address (in short: MAC address). What this is all about and how you can find or rewrite the MAC address is explained below.

  1. What is a MAC address?
  2. Finding out your MAC address: a how-to guide
  3. Assigning the MAC address using software

What is a MAC address?

Each device that is integrated into a computer network requires a network adaptor. This adapter receives a worldwide unique identification number from the manufacturer: the MAC address. This enables devices like desktop computers, tablets, or mobile phones to be identified in the network and addressed as required. If a device has several network adapters (for example, for several LAN connections or different communication standards like Ethernet, WiFi, FDDI, Bluetooth, or Token Ring), a different address is available for each standard.

The MAC address (short for media access control address) is the worldwide unique hardware address of a single network adapter. The physical address is used to identify a device in computer networks.

Since MAC addresses are assigned directly by the hardware manufacturer, they are also referred to as hardware addresses. With Microsoft Windows, the MAC address is referred to as the physical address. Apple uses the terms Ethernet ID, Airport ID, or WiFi address, depending on the communication standard. The term device address, on the other hand, is fuzzy, since a device can have several network adapters and therefore different MAC addresses.

  • MAC Address The Media Access Control (MAC) Address is used to identify Ethernet network cards or simply PCs that have built-in Ethernet. In other words, every computer that uses Ethernet will have a MAC address; however, it is important to remember that some Internet connections do not use Ethernet.
  • MAC address (Media Access Control address): In a local area network (LAN) or other network, the MAC (Media Access Control) address is your computer's unique hardware number. (On an Ethernet LAN, it's the same as your Ethernet address.) When you're connected to the Internet from your computer (or host as the Internet protocol thinks of it), a.
  • A MAC (Media Access Control) address, sometimes referred to as a hardware address or physical address, is an ID code that's assigned to a network adapter or any device with built-in networking capability, such as a printer. While an IP address can potentially be assigned to any device, a MAC address is 'burned into' a given device from the factory.
  • Jul 18, 2019  The Media Access Control (MAC) address is a binary number used to uniquely identify computer network adapters. These numbers (sometimes called hardware addresses or physical addresses ) are embedded into the network hardware during the manufacturing process, or stored in firmware, and designed to not be modified.
  • What are MAC addresses used for? MAC addresses are the low level basics that make your ethernet based network work. Network cards each have a unique MAC address. Packets that are sent on the ethernet are always coming from a MAC address and sent to a MAC address.
  • It,s a 48-bit address. Starting 24-bit is assigned by IEEE and last 24-bit is assigned by Manufacturers. View Your Mac address in Windows:- Start Run cmd getmac. View Mac address of all connected device in your network:- use Wnetwatcher Tool. Today i am going to Show you How to track any MAC-address Geographical Location using.

MAC stands for Media Access Control, and, long story short, the MAC address is a code used to identify a particular computer or device on various types of networks, such as Wi-Fi, ethernet, Bluetooth and many more.

The MAC address in practice

Conflicting MAC addresses are a basic requirement for error-free network communication.

Data transmission in computer networks is a complex communication process in which different requirements including reliability, security, and efficiency must be met. This can be illustrated using the OSI models (abbreviation for open systems interconnection) – a reference model developed by the ISO (International Organization for Standardization) that maps network communication to 7 layers. During data transmission, each layer of the OSI model is run through on both the sender and receiver sides.

MAC addresses are used on the backup layer (layer 2) of the OSI model – actually, the media access controlsublayer introduced by the Institute of Electrical and Electronics Engineers (IEEE).

In the extension of the OSI model designed by the IEEE, the backup layer (layer 2) is divided into the sublayers media access control (2a) and logical link control (2b).

The backup layer is located between the bit transfer layer (layer 1) and the switching layer (layer 3). While the bit transmission layer provides protocols and tools responsible for maintaining the physical connection, protocols on the backup layer control how different systems share the available transmission medium. Secure system connections are abstracted from the physical connection. The actual transmission of data packets takes place at the switching level via IP.

For example, if you want to send an IP packet over Ethernet, your computer transmits a data frame that is addressed to the target computer’s MAC address on the backup layer, according to the OSI model.

If the target computer is not in the local network, a router is addressed and instructed to forward it to the internet. Routers integrated into a social network also have a unique MAC address.

An Ethernet data frame contains information that is read out at different levels of the OSI model.

Data frames in IPv4 networks contain the following components:

  • Destination address (destination computer MAC address)
  • Source address (sender’s MAC address)
  • Control information for data flow control
  • User data (the data packet that needs to be transmitted later on the switching layer)
  • Checksums that ensure data integrity

A target computer that receives a data frame first reads it on the backup layer and compares the target address of the frame with its own MAC address. If the addresses match, the target computer starts interpreting the frame at the next higher level.

Network devices that are only used to forward data packets (repeaters) or manage parts of the network (bridges and switches) usually do not actively participate in network communication and so do not require their own MAC addresses.

To link the address assignment on the backup layer with the address assignment on the switching layer, the address resolution protocol (ARP) is used in IPv4 networks. Each computer in the local network maintains an ARP table whereby IP addresses are assigned to MAC addresses.

ARP is vulnerable to an attack pattern called ARP spoofing. The danger of ARP spoofing and the countermeasures you can take are discussed in the article above.

The new internet protocol standard IPv6 uses the neighbor discovery protocol (NDP).

MAC address syntax

MAC addresses in LAN or WLAN networks consist of 6 bytes (48 bits) and are written in hexadecimal notation. The use of separators such as hyphens or colons between two bytes increases readability.

The following example shows the MAC address of a desktop computer in binary and hexadecimal format:

In our example, we use canonical representation of the bit sequence. This corresponds to the order in which MAC addresses are transmitted in Ethernet. Other communication standards like Token Ring provide for bit-reversed transmission, starting with the most significant bit.

The bit sequence of each MAC address is divided into 4 areas, each of which encodes different information.

  • Bit 1 (receiver): The first bit of the MAC address specifies whether it is an individual or group address. This bit is called I/G (short for individual/group). If I/G = 0, it is a unicast address for a single network adapter. Multicast addresses are identified by I/G = 1 and are addressed to several receivers.
  • Bit 2 (registry): The second bit of the MAC address indicates whether it is an address with global validity (universal) or whether the address has been assigned locally (local). The bit is called U/L. If U/L = 0, the address is valid worldwide as a universally administered address (UAA). Addresses that are only locally unique are called locally administered address (LAA) and are marked with U/L = 1.
  • Bit 3–24 (manufacturer identification): Bits 3 to 24 encode an identifier (organizationally unique identifier, OUI), which is assigned exclusively to hardware manufacturers by IEEE. The assignment of OUIs is usually public and can be determined via databases. A corresponding service is available, for example, on aruljohn.com.
  • Bit 25-48 (network adapter identifier): Bits 25 to 48 provide device manufacturers with 24 bits for assigning a unique hardware identifier (organizationally unique address, OUA). This means that 224 (= 16.777.216) unique OUAs can be assigned per OUI.

Table: Subareas of an MAC address

Label

I/G

U/L

OUI

OUA

Bit

1.

2.

3.–24.

25.–48.

Function

Recipient group

Awarding office

Manufacturer code

Network adapter identification

Finding out your MAC address: a how-to guide

MAC addresses can be queried through the terminal in all modern operating systems with little effort – both on the local system and remotely in the network. The following table shows the corresponding command line commands for the most common operating systems.

Table: MAC address read out

Operating system Terminal command Remote
FreeBSD ifconfig arp -a
NetBSD ifconfig -a arp -a
OpenBSD ifconfig -a arp -a
Linux ip link ip neigh
Mac OS X / macOS ifconfig arp -a
Solaris ifconfig -a arp -a
Windows XP Professional getmac /v arp -a
Windows (ab 2000) ipconfig /all arp -a

On mobile devices, you can display the MAC address in the settings.

Table: Get MAC addresses on mobile devices

Operating system Local
Android Settings > Phone Information > Hardware Information
Apple iOS Settings > General > Info > WiFi address
Windows Phone 7 Settings > Info > More Information

Read MAC address locally

If you want to read out the MAC addresses of the LAN and WiFi adapters on your Windows computer, proceed as follows if using Windows 10.

Step 1: Open the terminal of your operating system. For example, use the keyboard shortcuts [Windows button]+[R]. Then enter “cmd” in the window “Run” and confirm with “OK.”

Step 2: From Windows 2000 onwards you can use the command line utility ipconfig with the “/all” option to get the MAC address of all network adapters on your Windows computer. Dragon for mac.

Alternatively get the MAC address with the command “getmac /v”

Step 3: With Windows, the MAC address is displayed under “physical address.”

Accessing your MAC address remotely

Thanks to ARP, in IPv4 networks it is possible to determine other devices’ MAC addresses in the same local network. With Windows and most unixoid operating systems, use the command line “arp” with the option to display you system’s ARP table in the terminal.

You will receive a terminal output according to the following scheme:

If you just want to read the MAC address of a specific network adapter remotely, use the command “arp –a” in a combination with the target adapter’s local IPv4 address.

Assigning the MAC address using software

MAC addresses are invariably assigned by device manufacturers and are “burned” into the network adapter chip on the hardware side. However, numerous operating systems offer the option to overwrite hardware addresses on the software side. This is referred to as spoofing. In this case, a system does not send the addressed adapter’s real network hardware address in network communication, but instead a user-defined MAC address.

Assigning an MAC address in Windows

With Windows, you can overwrite the MAC address through the device manager if the network adapter’s device driver supports this function.

Step 1: Open the network adapter settings. To do this, follow the click path: Start à Settings à Network and Internet à Ethernet à Change Adapter Options

Step 2: Right-click on the desired network adapter and select “Disable” in the context menu.

Step 3: Right-click on the desired network adapter and select “Properties” from the context menu. A pop-up window opens called “Network adapter properties.”

Step 4: Click on the “Configure” button in the pop-up window and select the “Locally Administered Address” property under “Advanced.” Enter your chosen software MAC address under “Value.”

Assign MAC address in unixoid operating systems

Unix derivatives such as Linux, macOS, Solaris, and the BSD operating systems support the assignment of MAC addresses through the terminal on the software side.

Table: Overwriting a MAC address

Operating system

Terminal command

Linux

ip link set dev <Interface> addr XX:XX:XX:XX:XX:XX

or

ifconfig <Interface> promisc

and finally

ifconfig <Interface> hw ether XX:XX:XX:XX:XX:XX

Mac OS X / macOS

ifconfig <Interface> ether XX:XX:XX:XX:XX:XX

Solaris

ifconfig <Interface> ether XX:XX:XX:XX:XX:XX

FreeBSD

ifconfig <Interface> link XX:XX:XX:XX:XX:XX

NetBSD

ifconfig <Interface> link XX:XX:XX:XX:XX:XX activate

OpenBSD

ifconfig <Interface> lladdr XX:XX:XX:XX:XX:XX

We illustrate the procedure using the most commonly used Unix derivative: Linux. If you want to change your network adapter’s MAC address, proceed as follows.

Step 1: Open the operating system terminal – for example, with the key combination [CTRL]+[ALT]+[T].

Step 2: Determine the name and current MAC address of the desired network adapter. To do this, enter the following command in the command line:

Note the hardware address assigned by the manufacturer in case you want to undo the change.

Step 3: Turn off the network adapter by entering the following command in the command line:

Enter the name of the network adapter determined through “ip link” for <Interface>.

Step 4: Overwrite the network address assigned by the manufacturer with one of the options specified in the table.

Enter the chosen MAC address instead of XX:XX:XX:XX:XX:XX

Step 5: Restart the network adapter. Use the following command line command:

To ensure that the selected network adapter is accessible at the MAC address you selected, re-read the network information with “ip link” (see step 1).

Related articles

A broadcast address is a network address at which all devices connected to a multiple-access communications network are enabled to receive datagrams. A message sent to a broadcast address may be received by all network-attached hosts.

In contrast, a multicast address is used to address a specific group of devices and a unicast address is used to address a single device.

For network layer communications, a broadcast address may be an IP address. In Ethernet networks, it can be a MAC address.

IP networking[edit]

In Internet Protocol version 4 (IPv4) networks, broadcast addresses are special values in the host-identification part of an IP address.[1] The all-ones value was established as the standard broadcast address for networks that support broadcast.[1] This method of using the all-ones address was first proposed by R. Gurwitz and R. Hinden in 1982.[2] The later introduction of subnets and Classless Inter-Domain Routing changed this slightly, so that the all-ones host address of each subnet is that subnet's broadcast address.[3][4]

As shown in the example in the table below, the broadcast address for an IPv4 host can be obtained by taking the bit complement (bitwise NOT) of the subnet mask and then performing a bitwise OR operation with the host's IP address. In short, take the host's IP address and set to '1' any bit positions which hold a '0' in the subnet mask. For example, for broadcasting a packet to an entire IPv4 subnet using the private IP address space 172.16.0.0/12, which has the subnet mask 255.240.0.0 (again, refer to the table below to see how this is obtained), the broadcast address is 172.16.0.0 bitwise ORed with 0.15.255.255 = 172.31.255.255.

Network IP address breakdown for 172.16.0.0/12Binary formDot-decimal notation
In bold below is shown the host part (suffix) of the IP address, with the network address prefix being the non-bold bits to its left. To obtain the broadcast address, the host bits get set to all 1's, while the network address prefix bits remain intact.
1. Network IP Address10101100.00010000.00000000.00000000172.16.0.0
2. Subnet Mask, or just 'Netmask' for short (The '/12' in the IP address in this case means only the left-most 12 bits are 1s, as shown here. This reserves the left 12 bits for the network address (prefix) and the right 32 - 12 = 20 bits for the host address (suffix).)11111111.11110000.00000000.00000000255.240.0.0
3. Bit Complement (Bitwise NOT) of the Subnet Mask00000000.00001111.11111111.111111110.15.255.255
4. Broadcast address (Bitwise OR of 1. Network IP Address and 3. Bit Complement of the Subnet Mask. This makes the broadcast address the largest possible IP address (and host address, since the host address portion is all 1s) for any given network address.)10101100.00011111.11111111.11111111172.31.255.255

A special definition exists for the IP address 255.255.255.255. It is the broadcast address of the zero network or 0.0.0.0, which in Internet Protocol standards stands for this network, i.e. the local network. Transmission to this address is limited by definition, in that it is never forwarded by the routers connecting the local network to other networks.

What Is A Mac Address Used To Communicate With

IP broadcasts are used by BOOTP and DHCP clients to find and send requests to their respective servers.

Internet Protocol version 6 (IPv6) does not implement this method of broadcast, and therefore does not define broadcast addresses. Instead, IPv6 uses multicast addressing to the all-hosts multicast group. No IPv6 protocols are defined to use the all-hosts address, though; instead, they send and receive on particular link-local multicast addresses. This results in higher efficiency, because network hosts can filter traffic based on multicast address and do not need to process all broadcasts or all-hosts multicasts.

Ethernet[edit]

Broadcast is possible also on the underlying data link layer in Ethernet networks. Frames are addressed to reach every computer on a given LAN segment if they are addressed to MAC addressFF:FF:FF:FF:FF:FF. Ethernet frames that contain IP broadcast packages are usually sent to this address.

Ethernet broadcasts are used by Address Resolution Protocol and Neighbor Discovery Protocol to translate IP addresses to MAC addresses.

IPX networking[edit]

Internetwork Packet Exchange (IPX) allows broadcast. A packet with network number of FFFFFFFF is sent to all networks available. When the node number is specified as FFFFFFFFFFFF, the packet is intended to be received by all hosts in the network.

AppleTalk[edit]

The AppleTalk protocol allows broadcast. When the node ID is specified as 255, a packet is sent to all networks available.

See also[edit]

  • UDP Helper Address — a tool for routing DHCP and BOOTP broadcast requests across subnet boundaries

References[edit]

Mac Address Explained

  1. ^ abJ. Mogul (October 1984). BROADCASTING INTERNET DATAGRAMS. doi:10.17487/RFC0919. RFC 919.
  2. ^IEN 212, IP - Local Area Network Addressing Issues, Robert Gurwitz, Robert Hinden, Bolt Beranek and Newman (BBN) (September 1982)
  3. ^J. Mogul (October 1984). BROADCASTING INTERNET DATAGRAMS IN THE PRESENCE OF SUBNETS. doi:10.17487/RFC0922. RFC 922.
  4. ^RFC922, Broadcasting Internet Datagrams In the Presence of Subnets, J. Mogul (October 1984)

What Is Mac Address Filtering Used For

Retrieved from 'https://en.wikipedia.org/w/index.php?title=Broadcast_address&oldid=920532362'