Detailed explanation of the policy routing configuration statement of the CISCO Route Switch

Source: Internet
Author: User

With the development of China's routing industry and the upgrade of the routing technology, we will introduce the source address/policy routing configuration of the CISCO Routing Switch. The CISCO Route switch performs Policy Routing. Because the original IOS image file of ipv7r does not support source address-Based Policy Routing, after searching the version description on the CISCO website, upgrade the IOS file, ciscostm7r is connected to two ISPinternet and ISP2), followed by two small BRAS, and the IP address segments of different ISPs are configured in BRAS, and ipv7r performs Policy Routing Based on the source address. The configuration of a CISCO Route switch is as follows.

 
 
  1. 4507#sh run  
  2. Building configuration...  
  3. Current configuration : 2104 bytes  
  4. !  
  5. version 12.1  
  6. no service pad  
  7. service timestamps debug uptime  
  8. service timestamps log uptime  
  9. service password-encryption  
  10. service compress-config  
  11. !  
  12. hostname 4507  
  13. !  
  14. boot system flash bootflash:cat4000-i5s-mz.121-20.EW.bin  
  15. boot system flash bootflash:cat4000-is-mz.121-12c.EW1.bin  
  16. enable password 7 06571E20561C1E0A1D  
  17. !  
  18. ip subnet-zero  
  19. !  
  20. spanning-tree extend system-id  
  21. !  
  22. redundancy  
  23. mode rpr  
  24. main-cpu  
  25. auto-sync standard  
  26. !  
  27. !  
  28. interface GigabitEthernet1/1  
  29. description to Internet  
  30. no switchport  
  31. ip address 222.112.123.110 255.255.255.252  
  32. !  
  33. interface GigabitEthernet1/2  
  34. !  
  35. interface GigabitEthernet3/1  
  36. description to bras1  
  37. no switchport  
  38. ip address 162.153.123.113 255.255.255.252  
  39. ip policy route-map isp2  
  40. speed nonegotiate  
  41. !  
  42. interface GigabitEthernet3/2  
  43. description to bras2  
  44. no switchport  
  45. ip address 162.153.123.117 255.255.255.252  
  46. ip policy route-map isp2  
  47. speed nonegotiate  
  48. !  
  49. interface GigabitEthernet3/3  
  50. !  
  51. interface GigabitEthernet3/4  
  52. !  
  53. interface GigabitEthernet3/5  
  54. !  
  55. interface GigabitEthernet3/6  
  56. !  
  57. interface GigabitEthernet4/1  
  58. description to isp2  
  59. no switchport  
  60. ip address 211.211.44.254 255.255.255.252  
  61. speed nonegotiate  
  62. !  
  63. interface GigabitEthernet4/2  
  64. !  
  65. interface GigabitEthernet4/3  
  66. !  
  67. interface GigabitEthernet4/4  
  68. !  
  69. interface GigabitEthernet4/5  
  70. !  
  71. interface GigabitEthernet4/6  
  72. !  
  73. interface Vlan1  
  74. no ip address  
  75. !  
  76. ip classless  
  77. ip route 0.0.0.0 0.0.0.0 222.112.123.109  
  78. ip route 211.211.218.0 255.255.252.0 162.153.123.113  
  79. ip route 211.211.232.0 255.255.254.0 162.153.123.117  
  80. ip route 222.122.16.0 255.255.252.0 162.153.123.113  
  81. ip route 221.122.20.0 255.255.252.0 162.153.123.117  
  82. no ip http server  
  83. !  
  84. access-list 10 permit 211.211.218.0 0.0.3.255  
  85. access-list 10 permit 211.211.232.0 0.0.1.255  
  86. route-map edu permit 10  
  87. match ip address 10  
  88. set ip next-hop 211.211.44.253  
  89. !  
  90. !  
  91. !  
  92. line con 0  
  93. stopbits 1  
  94. line vty 0 4  
  95. exec-timeout 3 0  
  96. password 7 06571E20561C1E0A1D  
  97. login  
  98. line vty 5 15  
  99. exec-timeout 3 0  
  100. password 7 03554A0A1C5D365F56  
  101. login  
  102. !  
  103. !  
  104. end  
  105.  

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.