We have finally reached the important part of networking—routing. Routing allows communication between multiple logical networks. When configuring routing on the command line of Packet Tracer—similar to configuring on physical hardware—you'll find that Packet Tracer offers a GUI to configure static and RIP routing protocols. In addition to this, we'll also see how load balancing works using the simulation mode, which will help you understand things better.
Static routing is the no-brainer method for configuring routing even though it requires more work. With Packet Tracer, static routing can be configured using the GUI alone. In this method, we configure a router with a destination and a gateway to reach it. So, each router in a topology should know the means to reach all destinations in the network, which requires manual work. Similarly, if a router is added or removed from the topology, all routers must be manually updated to reflect this.
Even if you do not know Cisco commands, this feature of Packet Tracer comes in handy. For this exercise, we will be using the topology shown in the following screenshot:.

This network has four routers in a ring topology, with no PCs or loopback interfaces. Because we will be using only the GUI here, configuration will be kept to a minimum. The topology can be configured by performing the following steps:
|
Router |
Interface |
IP Address |
|---|---|---|
|
R1 |
FastEthernet0/0 |
|
|
FastEthernet0/1 |
| |
|
R2 |
FastEthernet0/0 |
|
|
FastEthernet0/1 |
| |
|
R3 |
FastEthernet0/0 |
|
|
FastEthernet0/1 |
| |
|
R4 |
FastEthernet0/0 |
|
|
FastEthernet0/1 |
|

|
Device |
Network/Mask |
Next Hop |
|---|---|---|
|
R1 |
|
|
|
|
| |
|
R2 |
|
|
|
|
| |
|
R3 |
|
|
|
|
| |
|
R4 |
|
|
|
|
|

But we configured only two routes, so why four? The extra two routes are the subnets of the directly-connected links.
In this topology, even though there is an alternate route to each network, only one route is used because this is how we have configured it. We'll learn more about having more than one route in the Load Sharing section.
The configuration and the topology will be same in this section. We'll only see the commands required for one device. The topology can be configured by performing the following steps:
R1(config)#interface FastEthernet0/0 R1(config-if)#ip address 192.168.10.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface FastEthernet0/1 R1(config-if)#ip address 192.168.20.1 255.255.255.0 R1(config-if)#no shutdown R1(config-if)#exit
ip route command, using the following syntax:
R1(config)#ip route <Destination Prefix> <Destination prefix mask> <Gateway IP>
R1(config)#ip route 192.168.30.0 255.255.255.0 192.168.10.2 R1(config)#ip route 192.168.40.0 255.255.255.0 192.168.20.2
Use simple PDU to test the connectivity. If you get message indicating a failure, switch to simulation mode and see which router is incorrectly configured.