Table of Contents for
Packet Tracer Network Simulator

Dynamic routing protocols

When we learned about static routing we found that a lot of manual configuration was involved and a change to the topology also required manual configuration changes. Dynamic protocols work by advertising routes to each other.

The configuration is the opposite of static routing; here, we enable dynamic routing on the required interfaces. The routing protocol then forms "neighborship" with other routers and sends them the directly-connected routes and other received routes. In this way, all routers exchange updates with one another. When a topology change occurs, those updates are also sent out by routers that learn about this loss of connectivity.

Configuring RIP with the GUI

Packet Tracer offers a GUI to configure a dynamic routing protocol called RIP (Routing Information Protocol). This GUI section is similar to the static routing section. It has only one textbox for entering the network address of the directly connected network.

You may think that the rest of the configuration is similar to the Static configuration, but it isn't. Whereas in the static configuration we entered routes of other routers, in RIP, we enter the network IP addresses of the router's interfaces. By doing this, you are enabling that routing protocol on a particular interface. To configure dynamic routing with the GUI, perform the following steps:

  1. Create the same four-router topology we used previously and assign the same IP addresses through the Config tab.
  2. Click on RIP—now, configuring this is very easy, with each router requiring only the Network IP of its own interfaces, as shown in the following screenshot:
    Configuring RIP with the GUI
  3. Enter the following network IP addresses:

    Device

    RIP Network

    R1

    192.168.10.0

     

    192.168.20.0

    R2

    192.168.10.0

     

    192.168.30.0

    R3

    192.168.20.0

     

    192.168.40.0

    R4

    192.168.30.0

     

    192.168.40.0

  4. Once the topology is configured, use the simple PDU to check for connectivity. Let's check for two indirectly connected routers (R1 and R4 or R2 and R3). Once the connection is successful, let's see how dynamic routing works on topology changes.
  5. Use the delete tool and remove either the link between R1 and R2 or the link between R1 and R3. Use the simulation mode and test connectivity with the simple PDU. You'll find that the packet takes the alternate, longer route and succeeds in reaching the destination.

If you have tried step 5 of the static routing topology, the packet would've failed as we did not enter any alternate gateway to each destination network. This is the biggest advantage of using a dynamic routing protocol.

Configuring RIP with the CLI

Let's do the same thing using the CLI tab. The commands are very simple and if you have noticed the Equivalent IOS Commands section under the Config tab, you'll know them already. To configure dynamic routing by using the CLI tab, perform the following steps:

  1. Use the same commands used in the Static section to assign IP addresses to the interfaces.
  2. Then, from the global configuration mode, enter into the config mode of RIP by issuing the following command:
    R1(config)#router rip
    
  3. Use the network command, followed by the network IP address. For the device R1, use the following commands:
    R1(config-router)#network 192.168.10.0
    R1(config-router)#network 192.168.20.0
    
  4. Configure all the other routers in the same way. Use the simple PDU to test the connectivity.

Now that you know how to configure basic static and dynamic routing, let's move to the routing table.