目录
AR1配置接口策略路由
AR4上配置本地策略路由
配置接口相关的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
路由控制——路由策略与策略路由_静下心来敲木鱼的博客-CSDN博客_路由策略和策略路由https://blog.csdn.net/m0_49864110/article/details/123710736?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167366032316800186518708%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=167366032316800186518708&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~rank_v31_ecpm-1-123710736-null-null.blog_rank_default&utm_term=%E8%B7%AF%E7%94%B1%E7%AD%96%E7%95%A5&spm=1018.2226.3001.4450