OK, I found solution here. It was necessary to modify routing tables.

https://freelinuxtutorials.com/configuring-multiple-interfaces-multiple-default-routes-linux/