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