BuildTheNet

Opening your workspace

Your learning content and tools are loading.

Learning paths › CCNA › 1. Network Fundamentals

Ethernet Switching 2

Written reference: Deep dive into Address Resolution Protocol (ARP), broadcast frames, ICMP Echo ping verification, and managing switch CAM tables.

About 11 minutes

Why it matters

Before a host can send a frame it must find the destination’s hardware address. ARP is how that happens, and ping is the quickest way to prove it worked.

ARP Resolution & Switch Verification

ARP maps a known Layer 3 IP address to an unknown Layer 2 MAC address on the local subnet.

An ARP Request is broadcast to FF:FF:FF:FF:FF:FF; the owner replies with a unicast ARP Reply.

Switches do not originate or parse ARP requests; they simply forward broadcast frames as Layer 2 devices.

Ping tests end-to-end IP reachability using ICMP Echo Request and ICMP Echo Reply.

How ARP Discovers Hardware Addresses

When PC1 (192.168.1.1) wants to send data to PC2 (192.168.1.2) on the same subnet, PC1 knows PC2's IP address, but must know PC2's MAC address to build the Layer 2 Ethernet frame.

1. PC1 sends an ARP Request: • Destination MAC: FF:FF:FF:FF:FF:FF (broadcast) • Payload: 'Who has 192.168.1.2? Tell 192.168.1.1' 2. The switch receives the broadcast frame on port G0/1. It learns PC1's MAC address on G0/1 and floods the broadcast frame out all other ports. 3. PC2 receives the broadcast, recognises its own IP, and sends an ARP Reply: • Destination MAC: PC1's MAC address (unicast) • Payload: '192.168.1.2 is at MAC 0001.aaaa.2222' 4. The switch forwards the unicast reply directly to PC1, learning PC2's MAC in the process. 5. PC1 caches PC2's MAC in its ARP table and begins transmitting data.

Ping Reachability Testing

Ping uses ICMP (Internet Control Message Protocol) to verify network connectivity: • The sender issues an ICMP Echo Request (type 8). • The target answers with an ICMP Echo Reply (type 0). • Round-trip time (latency) is measured.

If pinging a local device for the very first time, the first ping packet might time out (showing 4/5 success on Cisco IOS) because the router had to pause forwarding to perform an ARP lookup.

Switch MAC Address Table Management

To view the active MAC table on a Cisco Catalyst switch: Switch# show mac address-table

To wipe dynamic entries for testing: Switch# clear mac address-table dynamic

The words you need

ARP — Address Resolution Protocol (EtherType 0x0806). Protocol used by hosts and routers to discover the MAC address associated with a known IP address.

ARP Request — A broadcast frame sent to destination MAC FF:FF:FF:FF:FF:FF asking 'Who has this IP address? Tell me your MAC.'

ARP Reply — A unicast frame sent directly back to the requester containing the owner's MAC address.

ARP Table — A table stored on endpoints and routers mapping Layer 3 IP addresses to Layer 2 MAC addresses (view with 'arp -a' on PC, 'show arp' on router).

CAM Table — Content Addressable Memory table (MAC address table) on a switch mapping MAC addresses to local physical ports.

Ping — A utility that tests network reachability using ICMP Echo Request (Type 8) and ICMP Echo Reply (Type 0).

The commands from this module

Each of these appeared above. Run them here so they are in your fingers, not just your notes.

These commands are reference examples. Use the separate hands-on lessons to configure and verify the feature; reading this example does not execute or validate a device change.

show mac address-table
clear mac address-table dynamic
clear mac address-table dynamic address <mac>
clear mac address-table dynamic interface <id>
show arp
arp -a
ping <ip-address>

Takeaways

Next: IPv4 Addressing

More free lessons in 1. Network Fundamentals