I am trying to connect two routers in one switch to ping each other using IP route . 


[![upload][1]][1]


  [1]: https://i.sstatic.net/0jXFE.png

    router 0 has 192.168.10.1/24 gi0/0
    router 1 has 192.168.20.1/24 gi0/0

I tried putting switch-port trunks on both fa0/1 and fa0/2 for switch 0