Study Notes

CCNA Exam - Cheatsheet

SOFEA FARISHA CHE ZULMAIDI
0 imports

Free ยท 2 imports included

Study Notes Preview

2 sections locked
Section 1

CCNA Exam - Cheatsheet

STUDY GUIDE

๐ŸŽ“ CCNA Exam - Study Guide

๐Ÿ“‹ Course Structure

code
๐Ÿ“š Introduction to Networks โ”œโ”€โ”€ ๐Ÿ“– Chapter 1: MAC and IP Addresses in Network Communication โ”‚ โ”œโ”€โ”€ ๐Ÿ”น Roles of MAC and IP Addresses โ”‚ โ”œโ”€โ”€ ๐Ÿ”น Destination on Same Network โ”‚ โ””โ”€โ”€ ๐Ÿ”น Destination on Remote Network โ”œโ”€โ”€ ๐Ÿ“– Chapter 2: Address Resolution Protocol (ARP) โ”‚ โ”œโ”€โ”€ ๐Ÿ”น ARP Overview and Functions โ”‚ โ”œโ”€โ”€ ๐Ÿ”น ARP Request and Reply โ”‚ โ”œโ”€โ”€ ๐Ÿ”น ARP Table Management โ”‚ โ””โ”€โ”€ ๐Ÿ”น ARP Issues: Broadcasting and Spoofing โ”œโ”€โ”€ ๐Ÿ“– Chapter 3: IPv6 Neighbor Discovery (ND) โ”‚ โ”œโ”€โ”€ ๐Ÿ”น IPv6 Neighbor Discovery Overview โ”‚ โ”œโ”€โ”€ ๐Ÿ”น IPv6 Neighbor Discovery Messages โ”‚ โ””โ”€โ”€ ๐Ÿ”น IPv6 Neighbor Discovery - Address Resolution
Section 2

๐Ÿ“– Chapter 1: MAC and IP Addresses in Network Communication

What this chapter covers: This chapter explains the fundamental roles of MAC and IP addresses in network communication. It differentiates between their functions in local and remote network scenarios, emphasizing how Layer 2 (MAC) and Layer 3 (IP) addresses are used to deliver frames and packets between devices. The chapter also details the address resolution process for same-network and remote-network destinations.

๐Ÿ”‘ Essential Concepts & Formulas

Concept/FormulaDefinition/EquationWhen to UseQuick Check
MAC AddressLayer 2 physical addressNIC-to-NIC communication within the same Ethernet networkCheck the NIC configuration
IP AddressLayer 3 logical addressSending packets from source to destination, across networksVerify IP configuration using ipconfig or ifconfig
Same Network DeterminationCompare source and destination IP addresses with subnet maskDetermining if destination is on the same networkCheck if network portion of IP addresses match
Default GatewayRouter interface IP addressSending packets to a remote networkVerify default gateway configuration

๐Ÿ› ๏ธ Problem Types

Type A: Determining Destination MAC Address for Local Communication

Setup: "When a device needs to send data to another device on the same network, and it knows the destination IP address but not the MAC address."

Method: Use ARP to resolve the IP address to a MAC address. The source device broadcasts an ARP request, and the destination device responds with its MAC address.

Example: PC1 (192.168.10.10/24) needs to send data to PC2 (192.168.10.11/24). PC1 sends an ARP request. PC2 responds with its MAC address (55-55-55-55-55-55). PC1 then uses this MAC address to send the frame.

Type B: Determining Destination MAC Address for Remote Communication

Setup: "When a device needs to send data to a device on a different network."

Method: The source device sends the frame to its default gateway (router). The destination MAC address is the MAC address of the router's interface connected to the local network.

Example: PC1 (192.168.10.10/24) needs to send data to PC2 (10.1.1.10/24). PC1 sends the frame to the router (default gateway) with the router's MAC address as the destination MAC address.

๐Ÿงฎ Solved Example

Problem: PC1 (192.168.1.10/24, MAC AAAA.AAAA.AAAA) needs to send a packet to PC2 (192.168.1.20/24). PC1 does not know PC2's MAC address. What steps does PC1 take?

Given: PC1 IP: 192.168.1.10/24, MAC: AAAA.AAAA.AAAA PC2 IP: 192.168.1.20/24

Steps:

  1. PC1 checks if PC2 is on the same network by comparing network addresses. 192.168.1.10/24 and 192.168.1.20/24 are on the same network.
  2. PC1 sends an ARP request broadcast to the network asking, "Who has 192.168.1.20? Tell AAAA.AAAA.AAAA".
  3. PC2 receives the ARP request and responds with an ARP reply containing its MAC address, say BBBB.BBBB.BBBB.
  4. PC1 updates its ARP table with the mapping 192.168.1.20 to BBBB.BBBB.BBBB.
"
โœ…
Answer: PC1 now knows PC2's MAC address (BBBB.BBBB.BBBB) and can send the packet directly to PC2.

