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

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM