Cisco CCNA 200-301 Definitive Study Guide
TCP/IP and OSI Networking Models
Networking models provide a structure for communication between devices. While the CCNA 200-301 exam references the RFC 1122 four-layer TCP/IP model, a five-layer variant is commonly used to separate physical and data-link functions.
Layer Comparison and Protocol Data Units (PDUs)
| Layer | 5-Layer Model | PDU | Example Protocols / Equipment |
|---|---|---|---|
| 5 | Application | Data | , , |
| 4 | Transport | Segment | , |
| 3 | Network / Internet | Packet | . Operating device: Router |
| 2 | Data-Link | Frame | , . Operating device: Switch |
| 1 | Physical | Bit / Symbol | , Fiber. Operating device: Hub |
Ethernet LAN Fundamentals
Ethernet standards define physical cabling and speed. Media include Unshielded Twisted Pair () and fiber optic cables (Single-mode or Multimode).
Physical Layer Standards
- : , range, .
- : , range, .
- : , range, .
- : , range, .
- Fiber Standards: (, Multimode), (, Singlemode), (, Singlemode).
Media Access and MAC Addressing
A Media Access Control () address is a identifier written in hexadecimal. It consists of a Organizationally Unique Identifier () and a vendor-assigned ID.
(Carrier Sense Multiple Access with Collision Detection): Legacy mechanism where nodes listen for silence before transmitting. If a collision is detected, stations send a jamming signal and wait a random backoff time before retrying. Full-duplex Ethernet eliminates the need for .
Ethernet II Frame Structure
- Preamble (): Synchronization.
- (): Start Frame Delimiter.
- Destination MAC ().
- Source MAC ().
- Type (): Defines the encapsulated protocol or an tag.
- Data (): Padded to minimum.
- (): Frame Check Sequence (Cyclical Redundancy Check).
Switching and Command-Line Interface (CLI)
Basic Configuration Commands
- Console Password:
line console 0 password <pass> login - Enable Secret:
enable secret <pass>(Hashed, takes precedence overenable password). - Save Configuration:
copy running-config startup-configor legacywrite. - Erase Configuration:
erase startup-configorwrite erase.
Switch IP Management
Layer 2 switches use a Switch Virtual Interface () for management.
- Set IP Address:
interface vlan 1followed byip address <address> <mask>. - Default Gateway:
ip default-gateway <address>. - Configuration: Requires a
hostname,ip domain-name, and generated keys viacrypto key generate rsawith a modulus length (e.g., or ).
Interface Status and Errors
- : Frames smaller than (often collision-related).
- : Frames larger than .
- Errors: Failed checksums, often due to faulty cabling or interference.
- Late Collisions: Collisions occurring after the , typically indicating a duplex mismatch.
VLANs and Trunking
Virtual LANs () segment broadcast domains. VLAN IDs range from (Normal) and (Extended).
Trunking and DTP
Trunk links carry traffic for multiple VLANs using the encapsulation. Dynamic Trunking Protocol () modes include:
- : Never trunks.
- : Forces trunking.
- : Trunks if the other side is set to or .
- : Actively attempts to trunk.
Voice VLAN
Designed for IP phones with a built-in switch. Configured on an access port via switchport voice vlan <id>. The data traffic remains in the configured switchport access vlan.
VLAN Trunking Protocol (VTP)
Syncs VLAN databases across switches. Modes include Server, Client, and Transparent. supports primary servers and extended VLAN ranges.
Spanning Tree Protocol (STP)
() prevents Layer 2 loops by blocking redundant paths. Components include Bridge Protocol Data Units () and the Bridge ID ().
The Spanning Tree Process
- Elect Root Bridge: Lowest Bridge Priority wins (). In a tie, the lowest MAC address wins.
- Elect Root Ports (): The port on a non-root switch with the lowest root path cost.
- Elect Designated Ports (): The port on a segment with the lowest cost to the root. All ports on the Root Bridge are .
- Blocking Ports: All other ports are placed in a blocking state to break loops.
Rapid STP (RSTP)
() provides faster convergence ( vs ). Port states are simplified to Discarding, Learning, and Forwarding.
- : Transitions access ports immediately to forwarding.
- : Disables a port if it receives a , preventing unauthorized switches from joining.
EtherChannel
Bundles up to into a single logical channel for increased bandwidth and redundancy.
Protocols and Modes
- (): Active and Passive modes.
- (Cisco): Desirable and Auto modes.
- Static: Mode set to
on(must beonat both ends).
IPv4 Addressing and Subnetting
IPv4 addresses are values often shown in Dotted Decimal Notation ().
Classful Addressing
- Class A: ( mask).
- Class B: ( mask).
- Class C: ( mask).
- Class D: ().
- Class E: ().
Subnetting Formulas
- Number of Subnets: , where .
- Usable Hosts per Subnet: , where .
IPv4 Routing
Routers forward packets based on the destination IP using the Routing Table.
Route Selection Logic
- Longest Prefix Match: The most specific route (highest prefix length) is chosen first.
- Administrative Distance (): Reliability of the route source. Lower is better.
- Connected:
- Static:
- Summary:
- :
- :
- Metric: Protocol-specific value (e.g., cost, hop count).
Static Routes
Defined manually. A "floating static route" has a higher than the dynamic protocol and acts as a backup.
- Standard:
ip route <network> <mask> <next-hop> - Default:
ip route 0.0.0.0 0.0.0.0 <next-hop>
OSPF (Open Shortest Path First)
is a Link-State routing protocol that uses the Shortest Path First () algorithm. It builds a Link-State Database () through Link-State Advertisements ().
Concepts
- Areas: Multi-area design requires Area 0 (Backbone). All other areas must connect to Area 0.
- Router ID (): A unique value identifying the router.
- : Designated and Backup Designated Routers are elected on multi-access (Ethernet) segments to reduce flooding.
- Neighbor States: Down, Init, 2-Way, Exstart, Exchange, Loading, Full.
- Cost Calculation:
IPv6 Fundamentals
IPv6 addresses are long, represented by eight quartets of four hex digits.
Address Types
- Global Unicast: Publicly routable (starts with or ).
- Unique Local: Private range ().
- Link-Local: Non-routable, used for local communications ().
- Multicast: ().
- Loopback: ().
Neighbor Discovery Protocol (NDP)
Replaces in IPv6. Functions include Neighbor Solicitation (), Neighbor Advertisement (), Router Solicitation (), and Router Advertisement ().
Interface ID Generation
- Take the MAC address.
- Insert
FFFEin the middle. - Flip the (inverted bit).
Wireless LANs (WLANs)
Wireless communication uses half-duplex radio waves over and frequency bands.
Terminology
- : MAC address of the Access Point () radio.
- : Service Set Identifier (human-readable name).
- : Wireless LAN Controller used for centralized management.
- : Tunneling protocol for communication between Lightweight APs () and ().
Security Standards
- : Uses encryption.
- : Uses and Simultaneous Authentication of Equals ().
- : Extensible Authentication Protocol used for Enterprise authentication (requires a server).
Security Services and ACLs
Access Control Lists (ACLs)
- Standard: Filters based on source IP only (, ).
- Extended: Filters based on source/destination IP, protocol, and port (, ).
- Implicit Deny: Every ends with an invisible
deny anystatement.
Device Hardening and Port Security
- Port Security Modes:
shutdown: Disables port (default).restrict: Drops traffic, logs violation.protect: Drops traffic silently.
- : Prevents rogue DHCP servers by labeling ports as trusted or untrusted.
- (Dynamic ARP Inspection): Mitigates ARP poisoning using the DHCP Snooping binding table.
IP Services
NAT (Network Address Translation)
- Static: mapping.
- Dynamic: Uses a pool of addresses.
- (Port Address Translation / Overload): Maps many internal addresses to a single public IP using ports.
Quality of Service (QoS)
- Classification & Marking: Uses Differentiated Services Code Point () (, ) or Class of Service () (, ).
- Queueing: (Low Latency Queueing) provides a priority queue for real-time voice ().
- Shaping vs. Policing: Shaping buffers excess traffic; Policing drops it.
FHRP (First Hop Redundancy Protocols)
Redundancy for default gateways.
- (Cisco Proprietary): Active and Standby routers share a Virtual IP/MAC.
- : Open standard similar to .
- : Provides per-host load balancing.
Network Architecture and Cloud
Design Models
- Three-Tier: Core, Distribution, Access.
- Two-Tier (Collapsed Core): Core and Distribution functions are combined.
- (): Delivers power over Ethernet cabling up to .
Cloud and Virtualization
Services models include Software as a Service (), Platform as a Service (), and Infrastructure as a Service (). Hypervisors manage Virtual Machines () that share physical server hardware.
Network Automation
Automation moves from manual CLI configuration to programmatic control.
Planes of Operation
- Management Plane: Configuration and monitoring (, , ).
- Control Plane: Routing logic and intelligence (, ).
- Data Plane: High-speed forwarding ().
Controllers and Tools
- (Software-Defined Access): Cisco's campus fabric solution using and .
- : Data serialization format used in .
- Configuration Management:
- : Push-based, agentless, uses YAML Playbooks.
- : Pull-based, uses agents and Manifests.
- : Pull-based, uses agents and Recipes.
Questions & Discussion
Question: What is the difference between a static route with a next-hop IP and one with an outbound interface? Response: The first option is preferred as it avoids unnecessary encapsulation issues on multi-access links, but the second option is useful when the next-hop IP address is dynamic (e.g., provided via DHCP).
Question: Why use a loopback interface for NTP or OSPF? Response: Loopback interfaces are virtual and never go down unless manually shut. They provide a stable IP address for management and routing even if a specific physical link fails.