ip routing in solaris

I have a SUN ultra 5 machine running Solaris 6. it has two ethernet interfaces qe0 192.168.0.111 and qe1 192.168.1.111

the two subnets are 192.168.0.111 255.255.255.0
192.168.1.111 255.255.255.0

the specified routes are

add route -net 192.168.0.0 255.255.255.0 192.168.0.111
add route -net 192.168.1.0 255.255.255.0 192.168.1.111

other machines with similar setup are sitting on the same subnet.

I want to shift one machine behind a cisco router that has one interface connected to the subnet 192.168.1.0 "192.168.1.1"
and the otherside on subnet 192.168.2.0 "192.168.2.1"

I want to add route to point from 192.168.1.0 to 192.168.2.0 and revrse.

what gateway should I use in the local machine and in the remote machine. qe1 or the router local interface
show in details please.
see attached file for sketch

If I understand, it's:
route add -net 192.168.2.0 255.255.255.0 192.168.1.1

which says "to get stuff to 192.168.2.0, send it to 192.168.1.1 who will forward it."

do I need to add a line

route add -net 192.168.1.0 255.255.255.0 192.168.1.111

in order to use qe1 to send stuff to 192.168.1.1

or the system automatically understand this?

The system should handle very basic routes like that. You have a very old Solaris and I can't test stuff on a Solaris that old. If it's not working, post your routing table. "netstat -nrv" should show it. If your old Solaris doesn't like that, try "netstat -nr".