简要说明
PBR算是比较常用的功能,需要我们去掌握一下
配置步骤简要
- 配置BFD
- 配置track
- 配置acl
- 配置policy-based-route
- 在接口上面应用policy-based-route
配置步骤详解
配置BFD
bfd echo-source-ip ip-address
配置track
track 10 bfd echo interface Vlan-interface100 remote ip 192.168.10.4 local ip 192.168.10.5
track 20 bfd echo interface Vlan-interface100 remote ip 192.168.10.2 local ip 192.168.10.5
配置ACL
acl number 3010
rule 10 permit ip source 10.10.14.0 0.0.0.255
rule 20 permit ip source 10.10.15.0 0.0.0.255
配置policy-based-route
policy-based-route echo permit node 10
if-match acl 3010
apply ip-address next-hop 192.168.10.4 track 10
apply ip-address next-hop 192.168.10.2 track 20
在接口上面应用policy-based-route
ip policy-based-route echo