Page 1 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Computer Networks Lab — Exam Answer-Sheet Revision Guide Complete 10-Experiment Reference structured for Practical Exam Answer Sheets: Aim • Practical Theory • Topology • Procedure • Output & Result Exp. Experiment Aim (Verbatim as per Lab Manual) Key Exam Topics & Tools Exp – 1 Introduction to Networking Simulation Tools: Wireshark, Cisco Packet Tracer. Packet Tracer, Topologies, Devices, Modes Exp – 2 To understand the operation of TELNET by accessing the router in server room from a PC in IT office. TELNET (TCP 23), VTY 0–4, Enable Secret, SSH Exp – 3 To implement an IP Addressing Scheme and Subnetting in small networks using Cisco Packet Tracer. IPv4 Classes, CIDR /26 Subnetting (4 Subnets) Exp – 4 To implement the static routing using Cisco Packet Tracer. Static vs Dynamic Routing, Next- Hop Routes Exp – 5 To implement the DHCP onto the Network Topology using Cisco Packet Tracer. DORA Process, DHCP Server Pool Allocation Exp – 6 To implement the DNS, Email Services in the Network using Cisco Packet Tracer. DNS Hierarchy, A-Record, SMTP & POP3 Mail Exp – 7 To implement the Dynamic Routing Protocols: RIP, IGRP using Cisco Packet Tracer. Bellman-Ford, RIPv2 (Hop Count), IGRP Syntax Exp – 8 To construct multiple router networks and implement the EIGRP Protocol. EIGRP (AS 100), DUAL, FD/RD, Failover Exp – 9 To implement the Network Address Resolution (NAT) using Cisco Packet Tracer. RFC 1918, Static NAT, PAT (NAT Overload) Exp – 10 Conducting a Network Capture and Monitoring with Wireshark Simulation Tool. Promiscuous Capture, ICMP, DNS, TCP, HTTP EXPERIMENT – 1 1. Aim Aim: Introduction to Networking Simulation Tools: Wireshark, Cisco Packet Tracer. 2. Practical Theory A. Cisco Packet Tracer: A network simulation tool developed by Cisco that allows users to design, configure, and simulate networks without physical hardware. Purpose & Features: Supports routers, switches, PCs, servers, and IoT devices; offers Realtime Mode (live configuration and testing) and Simulation Mode (step-by-step packet/PDU inspection); supports TCP/IP, DHCP, DNS, RIP, OSPF, EIGRP, NAT, and HTTP. Page 2 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Advantages & Limitations: Beginner-friendly, safe, and cost-effective virtual lab environment; however, not all Cisco IOS commands are supported and it cannot replace real hardware performance benchmarks. Workspace Components: Menu Bar (File, Edit, Options, View, Tools), Main Tool Bar, Logical/Physical Workspace, Device-Type Selection Box, Device-Specific Selection Box, and Realtime/Simulation Toggle Bar. B. Network Topology: The physical or logical arrangement of computers, devices, and communication links in a network. Physical Topology describes actual cabling and hardware placement, whereas Logical Topology describes how data flows between devices. Bus Topology: All devices connect to a single backbone cable; simple and inexpensive, but a backbone break disables the whole network. Star Topology: All nodes connect to a central Hub or Switch; easy to manage and isolate single-node failures. Ring Topology: Each device connects to two neighbors forming a closed loop; data travels unidirectionally or bidirectionally around the ring. Mesh Topology: Devices connect to multiple or all other nodes (N(N − 1)/2 links for full mesh); provides high redundancy but high cabling cost. Tree & Hybrid Topologies: Tree combines Star networks onto a Bus backbone hierarchically; Hybrid combines two or more distinct topologies (e.g., Star-Mesh). C. Core Networking Devices & OSI Layers: Device OSI Layer Function & Addressing Used Hub Physical Layer (Layer 1) Basic multi-port repeater; broadcasts incoming bits from one port to all other ports without checking addresses (single collision domain). Switch Data Link Layer (Layer 2) Connects devices in a LAN and forwards frames selectively to the destination port using MAC addresses (separate collision domain per port). Router Network Layer (Layer 3) Connects different networks (LANs/WANs) and determines the best path for packets using IP addresses and routing tables. Access Point (AP) Data Link Layer (Layer 2) Provides Wi-Fi wireless connectivity and bridges wireless clients (laptops, smartphones) to a wired switch/router network. Modem & Firewall Layer 1 / Layer 3–7 Modem (Modulator-Demodulator) converts digital data to analog signals for ISP access. Firewall filters traffic based on security rules. Server & End Devices Application / Host Layers Server provides network services (WEB, DNS, DHCP, EMAIL). End Devices (PCs, Laptops, Network Printers) originate and consume data. Page 3 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 3. Topology (a) Basic Switch LAN Project (.pkt) Switch0 (2960) PC-PT PC0 PC-PT PC1 (b) Block-I MAIT Hierarchical Lab Topology Lab Switch A Lab Switch B Lab 1 PCs (PC0–PC7) Lab 2 PCs (PC8–PC15) Figure 1.1: Basic Switch LAN Topology and Block-I MAIT Departmental Star-Tree Topology 4. Procedure 1. Install & Authenticate Cisco Packet Tracer: Log in to Cisco Networking Academy (NetAcad), download the 64-bit Packet Tracer installer ( CiscoPacketTracer_x.x.x_setup.exe ), accept the license agreement, keep default directory C:\Program Files\Cisco Packet Tracer , finish installation, and authenticate using NetAcad credentials. 2. Create a New Project: Open Packet Tracer and click File → New to open a blank logical workspace. 3. Place Networking & End Devices: From the bottom-left Device-Type Selection Box, select Network Devices → Switches and drag a 2960-24TT switch onto the workspace. Next, select End Devices → End Devices and drag two PCs ( PC0 , PC1 ) into the workspace (or multiple switches and PC clusters for the Block-I MAIT sample topology). 4. Connect Devices: Select Connections → Copper Straight-Through (or Automatically Choose Connection Type ) and connect PC0 FastEthernet0 to Switch0 FastEthernet0/1 and PC1 FastEthernet0 to Switch0 FastEthernet0/2 5. Save Project & Inspect Modes: Click File → Save As and save as My_First_Packet_Tracer_Project.pkt . Switch between Realtime Mode and Simulation Mode (bottom-right panel) to verify event list filters. 5. Output & Result Verification Checklist & Output Observation 1. Application Launch: Cisco Packet Tracer opens without errors and authenticates via NetAcad login. 2. Workspace Verification: Menu Bar, Tool Bar, Logical/Physical Workspace, and Device Selection Box are active. 3. Link Status: Green link lights (triangles) appear on Switch0 (Fa0/1, Fa0/2) and PC0/PC1 (Fa0) after STP convergence. 4. Saved File Output: Project successfully saved as My_First_Packet_Tracer_Project.pkt and labnetwork.pkt. Result: The study and installation of networking simulation tools (Cisco Packet Tracer and Wireshark), network topologies, and networking devices were completed, and a sample network topology was constructed and saved in Cisco Packet Tracer. Page 4 of 27 CN Lab Exam Revision Guide (Experiments 1–10) EXPERIMENT – 2 1. Aim Aim: To understand the operation of TELNET by accessing the router in server room from a PC in IT office. 2. Practical Theory A. Remote Access & TELNET Protocol: In an organization, routers and switches are kept in a locked Server Room. TELNET (TELecommunication NETwork) , defined in RFC 854 , is an application-layer protocol providing a bidirectional, text-based virtual terminal connection over TCP Port 23 Working Steps of a TELNET Session: (1) Client sets up a TCP connection to Port 23 of the router using the TCP 3-way handshake ( SYN , SYN-ACK , ACK ). (2) Router allocates a free VTY (Virtual Terminal) line (lines 0 to 4 allow 5 simultaneous sessions) and displays the MOTD banner. (3) Router prompts for the VTY password ( User Access Verification ). (4) User enters User EXEC mode ( Router> ) and uses the enable secret password to enter Privileged EXEC mode ( Router# ). (5) Commands are executed remotely; typing exit closes the TCP session. Security Rule: A Cisco router refuses TELNET connections unless a VTY password and login are configured ( "Password required, but none set" ), and blocks privileged mode unless enable secret is configured. Feature TELNET SSH (Secure Shell) Transport & Port TCP Port 23 TCP Port 22 Encryption None — data and passwords sent in plain text All traffic and credentials are strongly encrypted Authentication & Use Password only; used in labs / trusted internal networks Password or Public Key; used in production networks 3. Topology & IP Addressing Scheme SERVER ROOM LAN (192.168.1.0/24) IT OFFICE LAN (192.168.2.0/24) SR-Router (2911) Gi0/0: 192.168.1.1 Gi0/1: 192.168.2.1 SR-Switch (2960) IT-Switch (2960) File-Server 192.168.1.10 IT-Admin-PC 192.168.2.2 IT-PC2 192.168.2.3 Figure 2.1: TELNET Remote Management Topology connecting Server Room LAN and IT Office LAN Device Location Interface IP Address Subnet Mask Default Gateway SR-Router Server Room Gi0/0 192.168.1.1 255.255.255.0 — Page 5 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Device Location Interface IP Address Subnet Mask Default Gateway SR-Router Server Room Gi0/1 192.168.2.1 255.255.255.0 — File-Server Server Room Fa0 192.168.1.10 255.255.255.0 192.168.1.1 IT-Admin-PC IT Office Fa0 192.168.2.2 255.255.255.0 192.168.2.1 IT-PC2 IT Office Fa0 192.168.2.3 255.255.255.0 192.168.2.1 4. Procedure & Configuration Commands 1. Construct Topology & Assign Static IPs to PCs: Connect 1 Router ( 2911 ), 2 Switches ( 2960-24TT ), 1 Server, and 2 PCs. Configure static IPv4 addresses, subnet masks, and default gateways on File-Server , IT-Admin-PC , and IT-PC2 as per the addressing table. 2. Configure Router Interfaces & Test Pre-VTY TELNET: Assign IP addresses to Gi0/0 and Gi0/1 on SR-Router and bring them up. Test ping 192.168.1.1 (succeeds) and telnet 192.168.1.1 (immediately closes before VTY configuration). 3. Configure Enable Secret, Banner, and VTY Lines (0–4) on SR-Router: SR-Router CLI — Interface & TELNET (VTY) Configuration Commands Router>enable Router#configure terminal Router(config)#hostname SR-Router SR-Router(config)#interface gigabitEthernet0/0 SR-Router(config-if)#ip address 192.168.1.1 255.255.255.0 SR-Router(config-if)#no shutdown SR-Router(config-if)#interface gigabitEthernet0/1 SR-Router(config-if)#ip address 192.168.2.1 255.255.255.0 SR-Router(config-if)#no shutdown SR-Router(config-if)#exit SR-Router(config)#enable secret class123 SR-Router(config)#banner motd #Authorized Access Only - Server Room Router# SR-Router(config)#line vty 0 4 SR-Router(config-line)#password telnet123 SR-Router(config-line)#login SR-Router(config-line)#transport input telnet SR-Router(config-line)#exec-timeout 10 0 SR-Router(config-line)#exit SR-Router(config)#service password-encryption SR-Router(config)#end SR-Router#copy running-config startup-config 4. Access & Configure Router Remotely from IT-Admin-PC: Open IT-Admin-PC → Desktop → Command Prompt , run telnet 192.168.1.1 , log in with VTY password telnet123 , escalate using enable and secret class123 , verify with show users , and remotely add interface descriptions. 5. Verify Wrong-Password Rejection & Plain-Text PDU in Simulation Mode: From IT-PC2 , enter three wrong passwords to verify % Bad passwords disconnection. In Simulation Mode, filter for TCP and TELNET to observe the 3-way handshake and plain-text password exposure. Page 6 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 5. Output, Observation Table & Result IT-Admin-PC Command Prompt — Remote TELNET Session & Configuration Output C:\>telnet 192.168.1.1 Trying 192.168.1.1 ...Open Authorized Access Only - Server Room Router User Access Verification Password: [telnet123] SR-Router>enable Password: [class123] SR-Router#show users Line User Host(s) Idle Location 0 con 0 idle 00:04:37 * 2 vty 0 idle 00:00:00 192.168.2.2 SR-Router#configure terminal SR-Router(config)#interface gigabitEthernet0/0 SR-Router(config-if)#description Link to Server Room Switch SR-Router(config-if)#interface gigabitEthernet0/1 SR-Router(config-if)#description Link to IT Office Switch SR-Router(config-if)#end %SYS-5-CONFIG_I: Configured from console by vty0 (192.168.2.2) SR-Router#exit [Connection to 192.168.1.1 closed by foreign host] Test Source Destination Condition Result Ping IT-Admin- PC 192.168.1.1 Before VTY config Successful (0% loss) TELNET IT-Admin- PC 192.168.1.1 Before VTY config Connection closed by foreign host TELNET IT-Admin- PC 192.168.1.1 Correct password ( telnet123 ) Login successful ( vty 0 active) Remote config IT-Admin- PC SR-Router Privileged mode ( class123 ) Successful via vty0 (192.168.2.2) TELNET IT-PC2 192.168.1.1 Wrong password (3 attempts) Access denied ( % Bad passwords ) Result: TELNET was successfully configured on the Server Room router by setting the enable secret and VTY line passwords. The router was accessed and configured remotely from the IT Office PC, and Simulation Mode confirmed that TELNET transmits passwords in plain text over TCP Port 23. Page 7 of 27 CN Lab Exam Revision Guide (Experiments 1–10) EXPERIMENT – 3 1. Aim Aim: To implement an IP Addressing Scheme and Subnetting in small networks using Cisco Packet Tracer. 2. Practical Theory A. IPv4 Addressing & Classes: An IPv4 address is a 32-bit logical address written in dotted-decimal notation (four octets from 0 to 255 ) consisting of a Network Portion and a Host Portion separated by a 32-bit Subnet Mask Class First Octet Range Default Subnet Mask (CIDR) Network / Host Bits RFC 1918 Private Address Range Class A 1 – 126 255.0.0.0 (/8) 8 / 24 10.0.0.0 – 10.255.255.255 Class B 128 – 191 255.255.0.0 (/16) 16 / 16 172.16.0.0 – 172.31.255.255 Class C 192 – 223 255.255.255.0 (/24) 24 / 8 192.168.0.0 – 192.168.255.255 Class D / E 224 – 239 / 240 – 255 — Multicast / Experimental — B. Subnetting Formulas & Calculation for 192.168.10.0/24 (into 3+ Department LANs): Bits Borrowed (n): To obtain at least 3 subnets, 2 n ≥ 3 ⇒ n = 2 bits borrowed from the host octet, producing 2 2 = 4 subnets. New Subnet Mask & CIDR Prefix: /24 + 2 = /26, which equals 11111111.11111111.11111111.11000000 = 255.255.255.192 Usable Hosts per Subnet: Remaining host bits h = 8 − 2 = 6 ⇒ 2 6 − 2 = 62 usable host IPs per subnet (2 subtracted for Network ID and Broadcast Address). Block Size (Increment): 256 − 192 = 64 (subnets start at multiples of 64: .0 , .64 , .128 , .192 ). Subnet Network Address Usable Host IP Range Broadcast Address Assigned Interface Subnet A 192.168.10.0/26 192.168.10.1 – 192.168.10.62 192.168.10.63 LAN on Router0 Gi0/0 Subnet B 192.168.10.64/26 192.168.10.65 – 192.168.10.126 192.168.10.127 LAN on Router0 Gi0/1 Subnet C 192.168.10.128/26 192.168.10.129 – 192.168.10.190 192.168.10.191 LAN on Router0 Gi0/2 Subnet D 192.168.10.192/26 192.168.10.193 – 192.168.10.254 192.168.10.255 Reserved for Future Expansion Page 8 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 3. Topology & IP Addressing Scheme Router0 (Cisco 2911) Gi0/0 (.1/26) Gi0/1 (.65/26) Gi0/2 (.129/26) Switch0 (Subnet A) PC0 192.168.10.2 PC1 192.168.10.3 192.168.10.0/26 Switch1 (Subnet B) PC2 192.168.10.66 PC3 192.168.10.67 192.168.10.64/26 Switch2 (Subnet C) PC4 192.168.10.130 PC5 192.168.10.131 192.168.10.128/26 Figure 3.1: Three /26 Subnets Connected to Router0 (2911) with Mask 255.255.255.192 Device Interface IP Address Subnet Mask Default Gateway Router0 Gi0/0 (Subnet A) / Gi0/1 (B) / Gi0/2 (C) 192.168.10.1 / .65 / .129 255.255.255.192 — PC0 / PC1 FastEthernet0 (Subnet A) 192.168.10.2 / 192.168.10.3 255.255.255.192 192.168.10.1 PC2 / PC3 FastEthernet0 (Subnet B) 192.168.10.66 / 192.168.10.67 255.255.255.192 192.168.10.65 PC4 / PC5 FastEthernet0 (Subnet C) 192.168.10.130 / 192.168.10.131 255.255.255.192 192.168.10.129 4. Procedure & Configuration Commands 1. Build Network Topology: Place 1 Router ( 2911 ), 3 Switches ( 2960-24TT ), and 6 PCs ( PC0 – PC5 ), connecting Gi0/0 , Gi0/1 , and Gi0/2 to Switch0 , Switch1 , and Switch2 respectively. 2. Configure Router0 Interfaces with /26 Subnet Gateways: Router0 CLI — /26 Subnet Interface Configuration Router>enable Router#configure terminal Router(config)#interface gigabitEthernet0/0 Router(config-if)#description Subnet-A LAN Router(config-if)#ip address 192.168.10.1 255.255.255.192 Router(config-if)#no shutdown Router(config-if)#interface gigabitEthernet0/1 Router(config-if)#description Subnet-B LAN Router(config-if)#ip address 192.168.10.65 255.255.255.192 Router(config-if)#no shutdown Router(config-if)#interface gigabitEthernet0/2 Router(config-if)#description Subnet-C LAN Router(config-if)#ip address 192.168.10.129 255.255.255.192 Router(config-if)#no shutdown Router(config-if)#end Router#copy running-config startup-config Page 9 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 3. Configure Host PCs & Test Connectivity: Open Desktop → IP Configuration on PC0 through PC5 and enter the static IP, mask 255.255.255.192 , and respective subnet default gateway. Verify the routing table on Router0 using show ip route and run intra-subnet ( PC0 → PC1 ) and inter-subnet ( PC0 → PC2 , PC0 → PC4 ) pings. 5. Output, Observation Table & Result Router0 Verification & PC0 Ping Output (Intra-Subnet vs Inter-Subnet) Router#show ip route 192.168.10.0/24 is variably subnetted, 6 subnets, 2 masks C 192.168.10.0/26 is directly connected, GigabitEthernet0/0 C 192.168.10.64/26 is directly connected, GigabitEthernet0/1 C 192.168.10.128/26 is directly connected, GigabitEthernet0/2 C:\>ping 192.168.10.3 (Same Subnet A: PC0 -> PC1) Reply from 192.168.10.3: bytes=32 time<1ms TTL=128 (Sent = 4, Received = 4, Lost = 0) C:\>ping 192.168.10.66 (Different Subnet A -> B: PC0 -> PC2) Request timed out. (First packet ARP resolution) Reply from 192.168.10.66: bytes=32 time<1ms TTL=127 (1 router hop decrements TTL from 128 to 127) Subnet Network ID Mask Default Gateway Hosts Used / Available Ping Verification A 192.168.10.0 /26 (255.255.255.192 ) 192.168.10.1 2 / 62 PC0 → PC1: Successful (TTL=128) B 192.168.10.64 /26 (255.255.255.192 ) 192.168.10.65 2 / 62 PC0 → PC2: Successful (TTL=127) C 192.168.10.128 /26 (255.255.255.192 ) 192.168.10.129 2 / 62 PC0 → PC4: Successful (TTL=127) D 192.168.10.192 /26 (255.255.255.192 ) — 0 / 62 Reserved for future expansion Result: The network 192.168.10.0/24 was divided into four /26 subnets by borrowing 2 host bits (62 usable hosts per subnet). Three subnets were implemented in Cisco Packet Tracer and both intra-subnet and inter-subnet communication were verified. Page 10 of 27 CN Lab Exam Revision Guide (Experiments 1–10) EXPERIMENT – 4 1. Aim Aim: To implement the static routing using Cisco Packet Tracer. 2. Practical Theory A. Routing & Static vs Dynamic Routing: Routing is the Layer 3 process of selecting a path to forward packets from a source network to a destination network using a Routing Table . Each route specifies a Destination Network , Subnet Mask , and Next-Hop IP Address (or exit interface). Static Routing: Routes are manually configured by a network administrator ( ip route <dest- network> <mask> <next-hop> , Administrative Distance = 1 ). Advantages: Zero CPU/bandwidth routing overhead, predictable path selection, and high security. Limitations: Does not scale to large networks and cannot automatically reroute around link failures. Dynamic Routing: Routers automatically discover networks and update routing tables in real time using protocols like RIP, OSPF, or EIGRP; adapts automatically to topology changes at the cost of CPU, memory, and bandwidth. 3. Topology & IP Addressing Scheme Router0 (ISR4331) Router1 (ISR4331) 192.168.1.0/24 Gi0/0/0 (.1) ↔ Gi0/0/0 (.2) Gi0/0/1: 192.168.2.1 Gi0/0/1: 192.168.3.1 Switch1 (2960-24TT) Switch2 (2960-24TT) PC2 (LAN 1) 192.168.2.2/24 PC3 (LAN 1) 192.168.2.3/24 PC2(1) (LAN 2) 192.168.3.2/24 PC3(1) (LAN 2) 192.168.3.3/24 Figure 4.1: Two-Router Static Routing Topology Connecting LAN 1 (192.168.2.0/24) and LAN 2 (192.168.3.0/24) Device Interface IP Address Subnet Mask Default Gateway / Static Route Router0 Gi0/0/0 (Inter-router) / Gi0/0/1 (LAN 1) 192.168.1.1 / 192.168.2.1 255.255.255.0 Static Route: 192.168.3.0/24 via 192.168.1.2 Router1 Gi0/0/0 (Inter-router) / Gi0/0/1 (LAN 2) 192.168.1.2 / 192.168.3.1 255.255.255.0 Static Route: 192.168.2.0/24 via 192.168.1.1 PC2 / PC3 FastEthernet0 (LAN 1) 192.168.2.2 / 192.168.2.3 255.255.255.0 192.168.2.1 PC2(1) / PC3(1) FastEthernet0 (LAN 2) 192.168.3.2 / 192.168.3.3 255.255.255.0 192.168.3.1 Page 11 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 4. Procedure & Configuration Commands 1. Configure Router Interfaces & PCs: Connect two ISR4331 routers, two 2960-24TT switches, and four PCs. Configure interface IP addresses on Router0 and Router1 (via Config tab GUI or CLI) and turn Port Status On ( no shutdown ). Assign static IP addresses and default gateways to all four PCs. 2. Test Pre-Static-Routing Connectivity: Ping within the same LAN ( PC3 → PC2 and PC3(1) → PC2(1) ), which succeeds. Ping across LANs ( PC2 → PC2(1) at 192.168.3.2 ), which fails with Destination host unreachable because Router0 has no route to 192.168.3.0/24 3. Configure Static Routes on Both Routers (GUI: Config → Routing → Static or CLI): Router0 & Router1 CLI — Interface and Static Route Commands ! --- On Router0 --- Router0(config)#interface GigabitEthernet0/0/0 Router0(config-if)#ip address 192.168.1.1 255.255.255.0 Router0(config-if)#no shutdown Router0(config-if)#interface GigabitEthernet0/0/1 Router0(config-if)#ip address 192.168.2.1 255.255.255.0 Router0(config-if)#no shutdown Router0(config-if)#exit Router0(config)#ip route 192.168.3.0 255.255.255.0 192.168.1.2 ! --- On Router1 --- Router1(config)#interface GigabitEthernet0/0/0 Router1(config-if)#ip address 192.168.1.2 255.255.255.0 Router1(config-if)#no shutdown Router1(config-if)#interface GigabitEthernet0/0/1 Router1(config-if)#ip address 192.168.3.1 255.255.255.0 Router1(config-if)#no shutdown Router1(config-if)#exit Router1(config)#ip route 192.168.2.0 255.255.255.0 192.168.1.1 5. Output, Observation Table & Result PC2 Command Prompt — Ping Output Before and After Static Routing ! --- Before Static Routing (PC2 -> PC2(1)) --- C:\>ping 192.168.3.2 Reply from 192.168.2.1: Destination host unreachable. (Sent = 4, Received = 0, Lost = 4, 100% loss) ! --- After Static Routing (PC2 -> PC2(1)) --- C:\>ping 192.168.3.2 Reply from 192.168.3.2: bytes=32 time<1ms TTL=126 Reply from 192.168.3.2: bytes=32 time<1ms TTL=126 (Sent = 4, Received = 4, Lost = 0, 0% loss) Test Source Destination Before Static Routing After Static Routing Same LAN Test 1 PC3 (192.168.2.3) PC2 (192.168.2.2) Successful (TTL=128) Successful (TTL=128) Same LAN Test 2 PC3(1) (192.168.3.3) PC2(1) (192.168.3.2) Successful (TTL=128) Successful (TTL=128) Page 12 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Test Source Destination Before Static Routing After Static Routing Inter-LAN Test 1 PC2 (192.168.2.2) PC2(1) (192.168.3.2) Failed (Unreachable) Successful (TTL=126) Inter-LAN Test 2 PC3 (192.168.2.3) PC3(1) (192.168.3.3) Failed (Unreachable) Successful (TTL=126) Result: A network with two LANs connected through two routers was designed and configured with static routes in Cisco Packet Tracer, restoring end-to-end communication across the two networks. EXPERIMENT – 5 1. Aim Aim: To implement the DHCP onto the Network Topology using Cisco Packet Tracer. (To configure and implement Dynamic Host Configuration Protocol (DHCP) in a network topology using Cisco Packet Tracer and verify the automatic allocation of IP addresses to client devices.) 2. Practical Theory A. Dynamic Host Configuration Protocol (DHCP): An application-layer protocol (UDP ports 67/68) that automatically assigns an IP Address , Subnet Mask , Default Gateway , DNS Server , and Lease Time to client devices from a centralized DHCP Pool Working Mechanism — The 4-Step DORA Process: 1. DHCP Discover: Newly connected client broadcasts a DHCP Discover packet to locate an available DHCP server. 2. DHCP Offer: DHCP server selects an available IP from its pool and responds with a DHCP Offer containing the proposed IP, subnet mask, gateway, DNS server, and lease duration. 3. DHCP Request: Client broadcasts a DHCP Request message formally requesting the offered IP configuration. 4. DHCP Acknowledgement (ACK): Server confirms the allocation by sending a DHCP ACK message, finalizing the lease so the client can communicate on the network. Advantages & Concepts: Eliminates manual configuration errors, prevents duplicate IP conflicts, reuses leased addresses efficiently, and supports cross-subnet allocation via a DHCP Relay Agent ( ip helper- address ). Page 13 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 3. Topology Server0 (DHCP Server) Static IP: 192.168.1.1/24 Switch1 (2960-24TT) PC0 (DHCP) 192.168.1.2 PC1 (DHCP) 192.168.1.3 PC2 (DHCP) 192.168.1.4 PC3 (DHCP) 192.168.1.5 PC4 (DHCP) 192.168.1.6 PC5 (DHCP) 192.168.1.7 Figure 5.1: Star Topology with DHCP Server (192.168.1.1), Switch1 (2960-24TT), and 6 DHCP Client PCs 4. Procedure 1. Build Network Topology: Place 1 Server ( Server-PT Server0 ), 1 Switch ( 2960-24TT Switch1 ), and 6 Client PCs ( PC0 – PC5 ) in the workspace and connect all devices to Switch1 using Copper Straight-Through cables. 2. Configure Static IP on DHCP Server: Click Server0 → Desktop → IP Configuration , select Static , and set IPv4 Address = 192.168.1.1 , Subnet Mask = 255.255.255.0 , and Default Gateway = 192.168.1.1 3. Enable & Configure DHCP Pool on Server0: Open Server0 → Services → DHCP , turn Service On , set Pool Name = serverPool , Default Gateway = 192.168.1.1 , DNS Server = 192.168.1.1 , Start IP Address = 192.168.1.2 (or 192.168.1.10 ), Subnet Mask = 255.255.255.0 , Maximum Number of Users = 100 , and click Save 4. Request Dynamic IPs on Client PCs: Open each PC ( PC0 to PC5 ) → Desktop → IP Configuration and switch the radio button from Static to DHCP . Verify that "DHCP request successful" appears and each PC receives an IP address from the pool. 5. Output, Observation Table & Result DHCP Server Pool Configuration & Client Lease Output Server0 DHCP Pool (serverPool): Service = ON | Start IP = 192.168.1.2 | Mask = 255.255.255.0 | Gateway = 192.168.1.1 Client Status (PC0 -> PC5): "DHCP request successful." (IPv4 Address, Mask, Gateway, and DNS populated automatically) S. No. Device Assigned IP Address Subnet Mask Default Gateway Assignment Mode 1 Server0 192.168.1.1 255.255.255.0 192.168.1.1 Static 2 PC0 192.168.1.2 255.255.255.0 192.168.1.1 DHCP (Automatic) 3 PC1 192.168.1.3 255.255.255.0 192.168.1.1 DHCP (Automatic) Page 14 of 27 CN Lab Exam Revision Guide (Experiments 1–10) S. No. Device Assigned IP Address Subnet Mask Default Gateway Assignment Mode 4 PC2 192.168.1.4 255.255.255.0 192.168.1.1 DHCP (Automatic) 5 PC3 192.168.1.5 255.255.255.0 192.168.1.1 DHCP (Automatic) 6 PC4 192.168.1.6 255.255.255.0 192.168.1.1 DHCP (Automatic) 7 PC5 192.168.1.7 255.255.255.0 192.168.1.1 DHCP (Automatic) Result: The DHCP service was successfully configured and implemented in Cisco Packet Tracer. All client devices automatically obtained their IP addresses and network configuration parameters from the DHCP server via the DORA process. EXPERIMENT – 6 1. Aim Aim: To implement the DNS, Email Services in the Network using Cisco Packet Tracer. 2. Practical Theory A. Domain Name System (DNS): A hierarchical naming system (UDP/TCP Port 53) that translates human- readable domain names (e.g., www.mait.ac.in ) into numerical IP addresses (name resolution). Its hierarchy consists of the Root Domain ( ) → Top-Level Domains (TLDs: .com , .org , .in ) → Second-Level Domains ( mait.ac.in ) → Subdomains/Hosts ( www.mait.ac.in ) DNS Record Type Description Lab Example A Record Maps a domain or host name to a 32-bit IPv4 address. www.mait.ac.in → 192.168.1.2 AAAA Record Maps a domain or host name to a 128-bit IPv6 address. www.mait.ac.in → 2001:db8::10 CNAME Record Creates an alias for another canonical domain name. web.mait.ac.in → www.mait.ac.in TXT Record Stores text-based domain verification or security policy info. mait.ac.in → "verification=..." B. Email Services Architecture: Electronic mail flows across: Sender → Email Client → SMTP Server → Recipient Mailbox → POP3/IMAP Server → Recipient Email Client SMTP (Simple Mail Transfer Protocol — TCP Port 25): Used for sending and transferring outgoing emails from clients to mail servers and between mail servers. Page 15 of 27 CN Lab Exam Revision Guide (Experiments 1–10) POP3 (Post Office Protocol v3 — TCP Port 110): Used by an email client to retrieve and download stored emails from the mail server to the local machine. IMAP (Internet Message Access Protocol — TCP Port 143): Retrieves emails while keeping messages stored on the server and synchronized across multiple devices. 3. Topology (a) DNS & Web Server Topology DNS/Web Server 192.168.1.2 (www.mait.ac.in) Switch0 (2960) PC0 (Client 1) 192.168.1.10 PC1 (Client 2) 192.168.1.4 (b) Email Server (SMTP / POP3) Topology Email Server (192.168.1.1) Domain: mait.ac.in / mail.ac.in Switch (Switch-PT) User 1 (192.168.1.2) pratyush@mait.ac.in User 2 (192.168.1.3) chamoli@mait.ac.in Figure 6.1: Network Topologies for (a) DNS & HTTP Name Resolution and (b) SMTP/POP3 Email Exchange 4. Procedure 1. DNS & Web Server Setup: Connect 1 DNS/Web Server ( 192.168.1.2/24 ), 1 Switch ( 2960-24TT ), and 2 PCs ( PC0: 192.168.1.10 , PC1: 192.168.1.4 ) with DNS Server set to 192.168.1.2 . On the Server, enable Services → HTTP → On and Services → DNS → On , then add an A Record with Name = www.mait.ac.in and Address = 192.168.1.2 , and click Add 2. Verify DNS Resolution: On PC0 , run ping www.mait.ac.in in Command Prompt to verify translation to 192.168.1.2 , then open Desktop → Web Browser and enter http://www.mait.ac.in to load the MAIT webpage. 3. Email Server Setup: Connect 1 Email Server ( 192.168.1.1/24 ), 1 Switch, and 2 PCs ( User 1: 192.168.1.2 , User 2: 192.168.1.3 ). On Email Server → Services → EMAIL , enable both SMTP Service = ON and POP3 Service = ON , set Domain Name = mait.ac.in (or mail.ac.in ) and click Set . Create user accounts Pratyush and Chamoli with passwords by clicking + 4. Configure Email Clients & Exchange Mail: On User 1 → Desktop → Email , set Name = Pratyush , Email = pratyush@mait.ac.in , Incoming/Outgoing Mail Server = 192.168.1.1 , and login credentials. Configure User 2 similarly for chamoli@mait.ac.in . Compose an email with subject Greetings from User 2 to User 1, click Receive on User 1, and reply with RE: Greetings Page 16 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 5. Output, Observation Tables & Result PC0 Command Prompt (DNS Name Resolution) & Mail Browser Output C:\>ping www.mait.ac.in Pinging www.mait.ac.in [192.168.1.2] with 32 bytes of data: Reply from 192.168.1.2: bytes=32 time<1ms TTL=128 (Sent = 4, Received = 4, Lost = 0) Web Browser (http://www.mait.ac.in): Loads "MAHARAJA AGRASEN INSTITUTE OF TECHNOLOGY - Welcome to YOURNAME page" Mail Browser (User 1 & User 2): 1. From: chamoli@mait.ac.in -> To: pratyush@mait.ac.in | Subject: Greetings | Body: "Hello Pratyush!" 2. From: pratyush@mait.ac.in -> To: chamoli@mait.ac.in | Subject: RE: Greetings | Body: "Hello Chamoli!" Service / Test Device / Sender IP / Receiver Server / Subject Status / Result DNS Server Server0 192.168.1.2/24 A-Record: www.mait.ac.i n Active (Resolved by PC0/PC1) Email Account 1 PC1 (User 1) 192.168.1.2/24 pratyush@mait. ac.in (SMTP/POP3: 192.168.1.1) Active Email Account 2 PC2 (User 2) 192.168.1.3/24 chamoli@mait.a c.in (SMTP/POP3: 192.168.1.1) Active Email Send/Reply chamoli@mait.a c.in pratyush@mait. ac.in Greetings & RE: Greetings Success Result: DNS and Email Services were successfully configured and verified in Cisco Packet Tracer. Client PCs resolved www.mait.ac.in to 192.168.1.2 to load the hosted website, and email accounts exchanged messages using SMTP and POP3. EXPERIMENT – 7 1. Aim Aim: To implement the Dynamic Routing Protocols: RIP, IGRP using Cisco Packet Tracer. 2. Practical Theory A. Distance-Vector Routing & Loop-Prevention Mechanisms: Distance-vector protocols exchange their entire routing table periodically with directly connected neighbors and use the Bellman–Ford Algorithm to choose the lowest-metric path. To prevent routing loops ( "counting to infinity" ), they use: Split Horizon: Never advertise a route back out of the interface from which it was learned. Page 17 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Route Poisoning: Immediately advertise a failed route with an infinite metric ( 16 hops in RIP). Hold-down Timers & Triggered Updates: Ignore potentially bad updates for a fixed hold-down window and send immediate triggered updates when a link state changes. B. RIP (Routing Information Protocol) vs IGRP (Interior Gateway Routing Protocol): RIPv1 vs RIPv2: RIPv1 is classful, broadcasts updates to 255.255.255.255 , and does not send subnet masks. RIPv2 is classless (supports VLSM/CIDR), multicasts updates to 224.0.0.9 on UDP port 520, supports authentication, and allows disabling auto-summary ( no auto-summary ). IGRP Composite Metric Formula: With default K 1 = K 3 = 1 and K 2 = K 4 = K 5 = 0, Metric = Bandwidth + Delay, where Bandwidth = 10 7 / min_bw_kbps and Delay = total_delay_us / 10. Note: IGRP was removed from Cisco IOS 12.2(13)T/12.3+ and replaced by EIGRP Parameter RIP (Routing Information Protocol v2) IGRP (Interior Gateway Routing Protocol) Standard & Status Open Standard (RFC 1058, 2453) — Supported Cisco Proprietary — Obsolete (Replaced by EIGRP) Metric & Max Hops Hop Count (Max 15 hops; 16 = unreachable) Composite: Bandwidth + Delay (100 default, 255 max) Administrative Distance 120 100 Timers (Update / Invalid / Hold / Flush) 30 s / 180 s / 180 s / 240 s 90 s / 270 s / 280 s / 630 s 3. Topology & IP Addressing Scheme R1 (2911) R2 (2911) R3 (2911) 10.0.0.0/30 Gi0/1 (.1) ↔ Gi0/0 (.2) 10.0.0.4/30 Gi0/1 (.5) ↔ Gi0/1 (.6) Gi0/0 (.1) Gi0/2 (.1) Gi0/0 (.1) Switch1 (2960) Switch2 (2960) Switch3 (2960) PC1 (LAN 1) 192.168.1.2/24 PC2 (LAN 2) 192.168.2.2/24 PC3 (LAN 3) 192.168.3.2/24 Figure 7.1: Linear 3-Router Topology (R1 – R2 – R3) Connected by /30 Links Running RIPv2 Device Interfaces & IP Addresses Subnet Masks Default Gateway R1 Gi0/0 (LAN 1): 192.168.1.1 • Gi0/1 (to R2): 10.0.0.1 255.255.255.0 • 255.255.255.252 (/30) — R2 Gi0/0 (to R1): 10.0.0.2 • Gi0/1 (to R3): 10.0.0.5 • Gi0/2 (LAN 2): 192.168.2.1 255.255.255.252 • 255.255.255.0 — R3 Gi0/1 (to R2): 10.0.0.6 • Gi0/0 (LAN 3): 192.168.3.1 255.255.255.252 • 255.255.255.0 — Page 18 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Device Interfaces & IP Addresses Subnet Masks Default Gateway PC1 / PC2 / PC3 PC1: 192.168.1.2 • PC2: 192.168.2.2 • PC3: 192.168.3.2 255.255.255.0 (/24) .1.1 / .2.1 / .3.1 4. Procedure & Configuration Commands 1. Configure Interfaces & RIPv2 on R1, R2, and R3: Assign IP addresses to all router interfaces and bring them up ( no shutdown ). Enter router rip , enable version 2 , disable automatic classful summarization with no auto-summary , advertise directly connected classful networks, and mark LAN interfaces passive. R1, R2, R3 CLI — RIPv2 Configuration & Legacy IGRP Syntax ! --- On R1 --- R1(config)#router rip R1(config-router)#version 2 R1(config-router)#network 192.168.1.0 R1(config-router)#network 10.0.0.0 R1(config-router)#no auto-summary R1(config-router)#passive-interface gigabitEthernet0/0 ! --- On R2 --- R2(config)#router rip R2(config-router)#version 2 R2(config-router)#network 10.0.0.0 R2(config-router)#network 192.168.2.0 R2(config-router)#no auto-summary R2(config-router)#passive-interface gigabitEthernet0/2 ! --- On R3 --- R3(config)#router rip R3(config-router)#version 2 R3(config-router)#network 10.0.0.0 R3(config-router)#network 192.168.3.0 R3(config-router)#no auto-summary R3(config-router)#passive-interface gigabitEthernet0/0 ! --- Legacy IGRP Syntax (IOS 12.2 or earlier) & Verification on Modern IOS --- R1(config)#router igrp 10 % Invalid input detected at '^' marker. (R1(config)#router ? lists only bgp, eigrp, ospf, rip) Page 19 of 27 CN Lab Exam Revision Guide (Experiments 1–10) 5. Output, Observation Table & Result R1 Routing Table (show ip route) & PC1 to PC3 Traceroute Output R1#show ip route C 10.0.0.0/30 is directly connected, GigabitEthernet0/1 R 10.0.0.4/30 [120/1] via 10.0.0.2, 00:00:17, GigabitEthernet0/1 C 192.168.1.0/24 is directly connected, GigabitEthernet0/0 R 192.168.2.0/24 [120/1] via 10.0.0.2, 00:00:17, GigabitEthernet0/1 R 192.168.3.0/24 [120/2] via 10.0.0.2, 00:00:17, GigabitEthernet0/1 PC1>tracert 192.168.3.2 1 0 ms 192.168.1.1 (R1) -> 2 0 ms 10.0.0.2 (R2) -> 3 0 ms 10.0.0.6 (R3) -> 4 0 ms 192.168.3.2 (PC3) Router Destination Network Learned Via (Code) AD / Metric (Hops) Next Hop IP R1 192.168.2.0/24 & 10.0.0.4/30 RIP ( R ) 120 / 1 hop 10.0.0.2 (R2) R1 192.168.3.0/24 RIP ( R ) 120 / 2 hops 10.0.0.2 (R2) R3 192.168.2.0/24 RIP ( R ) 120 / 1 hop 10.0.0.5 (R2) R3 192.168.1.0/24 RIP ( R ) 120 / 2 hops 10.0.0.5 (R2) Result: RIPv2 was implemented on three routers in Cisco Packet Tracer. All remote networks were learned with accurate hop-count metrics ( [120/1] and [120/2] ), end-to-end connectivity was verified, and IGRP was confirmed to be superseded by EIGRP in modern IOS. EXPERIMENT – 8 1. Aim Aim: To construct multiple router networks and implement the EIGRP Protocol. 2. Practical Theory A. EIGRP (Enhanced Interior Gateway Routing Protocol — RFC 7868): An advanced distance-vector (hybrid) protocol that uses RTP (Reliable Transport Protocol, IP Protocol 88) and multicasts partial, bounded, triggered updates to 224.0.0.10 . Administrative Distance = 90 (internal) and 170 (external) Three EIGRP Tables: (1) Neighbour Table ( show ip eigrp neighbors — lists directly connected adjacent routers), (2) Topology Table ( show ip eigrp topology — stores all learned paths with FD and RD), and (3) Routing Table ( show ip route — stores best loop-free paths marked D ). Five EIGRP Packet Types: Hello (every 5 s, hold time 15 s), Update (reliable route changes), Query (asks neighbors when a route is lost and no FS exists), Reply (response to Query), and ACK DUAL (Diffusing Update Algorithm) Terminology: Feasible Distance (FD): Total composite metric of the best path from the local router to the destination. Reported / Advertised Distance (RD): Metric to the destination as advertised by a neighboring router. Successor: Primary neighbor with the lowest FD (installed in the routing table). Page 20 of 27 CN Lab Exam Revision Guide (Experiments 1–10) Feasible Successor (FS): Loop-free backup neighbor satisfying the Feasibility Condition (RD < Current FD) EIGRP Composite Metric Formula: Metric = 256 × [(10 7 / min_bw_kbps) + (sum_delays_us / 10)]. For GigabitEthernet (BW = 10 6 kbps, Delay = 10 μs): 1 Gigabit hop = 256 × (10 + 1) = 2816; 2 Gigabit hops = 256 × (10 + 2) = 3072; 3 Gigabit hops = 256 × (10 + 3) = 3328. 3. Topology & IP Addressing Scheme R1 (2911) - AS 100 Switch1 PC1 (LAN 1) 172.16.1.2/24 10.1.1.0/30 (.1 ↔ .2) 10.1.1.8/30 (.9 ↔ .10) 10.1.1.4/30 (.5 ↔ .6) R2 (2911) R3 (2911) Switch2 PC2 (LAN 2) 172.16.2.2/24 Switch3 PC3 (LAN 3) 172.16.3.2/24 Figure 8.1: Redundant Triangle Router Topology Running EIGRP (AS 100) Device LAN Interface (Gi0/0) WAN Interface 1 (Gi0/1) WAN Interface 2 (Gi0/2) Connected PC & Gateway R1 172.16.1.1/24 (LAN 1) 10.1.1.1/30 (to R2) 10.1.1.9/30 (to R3) PC1: 172.16.1.2 (GW: 172.16.1.1) R2 172.16.2.1/24 (LAN 2) 10.1.1.2/30 (to R1) 10.1.1.5/30 (to R3) PC2: 172.16.2.2 (GW: 172.16.2.1) R3 172.16.3.1/24 (LAN 3) 10.1.1.6/30 (to R2) 10.1.1.10/30 (to R1) PC3: 172.16.3.2 (GW: 172.16.3.1) 4. Procedure & Configuration Commands 1. Configure Interfaces & EIGRP AS 100 on R1, R2, and R3: Assign IP addresses to all interfaces and enable EIGRP using router eigrp 100 with exact wildcard masks ( 0.0.0.255 for /24 and 0.0.0.3 for /30 ).