do show ip int brief
int g0/1
ip add 192.168.1.254 255.255.255.0
desc ## to SW1 ##
no shut
# Just to see the result
do show ip brief
Router interface 0
int g0/0
ip add 192.168.12.1 255.255.255.0
desc ## to R2 ##
no shut
do show ip int brief
ROUTER 222222222
en
conf t
hostname R2
sho show ip int brief
ip g0/0
ip add 192.168.12.2 255.255.255.0
desc ## to R1 ##
no shut
do show int brief
int g0/1
ip add 192.168.13.2 255.255.255.0
dsc ## to R3 ##
no shut
do show int brief
Just exit the config-if
Then lets see the ip route
ip route 192.168.1.0 255.255.255.0 192.168.12.1
ip route 192.168.13.0 255.255.255.0 192.168.13.3
do show ip route
you have to open up the connection first in R3 thats why i use again this command ip route
by opening up just use "no shutdown"
ROUTEERRRRRR 3
en
conf t
hostname R3
int g0/0
ip add 192.168.13.3 255.255.255.0
desc ## to R2 ##
no shut
do show ip int brief
int g0/1
ip add 192.168.3.254 255.255.255.0
desc ## to SW2 ##
no shut
do show ip int brief
Now configure the route
ip route 192.168.1.0 255.255.255.0 192.168.13.2
do show ip route
LAB 22222222222222222222222222222222222222
router 1
en
conf t
do show running-config | include ip route
no ip route 192.168.3.0 255.255.255.0 192.168.12.3
do show ip route
First we have to delete the previous configuration or the first hop that is on 192.168.12.3
Now we have to put the correct IP next hop which is 192.168.12.2
ip route 192.168.3.0 255.255.255.0 192.168.12.2
do show ip route
ROUTERRRRRRRR 22222222222
en
conf t
do show running-config | include ip route
# Delete the previous route which is the g0/0 WRONGGGG
no ip route 192.168.3.0 255.255.255.0 GigabitEthernet0/0
# Put the correct IP route g0/1
ip route 192.168.3.0 255.255.255.0 GigabitEthernet0/1
ROUTERRRRRRRRR 33333
en
conf t
do show ip int brief
int g0/0
# Put the CORRECT IP ADDRESS NOT 192.168.23.3
ip add 192.168.13.3 255.255.255.0
do show ip route