目录
配置接口相关的IP地址,并配置IGP路由协议使得全网互通
AR1配置接口策略路由
对经过本地转发的路由生效,对本地始发的路由不生效
配置nqa检测下一跳状态
nqa test-instance PC1 icmptrace nqa的管理者为PC1,NQA的测试例名为icmptrace
test-type icmp
destination-address ipv4 10.0.13.3
start now
定义流分类
acl 3000
rule permit ip source 192.168.10.0 0.0.0.255 destination 4.4.4.4 0.0.0.0
traffic classifier PC1
if-match acl 3000
定义流行为
traffic behavior PC1
redirect ip-nexthop 10.0.13.3 track nqa PC1 icmptrace
定义流策略
traffic policy PC1
classifier PC1 behavior PC1
接口引用流策略
int g0/0/2
traffic-policy PC1 inbound
AR4上配置本地策略路由
只对本地始发路由生效
定义流分类
acl 3000
rule permit ip source 4.4.4.4 0.0.0.0 destination 192.168.10.0 0.0.0.255
定义本地流策略
policy-based-route PC1 permit node 10
if-match acl 3000
apply ip-address next-hop 10.0.24.2
本地引用流策略
ip local policy-based-route PC1