โš ๏ธ Common Mistakes

โŒ Mistake 1: Assuming MAC addresses are sufficient for inter-network communication.

โœ… How to avoid: Remember that MAC addresses are only used for communication within the same network segment. IP addresses are necessary for routing packets across different networks.

โŒ Mistake 2: Forgetting to check the subnet mask when determining if a destination is on the same network.

โœ… How to avoid: Always compare the network portions of the source and destination IP addresses after applying the subnet mask.

๐Ÿฆ Erik's Tip

Visualize the network as a street. MAC addresses are like house numbers on the same street, while IP addresses are like the city and street address needed to send a letter across different cities.

๐Ÿ“– Chapter 2: Address Resolution Protocol (ARP)

What this chapter covers: This chapter provides a detailed explanation of the Address Resolution Protocol (ARP). It covers its purpose, functions, and operation in IPv4 networks. The chapter explains how ARP resolves IPv4 addresses to MAC addresses, enabling devices to communicate on the same network. It also covers ARP requests, ARP replies, ARP table functions, ARP table management, and potential security issues.

๐Ÿ”‘ Essential Concepts & Formulas

Concept/FormulaDefinition/EquationWhen to UseQuick Check
ARPProtocol for resolving IPv4 addresses to MAC addressesWhen a device knows the IP address but not the MAC address of a device on the same networkCheck ARP table using arp -a or show ip arp
ARP RequestBroadcast message asking for the MAC address associated with a specific IPv4 addressWhen a device needs to find the MAC address of another device on the same networkAnalyze packet capture for broadcast ARP request
ARP ReplyUnicast message containing the MAC address associated with a specific IPv4 addressIn response to an ARP requestAnalyze packet capture for unicast ARP reply
ARP TableTable storing IPv4-to-MAC address mappingsTo quickly find the MAC address associated with an IPv4 addressUse arp -a (Windows) or show ip arp (Cisco) to view the table

๐Ÿ› ๏ธ Problem Types

Type A: Analyzing ARP Requests and Replies

Setup: "Given a network scenario, analyze the ARP requests and replies to determine the MAC address resolution process."

Method: Examine packet captures to identify the source and destination IP and MAC addresses in ARP requests and replies. Determine which device is requesting the MAC address and which device is responding.

Example: PC1 (192.168.1.10) sends an ARP request for 192.168.1.20. PC2 (192.168.1.20) responds with its MAC address. Analyze the packet capture to confirm the source and destination addresses.

Type B: Troubleshooting ARP Table Issues

Setup: "A device is unable to communicate with another device on the same network."

Method: Check the ARP table on the device to see if the destination IP address has a corresponding MAC address. If not, clear the ARP cache and try to ping the destination device to trigger an ARP request.

Example: PC1 cannot ping PC2 (192.168.1.20). The ARP table on PC1 does not have an entry for 192.168.1.20. Clear the ARP cache (arp -d 192.168.1.20) and ping PC2.

Type C: Identifying ARP Spoofing Attacks

Setup: "Network performance degrades, or devices are being redirected to malicious websites."

Method: Analyze ARP tables for suspicious entries, such as multiple IP addresses mapping to the same MAC address. Use network monitoring tools to detect unusual ARP traffic.

Example: The ARP table shows multiple IP addresses mapping to the same MAC address, indicating a possible ARP spoofing attack.

๐Ÿงฎ Solved Example

Problem: A host with IP address 192.168.1.5 and MAC address 00-0A-95-9D-68-16 needs to communicate with another host on the same network with IP address 192.168.1.10, but it doesn't know the MAC address. Detail the ARP process.

Given: Source IP: 192.168.1.5 Source MAC: 00-0A-95-9D-68-16 Destination IP: 192.168.1.10

Steps:

  1. The host checks its ARP cache for a mapping for 192.168.1.10. If not found, it proceeds.
  2. The host sends an ARP request as a broadcast to the network. The request asks, "Who has 192.168.1.10? Tell 192.168.1.5". The destination MAC address is FF-FF-FF-FF-FF-FF (broadcast).
  3. The host with IP address 192.168.1.10 receives the ARP request.
  4. The host with IP address 192.168.1.10 responds with an ARP reply containing its MAC address (e.g., 00-1B-44-11-3A-B7). The destination MAC address is 00-0A-95-9D-68-16 (unicast).
  5. The original host receives the ARP reply and updates its ARP cache with the mapping 192.168.1.10 to 00-1B-44-11-3A-B7.
"
โœ…
Answer: The host now knows the MAC address of 192.168.1.10 and can communicate directly.

โš ๏ธ Common Mistakes

โŒ Mistake 1: Confusing ARP requests with ARP replies.

โœ… How to avoid: Remember that ARP requests are broadcast messages, while ARP replies are unicast messages.

โŒ Mistake 2: Not understanding the impact of ARP cache timers.

