CentOS7 源进源出

echo 200 ct >> /etc/iproute2/rt_tables
echo 201 cu >> /etc/iproute2/rt_tables

ip route add default via 172.16.100.1 table ct
ip route add default via 172.16.200.1 table cu

ip rule add from 172.16.100.2 table ct
ip rule add from 172.16.200.2 table cu

ip rule add to 11.11.11.0/24 table ct
ip rule add to 22.22.22.0/24 table cu

原文地址:https://www.cnblogs.com/heqiuyong/p/11531008.html