Every piece of hardware on your local network has a MAC address in addition to the IP address assigned to it by the local router or server. What exactly is that MAC address for?
Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.
How to Set a Static IP Address & Manual DHCP in iOS. Tap on “Settings” and then tap on “General”. Tap “Wi-Fi” and look for the network name you are connected to, then choose the little (i) button or arrow arrow next to it to get more information about that network. Tap the “Static” tab.
The Question
SuperUser reader Vishnu Vivek is curious about MAC addresses and their function:
I understand that IP addresses are hierarchical, so that routers throughout the internet know which direction to forward a packet. With MAC addresses, there is no hierarchy, and thus packet forwarding would not be possible. So, MAC addresses are not used for packet transfer.
I don’t think it sits there for no reason. Mario teaches typing mac download. So my question is, where exactly does a MAC address come into play during a packet transfer?
Where indeed? What is the specific function of the MAC address?
The Answer
SuperUser contributor Werner Henze offers some insight into the function of the MAC address:
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. If a network adapter is receiving a packet, it is comparing the packet’s destination MAC address to the adapter’s own MAC address. If the addresses match, the packet is processed, otherwise it is discarded.
There are special MAC addresses, one for example is ff:ff:ff:ff:ff:ff, which is the broadcast address and addresses every network adapter in the network. Paw mac app ssl trust cert reviews.
How do IP addresses and MAC addresses work together?
IP is a protocol that is used on a layer above ethernet. Another protocol for example would be IPX.
Why Use Dhcp With Manual Address Mac Computer
When your computer wants to send a packet to some IP address x.x.x.x, then the first check is if the destination address is in the same IP network as the computer itself. If x.x.x.x is in the same network, then the destination IP can be reached directly, otherwise the packet needs to be sent to the configured router.
Up to now things seem to have gotten worse, because now we have two IP addresses: one is the original IP packet’s target address, the other is the IP of the device to which we should send the packet (the next hop, either the final destination or the router).
Since ethernet uses MAC addresses, the sender needs to get the MAC address of the next hop. There is a special protocol ARP (address resolution protocol) that is used for that. Once the sender has retrieved the MAC address of the next hop, he writes that target MAC address into the packet and sends the packet.
How does ARP work?
Why Use Dhcp With Manual Address Mac Pc
ARP itself is a protocol above ethernet, like IP or IPX. When a device wants to know the MAC address for a given IP address, it sends a packet to the broadcast MAC address asking “Who has IP address y.y.y.y?” All devices receive that packet, but only the one with the IP address y.y.y.y will respond with a packet “It’s me.” The asking device receives the answer and now knows that the source MAC address is the right MAC address to use. Of course the result will be cached, so the device does not need to resolve the MAC address every time.
![]()
Routing
Codemeter 3.20 download mac. I almost forgot to mention: there is no routing based on MAC addresses. Low level ethernet and MAC addresses can only reach every device on the same network (cabled or wireless). If you have two networks with a router in between you cannot have a device in network A send a packet to the MAC address of a device in network B. No device in network A has the MAC address of the device in network B, so a packet to this MAC address will be discarded by all devices in the network A (also by the router).
Routing is done on IP level. Simply seen the router is just doing what I described above in the section “How do IP addresses and MAC addresses work together?”. The router will receive packets for its own MAC address but for a different IP address. He will then check if he can directly reach the target IP address. If so, he sends the packet to the target. Otherwise the router itself also has an upstream router configured and will send the packet to that router.
Of course you can have multiple routers configured. Your home router will only have one upstream router configured, but in the internet backbone the big routers have big routing tables so they know the best ways for all packets.
https://skieycaribbean.weebly.com/raymarine-e120-manual-download.html. Other use cases for MAC addresses
Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.
READ NEXT
![]()
Posted by5 years ago
Archived
I manage a small Windows network and for the longest time I've manually assigned static IPs to servers and let DHCP manage the rest (printers, workstations, etc.)
I want to begin automating the initial configuration of new servers with PowerShell (and Desired State Configuration when appropriate). As part of this mental planning I was wondering why it wouldn't be a good idea to get a DHCP address, lookup the VM's MAC address, and then create a reservation in DHCP (all done via PowerShell.)
https://saudinew645.weebly.com/blog/vsco-suite-for-mac-download. It seems to me this is an ideal way to do things as it requires no thought on my part and the process would be handled the same way every time.
Why would I not want to do this?
edit: Lots of good information here. Thanks for all the lively debate. Based on the comments I think my understanding of the situation was about right. Glad to see that this is not a wild idea.
96 comments
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |