Here is network addressing for the IP network
router network addr interface addr
lab_a 192.168.10.0 fa0/0 192.168.10.1
lab_a 192.168.20.0 s0/0 192.168.20.1
lab_b 192.168.20.0 s0/0 192.168.20.2
lab_b 192.168.30.0 fa0/0 192.168.30.1
To add a static route on lab_a, I run,
lab_a(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2
With this static route, each packet destined to network 192.168.30.0 will be sent to next hop 192.168.20.2. No problem. However, I am just curious how the router lab_a determines the exit_interface to send the packet out. The router has all the information needed to figure this out. It can iterate through all its interfaces to check which interface is connected to this next hop. However, would it be easier for the router to figure this out if we add the exit_interface, or, does not matter?
Like,
lab_a(config)#ip route 192.168.30.0 255.255.255.0 192.168.20.2 s0/0