CCNA Lab 01 · Network Fundamentals
Basic LAN & IPv4 Connectivity
Lab แรกเน้นให้เข้าใจเส้นทางของ packet ตั้งแต่ PC → Switch → Router และพิสูจน์ผลด้วยคำสั่งพื้นฐานก่อนเพิ่ม VLAN และ Routing ที่ซับซ้อนขึ้น
Topology
Objectives
- ระบุบทบาทของ Router, Layer 2 Switch และ Endpoints
- กำหนด IPv4 address และ default gateway
- ตั้ง hostname และ management IP ของ Switch
- ตรวจสอบ interface status และ MAC address table
- อธิบายได้ว่า ARP และ ICMP ทำงานอย่างไรระหว่างการ ping
Addressing Plan
| Device | Interface | IPv4 | Gateway |
|---|---|---|---|
| R1 | G0/0 | 192.168.10.1/24 | — |
| SW1 | VLAN 1 | 192.168.10.2/24 | 192.168.10.1 |
| PC1 | NIC | 192.168.10.10/24 | 192.168.10.1 |
| PC2 | NIC | 192.168.10.11/24 | 192.168.10.1 |
R1 — Basic Configuration
enable
configure terminal
hostname R1
no ip domain-lookup
interface gigabitEthernet0/0
description LAN_TO_SW1
ip address 192.168.10.1 255.255.255.0
no shutdown
end
show ip interface briefSW1 — Basic Configuration
enable
configure terminal
hostname SW1
no ip domain-lookup
interface vlan 1
ip address 192.168.10.2 255.255.255.0
no shutdown
exit
ip default-gateway 192.168.10.1
end
show ip interface brief
show interfaces status
show mac address-tableVerification
PC1> ping 192.168.10.1
PC1> ping 192.168.10.11
R1# show ip interface brief
SW1# show mac address-tableสิ่งที่ต้องอธิบายให้ได้: เมื่อ PC1 ping PC2 ครั้งแรก PC1 ต้องหา MAC address ของปลายทางด้วย ARP ก่อน จากนั้น Switch เรียนรู้ source MAC และ forward Ethernet frame ไปยัง port ที่เกี่ยวข้อง
Break / Fix Exercise
- เปลี่ยน PC2 เป็น
192.168.20.11/24แล้วทดสอบ ping - ปิด interface G0/0 ของ R1 ด้วย
shutdown - ตั้ง default gateway ของ PC1 ผิด
ทุกครั้งให้ตรวจด้วย ipconfig, show ip interface brief, show interfaces status และ show mac address-table ก่อนแก้ เพื่อสร้างนิสัย troubleshooting ที่เป็นระบบ
Next Lab
Lab 02 — Subnetting & Address Planning จะเปลี่ยนจาก /24 ง่าย ๆ ไปเป็น requirement จริง เช่น Admin 50 hosts, Users 100 hosts และ Server 20 hosts แล้วออกแบบ VLSM ก่อนนำไปทำ VLAN.