Basic Routing question

I have a virtual environment with 5 subnets. I configure the vyos with 5 interfaces
192.168.101.14/28
192.168.102.14/28
192.168.103.14/28
192.168.104.14/28
192.168.105.14/28

how do I configure vyos to route between networks? I added a static route
set protocols static route 192.168.102.0/28 next-hop 192.168.102.14
set protocols static route 192.168.101.0/28 next-hop 192.168.101.14

and setup a host (192.168.101.89) and (192.168.102.89) but cannot ping each other. Is this even possible?

Thanks

The resolution was to put a static route on the host server
route add -net 192.168.102.0 netmask 255.255.255.240 gw 192.168.101.14

then it worked. Maybe I should just make my default gateway 192.168.101.14.

the attached interfaces will route to each other without any additional configuration.

in your test machines, set their gateway to the respective IP of the router.
192.168.101.89 would get 192.168.101.14 as its gateway
192.168.102.89 would get 192.168.102.14 as its gateway

Thanks, your’re right I just needed to set my default gateway to the router and it worked!

I have been searching for solution. Works calm. Thanks.

I don’t understand fully… This is somewhat what im trying to do my self… I have 3 networks each with 2 vms I need to get to internet outside and how do I set them up I have used the same ips ? I need to set or get to router and then out to internet gateway which is 254.

You need to setup NAT, and then specify the system-gateway interface

 source {
     rule 100 {
         outbound-interface eth*
         source {
             address ***.***.***.***/**
         }
         translation {
             address masquerade
         }
     }
 }

You can create multi source addresses for each of your 3 subnets.