Linux Compose Policy Routing

Source: Internet
Author: User

Linux Compose Policy Routing:vim /etc/iproute2/rt_tables## reserved values#255      local254     main253     default0        unspec252     old251     new250lo_2  Ip route add src 192.168.3.232 dev em1 via 192.168.0.1 table  old  ip rule add from 192.168.3.232 table old ip route  add src 192.168.9.24 dev em2 via 192.168.8.1 table new ip  rule add from 192.168.9.24 table new ip route add src  192.168.9.211 via 192.168.8.1 table lo_2 ip rule add from  192.168.9.211 table lo_2 ip route flush table new && ip  route flush table old && ip route flush table lo_2  Delete policy route:  ip route  del src 192.168.3.232 dev em1 via 192.168.0.1 table old   ip rule del from 192.168.3.232 table old ip route del  src 192.168.9.24 dev em2 via 192.168.8.1 table new ip rule  del from 192.168.9.24 table new ip route del src 192.168.9.211  via 192.168.8.1 table lo_2 ip rule del from 192.168.9.211  Table lo_2 /etc/init.d/network restart


This article is from the Linux system maintenance blog, so be sure to keep this source http://linuxadmin.blog.51cto.com/2683824/1762509

Linux Compose Policy Routing

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.