CCNA Interview Study Guide (Detailed Version)
CCNA Interview Study Guide (Detailed Version)
1. Networking Basics
What is Networking?
• A network connects multiple devices to share data and resources.
• Uses wired (Ethernet, Fiber) or wireless (Wi-Fi, Bluetooth, Infrared)
technologies.
2. OSI Model
Subnetting Example
• IP Address: 192.168.1.0/26
• Subnet Mask: 255.255.255.192
• Usable Hosts: 2^6 - 2 = 62
⸻
⸻
Switching Concepts
• MAC Address Table (CAM Table) – Used by switches to forward frames.
• VLAN (Virtual LANs) – Separates network into logical groups for security.
• STP (Spanning Tree Protocol) – Prevents network loops.
Troubleshooting Commands
Command Function
ping <IP> Tests network connectivity.
traceroute <IP> Shows the path to the
destination.
show ip route Displays routing table.
show interfaces Checks interface status.
debug ip eigrp Troubleshoots EIGRP issues.
Router> enable
Router# configure terminal
Router(config)# hostname MyRouter
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config)# exit
Router# write memory
VLAN Configuration
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name HR_Department
Switch(config)# interface FastEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# no shutdown
Switch(config)# exit
Switch# write memory
EIGRP Configuration
OSPF Configuration
Basic Questions
1. What is the difference between TCP and UDP?
• TCP: Connection-oriented, reliable (e.g., HTTP, FTP).
• UDP: Connectionless, faster but unreliable (e.g., VoIP, DNS).
2. What is VLAN and why is it used?
• VLAN (Virtual LAN) separates a physical network into multiple logical
networks for security and efficiency.
3. What are the functions of a router?
• Directs traffic between different networks based on IP addresses.
• Uses Routing Tables to forward packets efficiently.
⸻
Table of Contents
1. Networking Basics
2. Network Topologies
3. OSI Model (With Real-World Examples)
4. TCP/IP Model
5. IP Addressing & Subnetting
6. Routing & Switching
7. Network Security (Firewalls, VPNs, ACLs, NAT, Port Security)
8. WAN Technologies (MPLS, Frame Relay, PPP, HDLC, Leased Lines)
9. Wireless Networking (Wi-Fi, Security, Authentication Methods)
10. Network Troubleshooting & Commands
11. Practical Labs (Cisco Router & Switch Configurations)
12. Interview Questions with Answers
1. Networking Basics
What is Networking?
• Networking is the process of connecting two or more devices (computers,
routers, switches) to share resources, such as files, internet, and printers.
• It involves wired (Ethernet, Fiber Optics) or wireless (Wi-Fi, Bluetooth, 4G/
5G) communication.
Types of Networks
Network Type Description Range
PAN (Personal Connects personal 1 - 10 meters
Area Network) devices (e.g.,
Bluetooth,
Infrared, AirDrop).
LAN (Local Area Connects devices 10m - 2 km
Network) in a small area like
homes, offices, or
schools.
CAN (Campus Connects multiple 1 - 5 km
Area Network) LANs in a campus,
university, or
corporate
environment.
MAN Covers a city using 5 - 50 km
(Metropolitan Area Fiber, Metro
Network) Ethernet.
WAN (Wide Area Covers large 50+ km
Network) geographical
areas, like the
areas, like the
internet.
Device Function
Router Directs traffic between
different networks (Layer 3).
Switch Connects multiple devices
within a LAN (Layer 2).
Hub Broadcasts data to all
devices (outdated, not
efficient).
Modem Converts digital signals to
analog for internet access.
Firewall Protects networks by
filtering traffic (security
device).
2. Network Topologies
The OSI Model is a 7-layer model that defines how data travels over a network.
4. TCP/IP Model
Types of IP Addresses
Type Description
Public IP Used on the Internet,
assigned by ISPs (e.g.,
8.8.8.8 - Google DNS).
Private IP Used inside local networks
(e.g., 192.168.1.1, 10.0.0.1).
Static IP Manually assigned; remains
fixed.
Dynamic IP Assigned automatically via
DHCP; changes over time.
Subnetting Basics
• Subnetting divides a large network into smaller sub-networks (subnets).
• Helps in efficient IP management and reduces network congestion.
• Formula to calculate subnets:
Formula to calculate usable hosts per subnet: 2^h - 2 (where h = number of host bits,
subtracting 2 for network & broadcast addresses)
Subnetting Example
Given:
• IP Address: 192.168.1.0/26
• Subnet Mask: 255.255.255.192
• Usable Hosts: 2^6 - 2 = 62 (since 6 bits are used for host addresses)
⸻
6. Routing & Switching
Routing is the process of directing data packets between networks, while switching is used to
forward frames within the same network.
Types of Routing
Type Description
Static Routing Manually configured routes
(used for small networks).
Dynamic Routing Uses protocols like RIP,
OSPF, EIGRP, BGP to
discover the best path.
Default Routing Routes all unknown
destinations to a single
default route.
7. Network Security
Security is essential in networking to protect against unauthorized access, malware, and attacks.
Feature Function
Firewall Filters incoming & outgoing
traffic based on security
rules.
Access Control List (ACL) Controls network access
based on IP, MAC, port
numbers.
NAT (Network Address Converts private IPs to
Translation) public IPs for internet
access.
Port Security Restricts unauthorized MAC
addresses on a switch port.
VPN (Virtual Private Secures data transmission
Network) over public networks.
8. WAN Technologies
A WAN (Wide Area Network) connects multiple remote locations using various technologies.
Technology Description
MPLS High-speed packet
forwarding technology used
by ISPs.
Frame Relay Legacy WAN technology
using virtual circuits.
PPP (Point-to-Point Used for direct router-to-
Protocol) router connections.
HDLC (High-Level Data Link Default Cisco WAN
Control) encapsulation method.
PPP Configuration
9. Wireless Networking
Wi-Fi Standards
Command Function
ping <IP> Tests network connectivity.
traceroute <IP> Shows the path to the
destination.
show ip route Displays routing table.
show interfaces Checks interface status.
Router> enable
Router# configure terminal
Router(config)# hostname MyRouter
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip address 192.168.1.1 255.255.255.0
Router(config-if)# no shutdown
Router(config)# exit
Router# write memory
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name HR_Department
Switch(config)# interface FastEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config)# exit
Switch# write memory
Types of VLANs
Switch> enable
Switch# configure terminal
Switch(config)# vlan 10
Switch(config-vlan)# name HR_Department
Switch(config-vlan)# exit
Switch(config)# interface FastEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan 10
Switch(config-if)# no shutdown
Switch(config)# exit
Switch# write memory
Method Description
Router-on-a-Stick A single router interface
connects to multiple VLANs
using sub-interfaces.
Layer 3 Switch A multilayer switch (MLS)
performs routing without
needing an external router.
Router-on-a-Stick Configuration
Router> enable
Router# configure terminal
Router(config)# interface GigabitEthernet0/0
Router(config-if)# no shutdown
Router(config)# interface GigabitEthernet0/0.10
Router(config-subif)# encapsulation dot1Q 10
Router(config-subif)# ip address 192.168.10.1 255.255.255.0
Router(config-subif)# exit
Router(config)# interface GigabitEthernet0/0.20
Router(config-subif)# encapsulation dot1Q 20
Router(config-subif)# ip address 192.168.20.1 255.255.255.0
Router(config-subif)# exit
Router# write memory
STP prevents switching loops, which occur when multiple redundant links exist in a network.
State Function
Blocking Does not forward traffic;
listens for BPDUs.
Listening Prepares to forward traffic
but does not learn MAC
addresses.
Learning Learns MAC addresses but
does not forward traffic.
Forwarding Fully operational and
forwarding traffic.
Switch> enable
Switch# configure terminal
Switch(config)# spanning-tree mode pvst
Switch(config)# spanning-tree vlan 10 root primary
Switch(config)# exit
Switch# write memory
This enables STP and makes the switch the primary root bridge for VLAN 10.
15. EtherChannel
EtherChannel groups multiple physical links into one logical link, increasing bandwidth and
redundancy.
Benefits of EtherChannel
EtherChannel Modes
Switch> enable
Switch# configure terminal
Switch(config)# interface range FastEthernet0/1 - 2
Switch(config-if-range)# channel-group 1 mode active
Switch(config-if-range)# exit
Switch# write memory
This groups F0/1 and F0/2 into an EtherChannel using LACP Active Mode.
Types of NAT
Type Function
Static NAT Maps one private IP to one
public IP.
Dynamic NAT Maps a range of private IPs
to a pool of public IPs.
PAT (Port Address Many private IPs share one
Translation) public IP (most common).
PAT Configuration
Router> enable
Router# configure terminal
Router(config)# access-list 1 permit 192.168.1.0 0.0.0.255
Router(config)# ip nat inside source list 1 interface GigabitEthernet0/0 overload
Router(config)# interface GigabitEthernet0/0
Router(config-if)# ip nat outside
Router(config-if)# exit
Router(config)# interface GigabitEthernet0/1
Router(config-if)# ip nat inside
Router(config-if)# exit
Router# write memory
This configures PAT (NAT Overload) so multiple devices can share a single public IP.
A VPN creates a secure, encrypted tunnel over the internet to protect data.
Types of VPNs
Basic Questions
1. What are the differences between TCP and UDP?
• TCP: Reliable, connection-oriented (HTTP, FTP).
• UDP: Unreliable, faster, connectionless (VoIP, DNS).
2. What is a VLAN and why is it used?
• VLAN divides a LAN into multiple logical networks for security and
efficiency.
3. What is the purpose of ARP (Address Resolution Protocol)?
• ARP maps IP addresses to MAC addresses.
Why IPv6?
Larger Address Space – Uses 128-bit addresses (IPv4 uses only 32-bit).
Better Performance – No need for NAT, supports direct end-to-end communication.
Improved Security – IPv6 natively supports IPsec encryption.
Efficient Routing – Uses simpler headers, reducing processing time.
IPv6 addresses are 128 bits long and written in hexadecimal notation:
2001:0db8:85a3:0000:0000:8a2e:0370:7334
SD-WAN improves WAN management by using software-based control over network traffic.
Benefits of SD-WAN
SD-WAN Components
Component Function
Orchestrator Central controller for traffic
policies.
vEdge Routers Virtual routers used at
branch locations.
Controller Manages network
configuration and
monitoring.
Tool Purpose
Python Used for scripting network
configurations.
Ansible Automates network device
provisioning.
Terraform Manages cloud networking
infrastructure.
import paramiko
router_ip = "192.168.1.1"
username = "admin"
password = "cisco"
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(router_ip, username=username, password=password)
ssh.close()
This script logs into a router via SSH and retrieves interface status.
Command Description
ping <IP> Checks connectivity to a
destination.
traceroute <IP> Shows the path taken by
packets.
show ip route Displays routing table.
debug ip ospf Shows OSPF
troubleshooting details.
Basic Questions
1. What is the purpose of NAT?
• NAT (Network Address Translation) converts private IPs to public IPs
for internet access.
2. What are the main differences between IPv4 and IPv6?
• IPv4: Uses 32-bit addresses, limited address space, requires NAT.
• IPv6: Uses 128-bit addresses, provides more addresses, no NAT
needed.
3. What is SD-WAN?
• Software-Defined WAN is a cloud-based WAN solution that uses
intelligent traffic routing.
Advanced Questions
4. What is the role of a Layer 3 switch?
• A Layer 3 switch performs both switching (Layer 2) and routing (Layer
3) functions.
5. How does OSPF determine the best route?
• OSPF uses the cost metric, which is based on link bandwidth.
Understand Key Concepts – Focus on OSI Model, Routing Protocols, VLANs, NAT, ACLs,
SD-WAN.
Use Packet Tracer – Cisco Packet Tracer is great for practice labs.
Practice Commands – Memorize essential troubleshooting & configuration commands.
Take Mock Tests – Practice with CCNA quizzes and simulations.