V
V
Viktor Komarov2017-09-02 17:13:49
Computer networks
Viktor Komarov, 2017-09-02 17:13:49

What is a MAC address for?

Why do you need a MAC address if computers on the network at the link layer ping by ip?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
pfg21, 2017-09-02
@Victor_Komarov

because the routing of packets on an Ethernet network is based on the MAC addresses of the end clients.
The IP packet is wrapped in an Ethernet packet wrapper and transmitted to the piece of iron for sending in the form of "impulses" of some distribution medium.
Switch for example is an Ethernet router - it does not even know about IP addresses and in general what is transmitted inside the Ethernet packet wrapper.
The simple Ethernet protocol is now the most used/only OSI link layer protocol for IP networks, and that's why the MAC address is so well known.
Another protocol would spread, its components would be known.

R
res2001, 2017-09-02
@res2001

Because network adapters do not know anything about IP, ARP. ping etc. high-level things
MAC - this is the address of the network adapter, it checks on the MAC at the iron level that the packet is intended for it and passes it further up the stack or discards it.

P
Psq, 2017-09-02
@Psq

It is at the link layer that computers communicate by MAC address.
The IP address is a layer above - network.
The MAC address is tied to the host hardware (it can be changed, but as a rule it is not changed).
The IP address is assigned by you depending on the network topology (or automatically based on the DHCP protocol).

F
Fredcapit, 2017-09-14
@Fredcapit

"Stupid" switches in order to compile a table of addresses (that is, to which interface to send the next packet) uses the MAC address. There are more advanced switches where you can configure different behavior depending on other parameters, including the IP address.
join pfg21

The simple Ethernet protocol is now the most used/only OSI link layer protocol for IP networks, and that's why the MAC address is so well known.
Another protocol would spread, its components would be known

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question