GR

1.组网需求

  Switch A、Switch B和Switch C属于同一域。这三台交换机都运行IS-IS协议以实现路由互连。

   

2.配置步骤

  1)配置各交换机接口的IP地址和IS-IS协议

  配置各交换机之间采用IS-IS协议进行互连,确保Switch A、Switch B和Switch C之间能够在网络层互通,并且各交换机之间能够借助IS-IS协议实现动态路由更新。

  2)配置IS-IS GR

# 使能Switch A的IS-IS协议的GR能力。
[SwitchA] isis 1
[SwitchA-isis-1] graceful-restart

3.配置验证  

# 重启Switch A的IS-IS进程。
<SwitchA> reset isis all 1 graceful-restart
Reset IS-IS process? [Y/N]:y
# 查看Switch A上IS-IS协议的GR状态。
<SwitchA> display isis graceful-restart status
                        Restart information for IS-IS(1)
                        --------------------------------
Restart status: COMPLETE
Restart phase: Finish
Restart t1: 3, count 10; Restart t2: 60; Restart t3: 300
SA Bit: supported
                          Level-1 restart information
                          ---------------------------
Total number of interfaces: 1
Number of waiting LSPs: 0
                          Level-2 restart information
                          ---------------------------
Total number of interfaces: 1
Number of waiting LSPs: 0

NSR

1.组网需求

  Switch S、Switch A、Switch B属于同一IS-IS区域,通过IS-IS协议实现网络互连。要求对Switch S进行主备倒换时,Switch A和Switch B到Switch S的邻居没有中断,Switch A到Switch B的流量没有中断。

   

2.配置步骤

  1)配置各交换机接口的IP地址和IS-IS协议

  配置各交换机之间采用IS-IS协议进行互连,确保Switch A、Switch B和Switch C之间能够在网络层互通,并且各交换机之间能够借助IS-IS协议实现动态路由更新。

  2)配置IS-IS NSR  

# 使能Switch S的IS-IS NSR功能。
[SwitchS] isis 1
[SwitchS-isis-1] non-stop-routing

3.配置验证  

# Switch S进行主备倒换。
[SwitchS] placement reoptimize
Predicted changes to the placement
Service Group(instance name)                      Cur location  New location
----------------------------------------------------------------------------
rib                                               0/0           0/0
staticroute                                       0/0           0/0
rib6                                              0/0           0/0
staticroute6                                      0/0           0/0
isis                                              0/0           1/0
Continue? [y/n]:y
Re-optimization of the placement start. You will be notified on completion.
Re-optimization of the placement complete. Use 'display placement' to view the new placement.
# 查看Switch A上IS-IS协议的邻居和路由。

<SwitchA> display isis peer
<SwitchA> display isis route

# 查看Switch B上IS-IS协议的邻居和路由。

<SwitchB> display isis peer
<SwitchB> display isis route

  通过上面信息可以看出Switch A和Switch B的邻居和路由信息保持不变,即NSR特性使周边设备无法感知Switch S的主备倒换。

 

posted on 2021-12-16 17:49  星痕1216  阅读(329)  评论(0编辑  收藏  举报