Viewpoint: Source Address-based policy routing configuration

Source: Internet
Author: User

It is useful to know about the policy routing configuration. Here we mainly introduce the policy routing configuration based on the source address, policy-based routing provides network managers with stronger control over packet forwarding and storage than traditional routing protocols. Traditionally, routers use Route tables derived from routing protocols, forward packets based on the destination address.

A policy-based route is better than a traditional route and more flexible to use. It prevents network administrators from selecting a forwarding path based on the destination address, packet size, application, or IP source address. Policies can be defined as multi-router load balancing or quality of service QOS based on the total traffic forwarded on each line ).

Policy Routing enables the network manager to determine the specific path of a message based on the machine it provides. In today's high-performance networks, this kind of choice is very necessary for freedom. Policy Routing provides a mechanism for forwarding packets based on the standards set by network administrators. Policy routing configuration uses the MATCH and SET statements to select the path. Policy Routing is configured on the receiving packet interface instead of the sending interface.

Source Address-based policy routing configuration

Policy routing configuration overview:

Vroa A sends all data from 192.1.1.1 from interface S0, and all data from 192.1.1.2 from interface S1.
Vroa A defines several secondary interfaces as test points. Configure RIP for router A and router B. apply the IP Policy Routing diagram LAB1 on the ETHERNET interface of A, and set the next hop interface to S0 for data from 192.168.1.1 to 192 .. set the next hop interface to S1 in the number 1.1.2. All other packets will be routed based on the destination address.

Policy route Configuration:

 
 
  1. Route:
  2. Version 11.2:
  3. No service udp-small-servers
  4. No service tcp-small-servers
  5. Hostname roupid
  6. Interface ethernet0
  7. Ip address 192.1.1.1 255.255.255.0 secondary
  8. Ip address 192.1.1.2 255.255.255.0 secondary
  9. Ip address 192.1.1.3 255.255.255.0 secondary
  10. Ip address 192.1.1.10 255.255.255.0
  11. Ip policy route-map lab1
  12. // Apply Policy Routing to E0 Port
  13. Interface serial0
  14. Ip addr 150.1.1.1 255.255.255.0
  15. Interface serial1
  16. Ip addr 151.1.1.1 255.255.255.0
  17. Router rip
  18. Network 192.1.1.0
  19. Network 150.1.0.0
  20. Network 151.1.0.0
  21. Ip local policy route-map lab1
  22. // Route a vro policy to generate packets locally
  23. No ip classless
  24. Access-list 1 permit 192.1.1.1
  25. Access-list 2 permit 192.1.1.2
  26. Route-map lab1 permit 10
  27. // Define the route map name LAB1 and 10 as the serial number to indicate the matching route order.
  28. Match ip address 1
  29. // The matched address is access list 1.
  30. Set interface serial0
  31. // Match the next hop to S0
  32. Route-map lab1 permit 20
  33. Match ip address 2
  34. Set interface serial1
  35. Line con0
  36. Line aux0
  37. Line vty 0 4
  38. Login
  39. End
  40. Router B is a standard configuration.
  41.  

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.