root@RS1:~# echo "101 LVS1" >> /etc/iproute2/rt_tables
root@RS1:~# echo "102 LVS2" >> /etc/iproute2/rt_tables
root@RS1:~# ip rule add from 192.168.100.0/24 table LVS1
root@RS1:~# ip rule add from 192.168.200.0/24 table LVS2
root@RS1:~# ip route add 192.168.200.0/24 dev eth2 src 192.168.200.20 table LVS2
root@RS1:~# ip route add default via 192.168.200.1 dev eth2 table LVS2
root@RS1:~# ip route add 192.168.100.0/24 dev eth1 src 192.168.100.10 table LVS1
root@RS1:~# ip route add default via 192.168.100.1 dev eth1 table LVS1
root@RS1:~# ip rule s
0: from all lookup local
32764: from 192.168.200.0/24 lookup LVS2
32765: from 192.168.100.0/24 lookup LVS1
32766: from all lookup main
32767: from all lookup default
root@RS1:~# ip r s
default via 192.168.47.2 dev eth0
192.168.47.0/24 dev eth0 proto kernel scope link src 192.168.47.131
192.168.100.0/24 dev eth1 proto kernel scope link src 192.168.100.10
192.168.200.0/24 dev eth2 proto kernel scope link src 192.168.200.20
root@RS1:~# ip r s table LVS1
default via 192.168.100.1 dev eth1
192.168.100.0/24 dev eth1 scope link src 192.168.100.10
root@RS1:~# ip r s table LVS2
default via 192.168.200.1 dev eth2
192.168.200.0/24 dev eth2 scope link src 192.168.200.20
root@RS1:~#