27 Dynamic Networking – Routing Information Protocol

Jacob Christensen and Mathew J. Heath Van Horn, PhD

As demonstrated in the previous lab, routers need to be told about distant networks in order to communicate with devices 1+ hops away. Doing this task manually is tedious and highly prone to human error, especially as networks start increasing in size. As a result, the Routing Information Protocol (RIP) was developed to allow routing devices to advertise their routing tables with their surrounding neighbors autonomously. Not only did this save configuration time, but it allowed routers to essentially re-calibrate themselves even as devices were added or removed over time.

Estimated time for completion: 15 minutes

Learning Objectives

  • Implement the RIPv2 network routing protocol
  • Practice using DHCP from a remote server
  • Determine a network topology from a captured network packet

Prerequisites

Deliverables

3 Screenshots are required to consider this lab complete:

  • Screenshot of GNS3 workspace (LANS labeled with correct IPs and Subnets)
  • Screenshot of DHCP configuration settings
  • Screenshot of Wireshark packet showing RIPv2 network advertisement for all networks

Resources

Contributors and Testers

  • Dante Rocca, Cybersecurity Student, ERAU-Prescott

Phase I – Building the Network Topology

The following steps are to create a baseline for completing this lab. It makes assumptions about learner knowledge from completing previous labs.

By the end of this lab your network will look like the following:

GNS3 workspace
Figure 1 – Final GNS3 environment
  1. Open GNS3
    1. Open the previous Chapter 26 lab
    2. Save it as a new project: LAB_13
  2. Modify the network environment:
    1. Remove the manually assigned static routes from Router1

      > ip route remove 0,1,2,3

      terminal command execution
      Figure 2 – Removing static routes
    2. Repeat for the other two routers
  3. Label and organize your network as necessary

Phase II – Configuring RIPv2 on MikroTik RouterOS

RIP (Routing Information Protocol) is one of the original protocols used by the Internet.  Version 2 is the current protocol standard.  RIPv2 is a distance-vector protocol in that the routers must communicate with each other about the routes they know about.  The term “hop” is used to describe the distance from A to B.  In our example, PC1 would take 3 hops to reach PC3:  (start) 10.0.0.0 –> 10.0.4.0 –> 10.0.2.0 (end).  RIP advertisement packets contain the distance vector hop information.  We are going to configure our RED and BLUE networks to use RIPv2 and look at the vector tables.  Fortunately for us, MikroTik has simplified RIPv2 configuration immensely!
  1. Initialize a Wireshark capture between Router1 and Router2
  2. Create a new RIPv2 instance on Router1

    > routing rip instance add name=RIP-ROUTER-01 redistribute=connected,rip

    > routing rip interface-template add interfaces=all instance=RIP-ROUTER-01

  3. Create a new RIPv2 instance on Router2

    > routing rip instance add name=RIP-ROUTER-02 redistribute=connected,rip

    > routing rip interface-template add interfaces=all instance=RIP-ROUTER-02

  4. Focus on the Wireshark capture window
    1. You should start to see RIPv2  Request and Response messages being exchanged to the IP 224.0.0.9 over port 520
      wireshark packet capture
      Figure 3 – Wireshark packet capture filtered for RIP
    2. Opening any one of these packets will reveal the routing table being distributed
      wireshark packet capture
      Figure 4 – RIP packet analysis
    3. The recipient routers will use this information to update their own routing tables

      > ip route print

      terminal command execution
      Figure 5 – Updated routing table
  5. Configure RIPv2 on Router3
  6. Test the network’s new ability to dynamically update its routes
    1. Try requesting a new IP address on PC1 and PC3

      NOTE: Did you remember to configure Router1 for DHCP-Relay?

    2. View the route taken from PC1 to PC3

      > trace 10.0.2.X -P 1

      terminal command execution
      Figure 6 – Tracing path to PC3
    3. Cut the path that the ICMP packet took to test if RIP can dynamically update network paths
      GNS3 workspace
      Figure 7 – Cutting path in GNS3

      > trace 10.0.2.X -P 1

      terminal command execution
      Figure 8 – Tracing route to PC3

Hopefully this exercise proved how significantly easier routing protocols are compared to manually assigning routes in networks.

End of Lab

Deliverables

3 Screenshots are required to consider this lab complete:

  • Screenshot of GNS3 workspace (LANS labeled with correct IPs and Subnets)
  • Screenshot of DHCP configuration settings
  • Screenshot of Wireshark packet showing RIPv2 network advertisement for all networks

Homeworks

Assignment 1 – Update the network build in Assignment 1 from the previous chapter

  • Configure DHCP to support the network
  • Replace static routes with RIPv2
  • RECOMMENDED GRADING CRITERIA
    • Screenshot of GNS3 Workspace with all devices labeled
    • Screenshot of the DHCP configuration
    • Screenshot of RIPv2 packets
    • Wireshark Packet Captures where a Green host can ping
      • Red Host
      • Blue Host
      • Gray Host
  • Sample network environment:
    GNS3 working environment
    Figure 9 – Assignment 1 network

Assignment 2 – Update the network build in Assignment 2 from the previous chapter

  • Configure DHCP to support the network
  • Replace static routes with RIPv2
  • RECOMMENDED GRADING CRITERIA
    • Screenshot of GNS3 Workspace with all devices labeled
    • Trace route command showing that an ICMP packet from a Blue host takes different paths to reach the Purple host (You may have to disconnect some connections to force the change in path)
      • Router2 –> Router5
      • Router2 –> Router1 -> Router5
      • Router2 –> Router3 -> Router1 -> Router5
      • Router2 –> Router3 -> Router1 -> Router4 -> Router5
  • Sample network environment:
    gns3 environment
    Figure 10 – Assignment 2 network

License

Icon for the Creative Commons Attribution 4.0 International License

Mastering Enterprise Networks Copyright © 2024 by Mathew J. Heath Van Horn is licensed under a Creative Commons Attribution 4.0 International License, except where otherwise noted.

Share This Book