A-A+

PBR策略路由用法、类型、好处和配置步骤

2015年11月24日 站长资讯 暂无评论

PBR优先级高于路由表转发,可根据数据包大小,tag,协议类型等来决定数据包的走向。基于数据包的源地址判断,不被配置到的数据包将走路由表转发啊,当下一跳或者接口不可达的时候,也会走路由转发。

一、PBR类型:

1.全局调用(控制自身的流量走向,无实际例子,除网关流量)。

2.接口调用(控制非自身流量走向)。

二、好处:

1.QOS。

2.负载分担。

3.链路冗余。

三、配置步骤:

1.ACL/prefix-list   ---抓对用的流量。

2.route-map调用ACL、prefix-list,执行下一跳策略。

3.接口调用。

配置例子:

实现内网不同网段走不同线路,且线路间要备份容灾。

R3配置:

  1. interface Serial0/0  
  2.  ip address 100.100.100.3 255.255.255.0  
  3.  shutdown  
  4.  serial restart-delay 0  
  5. !  
  6. interfaceSerial0/1  
  7.  ip address 200.200.200.3 255.255.255.0  
  8.  serial restart-delay 0  
  9. !  
  10.   
  11. interface FastEthernet1/0  
  12. ip address 192.168.1.254 255.255.255.0  
  13. ip policy route-mapnext  
  14. duplex auto  
  15. speed auto  
  16. !  
  17. interface FastEthernet2/0  
  18. ip address 192.168.2.2542 55.255.255.0  
  19. ip policy route-map next  
  20. duplex auto  
  21. speed auto  
  22. !  
  23. !  
  24. access-list 1 permit 192.168.1.0 0.0.0.255  
  25. access-list 2 permit1 92.168.2.0 0.0.0.255  
  26. !  
  27. route-map next permit 10  
  28. match ip address 1  
  29. set ip next-hop 100.100.100.1 200.200.200.2  
  30. !  
  31. route-map next permit 20  
  32. match ip address 2  
  33. set ip next-hop 200.200.200.2 100.100.100.1  
  34. !  
标签:

给我留言