โœ… How to avoid: Be aware that ARP table entries expire after a certain period, requiring the ARP process to be repeated.

๐Ÿฆ Erik's Tip

Think of ARP as asking someone for their phone number (MAC address) when you only know their name (IP address). You ask everyone on the street (broadcast), and only the person with that name responds (unicast).

๐Ÿ“– Chapter 3: IPv6 Neighbor Discovery (ND)

What this chapter covers: This chapter explores IPv6 Neighbor Discovery (ND), which replaces ARP in IPv6 networks. It details the messages used in ND, including Neighbor Solicitation (NS), Neighbor Advertisement (NA), Router Solicitation (RS), and Router Advertisement (RA). The chapter explains how ND is used for address resolution, router discovery, and redirection services.

๐Ÿ”‘ Essential Concepts & Formulas

Concept/FormulaDefinition/EquationWhen to UseQuick Check
IPv6 NDProtocol for address resolution, router discovery, and redirection in IPv6 networksReplacing ARP in IPv6Check IPv6 connectivity
NS (Neighbor Solicitation)ICMPv6 message used to request the MAC address of a known IPv6 addressWhen a device needs to find the MAC address of another device on the same IPv6 networkAnalyze packet capture for NS message
NA (Neighbor Advertisement)ICMPv6 message used to respond to a Neighbor Solicitation messageIn response to an NS messageAnalyze packet capture for NA message
RS (Router Solicitation)ICMPv6 message used by a host to request Router AdvertisementsWhen a host needs to discover routers on the networkAnalyze packet capture for RS message
RA (Router Advertisement)ICMPv6 message used by routers to advertise their presence and network configurationPeriodically or in response to an RS messageAnalyze packet capture for RA message

๐Ÿ› ๏ธ Problem Types

Type A: Analyzing IPv6 Neighbor Discovery Messages

Setup: "Given a network scenario, analyze the IPv6 ND messages to determine the address resolution process."

Method: Examine packet captures to identify the source and destination IPv6 and MAC addresses in NS and NA messages. Determine which device is requesting the MAC address and which device is responding.

Example: PC1 sends an NS message to discover the MAC address of PC2. PC2 responds with an NA message containing its MAC address. Analyze the packet capture to confirm the source and destination addresses.

Type B: Troubleshooting IPv6 Connectivity Issues

Setup: "A device is unable to communicate with another device on the same IPv6 network."

Method: Check if the device has received Router Advertisements (RA) and has a valid IPv6 address and default gateway. Use ping to test connectivity.

Example: PC1 cannot ping PC2. Check if PC1 has received an RA message and has a valid IPv6 address and default gateway.

Type C: Comparing ARP and IPv6 ND

Setup: "Understanding the differences between ARP and IPv6 ND."

Method: Compare the message types, addressing schemes, and security features of ARP and IPv6 ND.

Example: ARP uses broadcast messages for address resolution, while IPv6 ND uses multicast messages. IPv6 ND includes security features like Secure Neighbor Discovery (SEND).

๐Ÿงฎ Solved Example

Problem: PC1, an IPv6 host, needs to find the MAC address of PC2 on the same link. PC1 knows PC2's IPv6 address. Describe the Neighbor Discovery process.

Given: PC1 IPv6 Address: 2001:db8:1:1::1 PC2 IPv6 Address: 2001:db8:1:1::2

Steps:

  1. PC1 sends a Neighbor Solicitation (NS) message to the solicited-node multicast address corresponding to PC2's IPv6 address. The NS message includes PC1's link-layer address (MAC address).
  2. PC2 receives the NS message because it is subscribed to the solicited-node multicast address.
  3. PC2 sends a Neighbor Advertisement (NA) message back to PC1's unicast address. The NA message includes PC2's link-layer address (MAC address).
  4. PC1 receives the NA message and updates its neighbor cache with the mapping between PC2's IPv6 address and its MAC address.
"
โœ…
Answer: PC1 now knows PC2's MAC address and can communicate directly using IPv6.

โš ๏ธ Common Mistakes

โŒ Mistake 1: Confusing IPv6 ND messages with ARP messages.

โœ… How to avoid: Remember that IPv6 ND uses ICMPv6 messages (NS, NA, RS, RA), while ARP uses ARP requests and replies.

โŒ Mistake 2: Not understanding the role of multicast addresses in IPv6 ND.

โœ… How to avoid: Be aware that IPv6 ND uses multicast addresses for efficient address resolution.

๐Ÿฆ Erik's Tip

Think of IPv6 Neighbor Discovery as a more polite and efficient version of ARP. Instead of shouting to everyone (broadcast), you send a message to a specific group (multicast) that includes the person you're looking for.

2 more sections

Create a free account to import and read the full study notes โ€” all 4 sections.

No credit card ยท 2 free imports included

    CCNA Exam - Cheatsheet โ€” Cheatsheet | Evrika | Evrika Study