Networking for Beginners – Tutorial 4
Ethernet, MAC Address & ARP Explained (With Cisco & Hikvision Examples)
Course: Networking for Beginners to Advanced
Lesson: 4 of 30
Introduction
Before devices can communicate on a network, they must know where to send data and how to deliver it. This is where Ethernet, MAC Addresses, and ARP (Address Resolution Protocol) work together.
These technologies are used every day in:
- Cisco Switches
- Hikvision IP Cameras
- NVRs
- Routers
- Firewalls
- Computers
- Servers
If you understand these concepts, you'll find it much easier to troubleshoot enterprise CCTV and computer networks.
What is Ethernet?
Ethernet is the most widely used wired networking technology. It defines how devices communicate over cables such as CAT5e, CAT6, and CAT6A.
Common Ethernet Speeds
| Standard | Speed |
|---|---|
| Fast Ethernet | 100 Mbps |
| Gigabit Ethernet | 1 Gbps |
| 10 Gigabit Ethernet | 10 Gbps |
| 25 Gigabit Ethernet | 25 Gbps |
| 40 Gigabit Ethernet | 40 Gbps |
| 100 Gigabit Ethernet | 100 Gbps |
Where Ethernet is Used
- Office Networks
- Enterprise CCTV Systems
- Schools
- Hospitals
- Banks
- Data Centers
Ethernet Frame Structure
When data travels through an Ethernet network, it is encapsulated into an Ethernet frame.
+-------------------------------------------------------------+ | Destination MAC | Source MAC | Type | Data | FCS (Checksum) | +-------------------------------------------------------------+
Main Fields
- Destination MAC Address
- Source MAC Address
- EtherType
- Payload (Data)
- Frame Check Sequence (Error Detection)
What is a MAC Address?
A MAC (Media Access Control) Address is a unique hardware identifier assigned to every network interface card (NIC).
Unlike an IP address, a MAC address usually does not change.
Example
00:1A:2B:3C:4D:5E
or
F4-5C-89-AB-CD-EF
MAC Address Structure
A MAC address consists of 48 bits (6 bytes).
Example:
00 : 1A : 2B : 3C : 4D : 5E │ │ │ └── Device Identifier └────── Manufacturer Identifier (OUI)
The first half identifies the manufacturer, and the second half uniquely identifies the device.
Devices That Have MAC Addresses
- Computers
- Laptops
- Cisco Switches
- Routers
- IP Cameras
- NVRs
- Wireless Access Points
- Printers
IP Address vs MAC Address
| Feature | IP Address | MAC Address |
|---|---|---|
| Layer | Network (Layer 3) | Data Link (Layer 2) |
| Assigned By | DHCP or Administrator | Manufacturer |
| Can Change | Yes | Usually No |
| Example | 192.168.10.101 | 00:1A:2B:3C:4D:5E |
What is ARP?
ARP (Address Resolution Protocol) is used to find the MAC address of a device when its IP address is known.
Think of ARP as asking:
"I know your IP address. What is your MAC address?"
How ARP Works
Suppose:
Camera IP:
192.168.10.101
NVR IP:
192.168.10.201
The camera wants to send video to the NVR.
Step 1
The camera knows the NVR IP address.
↓
Step 2
The camera sends an ARP Request:
Who has 192.168.10.201? Tell 192.168.10.101
↓
Step 3
Every device on the LAN receives the broadcast.
↓
Step 4
Only the NVR replies:
192.168.10.201 is at 00:1A:2B:3C:4D:5E
↓
Step 5
The camera stores this mapping in its ARP Cache and sends video directly to the NVR.
ARP Communication Diagram
IP Camera 192.168.10.101 │ │ ARP Request (Broadcast) ▼ Cisco PoE Switch │ ┌────┼────┐ │ │ │ PC NVR Printer │ ARP Reply 00:1A:2B:3C:4D:5E
What is an ARP Table?
Every device keeps a temporary table of recently learned IP-to-MAC mappings.
Example:
| IP Address | MAC Address |
|---|---|
| 192.168.10.1 | 00:11:22:33:44:55 |
| 192.168.10.101 | 00:AA:BB:CC:DD:11 |
| 192.168.10.201 | 00:1A:2B:3C:4D:5E |
This allows devices to communicate without sending an ARP request every time.
How a Cisco Switch Learns MAC Addresses
Cisco switches build a MAC Address Table (CAM Table).
When a frame arrives, the switch records:
- Source MAC Address
- Switch Port
- VLAN
Example:
| MAC Address | Port | VLAN |
|---|---|---|
| 00:AA:11:22:33:44 | Gi1/0/1 | 10 |
| 00:BB:22:33:44:55 | Gi1/0/2 | 10 |
| 00:CC:33:44:55:66 | Gi1/0/3 | 20 |
Cisco Commands
View MAC Address Table
show mac address-table
View ARP Table
show ip arp
View Interface Status
show interfaces status
Unicast, Broadcast & Multicast
Unicast
One device communicates with one device.
Example:
IP Camera │ ▼ NVR
Broadcast
One device sends data to every device in the same network.
Example:
- ARP Request
- DHCP Discover
Camera │ ──────────────► All Devices
Multicast
One device sends data to a selected group of devices.
Examples:
- IPTV
- Video conferencing
- Some CCTV streaming applications
Camera │ ──► Monitor 1 ──► Monitor 2 ──► Monitor 3
Enterprise CCTV Example
IP Camera │ CAT6 Cable │ Cable Manager │ 48-Port PoE Switch │ Fiber ODF │ Cisco Catalyst C9300X-24Y │ Gigabit Switch │ Hikvision NVR │ LCD Monitor
Data Flow
- Camera captures video.
- Camera checks the ARP cache.
- If necessary, sends an ARP request.
- Cisco switch forwards frames based on the MAC table.
- Video reaches the NVR.
- The NVR displays and records the video.
Troubleshooting Example
Problem: A camera is online but cannot communicate with the NVR.
Check the following:
- Is the camera in the correct VLAN?
- Does the camera have the correct IP address?
- Is the MAC address visible in the switch's MAC table?
- Does the ARP table contain the correct IP-to-MAC mapping?
- Is the switch port active?
- Are there duplicate IP or MAC address issues?
Summary
After completing this lesson, you should understand:
- ✅ What Ethernet is
- ✅ How Ethernet frames work
- ✅ What a MAC address is
- ✅ The difference between IP and MAC addresses
- ✅ How ARP resolves IP addresses to MAC addresses
- ✅ How Cisco switches learn MAC addresses
- ✅ The difference between Unicast, Broadcast, and Multicast
- ✅ How these concepts are used in enterprise CCTV networks
Next Tutorial (Lesson 5)
IPv4 Addressing & Subnetting Fundamentals
In the next lesson, you'll learn:
- IPv4 address structure
- Public vs. Private IP addresses
- Network ID and Host ID
- Subnet masks
- CIDR notation
- Default gateway
- Basic subnetting with practical examples
- IP planning for Cisco enterprise networks and Hikvision CCTV deployments
This lesson will prepare you for designing scalable networks and assigning IP addresses efficiently in enterprise environments.
0 Comments