In the topology we have being configuring throughout this chapter, we can find that each router has two paths to reach each destination. So how about seeing how routers use these multiple paths together and load balancing the traffic across them.
We take RIP first because we do not have to do anything specific for load balancing. If there are multiple paths to reach a network destination with the same metric, RIP automatically load balances them. We will be using an interface type known as loopback to achieve this. A loopback is a virtual interface that behaves like a real interface and takes IP addresses.
We'll use the same topology we've been using throughout this chapter, and just add an extra interface. On router R4, we will add a loopback interface by using the following steps:
R4(config)#interface loopback 0 R4(config-if)#ip address 192.168.100.0 255.255.255.0
R4(config)#router rip R4(router-if)#network 192.168.100.0

You can also see which routes are load balanced by looking into the following routing table:
Router>show ip route R 192.168.30.0/24 [120/1] via 192.168.10.2, 00:00:12, FastEthernet0/0 R 192.168.40.0/24 [120/1] via 192.168.20.2, 00:00:14, FastEthernet0/1 R 192.168.100.0/24 [120/2] via 192.168.20.2, 00:00:08, FastEthernet0/1 [120/2] via 192.168.10.2, 00:00:08, FastEthernet0/0
Only the RIP routes are shown here. Note that the route 192.168.100.0/24 has two gateways; this indicates that traffic to this network is load balanced.
Static routing requires additional configuration for a route to be load balanced. Assign IP addresses to all physical interfaces and also configure loopback interfaces as explained in the RIP section. To configure a load balanced route with static routing, perform the following steps:
R2(config)#ip route 192.168.100.0 255.255.255.0 192.168.30.2 R3(config)#ip route 192.168.100.0 255.255.255.0 192.168.40.2
192.168.100.0/24. We need to tell the router that there are two ways to get to the R4 router's loopback. We do this by using the following commands:R1(config)#ip route 192.168.100.0 255.255.255.0 192.168.10.2 R1(config)#ip route 192.168.100.0 255.255.255.0 192.168.20.2
After this configuration, if you look at the routing table, you'll find the network 192.168.100.0/24 has two routes, similar to RIP.