标签:hsrp
配置是需要注意三层交换机要启用路由功能、开启VLAN虚端口、启用三层交换机端口的三层功能等配置,以及接口配置的物理IP地址。
SW1配置:
int vlan 2
ip add 192.168.2.1 255.255.255.0
no sh
standby 2 ip 192.168.2.254
standby 2 priority 150
standby 2 preempt
standby 2 track f 0/1 100
standby 2 track f 0/14 100
int vlan 3
ip add 192.168.3.1 255.255.255.0
no
standby 2 ip 192.168.3.254
standby 2 priority 100 (优先级使用默认配置为100,并且不需要跟踪端口。此部可以省略)
standby 2 preempt
配置STP实现VLAN负载均衡
spanning-tree vlan 2 root primary
spanning-tree vlan 3 root secondary
SW2配置:
int vlan 2
ip add 192.168.2.2 255.255.255.0
no sh
standby 2 ip 192.168.2.254
standby 2 preempt
int vlan 3
ip add 192.168.3.2 255.255.255.0
no sh
standby 3 ip 192.168.3.254
standby 3 priority 150
standby 3 preempt
standby 3 track f 0/1 100
standby 3 track f0/13 100
配置STP实现VLAN负载均衡
spanning-tree vlan 2 root secondary
spanning-tree vlan 3 root primary
本文出自 “金针菇” 博客,请务必保留此出处http://4683097.blog.51cto.com/4673097/1543144
标签:hsrp
原文地址:http://4683097.blog.51cto.com/4673097/1543144