1️⃣ MAC Address คืออะไร (สั้นมาก)
เป็น รหัสประจำตัวของอุปกรณ์เครือข่าย
แต่ละอินเทอร์เฟซมี MAC ของตัวเอง
Wi-Fi → wlan0
LAN → eth0
Bluetooth → hci0
บน Raspberry Pi:
MAC มัก เรียงกัน (โรงงานกำหนดมา) แต่ ถือว่าเป็นคนละอุปกรณ์
2️⃣ ถ้าจะตั้งความปลอดภัย Wi-Fi ต้องใช้ MAC ตัวไหน?
✅ ใช้ MAC ของ Wi-Fi เท่านั้น (wlan0)
Wi-Fi (wlan0) → 88:A2:9E:19:AA:C4 ← ใช้ตัวนี้
LAN (eth0) → 88:A2:9E:19:AA:C3
Bluetooth → 88:A2:9E:19:AA:C5
? Router จะไม่สนใจ MAC ของ Bluetooth
3️⃣ MAC Filtering คืออะไร?
เป็นระบบใน Router ที่: ✅ อนุญาตเฉพาะ MAC ที่อยู่ใน “Whitelist”
❌ เครื่องอื่นจะเข้า Wi-Fi ไม่ได้ แม้รู้รหัสผ่าน
เหมาะสำหรับ: บ้าน ห้องแลป IoT / Raspberry Pi
-------------------------------------------------------------------
ifconfig
ใช้กับ Network Interface ปกติ
Wi-Fi (wlan0)
LAN (eth0)
Loopback (lo)
ใช้ดูอะไรได้บ้าง?
MAC Address (ether)
IP address (inet)
สถานะ interface (UP / RUNNING)
จำนวน packet รับ-ส่ง
ตัวอย่างที่คุณเจอ
wlan0:
inet 192.168.1.103
ether 88:A2:9E:19:AA:C4 ← MAC Wi-Fi
ใช้เมื่อไหร่?
ตั้งค่า MAC filtering
เช็กว่า Wi-Fi ต่ออยู่ไหม
ดู IP เพื่อนำไป SSH
? hciconfig
ใช้กับอะไร?
? Bluetooth เท่านั้น
Interface ชื่อ hci0
ใช้ดูอะไรได้บ้าง?
Bluetooth MAC (BD Address)
สถานะ Bluetooth (UP / RUNNING)
ข้อมูล MTU
ตัวอย่าง
hci0:
BD Address: 88:A2:9E:19:AA:C5 ← MAC Bluetooth
ใช้เมื่อไหร่?
Pair อุปกรณ์ Bluetooth
ตั้ง whitelist Bluetooth
Debug ปัญหา Bluetooth
? เปรียบเทียบให้จำง่าย
คำสั่ง ดูอุปกรณ์ MAC ที่ได้ ใช้กับ Wi-Fi
ifconfig Wi-Fi / LAN ether ✅ ใช้ได้
hciconfig Bluetooth BD Address ❌ ใช้ไม่ได้
❗ จุดสำคัญมาก
Router ดู MAC จาก ifconfig เท่านั้น
MAC จาก hciconfig ไม่มีผลกับ Wi-Fi
บน Raspberry Pi MAC มัก เรียงกัน แต่เป็นคนละ interface
-----------------------------------------------------------
Tablet : wifi filtering
ต้องตั้งค่า tablet ให้ใช้ static Mac Address