Questions tagged [mac-address]

The MAC address is the network address of an interface at data link layer in IEEE 802 networks such as ethernet.

The ]media access control (MAC) address](http://en.wikipedia.org/wiki/MAC_address) is the network address of an interface at link layer in IEEE 802 networks such as . It is supposed to be globally unique, that is to say, there are no two network interfaces with the same MAC address. It is denoted by six octets written in hexadecimal and delimited by colons, like 00:33:66:99:CC:FF; sometimes hyphens are used as delimiters, like 00-33-66-99-CC-FF. The left three octets form the Organizationally Unique Idenitifier (OUI), which identifies the organization that issued the MAC address.

Link-layer address such as MAC addresses are also known as physical addresses or hardware addresses. On a link MAC addresses must be unique. For transmission on a link the link-layer address (e.g. the MAC address) matters. Therefore, logical addresses of the network layer like IP addresses must be translated to link-layer addresses. (If the target node is on-link, then the node transmits directly to the target, if the target node is off-link, then the node transmits via an on-link router.) For the translation from IPv4 to MAC the Address Resolution Protocol (ARP) is used, for the translation from to MAC the Neighbor Discovery Protocol is used, which is part of ICMPv6.

156 questions
55
votes
5 answers

Resolving MAC Address from IP Address in Linux

I need to write a bash script wherein I have to create a file which holds the details of IP Addresses of the hosts and their mapping with corresponding MAC Addresses. Is there any possible way with which I can find out the MAC address of any…
Mandar Shinde
  • 3,156
  • 11
  • 39
  • 58
47
votes
4 answers

Why assign MAC and IP addresses on Bridge interface

Say I create a bridge interface on linux (br0) and add to it some interfaces (eth0, tap0, etc.). My understanding is that this interface act like a virtual switch with all its interfaces/ports that I add to it. What is the meaning of assigning a MAC…
Gradient
  • 3,579
  • 10
  • 31
  • 37
33
votes
6 answers

How to view your computer's MAC address using 'ifconfig'?

After substantial research I still haven't found an answer to this query, how can I modify the command 'ifconfig' to show my computer's MAC address?
Tom Scott
  • 445
  • 1
  • 5
  • 7
31
votes
6 answers

Can one ping a NIC by MAC

I have an NIC card on a Debian machine somewhere. The machine is turned off, but I need to know whether the NIC card is turned on so that I can send a wake-on-lan magic packet later (from another Debian machine) to wake it up. I have the MAC address…
FirstName LastName
  • 555
  • 1
  • 5
  • 12
24
votes
8 answers

Command-line tool to obtain OUI vendor info from MAC address?

I have found some tools that seems to update the OUI MAC address vendor database on my system, like get-oui, airodump-ng-oui-update or update-oui : update-oui(8) OUI update-oui(8) NAME …
Sopalajo de Arrierez
  • 6,281
  • 21
  • 60
  • 98
22
votes
3 answers

How to stop MAC address from changing after disconnecting?

I changed my MAC address with macchanger -A wlp68s0b1 at boot with crontab, Here is what happens when I disconnect and reconnect: While connecting after boot: rahman@debian:~$ macchanger -s wlp68s0b1 Current MAC: 00:22:31:c6:38:45 (SMT&C Co.,…
A.Rahman Mahmoud
  • 503
  • 1
  • 3
  • 14
18
votes
7 answers

Find the IP address of a newly-booted Raspberry Pi

I've attached a Raspberry Pi running Ubuntu to my home network with a cable. It is booted up and connected to the network. The Pi has no keyboard, mouse, or monitor. If I know the IP address that was assigned to the robot, they could ssh into it. It…
pitosalas
  • 637
  • 2
  • 8
  • 17
16
votes
3 answers

Change Mac Address permanently inside /etc/network/interfaces

QUESTION: How might I be able to specifically change the Mac Address of the enp3s0 and wlp2s0 interfaces through the /etc/network/interfaces file? What code would I have to include inside? I have been trying for some time now without success sadly…
Webeng
  • 403
  • 3
  • 7
  • 17
14
votes
4 answers

Make some virtual MAC address

I want to make some virtual MAC addresses for my network adapter or wireless adapter, so I can connect to network with more than one IP address from one computer or laptop. How can I do it? (I know it's possible ,because one of my friends done it in…
Moein Hosseini
  • 253
  • 1
  • 3
  • 8
14
votes
5 answers

Extract Bluetooth MAC Address: hcitool dev

I have to extract from the command hcitool dev only the MAC address of the bluetooth dongle. Output of hcitool dev is: Devices: hci0 xx:xx:xx:xx:xx:xx I write this output to a file and try to get the info with awk: hcitool dev >…
mario
  • 143
  • 1
  • 1
  • 4
12
votes
5 answers

How to use shell to derive an IPv6 address from a MAC address?

We know that we can use the MAC address to create an interface identifier, e.g. for a link-local IPv6 address which should be unique in the Network. The image shows the way to do this: My questions are: How can I create an IPv6 address from a MAC…
Nidal
  • 8,856
  • 11
  • 55
  • 74
10
votes
1 answer

Cloned system + network interfaces

I've made an image of my system and I have given it to someone to run. They have successfully flushed their system with the image and are running it. The problem is as follows: The system normally has 2 Wireless Adapters. Both showing up in the…
user5740843
  • 203
  • 1
  • 4
8
votes
1 answer

How does FING (or any of the IP/MAC Address Mappers) work?

Per this comment, I'm going to take advice and ask this as a separate question. I am trying to learn more about networking and security and want to play with tools to help increase my understanding. Fing seems like a pretty cool tool - finding…
akaphenom
  • 205
  • 3
  • 8
8
votes
2 answers

Identical MAC address on two different VM, yet I have internet connectivity

I have set up a network as such: Set up host-only networking on VirtualBox. The first adapter is configured with NAT, the second with host-only networking HOST: Windows GUEST: CentOS VM1, CentOS VM2 (clone of VM1) When executing ifconfig -a on…
user
  • 1,569
  • 4
  • 15
  • 20
8
votes
4 answers

Print mac address to file

With a bash script, can I read the mac address of my eth0 and print it to a file?
michelemarcon
  • 3,357
  • 10
  • 32
  • 37
1
2 3
10 11