Настрой правила маршрутизации
Multihome IPv4 в Linux
Создать таблицы маршрутизации:
echo 100 eth0-route >>/etc/iproute2/rt_tables
echo 101 eth1-route >>/etc/iproute2/rt_tables
Настроить интерфейсы:
auto eth0
iface eth0 inet static
address 10.10.10.9
netmask 255.255.255.252
gateway 10.10.10.10
post-up ip route add 10.10.10.9/30 dev ens19 src 10.10.10.9 table eth0-route
post-up ip route add default via 10.10.10.10 dev eth0- table eth0-route
post-up ip rule add from 10.10.10.9 lookup eth0-route
auto eth1
iface eth1 inet static
address 190.160.80.2
netmask 255.255.255.0
post-up ip route add 190.160.80.0/24 dev eth1 scope link src 190.160.80.2 table eth1-route
post-up ip route add default via 190.160.80.1 dev eth1 table eth1-route
post-up ip rule add from 190.160.80.2 lookup eth1-route