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

posted @ 2017-01-24 17:09  萧何9527  阅读(159)  评论(0编辑  收藏  举报