1.4. Addressing: The Three Identities of a Device
đź’ˇ First Principle: Every networked device has three types of addresses that serve different purposes: MAC addresses identify the hardware (like a serial number), IP addresses identify the network location (like a mailing address), and port numbers identify the application (like an apartment number). The exam heavily tests when each type is used and how they work together.
What happens when address types are confused: You're troubleshooting connectivity. The user can ping their gateway but can't reach a website. Is it a MAC problem? No—MAC addresses only matter locally. Is it a port problem? Could be—maybe port 443 is blocked. Is it IP/routing? Could be—maybe DNS returns the wrong IP. Understanding which address type operates where tells you what to check and what to ignore.
Consider this scenario: A packet leaves your PC destined for a server across the internet. The IP address stays the same for the entire journey (destination: the server). But the MAC address changes at every router hop—first it's your gateway's MAC, then the next router's, then the next. Port numbers identify the application on both ends. Each address type has a different scope and purpose.
The Three Address Types:
| Address Type | Layer | Format | Scope | Changes? |
|---|---|---|---|---|
| MAC Address | 2 | 48-bit (AA:BB:CC:DD:EE:FF) | Local network only | No (burned in) |
| IP Address | 3 | IPv4: 32-bit / IPv6: 128-bit | Global (routable) | Yes (assigned) |
| Port Number | 4 | 16-bit (0-65535) | Identifies application | Yes (per connection) |
Key Port Numbers for CCNA:
| Port | Protocol | Service |
|---|---|---|
| 20, 21 | TCP | FTP (data, control) |
| 22 | TCP | SSH |
| 23 | TCP | Telnet |
| 25 | TCP | SMTP |
| 53 | TCP/UDP | DNS |
| 67, 68 | UDP | DHCP (server, client) |
| 69 | UDP | TFTP |
| 80 | TCP | HTTP |
| 110 | TCP | POP3 |
| 123 | UDP | NTP |
| 161, 162 | UDP | SNMP |
| 443 | TCP | HTTPS |
⚠️ Exam Trap: MAC addresses are only used within a single broadcast domain. When a frame crosses a router, the source and destination MAC addresses change, but the IP addresses stay the same (unless NAT is involved).