OSPF GR配置举例:
- 路由器R1、R2和R3都为双主控设备,主用板和备用板间形成备份关系。路由器间通过OSPF协议实现网络互连,并提供GR机制。
- 要求当R1通过GR方式重启OSPF进程或者进行主备倒换时转发不中断。
1、各设备配置接口地址及部署OSPF。(略)
2、在R1、R2和R3上使能OSPF GR功能。
[R1] ospf 1
[R1-ospf-1] opaque-capability enable
[R1-ospf-1] graceful-restart
[R3] ospf 1
[R3-ospf-1] opaque-capability enable
[R3-ospf-1] graceful-restart
[R3] ospf 1
[R3-ospf-1] opaque-capability enable
[R3-ospf-1] graceful-restart
3、查看路由器上OSPF GR的状态(以R1的显示为例):
<R1> display ospf 1 graceful-restart
OSPF Process 1 with Router ID 10.1.13.1
Graceful-restart capability : enabled
Graceful-restart support : planned and un-planned, totally
Helper-policy support : planned and un-planned, strict lsa check
Current GR state : normal
Graceful-restart period : 120 seconds
Number of neighbors under helper:
Normal neighbors : 0
Virtual neighbors : 0
Sham-link neighbors : 0
Total neighbors : 0
Number of restarting neighbors : 0
Last exit reason:
On graceful restart : none
On Helper : none
4、在R1用户视图下执行reset ospf process graceful-restart重启OSPF进程1,同时在R2上执行display ospf peer查看与R1的OSPF邻接关系:
<R1> reset ospf 1 process graceful-restart
<R2> display ospf 1 peer
OSPF Process 1 with Router ID 10.1.12.2
Neighbors
Area 0.0.0.1 interface 10.1.12.2(GigabitEthernet0/0/0)'s neighbors
Router ID: 10.1.13.1 Address: 10.1.12.1 GR State: Doing GR
State: Full Mode: Nbr is Master Priority: 1
DR: 10.1.12.1 BDR: 10.1.12.2 MTU: 0
Dead timer due in 32 sec
Retrans timer interval: 5
Neighbor is up for 00:00:13
Authentication Sequence: [ 0 ]
R2上OSPF邻居状态为Full,表示R1以GR方式重启OSPF进程时,R2上邻居关系不中断。
5、查看路由器上OSPF GR的状态:R1正常退出GR,R2正常退出Helper。
<R1> display ospf 1 graceful-restart
OSPF Process 1 with Router ID 10.1.13.1
Graceful-restart capability : enabled
Graceful-restart support : planned and un-planned, totally
Helper-policy support : planned and un-planned, strict lsa check
Current GR state : normal
Graceful-restart period : 120 seconds
Number of neighbors under helper:
Normal neighbors : 0
Virtual neighbors : 0
Sham-link neighbors : 0
Total neighbors : 0
Number of restarting neighbors : 0
Last exit reason:
On graceful restart : successful exit
On Helper : none
<R2> display ospf 1 graceful-restart
OSPF Process 1 with Router ID 10.1.12.2
Graceful-restart capability : enabled
Graceful-restart support : planned and un-planned, totally
Helper-policy support : planned and un-planned, strict lsa check
Current GR state : normal
Graceful-restart period : 120 seconds
Number of neighbors under helper:
Normal neighbors : 0
Virtual neighbors : 0
Sham-link neighbors : 0
Total neighbors : 0
Number of restarting neighbors : 0
Last exit reason:
On graceful restart : none
On Helper : successful exit
关于 OSPF GR配置 文章到此结束,感谢您的耐心观看,如果有不明白OSPF配置的或者想学习更多计算机网络知识的,可以访问本站-计算机网络-这个栏目查看更多内容。
本文章由青云网运维团队发布,仅供学习参考,未经青云网或者相关权利人的授权,任何人不得以任何形式复制、转载、传播、展示、表演或者商用等,青云网上的内容。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容