侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

思科HSRP配置

2023-01-17 星期二 / 0 评论 / 0 点赞 / 60 阅读 / 1497 字

1.配置设备基本信息包括接口ip、vlan、trunk、路由等配置·2.配置HSRP//SW1配置sw1(config)#int vlan 10sw1(config-if)#ip add 192.16

.


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.
|

Interface   Grp       Pri     P    State     Active          Standby            Virtual IPVl10          10        200    P    Active    local           192.168.10.2    192.168.10.254

·

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

Interface   Grp      Pri    P   State          Active                Standby        Virtual IPVl10          10       150   P   Standby    192.168.10.1     local             192.168.10.254
.

广告 广告

评论区