Data Communication & Networks · 2025–26

DCN Practical Exam Kit

Ten selected experiments · aim, procedure, runnable code, illustrated output and result

← Back to kitOffline reference

Experiment 7 — IPv4/IPv6, Static Routing, RIP and OSPF

Manual pages: 68–73 | Tool: Cisco Packet Tracer

AIM

To practise IPv4 and IPv6 addressing/subnetting and configure static and dynamic routing (RIP and OSPF).

TOPOLOGY

PC0/PC1 --- Switch0 --- R0 (G0/0:192.168.1.1)
                            |
                      G0/1:10.0.0.1/30
                            |
                      G0/1:10.0.0.2/30
                            |
PC2/PC3 --- Switch1 --- R1 (G0/0:192.168.2.1)

Manual difference: The manual connects R0–R1 using serial s0/0/0 with clock rate 64000 on DCE. This kit provides your practised Ethernet alternative (g0/1). Verify actual cabling (e.g., show cdp neighbors): if R1 inter-router link is G0/0 and its LAN is G0/1, swap R1 port commands accordingly.

EXECUTION STEPS — STATIC ROUTING

  1. Place 2 routers, 2 switches, 4 PCs. Connect PCs↔switches↔routers and routers↔routers (Ethernet in this adaptation).
  2. Router0 CLI: Router0_Static.cli; Router1 CLI: Router1_Static.cli.
  3. Set PC0 192.168.1.2/24 GW 192.168.1.1; PC1 192.168.1.3/24 GW same; PC2 192.168.2.2/24 GW 192.168.2.1; PC3 192.168.2.3/24 GW same.
  4. Verify on both routers show ip interface brief → up/up. Router0 CLI ping 10.0.0.2 → success. Then PC0 ping 192.168.2.2 → success.
  5. show ip route shows S for a static route to other LAN.

EXECUTION STEPS — RIP V2 (separate routing method)

  1. Preserve a separate Packet Tracer copy first, e.g. RIP.pkt.
  2. Router0: Router0_RIP.cli; Router1: Router1_RIP.cli.
  3. Static routes are removed in these scripts. Wait for convergence; show ip route remote networks should show R; PC0 ping PC2.

EXECUTION STEPS — OSPF (separate routing method)

  1. Save a separate copy OSPF.pkt based on the RIP setup.
  2. Router0: Router0_OSPF.cli; Router1: Router1_OSPF.cli.
  3. RIP is removed; OSPF advertises LAN + inter-router /30 networks in area 0. Wait for adjacency; show ip route remote LAN shows O.

EXECUTION STEPS — IPv6 (separate addressing test)

  1. On both routers enable ipv6 unicast-routing, assign interface IPv6 addresses and cross-network IPv6 routes as given in IPv6_Commands.cli.
  2. Configure PC0 and PC2 IPv6 addresses/default gateways. Ping PC2 IPv6 2001:DB8:2::2 from PC0.
  3. Additional IPv6 static routes here complete the manual's minimal IPv6 section, which lists only LAN IPv6 addresses and not an inter-router IPv6 route.

EXPECTED OUTPUT

S 192.168.2.0/24 via 10.0.0.2    (static on R0)
R 192.168.2.0/24 via 10.0.0.2    (after RIP)
O 192.168.2.0/24 via 10.0.0.2    (after OSPF)
PC0 ping 192.168.2.2: Reply ...

Only one route type is expected for a given routing configuration; do not claim S/R/O simultaneously. See sample file.

RESULT

Thus, IPv4/IPv6 addressing and static, RIP and OSPF routing were configured and tested successfully using Cisco Packet Tracer.

VIVA