PBR
策略路由的特点
策略路由的种类:
使用策略路由的步骤
R1(config)#access-list 11 permit 192.168.11.0 0.0.0.255//用ACL11标记192.168.11.0的流量R1(config)#route-map s1 permit 10 //创建路由图s1,允许流量 R1(config-route-map)#match ip address 11 //匹配ACL11的流量 R1(config-route-map)#set ip next-hop 100.100.100.100 //对匹配ACL11的流量直接转发到ISP1 R1(config-route-map)#exit R1(config)#route-map s1 deny 20 //路由图S1拒绝其他所有流量 R1(config-route-map)#exitR1(config)#interface fa0/0 R1(config-if)#ip policy route-map s1 //在接口下应用路由图S1 R1(config-if)#exit
参考文档
Last updated