我是靠谱客的博主 斯文海燕,这篇文章主要介绍思科HSRP配置,现在分享给大家,希望可以做个参考。

思科HSRP配置
1.配置设备基本信息
包括接口ip、vlan、trunk、路由等配置
·
2.配置HSRP
//SW1配置
sw1(config)#int vlan 10
sw1(config-if)#ip add 192.168.10.1 255.255.255.0
sw1(config-if)#standby 10 ip 192.168.10.254 ------------------//配置虚拟ip地址
sw1(config-if)#standby 10 priority 200------------------------//配置优先级
sw1(config-if)#standby 10 preempt------------------------//配置抢占权
sw1(config-if)#standby 10 track f1/1 100----------//配置端口跟踪和减去的优先级
·
//SW2配置
sw2(config)#int vlan 10
sw2(config-if)#ip add 192.168.10.2 255.255.255.0
sw2(config-if)#standby 10 ip 192.168.10.254
sw2(config-if)#standby 10 priority 150
sw2(config-if)#standby 10 preempt
·
3.验证HSRP
sw1#show standby brief
P indicates configured to preempt.
|

复制代码
1
2
Interface Grp Pri P State Active Standby Virtual IP Vl10 10 200 P Active local 192.168.10.2 192.168.10.254

·

sw2#show standby brief
P indicates configured to preempt.
|

复制代码
1
2
Interface Grp Pri P State Active Standby Virtual IP Vl10 10 150 P Standby 192.168.10.1 local 192.168.10.254

转载于:https://blog.51cto.com/13348945/2083021

最后

以上就是斯文海燕最近收集整理的关于思科HSRP配置的全部内容,更多相关思科HSRP配置内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(91)

评论列表共有 0 条评论

立即
投稿
返回
顶部