MAC addresses

2.2 Given a scenario, configure servers to use network infrastructure services.

📘CompTIA Server+ (SK0-005) 


MAC stands for Media Access Control. A MAC address is a unique identifier assigned to a network interface card (NIC). Every NIC, whether in a server, computer, switch, or router, has a MAC address. It is used to identify devices on a local network.

Think of it like a “network fingerprint” for your device. No two NICs should have the same MAC address.


1. Structure of a MAC Address

A MAC address is 48 bits long, usually displayed as 6 pairs of hexadecimal numbers separated by colons or hyphens:

Example: 00:1A:2B:3C:4D:5E
  • The first 3 pairs (24 bits) identify the manufacturer of the NIC. This is called the Organizationally Unique Identifier (OUI).
  • The last 3 pairs (24 bits) are unique to the device itself.

So, the MAC address tells us who made the NIC and which device it is.


2. Types of MAC Addresses

  1. Unicast MAC Address
    • Represents a single device.
    • Most common type; a switch uses it to send data directly to a specific device.
  2. Multicast MAC Address
    • Used to send traffic to multiple devices that are part of a group.
    • Example in IT: Servers sending updates to a specific group of clients.
  3. Broadcast MAC Address
    • Special MAC: FF:FF:FF:FF:FF:FF
    • Used to send a message to all devices on the local network.
    • Example: When a server requests an IP via DHCP, it broadcasts this request to all devices.

3. Role of MAC Addresses in Networking

MAC addresses work at the data link layer (Layer 2) of the OSI model. They are essential for LAN communication:

  • Switches use MAC addresses to forward frames only to the correct device.
  • Network security: MAC addresses can be used to restrict which devices can connect to a network (MAC filtering).
  • Server communication: Servers use MAC addresses when sending data to other devices on the same network.

4. How Servers Use MAC Addresses

In a real IT environment:

  1. Network Interface Binding
    • A server may have multiple NICs. Each NIC has its own MAC.
    • Example: Web server NIC1 for public traffic, NIC2 for internal management.
    • MAC addresses help the server OS know which NIC to use for which traffic.
  2. IP Address Assignment
    • DHCP servers assign IP addresses based on MAC addresses.
    • This allows for static reservations.
      Example: Server with MAC 00:1A:2B:3C:4D:5E always gets IP 192.168.1.100
    • Ensures critical servers keep the same IP for DNS, database, or authentication services.
  3. Security and Monitoring
    • Network admins can track devices using MAC addresses.
    • Example: Monitoring which servers are connected to which VLAN, or blocking unauthorized NICs.
  4. Virtualization
    • Virtual machines (VMs) also have virtual NICs with MAC addresses.
    • Hypervisors ensure unique MAC addresses for each VM so traffic is delivered correctly.

5. Exam Tips

  • Know that MAC addresses are permanent for the NIC but can sometimes be spoofed or changed in software.
  • Remember the difference between MAC (Layer 2) and IP addresses (Layer 3).
  • Understand how MAC addresses work with DHCP and switches.
  • Be able to identify the purpose of unicast, multicast, and broadcast MACs.

6. Quick Reference Table

FeatureMAC Address Detail
Length48 bits (6 bytes)
Format00:1A:2B:3C:4D:5E or 00-1A-2B-3C-4D-5E
LayerData Link (Layer 2)
TypesUnicast, Multicast, Broadcast
Use in ServersNIC identification, DHCP IP assignment, VLANs, network monitoring
SecurityMAC filtering, device tracking

Summary

  • MAC addresses are unique hardware identifiers for network interfaces.
  • They allow switches and servers to communicate efficiently on a local network.
  • Servers use MAC addresses for IP assignment, traffic routing, and network security.
  • Understanding MAC addresses is crucial for configuring network infrastructure services on servers.
Buy Me a Coffee