CentOS7 多网卡配置源进源出
CentOS7 源进源出

为了方便记录查看,这里电信使用ct,联通使用cu
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

本文来自博客园,作者:Hope·,转载请注明原文链接:https://www.cnblogs.com/Hope-/p/19885243
浙公网安备 33010602011771号