详解CISCO路由交换机的策略路由配置语句
创始人
2024-06-15 13:41:46
0

随着我国路由行业的发展,同时也推动路由技术的更新升级,下面我们讲解了CISCO路由交换机基于源地址的/策略路由配置。CISCO路由交换机做策略路由,由于4507R原先的IOS映象文件不支持基于源地址的策略路由,后经过在CISCO网站上查找版本说明,升级IOS文件,CISCO4507R连接到两个ISP(internet和ISP2),下接两个小BRAS,BRAS中配置了不同ISP的IP地址段,4507R基于源地址做策略路由。CISCO路由交换机具体配置如下。

  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.  

 

相关内容

热门资讯

如何允许远程连接到MySQL数... [[277004]]【51CTO.com快译】默认情况下,MySQL服务器仅侦听来自localhos...
如何利用交换机和端口设置来管理... 在网络管理中,总是有些人让管理员头疼。下面我们就将介绍一下一个网管员利用交换机以及端口设置等来进行D...
施耐德电气数据中心整体解决方案... 近日,全球能效管理专家施耐德电气正式启动大型体验活动“能效中国行——2012卡车巡展”,作为该活动的...
20个非常棒的扁平设计免费资源 Apple设备的平面图标PSD免费平板UI 平板UI套件24平图标Freen平板UI套件PSD径向平...
德国电信门户网站可实时显示全球... 德国电信周三推出一个门户网站,直观地实时提供其安装在全球各地的传感器网络检测到的网络攻击状况。该网站...
为啥国人偏爱 Mybatis,... 关于 SQL 和 ORM 的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行...
《非诚勿扰》红人闫凤娇被曝厕所... 【51CTO.com 综合消息360安全专家提醒说,“闫凤娇”、“非诚勿扰”已经被黑客盯上成为了“木...
2012年第四季度互联网状况报... [[71653]]  北京时间4月25日消息,据国外媒体报道,全球知名的云平台公司Akamai Te...