Im trying to setup a test network with VMs to practice how static routing works, so what I thought to do is to setup two internal networks and one box with two interfaces to work as a router, here's the setup with the IPs:
I configured the static IPs in each box and also I added the default gateway to be adapter1 for vm-client-1 and adapter2 for vm-client-2.
Now, I'm in the last step to create the ip route, I executed in vm-client-1:
sudo ip route add 192.168.102.0/24 via 192.168.101.1 dev enp0s3
and I get this error as the output:
RTNETLINK answers: Network is unreachable.
Note: I cleared all the iptables rules with iptables -F so that the firewall is not the problem. Also, vm-client can ping 192.168.102.1 (the gateway of vm-client-2) so, I don't know why it says that Network is unreachable, help is appreciated.
