静态路由绑定探测组功能的配置
一、组网需求:
v3平台Auto-detect功能在v5上被NQA(网络质量分析)和Track替代,v5上已经没有Auto-detect相关命令。本实验需要实现Router1上配置一条静态路由,下一跳是Router2,Router1、Router2、Router3相连,Router1上配置Track组探测Router3的地址是否可达,如果探测失败,将Router1上的静态路由失效。
二、组网图:
三、配置步骤:
//配置探测组admin oper
nqa entry admin oper
//类型为ICMP-Echo,即ping操作
type icmp-echo
//ping的目的地址1.2.0.2
destination ip 1.2.0.2
//ping的下一跳目的地址192.168.1.2
next-hop ip 192.168.1.2
//频率为1000毫秒,即1秒
frequency 1000
//配置反应组1,即如果连续测试3次失败则触发相关动作
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
//将静态路由和跟踪组1绑定
ip route-static 10.1.1.1 32 GigabitEthernet0/0 192.168.1.2 track 1
//跟踪组1和admin oper的reaction 1绑定,即反应组1触发跟踪组1
track 1 nqa entry admin oper reaction 1
//使能nqa
nqa agent enable
//nqa调度配置,即从配置开始起一直进行调度测试
nqa schedule admin oper start-time now lifetime forever
四、配置关键点:
- 配置NQA探测组,其中关键配置是Reaction的配置;
- 配置Track跟踪组,并和Reaction绑定;
- 将静态路由和Track组绑定;
- 使能nqa agent和nqa调度。
五、设备配置命令:
R1
[R1]display current-configuration
version 7.1.075, Alpha 7571
sysname R1
track 1 nqa entry admin oper reaction 1
system-working-mode standard
xbar load-single
password-recovery enable
lpu-type f-series
vlan 1
nqa entry admin oper
type icmp-echo
destination ip 10.1.1.1
frequency 1000
next-hop ip 192.168.1.2
reaction 1 checked-element probe-fail threshold-type consecutive 3 action-type trigger-only
nqa schedule admin oper start-time now lifetime forever
interface Serial1/0
interface Serial2/0
interface Serial3/0
interface Serial4/0
interface NULL0
interface LoopBack0<