MAC Address
MAC (Media Access Control) Address is the physical address given by the manufacturer to each network device.
01IP vs MAC
| Feature | IP Address | MAC Address |
|---|---|---|
| Changes? | Yes | No* |
| Who assigns? | DHCP/Admin | Manufacturer |
| Format | 192.168.1.1 | AA:BB:CC:DD:EE:FF |
| Layer | Layer 3 | Layer 2 |
*Note: MAC address can be changed via software but is physically permanent.
02How Does It Work?
When you send a packet:
- IP address → Which network to go to?
- MAC address → Which device in that network?
Example: Shipping company first finds the city (IP), then the neighborhood and door number (MAC).
03Viewing MAC Address
Windows: getmac or ipconfig /all
Mac: ifconfig | grep ether
Linux: ip link show
04Summary
- MAC = Physical address (recorded in hardware)
- IP = Logical address (can change)
- Both work together!