linux 双网卡

net.ipv4.ip_forward = 1
net.ipv4.conf.all.arp_filter = 1
ip route add to 0.0.0.0/0 via 10.167.133.1 dev eth2 table 10
ip route add to 0.0.0.0/0 via 193.160.34.1 dev eth1 table 20
ip rule add from 10.167.133.237/32 table 10
ip rule add from 193.160.34.108/32 table 20

原文地址:https://www.cnblogs.com/xiaohe9527/p/6347527.html