Συχνή παρεξήγηση: «η MAC address αποθηκεύεται στο switch». Η ακρίβεια: **ο switch διατηρεί έναν δυναμικό πίνακα (MAC Address Table / CAM Table / Forwarding Database) στη RAM του**, ο οποίος αντιστοιχίζει **MAC address → порт → VLAN → timestamp**.
MAC Address VLAN Type Ports aa:bb:cc:dd:ee:ff 10 DYNAMIC Gi1/0/5
| Type | Πώς δημιουργείται | Aging | Χρήση |
|---|---|---|---|
| DYNAMIC | Αυτόματη μάθηση από frames | Ναι (default 300s) | Κανονική λειτουργία |
| STATIC / SECURE | CLI: `mac address-table static ...` / `switchport port-security` | Όχι (μόνιμη) | Servers, printers, security (sticky MAC) |
| DROP | CLI: `mac address-table static ... drop` | Όχι | Blackhole specific MAC (mitigation) |
# Προβολή πίνακα
show mac address-table
show mac address-table dynamic
show mac address-table static
show mac address-table vlan 10
show mac address-table address aa:bb:cc:dd:ee:ff
# Αλλαγή aging timer
mac address-table aging-time 600 # seconds
# Static entry
mac address-table static 00:11:22:33:44:55 vlan 20 interface Gi1/0/10
# Port Security (sticky learning)
interface Gi1/0/5
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address sticky
switchport port-security violation restrict
Ο MAC Address Table είναι η «καρδιά» της L2 switching—γρήγορος, άθικτος, αυτοκαθαριζόμενος. Κατανοώντας τη λειτουργία του, διαγνώζετε connectivity issues, loops, security incidents και capacity planning με σιγουριά.
Πνευματικά δικαιώματα © Γνώση Υπολογιστών Όλα τα δικαιώματα διατηρούνται.