Problem with routing in my virtual network ! :(

Hello,

I have created my own network which you can see on the picture below:

I have configured network interfaces on each machine like it is shown on the picture. But, when I try to ping machine “centos-r1” from machine “ubuntu-h1” it doesn’t work.

Network configuration on “ubuntu-h1” machine looks like this:

Network configuration on the machine “ubuntu-r1” which has role of the router is the following:

Also, on the machine “ubuntu-r1” is enabled ipv4 forwarding:
image

However ping from the machine “ubuntu-h1” to the machine “centos-r1” through router machine “ubuntu-r1” still doesn’t work. I use host-only IP addresses. Bridge interfaces are only to access on the internet.

Could someone help me to solve this problem and explain me where I made mistake.

Thanks in advance.