Totaly edited:
I have 3 nic with links eth0 eth1 eth2. I made 3 table T1 T2 T3. In /etc/network/interfaces i wrote:
auto eth0
iface eth0 inet static
address 1.0.0.1
netmask 255.255.255.0
post-up ip route add 1.0.0.2/32 dev eth0 src 1.0.0.1 table T1
post-up ip route add default via 1.0.0.2 table T1
post-up ip rule add from 1.0.0.1 table T1
post-down ip rule del from 1.0.0.1 table T1
auto eth1
iface eth1 inet static
address 2.0.0.1
netmask 255.255.255.0
post-up ip route add 2.0.0.2/32 dev eth1 src 2.0.0.1 table T2
post-up ip route add default via 2.0.0.2 table T2
post-up ip rule add from 2.0.0.1 table T2
post-down ip rule del from 2.0.0.1 table T2
auto eth2
iface eth2 inet static
address 3.0.0.1
netmask 255.255.255.0
post-up ip route add 3.0.0.2/32 dev eth2 src 3.0.0.1 table T3
post-up ip route add default via 3.0.0.2 table T3
post-up ip rule add from 3.0.0.1 table T3
post-down ip rule del from 3.0.0.1 table T3
So, i made a restart, all intefaces bringed up, and than i need to add such rule because there is no gateway:
ip route add default scope global nexthop via 1.0.0.2 dev eth0 weight 1 nexthop via 2.0.0.2 eth1 weight 1 nexthop via 3.0.0.2 eth2 weight 1
But after that command i receive error:
RTNETLINK answers: Invalid argument
So, whats wrong? I used this manual https://www.debian-administration.org/articles/377